Implements "for()" command. More...
#include <c_fn_cmd_for_cond.h>
Public Member Functions | |
c_fn_cmd_for_cond (c_expression *cond, const string &debug, long id) | |
Constructor. | |
c_fn_cmd_for_cond (const c_fn_cmd_for_cond &orig) | |
Copy constructor. | |
virtual | ~c_fn_cmd_for_cond () |
Destructor. | |
void | add_inputs (vector< var_sym_index_t > &inputs) |
Adds all inputs to vector. | |
void | clean_up () |
Deallocates microcode (if applicable). | |
c_fn_cmd * | copy () |
Creates copy of itself. | |
const string & | get_debug_string () |
Gets debug string. | |
c_expression * | get_exp () |
Gets conditional expression. | |
long | get_false_jump_id () |
Gets ID to jump to if false condition. | |
long | get_id () |
Gets ID of command. | |
long | get_iterative_exp_id () |
Gets ID of iterative expression. | |
e_cmd_type | get_type () |
Returns type of command. | |
c_fn_cmd_for_cond & | operator= (const c_fn_cmd_for_cond &orig) |
Assign operator. | |
void | optimize_output (const vector< var_sym_index_t > &inputs) |
Optimizes output by removing result variables taht are not referenced as input. | |
virtual bool | sanity_check (string &msg)=0 |
Performs sanity check. | |
bool | sanity_check (string &msg) |
void | set_false_jump_id (long id) |
Sets ID to jump to if false condition. | |
void | set_iterative_exp_id (long id) |
Sets ID of iterative expression. | |
Protected Attributes | |
string | _debug |
Debug string. | |
long | _id |
Unique ID of command. | |
Private Attributes | |
c_expression * | exp_cond |
Conditional expression. | |
long | false_jump_id |
ID to jump to if conditional expression is false. | |
long | iterative_exp_id |
Iterative expression. |
Implements "for()" command.
Definition at line 63 of file c_fn_cmd_for_cond.h.