grisette-0.11.0.0: Symbolic evaluation as a library
Copyright(c) Sirui Lu 2024
LicenseBSD-3-Clause (see the LICENSE file)
Maintainersiruilu@cs.washington.edu
StabilityExperimental
PortabilityGHC only
Safe HaskellNone
LanguageHaskell2010

Grisette.Internal.Core.Data.Class.SymIEEEFP

Description

 
Synopsis

Documentation

class SymIEEEFPTraits a where Source #

A class for symbolic traits of IEEE floating-point numbers.

Methods

symFpIsNaN :: a -> SymBool Source #

Check if a symbolic floating-point number is not-a-number.

symFpIsPositive :: a -> SymBool Source #

Check if a symbolic floating-point number is positive. +0, +inf are considered positive. nan, -0, -inf are not positive.

symFpIsNegative :: a -> SymBool Source #

Check if a symbolic floating-point number is negative. -0, -inf are considered negative. nan, +0, +inf are not negative.

symFpIsPositiveInfinite :: a -> SymBool Source #

Check if a symbolic floating-point number is positive infinite.

symFpIsNegativeInfinite :: a -> SymBool Source #

Check if a symbolic floating-point number is negative infinite.

symFpIsInfinite :: a -> SymBool Source #

Check if a symbolic floating-point number is infinite.

symFpIsPositiveZero :: a -> SymBool Source #

Check if a symbolic floating-point number is positive zero.

symFpIsNegativeZero :: a -> SymBool Source #

Check if a symbolic floating-point number is negative zero.

symFpIsZero :: a -> SymBool Source #

Check if a symbolic floating-point number is zero.

symFpIsNormal :: a -> SymBool Source #

Check if a symbolic floating-point number is normal, i.e., not 0, not inf, not nan, and not denormalized.

symFpIsSubnormal :: a -> SymBool Source #

Check if a symbolic floating-point number is subnormal, i.e., denormalized. 0, inf, or nan are not subnormal.

symFpIsPoint :: a -> SymBool Source #

Check if a symbolic floating-point number is a point, i.e., not inf, not nan.

Instances

Instances details
SymIEEEFPTraits Double Source # 
Instance details

Defined in Grisette.Internal.Core.Data.Class.SymIEEEFP

SymIEEEFPTraits Float Source # 
Instance details

Defined in Grisette.Internal.Core.Data.Class.SymIEEEFP

ValidFP eb sb => SymIEEEFPTraits (FP eb sb) Source # 
Instance details

Defined in Grisette.Internal.Core.Data.Class.SymIEEEFP

ValidFP eb sb => SymIEEEFPTraits (SymFP eb sb) Source # 
Instance details

Defined in Grisette.Internal.SymPrim.SymFP