package smtml
Install
Dune Dependency
Authors
-
JJoão Pereira <joaomhmpereira@tecnico.ulisboa.pt>
-
FFilipe Marques <filipe.s.marques@tecnico.ulisboa.pt>
-
HHichem Rami Ait El Hara <hra@ocamlpro.com>
-
LLéo Andrès <contact@ndrs.fr>
-
AArthur Carcano <arthur.carcano@ocamlpro.com>
-
PPierre Chambart <pierre.chambart@ocamlpro.com>
-
JJosé Fragoso Santos <jose.fragoso@tecnico.ulisboa.pt>
Maintainers
Sources
md5=f3384afc4c52ea0fcda2b434892f8412
sha512=47a70d32fae1c833b6a4765ab1152b241e1c60078a30c27b4669bb4a7fe499228d5c5783aca4462ed553408fa16488903924bad11b050bb22a985770796f56af
doc/smtml/Smtml/Solver/Batch/index.html
Module Solver.Batch
Source
The Batch
module is parameterized by the mapping module M
implementing Mappings_intf.S
. In this mode, the solver delays all interactions with the underlying SMT solver until necessary.
Parameters
module _ : Mappings_intf.S
Signature
The type of solvers.
The type of underlying solver instances.
solver_time
tracks the time spent inside the SMT solver.
solver_count
tracks the number of queries made to the SMT solver.
pp_statistics fmt solver
pretty-prints solver statistics using the formatter fmt
.
create ?params ?logic ()
creates a new solver.
add solver exprs
asserts one or multiple constraints exprs
into the solver solver
.
add_set solver set
asserts constraints from the set set
into the solver solver
.
get_assertions solver
retrieves the set of assertions in the solver solver
.
get_statistics solver
retrieves statistics from the solver solver
.
check solver es
checks the satisfiability of the assertions in the solver solver
using the assumptions in es
. Returns `Sat
, `Unsat
, or `Unknown
.
check_set solver set
checks the satisfiability of the assertions in the solver solver
using the assumptions in the set set
. Returns `Sat
, `Unsat
, or `Unknown
.
get_value solver expr
retrieves an expression denoting the model value of the given expression expr
. Requires that the last check
query returned `Sat
.
model ?symbols solver
retrieves the model of the last check
query. If ?symbols
is provided, only the values of the specified symbols are included. Returns None
if check
was not invoked before or its result was not `Sat
.
Not compatible with cached solver mode - use get_sat_model
instead
val get_sat_model :
?symbols:Symbol.t list ->
t ->
Expr.Set.t ->
[ `Model of Model.t | `Unsat | `Unknown ]
Compute and retrieve a model for specific constraints.
get_sat_model ?symbols solver exprs
performs: 1. check_set
with exprs
constraints 2. Returns model if result is `Sat
Filters output using ?symbols
when provided. Designed for cached solvers.