Operations on expressions.
More...
|
| expression * | expression_add (expression *a, expression *b) |
| | Add two expressions. More...
|
| |
| expression * | expression_and (expression *a, expression *b) |
| | Conjunction of two expressions. More...
|
| |
| expression * | expression_div (expression *a, expression *b) |
| | Divide two expressions. More...
|
| |
| expression * | expression_eq (expression *a, expression *b) |
| | Equals. More...
|
| |
| expression * | expression_ge (expression *a, expression *b) |
| | Greater or equals. More...
|
| |
| expression * | expression_gt (expression *a, expression *b) |
| | Greater than. More...
|
| |
| expression * | expression_le (expression *a, expression *b) |
| | Lower or equals. More...
|
| |
| expression * | expression_lt (expression *a, expression *b) |
| | Lower than. More...
|
| |
| expression * | expression_max (expression *a, expression *b) |
| | Maximum of two expressions. More...
|
| |
| expression * | expression_min (expression *a, expression *b) |
| | Minimum of two expressions. More...
|
| |
| expression * | expression_mult (expression *a, expression *b) |
| | Multiply two expressions. More...
|
| |
| expression * | expression_ne (expression *a, expression *b) |
| | Differs. More...
|
| |
| expression * | expression_neg (expression *e) |
| | Negate an expression. More...
|
| |
| expression * | expression_not (expression *e) |
| | Not an expression. More...
|
| |
| expression * | expression_or (expression *a, expression *b) |
| | Disjunction of two expressions. More...
|
| |
| expression * | expression_sub (expression *a, expression *b) |
| | Substract two expressions. More...
|
| |
Operations on expressions.
- Since
- version
1.0.0
These functions apply operations on expressions.
- Warning
- It is not safe to use the input expressions once operations have be applied!
Add two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Conjunction of two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Divide two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Equals.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Greater or equals.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Warning
- It is not safe to use either a or b afterwards.
- Precondition
- a != NULL and b != NULL
Greater than.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Lower or equals.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Lower than.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Maximum of two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Minimum of two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Multiply two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Differs.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Negate an expression.
- Since
- version
1.0.0
- Parameters
-
- Returns
- The resulting expression.
- Precondition
- e != NULL
- Warning
- It is not safe to use e afterwards.
Not an expression.
- Since
- version
1.0.0
- Parameters
-
- Returns
- The resulting expression.
- Precondition
- e != NULL
- Warning
- It is not safe to use e afterwards.
Disjunction of two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.
Substract two expressions.
- Since
- version
1.0.0
- Parameters
-
| a | Left operand. |
| b | Right operand. |
- Returns
- The result of the operation.
- Precondition
- a != NULL and b != NULL
- Warning
- It is not safe to use either a or b afterwards.