Enum falcon::il::Expression[][src]

An IL Expression.

Variants

Methods

impl Expression
[src]

Return the bitness of this expression.

Return a clone of this expression, but with every occurrence of the given scalar replaced with the given expression

Return true if all terminals in this expression are Constant

Returns all Scalars used in this Expression

Return mutable references to all Scalars in this Expression.

If this expression is a scalar, return the scalar

If this expression is a constant, return the constant

Create a new Expression from a Scalar.

Create a new Expression from a Constant.

Create an addition Expression.

Error

The sort of the lhs and the rhs are not the same

Create a subtraction Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an unsigned multiplication Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an unsigned division Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an unsigned modulus Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a signed division Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a signed modulus Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a binary and Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a binary or Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a binary xor Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a logical shift-left Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a logical shift-right Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an equals comparison Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an not equals comparison Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an unsigned less-than comparison Expression.

Error

The sort of the lhs and the rhs are not the same.

Create a signed less-than comparison Expression.

Error

The sort of the lhs and the rhs are not the same.

Create an expression to zero-extend src to the number of bits specified in bits.

Error

src has more or equal number of bits than bits

Create an expression to sign-extend src to the number of bits specified

Error

src has more or equal number of bits than bits

Create an expression to truncate the number of bits in src to the number of bits given.

Error

src has less-than or equal bits than bits

Create an if-than-else expression

Error

condition is not 1-bit, or bitness of then and else_ do not match.

Trait Implementations

impl Into<Expression> for Constant
[src]

Performs the conversion.

impl Clone for Expression
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Expression
[src]

Formats the value using the given formatter. Read more

impl Eq for Expression
[src]

impl Hash for Expression
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Expression
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for Expression
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Expression
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Expression
[src]

Formats the value using the given formatter. Read more

impl Into<Expression> for Scalar
[src]

Performs the conversion.

impl Value for Expression
[src]

Turn an il::Constant into a representation of this Value

Return the number of bits contained in this value

Shift the value left by the given number of bits

Shift the value right by the given number of bits

Truncate the value to the given number of bits

Zero-extend the value to the given number of bits

Or this value with the given value

Auto Trait Implementations

impl Send for Expression

impl Sync for Expression