Skip to content

Commit

Permalink
Fix stack overflow in model checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Gbury committed Jan 15, 2019
1 parent 4c6ae2a commit d2f79b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ module Make

let check_model state =
let check_clause c =
let l = List.map (function a ->
let l = List.rev_map (function a ->
Log.debugf 99 "Checking value of %a"
(fun k -> k S.St.pp_atom (S.St.add_atom a));
state.Solver_intf.eval a) c in
List.exists (fun x -> x) l
in
let l = List.map check_clause !hyps in
let l = List.rev_map check_clause !hyps in
List.for_all (fun x -> x) l

let prove ~assumptions =
Expand Down

0 comments on commit d2f79b1

Please sign in to comment.