Previous - Up - Next

SIM_instruction_child()

NAME
SIM_instruction_child, SIM_instruction_parent — get the parent or child

SYNOPSIS
instruction_id_t
SIM_instruction_child(instruction_id_t ii, int n);
instruction_id_t
SIM_instruction_parent(instruction_id_t ii);

DESCRIPTION
SIM_instruction_child returns the child n (counting started from 0) for instruction ii. Child 0 will always be valid if the instruction has a child, i.e. if child 0 is squashed child 1 will become 0 etc.

SIM_instruction_parent returns the parent instruction.

EXCEPTIONS
Index Thrown if ii is illegal.
RETURN VALUE
The instruction id of the requested instruction, or 0 if there is none.

Previous - Up - Next