v = s More...
#include <Assignment.h>
Public Member Functions | |
Assignment (Variable *v, Symbol *s, il::node *original, int line) | |
virtual string | to_string () const |
virtual string | to_string (bool pretty_print) const |
virtual Variable * | get_lhs () |
virtual void | set_lhs (Variable *v) |
Symbol * | get_rhs () |
virtual bool | is_removable () |
il::node * | get_original_node () |
Friends | |
class | boost::serialization::access |
v = s
il::node* sail::Assignment::get_original_node | ( | ) |
This function provides the mapping between the low and the high-level representations.
Reimplemented from sail::Instruction.
bool sail::Assignment::is_removable | ( | ) | [virtual] |
An instruction is removable if it's not present in the original source code, but introduced in the translation from the high-level language to the low-level language. For instance, if **x is an expression used in the original code, the low-level language will introduce a temporary t=*x; such instructions are "removable" for printing purposes.
Implements sail::Instruction.