| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Language.Hasmtlib.Type.Value
Synopsis
- data Value (t :: SMTSort) where
- IntValue :: HaskellType IntSort -> Value IntSort
- RealValue :: HaskellType RealSort -> Value RealSort
- BoolValue :: HaskellType BoolSort -> Value BoolSort
- BvValue :: KnownNat n => HaskellType (BvSort n) -> Value (BvSort n)
- ArrayValue :: (KnownSMTSort k, KnownSMTSort v, Ord (HaskellType k), Ord (HaskellType v)) => HaskellType (ArraySort k v) -> Value (ArraySort k v)
- StringValue :: HaskellType StringSort -> Value StringSort
- wrapValue :: forall t. KnownSMTSort t => HaskellType t -> Value t
- unwrapValue :: Value t -> HaskellType t
Documentation
data Value (t :: SMTSort) where Source #
A wrapper for values of SMTSorts.
This wraps a Haskell-value into the SMT-Context.
Constructors
| IntValue :: HaskellType IntSort -> Value IntSort | |
| RealValue :: HaskellType RealSort -> Value RealSort | |
| BoolValue :: HaskellType BoolSort -> Value BoolSort | |
| BvValue :: KnownNat n => HaskellType (BvSort n) -> Value (BvSort n) | |
| ArrayValue :: (KnownSMTSort k, KnownSMTSort v, Ord (HaskellType k), Ord (HaskellType v)) => HaskellType (ArraySort k v) -> Value (ArraySort k v) | |
| StringValue :: HaskellType StringSort -> Value StringSort |
wrapValue :: forall t. KnownSMTSort t => HaskellType t -> Value t Source #
Wraps a Haskell-value into the SMT-Context-Value.
unwrapValue :: Value t -> HaskellType t Source #
Unwraps a Haskell-value from the SMT-Context-Value.