| Copyright | (c) Sirui Lu 2021-2023 |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | siruilu@cs.washington.edu |
| Stability | Experimental |
| Portability | GHC only |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Grisette.IR.SymPrim.Data.Prim.Model
Contents
Description
Synopsis
- newtype SymbolSet = SymbolSet {}
- newtype Model = Model {}
- data ModelValuePair t = (TypedSymbol t) ::= t
- equation :: TypedSymbol a -> Model -> Maybe (Term Bool)
- evaluateTerm :: forall a. SupportedPrim a => Bool -> Model -> Term a -> Term a
Documentation
Symbolic constant set.
Constructors
| SymbolSet | |
Fields | |
Instances
Model returned by the solver.
Constructors
| Model | |
Fields | |
Instances
data ModelValuePair t Source #
A type used for building a model by hand.
>>>buildModel ("x" ::= (1 :: Integer), "y" ::= True) :: ModelModel {x -> 1 :: Integer, y -> True :: Bool}
Constructors
| (TypedSymbol t) ::= t |
Instances
| Show t => Show (ModelValuePair t) Source # | |
Defined in Grisette.IR.SymPrim.Data.Prim.Model Methods showsPrec :: Int -> ModelValuePair t -> ShowS # show :: ModelValuePair t -> String # showList :: [ModelValuePair t] -> ShowS # | |
| ModelRep (ModelValuePair t) Model Source # | |
Defined in Grisette.IR.SymPrim.Data.Prim.Model Methods buildModel :: ModelValuePair t -> Model Source # | |
evaluateTerm :: forall a. SupportedPrim a => Bool -> Model -> Term a -> Term a Source #