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
114 else if(it->is_assume() || it->is_assert() || it->is_goto())
116 exprt cond = it->get_condition();
118 it->set_condition(cond);
120 else if(it->is_function_call())
148 thread_local_var.
type = symbol.
type;
167 if(is_threaded(i_it))
185 collect(f_it->second.body, is_threaded);
thread_local_varst thread_local_vars
Encoding for Threaded Goto Programs.
std::map< irep_idt, shared_vart > shared_varst
optionalt< symbol_exprt > w_index_symbol
The type of an expression, extends irept.
typet type
Type of symbol.
void concurrency(value_setst &value_sets, goto_modelt &goto_model)
std::unordered_set< irep_idt > find_symbol_identifiers(const exprt &src)
Find identifiers of the sub expressions with id ID_symbol.
Base class for all expressions.
void collect(const goto_programt &goto_program, const is_threadedt &is_threaded)
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().
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
Over-approximate Concurrency for Threaded Goto Programs.
const code_function_callt & to_code_function_call(const codet &code)
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...
void find_symbols(const exprt &src, find_symbols_sett &dest, bool current, bool next)
Add to the set dest the sub-expressions of src with id ID_symbol if current is true,...
nonstd::optional< T > optionalt
#define Forall_goto_functions(it, functions)
instructionst instructions
The list of instructions in the goto program.
A collection of goto functions.
goto_functionst goto_functions
GOTO functions.
const code_assignt & to_code_assign(const codet &code)
std::map< irep_idt, thread_local_vart > thread_local_varst
A generic container class for the GOTO intermediate representation of one function.
#define forall_goto_functions(it, functions)
A codet representing an assignment in the program.
API to expression classes.
symbol_tablet symbol_table
Symbol table.
#define forall_goto_program_instructions(it, program)
optionalt< symbol_exprt > array_symbol
Replace expression or type symbols by an expression or type, respectively.