Base class for function's command. More...
#include <c_fn_cmd.h>
Inherited by c_fn_cmd_break, c_fn_cmd_case, c_fn_cmd_case_default, c_fn_cmd_continue, c_fn_cmd_do, c_fn_cmd_do_while, c_fn_cmd_dummy, c_fn_cmd_end_of_func, c_fn_cmd_exp, c_fn_cmd_for_cond, c_fn_cmd_foreach, c_fn_cmd_foreach_next_iter, c_fn_cmd_global, c_fn_cmd_goto, c_fn_cmd_if, c_fn_cmd_jump, c_fn_cmd_label, c_fn_cmd_left_brace, c_fn_cmd_right_brace, c_fn_cmd_switch, and c_fn_cmd_while.
Public Member Functions | |
c_fn_cmd (const string &debug, long id) | |
Constructor. | |
c_fn_cmd (const c_fn_cmd &orig) | |
virtual | ~c_fn_cmd () |
virtual void | add_inputs (vector< var_sym_index_t > &inputs)=0 |
Adds all inputs to vector. | |
virtual void | clean_up ()=0 |
Deallocates microcode (if applicable). | |
virtual c_fn_cmd * | copy ()=0 |
Creates copy of itself. | |
const string & | get_debug_string () |
Gets debug string. | |
long | get_id () |
Gets ID of command. | |
virtual e_cmd_type | get_type ()=0 |
Returns type of command. | |
virtual void | optimize_output (const vector< var_sym_index_t > &inputs)=0 |
Optimizes output by removing result variables taht are not referenced as input. | |
virtual bool | sanity_check (string &msg)=0 |
Performs sanity check. | |
Protected Attributes | |
string | _debug |
Debug string. | |
long | _id |
Unique ID of command. |
Base class for function's command.
Definition at line 62 of file c_fn_cmd.h.