Go to the documentation of this file.
33 const exprt &
function,
41 new_function=
function;
50 for(
auto &new_argument : new_arguments)
55 if(new_function.id()==ID_if)
58 new_lhs,
to_if_expr(new_function), new_arguments, dest, mode);
60 else if(new_function.id()==ID_symbol)
65 else if(new_function.id() == ID_null_object)
68 else if(new_function.id()==ID_dereference ||
69 new_function.id()==
"virtual_function")
77 "unexpected function argument",
79 function.find_source_location());
103 boolean_negate(
function.cond()),
function.cond().source_location()));
148 const exprt &
function,
156 function_call,
function.source_location()));
void convert_function_call(const code_function_callt &code, goto_programt &dest, const irep_idt &mode)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
void clean_expr(exprt &expr, goto_programt &dest, const irep_idt &mode, bool result_is_used=true)
const if_exprt & to_if_expr(const exprt &expr)
Cast an exprt to an if_exprt.
The trinary if-then-else operator.
targett add(instructiont &&instruction)
Adds a given instruction at the end.
virtual void do_function_call(const exprt &lhs, const exprt &function, const exprt::operandst &arguments, goto_programt &dest, const irep_idt &mode)
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...
virtual void do_function_call_symbol(const exprt &lhs, const symbol_exprt &function, const exprt::operandst &arguments, goto_programt &dest, const irep_idt &mode)
add function calls to function queue for later processing
static instructiont make_function_call(const code_function_callt &_code, const source_locationt &l=source_locationt::nil())
Create a function call instruction.
goto_instruction_codet representation of a function call statement.
static instructiont make_skip(const source_locationt &l=source_locationt::nil())
virtual void do_function_call_other(const exprt &lhs, const exprt &function, const exprt::operandst &arguments, goto_programt &dest)
exprt boolean_negate(const exprt &src)
negate a Boolean expression, possibly removing a not_exprt, and swapping false and true
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
std::vector< exprt > operandst
void destructive_append(goto_programt &p)
Appends the given program p to *this. p is destroyed.
virtual void do_function_call_if(const exprt &lhs, const if_exprt &function, const exprt::operandst &arguments, goto_programt &dest, const irep_idt &mode)
instructionst instructions
The list of instructions in the goto program.
Deprecated expression utility functions.
A generic container class for the GOTO intermediate representation of one function.
source_locationt & add_source_location()
The Boolean constant true.
instructionst::iterator targett
static instructiont make_incomplete_goto(const exprt &_cond, const source_locationt &l=source_locationt::nil())