Go to the documentation of this file.
85 shared_varst::const_iterator v_it =
shared_vars.find(s.get_identifier());
96 replace_symbol.
insert(s, new_expr);
104 for(goto_programt::instructionst::iterator
113 else if(it->is_assume() || it->is_assert() || it->is_goto())
117 else if(it->is_function_call())
145 thread_local_var.
type = symbol.
type;
164 if(is_threaded(i_it))
182 collect(gf_entry.second.body, is_threaded);
thread_local_varst thread_local_vars
std::map< irep_idt, shared_vart > shared_varst
optionalt< symbol_exprt > w_index_symbol
const code_function_callt & to_code_function_call(const goto_instruction_codet &code)
static bool find_symbols(symbol_kindt, const typet &, std::function< bool(const symbol_exprt &)>, std::unordered_set< irep_idt > &bindings)
The type of an expression, extends irept.
typet type
Type of symbol.
void concurrency(value_setst &value_sets, goto_modelt &goto_model)
Base class for all expressions.
void collect(const goto_programt &goto_program, const is_threadedt &is_threaded)
function_mapt function_map
Expression to hold a symbol (variable)
void operator()(goto_functionst &goto_functions)
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().
goto_instruction_codet representation of a function call statement.
void instrument(goto_functionst &goto_functions)
symbol_tablet & symbol_table
concurrency_instrumentationt(value_setst &_value_sets, symbol_tablet &_symbol_table)
optionalt< symbol_exprt > array_symbol
void insert(const class symbol_exprt &old_expr, const exprt &new_expr)
Sets old_expr to be replaced by new_expr if we don't already have a replacement; otherwise does nothi...
nonstd::optional< T > optionalt
instructionst instructions
The list of instructions in the goto program.
A collection of goto functions.
find_symbols_sett find_symbol_identifiers(const exprt &src)
Find identifiers of the sub expressions with id ID_symbol, considering both free and bound variables.
goto_functionst goto_functions
GOTO functions.
std::map< irep_idt, thread_local_vart > thread_local_varst
A generic container class for the GOTO intermediate representation of one function.
symbol_tablet symbol_table
Symbol table.
#define forall_goto_program_instructions(it, program)
optionalt< symbol_exprt > array_symbol
Replace a symbol expression by a given expression.