Skip to content

Commit

Permalink
Remove over-optimistic assert
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Jan 23, 2024
1 parent 88eed54 commit 8ce3c3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/UseAnalysis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ let build_usage_map_and_mark ifdefs = object(self)
let v = match IntMap.find_opt level map with None -> zero | Some v -> v in
b.node.mark := v;
let map = restrict_map map level in
assert (snd v <> AtMost 0);
(* May happen with interruptible_for... but we don't defeat the compiler
warning in that case. TODO *)
(* assert (snd v <> AtMost 0); *)
self#plus map (self#visit_expr env e1)

method! visit_branch env (binders, _, _ as b) =
Expand Down

0 comments on commit 8ce3c3d

Please sign in to comment.