44 if(i_it->is_function_call())
59 for(std::size_t nr=0; nr<code_type.
parameters().size(); nr++)
63 if(p_identifier.
empty())
66 if(nr <
as_const(*i_it).call_arguments().size())
80 for(; count!=0; count--) i_it++;
const T & as_const(T &value)
Return a reference to the same object but ensures the type is const.
A goto_instruction_codet representing an assignment in the program.
const parameterst & parameters() const
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Base class for all expressions.
const source_locationt & source_location() const
typet & type()
Return the type of the expression.
A collection of goto functions.
function_mapt function_map
symbol_tablet symbol_table
Symbol table.
goto_functionst goto_functions
GOTO functions.
A generic container class for the GOTO intermediate representation of one function.
instructionst instructions
The list of instructions in the goto program.
void insert_before_swap(targett target)
Insertion that preserves jumps to "target".
static instructiont make_assignment(const code_assignt &_code, const source_locationt &l=source_locationt::nil())
Create an assignment instruction.
targett add(instructiont &&instruction)
Adds a given instruction at the end.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See documentation for namespace_baset::lookup().
void do_function_calls(goto_programt &goto_program)
turns x=f(...) into f(...); lhs=f::return_value;
parameter_assignmentst(symbol_table_baset &_symbol_table)
void operator()(goto_functionst &goto_functions)
symbol_table_baset & symbol_table
Expression to hold a symbol (variable)
const irep_idt & get_identifier() const
The symbol table base class interface.
class symbol_exprt symbol_expr() const
Produces a symbol_exprt for a symbol.
typet type
Type of symbol.
static exprt conditional_cast(const exprt &expr, const typet &type)
#define Forall_goto_program_instructions(it, program)
void parameter_assignments(symbol_table_baset &symbol_table, goto_functionst &goto_functions)
removes returns
Add parameter assignments.
#define PRECONDITION(CONDITION)
API to expression classes.
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
const code_typet & to_code_type(const typet &type)
Cast a typet to a code_typet.