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:
Guillaume Bury 2016-08-19 01:06:22 +02:00
parent 119f3a8566
commit 9eee458c2a
2 changed files with 3 additions and 7 deletions

View file

@ -68,10 +68,7 @@ module Make
{ unsat_conflict; get_proof; }
(* Wrappers around internal functions*)
let assume ?tag l =
try
S.assume ?tag l
with S.Unsat -> ()
let assume = S.assume
let solve ?(assumptions=[]) () =
try

View file

@ -25,8 +25,7 @@ module Make
val assume : ?tag:int -> St.formula list list -> unit
(** Add the list of clauses to the current set of assumptions.
Modifies the sat solver state in place.
@raise Unsat if a conflict is detect when adding the clauses *)
Modifies the sat solver state in place. *)
val push : unit -> unit
(** Create a decision level for local assumptions.
@ -36,7 +35,7 @@ module Make
(** Pop a decision level for local assumptions. *)
val local : St.formula list -> unit
(** Add local assumptions
(** Add local assumptions
@param assumptions list of additional local assumptions to make,
removed after the callback returns a value *)