Skip to content

OCaml version robustness and more refined exception traps#357

Open
jargh wants to merge 3 commits into
awslabs:mainfrom
jargh:caml
Open

OCaml version robustness and more refined exception traps#357
jargh wants to merge 3 commits into
awslabs:mainfrom
jargh:caml

Conversation

@jargh
Copy link
Copy Markdown
Contributor

@jargh jargh commented Feb 25, 2026

See the commit message. This was entirely written by Claude.

jrh13 and others added 3 commits February 24, 2026 16:37
Replace newer OCaml library functions (Option.*, List.filter_map,
List.concat_map, List.is_empty, String.starts_with/ends_with,
Int.logand/shift_right/shift_left) with equivalents available in
OCaml 4.05. Add compatibility shims in common/for_hollight.ml.

Fix camlp5 parse errors: remove return type annotations on fun
expressions in elf.ml and safety.ml, replace `let open Compute in`
with top-level `open Compute` in arm/proofs/decode.ml.

Fix non-exhaustive pattern match in misc.ml CONS_TO_APPEND_CONV
that raised Match_failure uncaught by `with Failure _`.

Replace `with _ ->` exception handlers with `with Failure _ ->`
throughout to avoid inadvertently catching Sys.Break and other
non-Failure exceptions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants