mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-08 04:05:43 -05:00
Revert "fix: catch E_unsat in assume, if one adds an empty clause"
This reverts commit 5d7e34584bdbfd8326fbbf7f3314d93ac79597ce.
This commit is contained in:
parent
7673bddf82
commit
4127db2153
1 changed files with 7 additions and 13 deletions
|
|
@ -1988,19 +1988,13 @@ module Make(Plugin : PLUGIN)
|
|||
with E_sat -> ()
|
||||
|
||||
let assume st cnf lemma =
|
||||
try
|
||||
List.iter
|
||||
(fun l ->
|
||||
let atoms = List.rev_map (mk_atom st) l in
|
||||
let c = Clause.make_permanent atoms (Hyp lemma) in
|
||||
Log.debugf debug (fun k -> k "(@[sat.assume-clause@ @[<hov 2>%a@]@])" Clause.debug c);
|
||||
Vec.push st.clauses_to_add c)
|
||||
cnf
|
||||
with
|
||||
| E_unsat (US_false c) ->
|
||||
st.unsat_at_0 <- Some c
|
||||
| E_unsat (US_local _) ->
|
||||
assert false (* assumptions should only be present in [solve] *)
|
||||
List.iter
|
||||
(fun l ->
|
||||
let atoms = List.rev_map (mk_atom st) l in
|
||||
let c = Clause.make_permanent atoms (Hyp lemma) in
|
||||
Log.debugf debug (fun k -> k "(@[sat.assume-clause@ @[<hov 2>%a@]@])" Clause.debug c);
|
||||
Vec.push st.clauses_to_add c)
|
||||
cnf
|
||||
|
||||
(* Check satisfiability *)
|
||||
let check_clause c =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue