package bitwuzla
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=004ccb630a070829fedcbaf071fc50f5c7df2e5f47d2016e228ab775df6961d8
sha512=9a3d46b0a0379228a17f9d5f88cf7c409eab7c72d9296a939bc254120bc89ede9471d0930f8d2f70463e99e627649e56e54556ed2f008a3800f9387a6959674a
doc/bitwuzla/Bitwuzla/Once/index.html
Module Bitwuzla.Once
Source
Create a new Bitwuzla session (check_sat
can only be called once).
Parameters
Signature
Phantom type
Phantom types are annotations that allow the compiler to statically catch some sort mismatch errors. Size mismatch errors will still be caught at runtime.
The bit-vector kind.
The rounding-mode kind.
The floating-point kind.
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.
Core types
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.
Formula
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.