Skip to content

Commit

Permalink
Remove is_unsat function
Browse files Browse the repository at this point in the history
  • Loading branch information
Halbaroth committed Feb 14, 2025
1 parent 5cde86b commit bd9c1ce
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/lib/reasoners/fun_sat_frontend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,4 @@ module Make (Th : Theory.S) : Sat_solver_sig.S = struct
raise (Util.Not_implemented "optimization is not supported by FunSAT.")

let supports_optimization = false

let is_unsat _env = assert false
end
1 change: 0 additions & 1 deletion src/lib/reasoners/sat_solver_sig.ml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ module type S = sig

val supports_optimization : bool
(** Returns whether the solver supports optimization. *)
val is_unsat : t -> bool
end


Expand Down
1 change: 0 additions & 1 deletion src/lib/reasoners/sat_solver_sig.mli
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ module type S = sig

val supports_optimization : bool
(** Returns whether the solver supports optimization. *)
val is_unsat : t -> bool
end


Expand Down
3 changes: 0 additions & 3 deletions src/lib/reasoners/satml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ module type SAT_ML = sig
val pop : t -> unit

val optimize : t -> Objective.Function.t -> unit

val is_unsat : t -> bool
end

module MFF = FF.Map
Expand Down Expand Up @@ -2291,5 +2289,4 @@ module Make (Th : Theory.S) : SAT_ML with type th = Th.t = struct
Vec.replace (fun fns -> fn :: fns) env.objectives
(Vec.size env.objectives - 1)

let is_unsat env = env.is_unsat
end
1 change: 0 additions & 1 deletion src/lib/reasoners/satml.mli
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ module type SAT_ML = sig
@raise invalid_argurment if the decision level of [env] is not zero. *)

val is_unsat : t -> bool
end

module Make (Th : Theory.S) : SAT_ML with type th = Th.t
1 change: 0 additions & 1 deletion src/lib/reasoners/satml_frontend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,6 @@ module Make (Th : Theory.S) : Sat_solver_sig.S = struct
Shostak.Combine.save_cache ();
Uf.save_cache ()

let is_unsat env = SAT.is_unsat env.satml
end

(*
Expand Down

0 comments on commit bd9c1ce

Please sign in to comment.