Implements "goto" command. More...
#include <c_fn_cmd_goto.h>
Public Member Functions | |
c_fn_cmd_goto (const string &tag, const string &debug, long id) | |
Constructor. | |
c_fn_cmd_goto (const c_fn_cmd_goto &orig) | |
Copy constructor. | |
virtual | ~c_fn_cmd_goto () |
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. | |
long | get_id () |
Gets ID of command. | |
long | get_label_id () |
Gets ID of target of "goto" command. | |
const string & | get_tag () |
Gets "goto" label tag. | |
e_cmd_type | get_type () |
Returns type of command. | |
c_fn_cmd_goto & | operator= (const c_fn_cmd_goto &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. | |
bool | sanity_check (string &msg) |
Performs sanity check. | |
void | set_label_id (long id) |
Sets ID of target of "goto" command. | |
Protected Attributes | |
string | _debug |
Debug string. | |
long | _id |
Unique ID of command. | |
Private Attributes | |
string | _tag |
"goto"'s label tag | |
long | label_id |
ID of command as target of "goto". |
Implements "goto" command.
Definition at line 62 of file c_fn_cmd_goto.h.