24 throw "start_thread in atomic section detected";
31 if(instruction.
targets.size()!=1)
32 throw "start_thread expects one target";
38 std::size_t t=state.
threads.size();
42 new_thread.
pc=thread_target;
45 new_thread.
call_stack.back().local_objects.clear();
46 new_thread.
call_stack.back().goto_state_map.clear();
48 new_thread.abstract_events=&(
target.new_thread(cur_thread.abstract_events));
54 for(goto_symex_statet::renaming_levelt::current_namest::const_iterator
59 const irep_idt l1_o_id=c_it->second.first.get_l1_object_identifier();
65 ssa_exprt lhs(c_it->second.first.get_original_expr());
72 std::make_pair(lhs.get_l1_object_identifier(),
73 std::make_pair(lhs, 0))).second)
76 const irep_idt l1_name=lhs.get_l1_object_identifier();
79 new_thread.
call_stack.back().local_objects.insert(l1_name);
100 for(
const auto &symbol_pair : symbol_table.
symbols)
102 const symbolt &symbol = symbol_pair.second;
virtual void spawn(const exprt &guard, const sourcet &source)
spawn a new thread
goto_programt::const_targett pc
const symbol_tablet & get_symbol_table() const
void rename(exprt &expr, const namespacet &ns, levelt level=L2)
exprt value
Initial value of symbol.
Symbol table entry.This is a symbol in the symbol table, stored in an object of type symbol_tablet...
targett get_target() const
Returns the first (and only) successor for the usual case of a single target.
targetst targets
The list of successor instructions.
This class represents an instruction in the GOTO intermediate representation.
goto_symex_statet::level2t level2
namespacet ns
Initialized just before symbolic execution begins, to point to both outer_symbol_table and the symbol...
Expression Initialization.
void set_level_0(unsigned i)
class symbol_exprt symbol_expr() const
produces a symbol_exprt for a symbol
local_objectst local_objects
symex_target_equationt & target
instructionst::const_iterator const_targett
goto_symex_statet::level1t level1
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
current_namest current_names
unsigned atomic_section_id
exprt zero_initializer(const typet &type, const source_locationt &source_location, const namespacet &ns, message_handlert &message_handler)
typet type
Type of symbol.
source_locationt location
Source code location of definition of symbol.
Base class for all expressions.
virtual void symex_start_thread(statet &)
goto_programt::const_targett pc
Expression providing an SSA-renamed symbol of expressions.
symex_targett::sourcet source
void symex_assign_symbol(statet &, const ssa_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)