mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
[bugfix] conflict in forgetful propagation
This commit is contained in:
parent
f82e475a42
commit
44509c6f8d
1 changed files with 6 additions and 2 deletions
|
|
@ -733,7 +733,7 @@ module Make
|
|||
|
||||
(* Add a new clause, simplifying, propagating, and backtracking if
|
||||
the clause is false in the current trail *)
|
||||
let add_clause ?(force=false) (init:clause) : unit =
|
||||
let add_clause (init:clause) : unit =
|
||||
Log.debugf debug "Adding clause: @[<hov>%a@]" (fun k -> k St.pp_clause init);
|
||||
let vec = match init.cpremise with
|
||||
| Hyp -> env.clauses_hyps
|
||||
|
|
@ -932,7 +932,11 @@ module Make
|
|||
let p = atom f in
|
||||
let c = make_clause (fresh_tname ())
|
||||
(p :: List.map (fun a -> a.neg) l) (Lemma proof) in
|
||||
enqueue_bool p (decision_level ()) (Bcp c)
|
||||
if p.is_true then ()
|
||||
else if p.neg.is_true then
|
||||
Stack.push c env.clauses_to_add
|
||||
else
|
||||
enqueue_bool p (decision_level ()) (Bcp c)
|
||||
else
|
||||
raise (Invalid_argument "Msat.Internal.slice_propagate")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue