| Copyright | (c) Sirui Lu 2021-2024 |
|---|---|
| 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.Internal.SymPrim.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
Set of symbols.
Check SymbolSetOps for operations, and
SymbolSetRep for manual constructions.
Constructors
| SymbolSet | |
Fields | |
Instances
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.Internal.SymPrim.Prim.Model Methods showsPrec :: Int -> ModelValuePair t -> ShowS # show :: ModelValuePair t -> String # showList :: [ModelValuePair t] -> ShowS # | |
| ModelRep (ModelValuePair t) Model Source # | |
Defined in Grisette.Internal.SymPrim.Prim.Model Methods buildModel :: ModelValuePair t -> Model Source # | |
equation :: TypedSymbol a -> Model -> Maybe (Term Bool) Source #
Given a typed symbol and a model, return the equation (symbol = value) encoded in the model.
evaluateTerm :: forall a. SupportedPrim a => Bool -> Model -> Term a -> Term a Source #
Evaluate a term in the given model.