package bitwuzla
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=bf329089e4fbf78e5d4caff349227a0b98a75d2f174931c9429ae8c5949c6a6c
sha512=bcd5fa342fba50c28290e87f4754d63975da148d466af65fc0d6305840d5202d37e7dd7ba231887b41e48ec76039d16c9c9fa7ce6190fdbb6fe3eb4aa5d54bfd
doc/bitwuzla/Bitwuzla/Unsat_core/index.html
Module Bitwuzla.Unsat_core
Source
Create a new Bitwuzla session in incremental mode while enabling unsatifiable core generation.
Parameters
Signature
include sig ... end
The bit-vector kind.
The rounding-mode kind.
The floating-point kind.
type (!'a, !'b) ar = [
] constraint 'a = [< `Bv | `Fp | `Rm ] constraint 'b = [< `Bv | `Fp | `Rm ]
The array kind with 'a
index and 'b
element.
Both index and element should be of bit-vector, rounding-mode or floating-point kind
The function kind taking 'a
argument and returning 'b
element.
Functions accept only bit-vector, rounding-mode or floating-point as argument and return only bit-vector.
A sort of 'a
kind.
A term of 'a
kind.
A value of 'a
kind.
Values are subtype of terms and can be downcasted using :>
operator.
A satisfiability result.
pp formatter result
pretty print result.
check_sat ~interrupt ()
check satisfiability of current input formula.
timeout t f
configure the interruptible function f
with a timeout of t
seconds.
timeout
can be used to limit the time spend on check_sat
or check_sat_assuming
. For instance, for a 1 second time credit, use:
(timeout 1. check_sat) ()
(timeout 1. check_sat_assuming) assumptions
unafe_close ()
close the session.
UNSAFE: call this ONLY to release the resources earlier if the session is about to be garbage collected.
push nlevels
push context levels.
pop nlevels
pop context levels.
val check_sat_assuming :
?interrupt:(('a -> int) * 'a) ->
?names:string array ->
bv term array ->
result
check_sat_assuming ~interrupt ~names assumptions
check satisfiability of current input formula, with the search for a solution guided by the given assumptions.
An input formula consists of assertions added via assert'
combined with assumptions via Boolean and
. Unsatifiable assumptions can be queried via get_unsat_assumptions
.