Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Language.Hasmtlib.Type.SMT
Synopsis
- data SMT = SMT {
- _lastVarId :: !Int
- _vars :: !(Seq (SomeKnownSMTSort SMTVar))
- _formulas :: !(Seq (Expr BoolSort))
- _mlogic :: Maybe String
- _options :: [SMTOption]
- _sharingMode :: !SharingMode
- _stableMap :: !(HashMap (StableName ()) (SomeKnownSMTSort Expr))
- lastVarId :: Lens' SMT Int
- vars :: Lens' SMT (Seq (SomeKnownSMTSort SMTVar))
- formulas :: Lens' SMT (Seq (Expr 'BoolSort))
- mlogic :: Lens' SMT (Maybe String)
- options :: Lens' SMT [SMTOption]
- sharingMode :: Lens' SMT SharingMode
- stableMap :: Lens' SMT (HashMap (StableName ()) (SomeKnownSMTSort Expr))
- renderSetLogic :: Builder -> Builder
- renderDeclareVar :: forall t. KnownSMTSort t => SMTVar t -> Builder
- renderAssert :: Expr BoolSort -> Builder
- renderVars :: Seq (SomeKnownSMTSort SMTVar) -> Seq Builder
Type
The state of the SMT-problem.
Constructors
SMT | |
Fields
|
Instances
Default SMT Source # | |
Defined in Language.Hasmtlib.Type.SMT | |
RenderSeq SMT Source # | |
Sharing SMT Source # | |
Defined in Language.Hasmtlib.Type.SMT Associated Types type SharingMonad SMT :: (Type -> Type) -> Constraint Source # Methods stableMap :: Lens' SMT (HashMap (StableName ()) (SomeKnownSMTSort Expr)) Source # assertSharedNode :: (MonadState SMT m, SharingMonad SMT m) => StableName () -> Expr 'BoolSort -> m () Source # setSharingMode :: MonadState SMT m => SharingMode -> m () Source # | |
MonadState SMT m => MonadSMT SMT m Source # | |
Defined in Language.Hasmtlib.Type.SMT | |
Default (Debugger SMT) Source # | |
Defined in Language.Hasmtlib.Solver.Common | |
type SharingMonad SMT Source # | |
Defined in Language.Hasmtlib.Type.SMT |
Lens
stableMap :: Lens' SMT (HashMap (StableName ()) (SomeKnownSMTSort Expr)) Source #
Rendering
renderSetLogic :: Builder -> Builder Source #
renderDeclareVar :: forall t. KnownSMTSort t => SMTVar t -> Builder Source #
renderVars :: Seq (SomeKnownSMTSort SMTVar) -> Seq Builder Source #