feat(msat-solver): profiling probe for conflicts

This commit is contained in:
Simon Cruanes 2021-03-24 12:07:11 -04:00
parent f893f14f21
commit 481e8e9e58

View file

@ -674,7 +674,12 @@ module Make(A : ARG)
List.iter (fun f->f()) on_exit;
in
self.si.on_progress <- (fun () -> on_progress self);
let r = Sat_solver.solve ~assumptions (solver self) in
let on_conflict =
if Profile.enabled()
then Some (fun _ -> Profile.instant "sat.conflict")
else None
in
let r = Sat_solver.solve ?on_conflict ~assumptions (solver self) in
Stat.incr self.count_solve;
match r with
| Sat_solver.Sat st ->