Module Batsat
Bindings to Batsat
module Lit : sig ... end
type assumptions
= Lit.t array
val create : unit -> t
val solve : ?assumptions:assumptions -> t -> unit
- raises Unsat
if the problem is unsat
val n_vars : t -> int
val n_clauses : t -> int
val n_conflicts : t -> int
val n_props : t -> int
Number of SAT propagations
- since
- 0.4
val n_decisions : t -> int
Number of SAT decisions
- since
- 0.4
val is_in_unsat_core : t -> Lit.t -> bool
is_in_unsat_core s lit
checks whetherabs(lit)
is part of the unsat core (if it was an assumption) precondition: last call tosolve
raisedUnsat
val unsat_core : t -> Lit.t array
Access the whole unsat core precondition: last call to
solve
raisedUnsat
val n_proved_lvl_0 : t -> int
Number of literals true at level0 (ie proved unconditionally). Can only grow.