smtlib-backends-z3-0.3: An SMT-LIB backend implemented using Z3's C API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

SMTLIB.Backends.Z3

Description

A module providing a backend that sends commands to Z3 using its C API.

Synopsis

Documentation

newtype Config Source #

Constructors

Config 

Fields

  • parameters :: [(ByteString, ByteString)]

    A list of options to set during the solver's initialization. Each pair is of the form (paramId, paramValue), e.g. (":produce-models", "true").

defaultConfig :: Config Source #

By default, don't set any options during initialization.

new :: Config -> IO Handle Source #

Create a new solver instance.

close :: Handle -> IO () Source #

Release the resources associated with a Z3 instance.

with :: Config -> (Handle -> IO a) -> IO a Source #

Create a Z3 instance, use it to run a computation and release its resources.

toBackend :: Handle -> Backend Source #

Create a solver backend out of a Z3 instance.