39 const exprt &
function,
47 new_function=
function;
57 if(new_function.id()==ID_symbol &&
60 new_arguments.clear();
68 if(new_function.id()==ID_if)
71 new_lhs,
to_if_expr(new_function), new_arguments, dest, mode);
73 else if(new_function.id()==ID_symbol)
78 else if(new_function.id() == ID_null_object)
81 else if(new_function.id()==ID_dereference ||
82 new_function.id()==
"virtual_function")
90 "unexpected function argument",
92 function.find_source_location());
140 v->source_location=
function.cond().source_location();
162 const exprt &
function,
172 t->source_location=
function.source_location();
173 t->code.
swap(function_call);
const if_exprt & to_if_expr(const exprt &expr)
Cast an exprt to an if_exprt.
Deprecated expression utility functions.
const irep_idt & get_identifier() const
void destructive_append(goto_programt &p)
Appends the given program p to *this. p is destroyed.
virtual void do_function_call_symbol(const exprt &lhs, const symbol_exprt &function, const exprt::operandst &arguments, goto_programt &dest)
add function calls to function queue for later processing
The trinary if-then-else operator.
void clean_expr(exprt &expr, goto_programt &dest, const irep_idt &mode, bool result_is_used=true)
instructionst::iterator targett
#define Forall_expr(it, expr)
void convert_function_call(const code_function_callt &code, goto_programt &dest, const irep_idt &mode)
instructionst instructions
The list of instructions in the goto program.
API to expression classes.
codet representation of a function call statement.
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
virtual void do_function_call(const exprt &lhs, const exprt &function, const exprt::operandst &arguments, goto_programt &dest, const irep_idt &mode)
virtual void do_function_call_other(const exprt &lhs, const exprt &function, const exprt::operandst &arguments, goto_programt &dest)
std::vector< exprt > operandst
A generic container class for the GOTO intermediate representation of one function.
targett add_instruction()
Adds an instruction at the end.
Base class for all expressions.
#define INVARIANT_WITH_DIAGNOSTICS(CONDITION, REASON,...)
Same as invariant, with one or more diagnostics attached Diagnostics can be of any type that has a sp...
source_locationt & add_source_location()
virtual void do_function_call_if(const exprt &lhs, const if_exprt &function, const exprt::operandst &arguments, goto_programt &dest, const irep_idt &mode)
exprt boolean_negate(const exprt &src)
negate a Boolean expression, possibly removing a not_exprt, and swapping false and true ...