NumberSetTy

esmeta.ty.NumberSetTy
case class NumberSetTy(set: Set[Number]) extends NumberTy

types for set of numbers

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NumberTy
trait Lattice[NumberTy]
trait TyElem
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def hasNaN: Boolean

Inherited methods

def &&(that: => NumberTy): NumberTy

intersection type

intersection type

Attributes

Inherited from:
NumberTy
def *(that: NumberTy): NumberTy

multiplication

multiplication

Attributes

Inherited from:
NumberTy
def +(that: NumberTy): NumberTy

addition

addition

Attributes

Inherited from:
NumberTy
def -(that: NumberTy): NumberTy

subtraction

subtraction

Attributes

Inherited from:
NumberTy
def --(that: => NumberTy): NumberTy

prune type

prune type

Attributes

Inherited from:
NumberTy
def /(that: NumberTy): NumberTy

division

division

Attributes

Inherited from:
NumberTy
def <=(that: => NumberTy): Boolean

partial order/subset operator

partial order/subset operator

Attributes

Inherited from:
NumberTy

This returns an canonical form of the number type. 1) If the type is a set of integers, this must return NumberIntTy. 2) Else if the gamma(type) is finite, then this must return NumberSetTy. 3) Otherwise, this must return NumberSignTy.

This returns an canonical form of the number type. 1) If the type is a set of integers, this must return NumberIntTy. 2) Else if the gamma(type) is finite, then this must return NumberSetTy. 3) Otherwise, this must return NumberSignTy.

IMPORTANT: NaN value should be considered as NumberSetTy (Temporal).

Attributes

Returns

canonical form of the number type

Inherited from:
NumberTy
def contains(number: Number): Boolean

inclusion check

inclusion check

Attributes

Inherited from:
NumberTy

get single value

get single value

Attributes

Inherited from:
NumberTy
def isBottom: Boolean

bottom check

bottom check

Attributes

Inherited from:
NumberTy
def isNegInt: Boolean

negative integral check

negative integral check

Attributes

Inherited from:
NumberTy
def isNonNegInt: Boolean

non-negative integral check

non-negative integral check

Attributes

Inherited from:
NumberTy
def isNonPosInt: Boolean

non-positive integral check

non-positive integral check

Attributes

Inherited from:
NumberTy
def isPosInt: Boolean

positive integral check

positive integral check

Attributes

Inherited from:
NumberTy
def isTop: Boolean

top check

top check

Attributes

Inherited from:
NumberTy
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def prune(that: => NumberTy, positive: Boolean): NumberTy

prune operator

prune operator

Attributes

Inherited from:
Lattice
def toSign: Sign

Get the sign of the number type. Ignores NaN values.

Get the sign of the number type. Ignores NaN values.

Attributes

Returns

the sign of the number type

Inherited from:
NumberTy

Overapproximate a number type to a sign type. Also considers NaN values.

Overapproximate a number type to a sign type. Also considers NaN values.

Attributes

Returns

the sign type

Inherited from:
NumberTy
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
TyElem -> Any
Inherited from:
TyElem
def ||(that: => NumberTy): NumberTy

union type

union type

Attributes

Inherited from:
NumberTy
def (that: => NumberTy): Boolean

Attributes

Inherited from:
Lattice
def (that: => NumberTy): NumberTy

Attributes

Inherited from:
Lattice
def (that: => NumberTy): NumberTy

Attributes

Inherited from:
Lattice