Skip to content

Commit d2f79b1

Browse files
committed
Fix stack overflow in model checking
1 parent 4c6ae2a commit d2f79b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ module Make
3737

3838
let check_model state =
3939
let check_clause c =
40-
let l = List.map (function a ->
40+
let l = List.rev_map (function a ->
4141
Log.debugf 99 "Checking value of %a"
4242
(fun k -> k S.St.pp_atom (S.St.add_atom a));
4343
state.Solver_intf.eval a) c in
4444
List.exists (fun x -> x) l
4545
in
46-
let l = List.map check_clause !hyps in
46+
let l = List.rev_map check_clause !hyps in
4747
List.for_all (fun x -> x) l
4848

4949
let prove ~assumptions =

0 commit comments

Comments
 (0)