No Clock  1.0.2

Getters on if then else branchs. More...

Functions

expression * instruction_if_then_else_get_condition (instruction *instr)
 Get a branch's condition. More...
 
instruction_list * instruction_if_then_else_get_false_body (instruction *instr)
 Get a branch's true body. More...
 
bool instruction_if_then_else_get_has_else (instruction *instr)
 Get a branch's if_then_else::has_else property. More...
 
instruction_list * instruction_if_then_else_get_true_body (instruction *instr)
 Get a branch's true body. More...
 

Detailed Description

Getters on if then else branchs.

Since
version 1.0.0
See also
Getters on branchs

Function Documentation

expression * instruction_if_then_else_get_condition ( instruction *  instr)
related

Get a branch's condition.

Since
version 1.0.0
Parameters
instrTarget instruction.
Returns
The branching condition.
Precondition
instruction_get_type() returns INSTR_IF or INSTR_IF_ELSE if used on instr.
See also
Getters on branchs
instruction_list * instruction_if_then_else_get_false_body ( instruction *  instr)
related

Get a branch's true body.

Since
version 1.0.0
Parameters
instrTarget instruction.
Returns
The true body.
Precondition
instruction_get_type() returns INSTR_IF or INSTR_IF_ELSE if used on instr.
See also
Getters on branchs
bool instruction_if_then_else_get_has_else ( instruction *  instr)
related

Get a branch's if_then_else::has_else property.

Since
version 1.0.0
Parameters
instrTarget instruction.
Return values
trueif there is a "false" body.
falseotherwise.
Precondition
instruction_get_type() returns INSTR_IF or INSTR_IF_ELSE if used on instr.
See also
Getters on branchs
instruction_list * instruction_if_then_else_get_true_body ( instruction *  instr)
related

Get a branch's true body.

Since
version 1.0.0
Parameters
instrTarget instruction.
Returns
The true body.
Precondition
instruction_get_type() returns INSTR_IF or INSTR_IF_ELSE if used on instr.
See also
Getters on branchs