package smtml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Make.SolverSource

Sourceval make : ?params:Params.t -> ?logic:Logic.t -> unit -> solver

make ?params ?logic () creates a new solver with optional parameters params and logic logic.

Sourceval add_simplifier : solver -> solver

add_simplifier solver adds a simplifier to the solver solver.

Sourceval clone : solver -> solver

clone solver creates a copy of the solver solver.

Sourceval push : solver -> unit

push solver pushes a new context level onto the solver solver.

Sourceval pop : solver -> int -> unit

pop solver n pops n context levels from the solver solver.

Sourceval reset : solver -> unit

reset solver resets the solver solver to its initial state.

Sourceval add : solver -> Expr.t list -> unit

add solver exprs adds the expressions exprs to the solver solver.

Sourceval check : solver -> assumptions:Expr.t list -> [ `Sat | `Unsat | `Unknown ]

check solver ~assumptions checks the satisfiability of the solver solver with the given assumptions. Returns `Sat, `Unsat, or `Unknown.

Sourceval model : solver -> model option

model solver retrieves the model from the solver solver, if one exists.

Sourceval interrupt : solver -> unit

interrupt solver interrupts the current solver operation.

Sourceval get_statistics : solver -> Statistics.t

get_statistics solver retrieves statistics from the solver solver.

OCaml

Innovation. Community. Security.