No Clock  1.0.2

Operations on expressions. More...

Functions

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...
 

Detailed Description

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!

Function Documentation

expression * expression_add ( expression *  a,
expression *  b 
)
related

Add two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_and ( expression *  a,
expression *  b 
)
related

Conjunction of two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_div ( expression *  a,
expression *  b 
)
related

Divide two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_eq ( expression *  a,
expression *  b 
)
related

Equals.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_ge ( expression *  a,
expression *  b 
)
related

Greater or equals.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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
expression * expression_gt ( expression *  a,
expression *  b 
)
related

Greater than.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_le ( expression *  a,
expression *  b 
)
related

Lower or equals.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_lt ( expression *  a,
expression *  b 
)
related

Lower than.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_max ( expression *  a,
expression *  b 
)
related

Maximum of two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_min ( expression *  a,
expression *  b 
)
related

Minimum of two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_mult ( expression *  a,
expression *  b 
)
related

Multiply two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_ne ( expression *  a,
expression *  b 
)
related

Differs.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_neg ( expression *  e)
related

Negate an expression.

Since
version 1.0.0
Parameters
eExpression.
Returns
The resulting expression.
Precondition
e != NULL
Warning
It is not safe to use e afterwards.
expression * expression_not ( expression *  e)
related

Not an expression.

Since
version 1.0.0
Parameters
eExpression.
Returns
The resulting expression.
Precondition
e != NULL
Warning
It is not safe to use e afterwards.
expression * expression_or ( expression *  a,
expression *  b 
)
related

Disjunction of two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.
expression * expression_sub ( expression *  a,
expression *  b 
)
related

Substract two expressions.

Since
version 1.0.0
Parameters
aLeft operand.
bRight 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.