Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
class Equatable a => Orderable a where Source #
Compare two as as SMT-Expression.
x <- var @RealSort y <- var assert $ x >? y assert $ x === min' 42 100
Nothing
(<=?) :: a -> a -> Expr BoolSort infix 4 Source #
(>=?) :: a -> a -> Expr BoolSort infix 4 Source #
Instances
Orderable Void Source # | |
Orderable Int16 Source # | |
Orderable Int32 Source # | |
Orderable Int64 Source # | |
Orderable Int8 Source # | |
Orderable Word16 Source # | |
Orderable Word32 Source # | |
Orderable Word64 Source # | |
Orderable Word8 Source # | |
Orderable Ordering Source # | |
Orderable Integer Source # | |
Orderable Natural Source # | |
Orderable () Source # | |
Orderable Bool Source # | |
Orderable Char Source # | |
Orderable Double Source # | |
Orderable Float Source # | |
Orderable Int Source # | |
Orderable Word Source # | |
KnownNat n => Orderable (Expr ('BvSort n)) Source # | |
Defined in Language.Hasmtlib.Orderable | |
Orderable (Expr 'IntSort) Source # | |
Defined in Language.Hasmtlib.Orderable | |
Orderable (Expr 'RealSort) Source # | |
Defined in Language.Hasmtlib.Orderable |
min' :: (Orderable a, Iteable (Expr BoolSort) a) => a -> a -> a Source #
Minimum of two as SMT-Expression.
max' :: (Orderable a, Iteable (Expr BoolSort) a) => a -> a -> a Source #
Maximum of two as SMT-Expression.
class GEquatable f => GOrderable f where Source #
Instances
GOrderable (U1 :: k -> Type) Source # | |
GOrderable (V1 :: k -> Type) Source # | |
(GOrderable f, GOrderable g) => GOrderable (f :*: g :: k -> Type) Source # | |
(GOrderable f, GOrderable g) => GOrderable (f :+: g :: k -> Type) Source # | |
Orderable a => GOrderable (K1 i a :: k -> Type) Source # | |
GOrderable f => GOrderable (M1 i c f :: k -> Type) Source # | |