diff --git a/solver/mcsolver.ml b/solver/mcsolver.ml index f1b981bd..f88f2bb0 100644 --- a/solver/mcsolver.ml +++ b/solver/mcsolver.ml @@ -501,6 +501,7 @@ module Make (L : Log_intf.S)(E : Expr_intf.S) L.debug 10 "Adding clause : %a" St.pp_clause init0; try if Proof.has_been_proved init0 then raise Trivial; + assert (Proof.is_proven init0); (* Important side-effect, DO NOT REMOVE *) let atoms, init = partition atoms init0 in let size = List.length atoms in match atoms with @@ -513,7 +514,6 @@ module Make (L : Log_intf.S)(E : Expr_intf.S) else make_clause name atoms size true (History [init0]) in L.debug 1 "New clause : %a" St.pp_clause clause; - Proof.prove clause; attach_clause clause; Vec.push env.clauses clause; if a.neg.is_true then begin