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.
|
||||||
|
|
@ -36,7 +35,7 @@ module Make
|
||||||
(** Pop a decision level for local assumptions. *)
|
(** Pop a decision level for local assumptions. *)
|
||||||
|
|
||||||
val local : St.formula list -> unit
|
val local : St.formula list -> unit
|
||||||
(** Add local assumptions
|
(** Add local assumptions
|
||||||
@param assumptions list of additional local assumptions to make,
|
@param assumptions list of additional local assumptions to make,
|
||||||
removed after the callback returns a value *)
|
removed after the callback returns a value *)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue