what4-1.1: Solver-agnostic symbolic values support for issuing queries
Copyright(c) Galois Inc 2018-2020
LicenseBSD3
MaintainerRob Dockins <rdockins@galois.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell2010

What4.Concrete

Description

This module defines a representation of concrete values of base types. These are values in fully-evaluated form that do not depend on any symbolic constants.

Synopsis

Concrete values

data ConcreteVal tp where Source #

A data type for representing the concrete values of base types.

Instances

Instances details
TestEquality ConcreteVal Source # 
Instance details

Defined in What4.Concrete

Methods

testEquality :: forall (a :: k) (b :: k). ConcreteVal a -> ConcreteVal b -> Maybe (a :~: b) #

OrdF ConcreteVal Source # 
Instance details

Defined in What4.Concrete

Methods

compareF :: forall (x :: k) (y :: k). ConcreteVal x -> ConcreteVal y -> OrderingF x y #

leqF :: forall (x :: k) (y :: k). ConcreteVal x -> ConcreteVal y -> Bool #

ltF :: forall (x :: k) (y :: k). ConcreteVal x -> ConcreteVal y -> Bool #

geqF :: forall (x :: k) (y :: k). ConcreteVal x -> ConcreteVal y -> Bool #

gtF :: forall (x :: k) (y :: k). ConcreteVal x -> ConcreteVal y -> Bool #

ShowF ConcreteVal Source # 
Instance details

Defined in What4.Concrete

Methods

withShow :: forall p q (tp :: k) a. p ConcreteVal -> q tp -> (Show (ConcreteVal tp) => a) -> a #

showF :: forall (tp :: k). ConcreteVal tp -> String #

showsPrecF :: forall (tp :: k). Int -> ConcreteVal tp -> String -> String #

Eq (ConcreteVal tp) Source # 
Instance details

Defined in What4.Concrete

Methods

(==) :: ConcreteVal tp -> ConcreteVal tp -> Bool #

(/=) :: ConcreteVal tp -> ConcreteVal tp -> Bool #

Ord (ConcreteVal tp) Source # 
Instance details

Defined in What4.Concrete

Show (ConcreteVal tp) Source # 
Instance details

Defined in What4.Concrete

concreteType :: ConcreteVal tp -> BaseTypeRepr tp Source #

Compute the type representative for a concrete value.

ppConcrete :: ConcreteVal tp -> Doc ann Source #

Pretty-print a concrete value

Concrete projections