debug in sat

This commit is contained in:
Simon Cruanes 2022-08-16 21:29:29 -04:00
parent 99dc9743a3
commit 947f790f9f
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -1240,15 +1240,15 @@ let acts_raise self (l : Lit.t list) (p : Proof_step.id) : 'a =
let check_consequence_lits_false_ self l p : unit = let check_consequence_lits_false_ self l p : unit =
let store = self.store in let store = self.store in
Log.debugf 50 (fun k -> Log.debugf 50 (fun k ->
k "(@[sat.check-consequence-lits: %a@ :for %a@])" k "(@[sat.check-consequence-lits:@ :consequence (@[%a@])@ :for %a@])"
(Util.pp_list (Atom.debug store)) (Util.pp_list (Atom.debug store))
l (Atom.debug store) p); l (Atom.debug store) p);
match List.find (fun a -> Atom.is_true store a) l with match List.find (fun a -> Atom.is_true store a) l with
| a -> | a ->
invalid_argf invalid_argf
"slice.acts_propagate:@ Consequence should contain only false literals,@ \ "slice.acts_propagate:@ Consequence should contain only false literals,@ \
but @[%a@] is true" but @[%a@] is true@ when propagating %a"
(Atom.debug store) (Atom.neg a) (Atom.debug store) p (Atom.debug store) a
| exception Not_found -> () | exception Not_found -> ()
let acts_propagate (self : t) f (expl : reason) = let acts_propagate (self : t) f (expl : reason) =