package smtml
Install
dune-project
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=f8549c12d40e6a1dafcced7e319887a4
sha512=f147faa9e2519585cfe9b11654b750061259da4db0b2136d9047b4cb480abb562f6ac627545fd06461f4414acba57558713868de370f58131f3face308f7c7f0
doc/smtml/Smtml/Solver/Batch/index.html
Module Solver.BatchSource
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.SSignature
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.