Skip to content

Commit

Permalink
Merge pull request #134 from AeneasVerif/protz_relax
Browse files Browse the repository at this point in the history
Relax failing assertion
  • Loading branch information
msprotz authored Jan 11, 2025
2 parents 0cc48e6 + 3d16334 commit aff3b63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cleanup2.ml
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ let smallest =
end

let rec find_terminal_incr i e =
assert (e.typ = TUnit);
if e.typ <> TUnit && e.typ <> TAny then
Krml.Warn.failwith "e_then has type: %a\n" ptyp e.typ;
let ( let* ) = Option.bind in
let hoist e = Krml.DeBruijn.subst_n e (List.init i (fun _ -> Krml.Helpers.eunit)) in
match e.node with
Expand Down

0 comments on commit aff3b63

Please sign in to comment.