79 std::set<exprt> symbols;
85 for(std::set<exprt>::const_iterator
90 if(s_it->id()==ID_symbol)
95 shared_varst::const_iterator
104 replace_symbol.
insert(identifier, new_expr);
113 for(goto_programt::instructionst::iterator
123 else if(it->is_assume() || it->is_assert() || it->is_goto())
125 else if(it->is_function_call())
139 std::set<exprt> symbols;
143 for(std::set<exprt>::const_iterator
144 s_it=symbols.begin();
148 if(s_it->id()==ID_symbol)
185 if(is_threaded(i_it))
187 if(i_it->is_assign())
189 else if(i_it->is_assume() || i_it->is_assert() || i_it->is_goto())
191 else if(i_it->is_function_call())
210 collect(f_it->second.body, is_threaded);
The type of an expression.
Over-approximate Concurrency for Threaded Goto Programs.
concurrency_instrumentationt(value_setst &_value_sets, symbol_tablet &_symbol_table)
void instrument(goto_functionst &goto_functions)
void concurrency(value_setst &value_sets, goto_modelt &goto_model)
const irep_idt & get_identifier() const
symbol_tablet & symbol_table
symbol_tablet symbol_table
Symbol table.
Symbol table entry.This is a symbol in the symbol table, stored in an object of type symbol_tablet...
std::map< irep_idt, thread_local_vart > thread_local_varst
const code_assignt & to_code_assign(const codet &code)
symbol_exprt w_index_symbol
#define Forall_expr(it, expr)
instructionst instructions
The list of instructions in the goto program.
API to expression classes.
symbol_exprt array_symbol
thread_local_varst thread_local_vars
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast a generic exprt to a symbol_exprt.
symbol_exprt array_symbol
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
A generic container class for the GOTO intermediate representation of one function.
void operator()(goto_functionst &goto_functions)
typet type
Type of symbol.
Base class for all expressions.
std::map< irep_idt, shared_vart > shared_varst
#define Forall_goto_functions(it, functions)
goto_programt & goto_program
void insert(const irep_idt &identifier, const exprt &expr)
void collect(const goto_programt &goto_program, const is_threadedt &is_threaded)
Expression to hold a symbol (variable)
Encoding for Threaded Goto Programs.
#define forall_goto_functions(it, functions)
#define forall_goto_program_instructions(it, program)
void find_symbols(const exprt &src, find_symbols_sett &dest)
goto_functionst goto_functions
GOTO functions.
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See namespace_baset::lookup().
const code_function_callt & to_code_function_call(const codet &code)