what4-1.1: Solver-agnostic symbolic values support for issuing queries
Copyright(c) Galois Inc. 2020
LicenseBSD3
MaintainerJoe Hendrix <jhendrix@galois.com>
Safe HaskellNone
LanguageHaskell2010

What4.Utils.OnlyIntRepr

Description

Defines a GADT for indicating a base type must be an integer. Used for restricting index types in MATLAB arrays.

Synopsis

Documentation

data OnlyIntRepr tp Source #

This provides a GADT instance used to indicate a BaseType must have value BaseIntegerType.

Constructors

tp ~ BaseIntegerType => OnlyIntRepr 

Instances

Instances details
TestEquality OnlyIntRepr Source # 
Instance details

Defined in What4.Utils.OnlyIntRepr

Methods

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

HashableF OnlyIntRepr Source # 
Instance details

Defined in What4.Utils.OnlyIntRepr

Methods

hashWithSaltF :: forall (tp :: k). Int -> OnlyIntRepr tp -> Int #

hashF :: forall (tp :: k). OnlyIntRepr tp -> Int #

Hashable (OnlyIntRepr tp) Source # 
Instance details

Defined in What4.Utils.OnlyIntRepr

Methods

hashWithSalt :: Int -> OnlyIntRepr tp -> Int #

hash :: OnlyIntRepr tp -> Int #