mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-07 03:35:38 -05:00
External.assume no longer needs to catch Unsat
Following changes to the assume function in internal, it does not raise Unsat anymore, so there is no reason to try and catch it in external.
This commit is contained in:
parent
119f3a8566
commit
9eee458c2a
2 changed files with 3 additions and 7 deletions
|
|
@ -68,10 +68,7 @@ module Make
|
||||||
{ unsat_conflict; get_proof; }
|
{ unsat_conflict; get_proof; }
|
||||||
|
|
||||||
(* Wrappers around internal functions*)
|
(* Wrappers around internal functions*)
|
||||||
let assume ?tag l =
|
let assume = S.assume
|
||||||
try
|
|
||||||
S.assume ?tag l
|
|
||||||
with S.Unsat -> ()
|
|
||||||
|
|
||||||
let solve ?(assumptions=[]) () =
|
let solve ?(assumptions=[]) () =
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ module Make
|
||||||
|
|
||||||
val assume : ?tag:int -> St.formula list list -> unit
|
val assume : ?tag:int -> St.formula list list -> unit
|
||||||
(** Add the list of clauses to the current set of assumptions.
|
(** Add the list of clauses to the current set of assumptions.
|
||||||
Modifies the sat solver state in place.
|
Modifies the sat solver state in place. *)
|
||||||
@raise Unsat if a conflict is detect when adding the clauses *)
|
|
||||||
|
|
||||||
val push : unit -> unit
|
val push : unit -> unit
|
||||||
(** Create a decision level for local assumptions.
|
(** Create a decision level for local assumptions.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue