cprover
goto_symext Class Reference

The main class for the forward symbolic simulator. More...

#include <goto_symex.h>

Inheritance diagram for goto_symext:
[legend]
Collaboration diagram for goto_symext:
[legend]

Public Types

typedef goto_symex_statet statet
 
typedef std::function< const goto_functionst::goto_functiont &(const irep_idt &)> get_goto_functiont
 

Public Member Functions

 goto_symext (message_handlert &mh, const symbol_tablet &outer_symbol_table, symex_target_equationt &_target, const optionst &options, path_storaget &path_storage)
 
virtual ~goto_symext ()
 
virtual void symex_from_entry_point_of (const goto_functionst &goto_functions, symbol_tablet &new_symbol_table)
 symex entire program starting from entry point More...
 
virtual void symex_from_entry_point_of (const get_goto_functiont &get_goto_function, symbol_tablet &new_symbol_table)
 symex entire program starting from entry point More...
 
virtual void resume_symex_from_saved_state (const get_goto_functiont &get_goto_function, const statet &saved_state, symex_target_equationt *const saved_equation, symbol_tablet &new_symbol_table)
 Performs symbolic execution using a state and equation that have already been used to symex part of the program. More...
 
virtual void symex_with_state (statet &, const goto_functionst &, symbol_tablet &)
 symex entire program starting from entry point More...
 
virtual void symex_with_state (statet &, const get_goto_functiont &, symbol_tablet &)
 symex entire program starting from entry point More...
 
virtual void symex_instruction_range (statet &, const goto_functionst &, goto_programt::const_targett first, goto_programt::const_targett limit)
 Symexes from the first instruction and the given state, terminating as soon as the last instruction is reached. More...
 
virtual void symex_instruction_range (statet &state, const get_goto_functiont &get_goto_function, goto_programt::const_targett first, goto_programt::const_targett limit)
 Symexes from the first instruction and the given state, terminating as soon as the last instruction is reached. More...
 
virtual void symex_step_goto (statet &, bool taken)
 

Public Attributes

bool should_pause_symex
 Have states been pushed onto the workqueue? More...
 
unsigned total_vccs
 
unsigned remaining_vccs
 
bool constant_propagation
 
bool self_loops_to_assumptions
 
irep_idt language_mode
 language_mode: ID_java, ID_C or another language identifier if we know the source language in use, irep_idt() otherwise. More...
 

Protected Types

typedef symex_targett::assignment_typet assignment_typet
 

Protected Member Functions

void initialize_entry_point (statet &state, const get_goto_functiont &get_goto_function, goto_programt::const_targett pc, goto_programt::const_targett limit)
 Initialise the symbolic execution and the given state with pc as entry point. More...
 
void symex_threaded_step (statet &, const get_goto_functiont &)
 Invokes symex_step and verifies whether additional threads can be executed. More...
 
virtual void symex_step (const get_goto_functiont &, statet &)
 do just one step More...
 
void clean_expr (exprt &, statet &, bool write)
 
void trigger_auto_object (const exprt &, statet &)
 
void initialize_auto_object (const exprt &, statet &)
 
void process_array_expr (exprt &)
 Given an expression, find the root object and the offset into it. More...
 
exprt make_auto_object (const typet &, statet &)
 
virtual void dereference (exprt &, statet &, const bool write)
 
void dereference_rec (exprt &, statet &, guardt &, const bool write)
 
void dereference_rec_address_of (exprt &, statet &, guardt &)
 
exprt address_arithmetic (const exprt &, statet &, guardt &, bool keep_array)
 Evaluate an ID_address_of expression. More...
 
virtual void symex_transition (statet &, goto_programt::const_targett to, bool is_backwards_goto=false)
 
virtual void symex_transition (statet &state)
 
virtual void symex_goto (statet &)
 
virtual void symex_start_thread (statet &)
 
virtual void symex_atomic_begin (statet &)
 
virtual void symex_atomic_end (statet &)
 
virtual void symex_decl (statet &)
 
virtual void symex_decl (statet &, const symbol_exprt &expr)
 
virtual void symex_dead (statet &)
 
virtual void symex_other (statet &)
 
virtual void vcc (const exprt &, const std::string &msg, statet &)
 
virtual void symex_assume (statet &, const exprt &cond)
 
void merge_gotos (statet &)
 
virtual void merge_goto (const statet::goto_statet &goto_state, statet &)
 
void merge_value_sets (const statet::goto_statet &goto_state, statet &dest)
 
void phi_function (const statet::goto_statet &goto_state, statet &)
 
virtual bool get_unwind (const symex_targett::sourcet &source, unsigned unwind)
 
virtual void loop_bound_exceeded (statet &, const exprt &guard)
 
void pop_frame (statet &)
 pop one call frame More...
 
void return_assignment (statet &)
 
virtual void no_body (const irep_idt &identifier)
 
virtual void symex_function_call (const get_goto_functiont &, statet &, const code_function_callt &)
 
virtual void symex_end_of_function (statet &)
 do function call by inlining More...
 
virtual void symex_function_call_symbol (const get_goto_functiont &, statet &, const code_function_callt &)
 
virtual void symex_function_call_code (const get_goto_functiont &, statet &, const code_function_callt &)
 do function call by inlining More...
 
virtual bool get_unwind_recursion (const irep_idt &identifier, const unsigned thread_nr, unsigned unwind)
 
void parameter_assignments (const irep_idt function_identifier, const goto_functionst::goto_functiont &, statet &, const exprt::operandst &arguments)
 
void locality (const irep_idt function_identifier, statet &, const goto_functionst::goto_functiont &)
 preserves locality of local variables of a given function by applying L1 renaming to the local identifiers More...
 
void add_end_of_function (exprt &code, const irep_idt &identifier)
 
nondet_symbol_exprt build_symex_nondet (typet &type)
 
void symex_throw (statet &)
 
void symex_catch (statet &)
 
virtual void do_simplify (exprt &)
 
void symex_assign (statet &, const code_assignt &)
 
void havoc_rec (statet &, const guardt &, const exprt &)
 
void symex_assign_rec (statet &, const exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
void symex_assign_symbol (statet &, const ssa_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
void symex_assign_typecast (statet &, const typecast_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
void symex_assign_array (statet &, const index_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
void symex_assign_struct_member (statet &, const member_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
void symex_assign_if (statet &, const if_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
void symex_assign_byte_extract (statet &, const byte_extract_exprt &lhs, const exprt &full_lhs, const exprt &rhs, guardt &, assignment_typet)
 
virtual void symex_gcc_builtin_va_arg_next (statet &, const exprt &lhs, const side_effect_exprt &)
 
virtual void symex_allocate (statet &, const exprt &lhs, const side_effect_exprt &)
 
virtual void symex_cpp_delete (statet &, const codet &)
 
virtual void symex_cpp_new (statet &, const exprt &lhs, const side_effect_exprt &)
 Handles side effects of type 'new' for C++ and 'new array' for C++ and Java language modes. More...
 
virtual void symex_fkt (statet &, const code_function_callt &)
 
virtual void symex_macro (statet &, const code_function_callt &)
 
virtual void symex_trace (statet &, const code_function_callt &)
 
virtual void symex_printf (statet &, const exprt &lhs, const exprt &rhs)
 
virtual void symex_input (statet &, const codet &)
 
virtual void symex_output (statet &, const codet &)
 
void read (exprt &)
 
void replace_nondet (exprt &)
 
void rewrite_quantifiers (exprt &, statet &)
 

Static Protected Member Functions

static bool is_index_member_symbol_if (const exprt &expr)
 
static exprt add_to_lhs (const exprt &lhs, const exprt &what)
 

Protected Attributes

const optionstoptions
 
const unsigned max_depth
 
const bool doing_path_exploration
 
const bool allow_pointer_unsoundness
 
const symbol_tabletouter_symbol_table
 The symbol table associated with the goto-program that we're executing. More...
 
namespacet ns
 Initialized just before symbolic execution begins, to point to both outer_symbol_table and the symbol table owned by the goto_symex_statet object used during symbolic execution. More...
 
symex_target_equationttarget
 
unsigned atomic_section_counter
 
messaget log
 
irep_idt guard_identifier
 
path_storagetpath_storage
 

Static Protected Attributes

static unsigned nondet_count =0
 
static unsigned dynamic_counter =0
 

Friends

class symex_dereference_statet
 

Detailed Description

The main class for the forward symbolic simulator.

Higher-level architectural information on symbolic execution is documented in the Symbolic execution module page.

Definition at line 46 of file goto_symex.h.

Member Typedef Documentation

◆ assignment_typet

Definition at line 392 of file goto_symex.h.

◆ get_goto_functiont

Definition at line 84 of file goto_symex.h.

◆ statet

Definition at line 49 of file goto_symex.h.

Constructor & Destructor Documentation

◆ goto_symext()

goto_symext::goto_symext ( message_handlert mh,
const symbol_tablet outer_symbol_table,
symex_target_equationt _target,
const optionst options,
path_storaget path_storage 
)
inline

Definition at line 51 of file goto_symex.h.

◆ ~goto_symext()

virtual goto_symext::~goto_symext ( )
inlinevirtual

Definition at line 78 of file goto_symex.h.

Member Function Documentation

◆ add_end_of_function()

void goto_symext::add_end_of_function ( exprt code,
const irep_idt identifier 
)
protected

◆ add_to_lhs()

exprt goto_symext::add_to_lhs ( const exprt lhs,
const exprt what 
)
staticprotected

◆ address_arithmetic()

◆ build_symex_nondet()

nondet_symbol_exprt goto_symext::build_symex_nondet ( typet type)
protected

Definition at line 25 of file goto_symex.cpp.

References nondet_count, and to_string().

Referenced by replace_nondet(), and symex_allocate().

◆ clean_expr()

void goto_symext::clean_expr ( exprt expr,
statet state,
bool  write 
)
protected

◆ dereference()

void goto_symext::dereference ( exprt expr,
statet state,
const bool  write 
)
protectedvirtual

◆ dereference_rec()

◆ dereference_rec_address_of()

void goto_symext::dereference_rec_address_of ( exprt expr,
statet state,
guardt guard 
)
protected

◆ do_simplify()

◆ get_unwind()

bool goto_symext::get_unwind ( const symex_targett::sourcet source,
unsigned  unwind 
)
protectedvirtual

Reimplemented in symex_bmct.

Definition at line 541 of file symex_goto.cpp.

Referenced by symex_goto().

◆ get_unwind_recursion()

bool goto_symext::get_unwind_recursion ( const irep_idt identifier,
const unsigned  thread_nr,
unsigned  unwind 
)
protectedvirtual

Reimplemented in symex_bmct.

Definition at line 20 of file symex_function_call.cpp.

Referenced by symex_function_call_code().

◆ havoc_rec()

◆ initialize_auto_object()

◆ initialize_entry_point()

void goto_symext::initialize_entry_point ( statet state,
const get_goto_functiont get_goto_function,
goto_programt::const_targett  pc,
goto_programt::const_targett  limit 
)
protected

Initialise the symbolic execution and the given state with pc as entry point.

Parameters
stateSymex state to initialise.
goto_functionsGOTO model to symex.
pcfirst instruction to symex
limitfinal instruction, which itself will not be symexed.

Definition at line 120 of file symex_main.cpp.

References goto_symex_statet::call_stack(), goto_symex_statet::framet::calling_location, goto_symex_statet::dirty, goto_symex_statet::framet::end_of_function, INVARIANT, symex_targett::sourcet::pc, incremental_dirtyt::populate_dirty_for_function(), PRECONDITION, goto_symex_statet::source, goto_symex_statet::symex_target, symex_transition(), target, goto_symex_statet::threads, and goto_symex_statet::top().

Referenced by symex_from_entry_point_of(), and symex_instruction_range().

◆ is_index_member_symbol_if()

bool goto_symext::is_index_member_symbol_if ( const exprt expr)
staticprotected

Definition at line 65 of file symex_dereference.cpp.

References irept::id(), to_if_expr(), to_index_expr(), and to_member_expr().

◆ locality()

◆ loop_bound_exceeded()

void goto_symext::loop_bound_exceeded ( statet state,
const exprt guard 
)
protectedvirtual

◆ make_auto_object()

exprt goto_symext::make_auto_object ( const typet type,
statet state 
)
protected

◆ merge_goto()

◆ merge_gotos()

void goto_symext::merge_gotos ( statet state)
protected

◆ merge_value_sets()

void goto_symext::merge_value_sets ( const statet::goto_statet goto_state,
statet dest 
)
protected

◆ no_body()

virtual void goto_symext::no_body ( const irep_idt identifier)
inlineprotectedvirtual

Reimplemented in symex_bmct.

Definition at line 338 of file goto_symex.h.

Referenced by symex_function_call_code().

◆ parameter_assignments()

◆ phi_function()

◆ pop_frame()

◆ process_array_expr()

void goto_symext::process_array_expr ( exprt expr)
protected

◆ read()

void goto_symext::read ( exprt )
protected

◆ replace_nondet()

void goto_symext::replace_nondet ( exprt expr)
protected

◆ resume_symex_from_saved_state()

void goto_symext::resume_symex_from_saved_state ( const get_goto_functiont get_goto_function,
const statet saved_state,
symex_target_equationt *const  saved_equation,
symbol_tablet new_symbol_table 
)
virtual

Performs symbolic execution using a state and equation that have already been used to symex part of the program.

The state is not re-initialized; instead, symbolic execution resumes from the program counter of the saved state.

Definition at line 216 of file symex_main.cpp.

References symex_with_state().

Referenced by path_explorert::perform_symbolic_execution().

◆ return_assignment()

◆ rewrite_quantifiers()

void goto_symext::rewrite_quantifiers ( exprt expr,
statet state 
)
protected

◆ symex_allocate()

◆ symex_assign()

◆ symex_assign_array()

void goto_symext::symex_assign_array ( statet state,
const index_exprt lhs,
const exprt full_lhs,
const exprt rhs,
guardt guard,
assignment_typet  assignment_type 
)
protected

◆ symex_assign_byte_extract()

void goto_symext::symex_assign_byte_extract ( statet state,
const byte_extract_exprt lhs,
const exprt full_lhs,
const exprt rhs,
guardt guard,
assignment_typet  assignment_type 
)
protected

◆ symex_assign_if()

void goto_symext::symex_assign_if ( statet state,
const if_exprt lhs,
const exprt full_lhs,
const exprt rhs,
guardt guard,
assignment_typet  assignment_type 
)
protected

◆ symex_assign_rec()

◆ symex_assign_struct_member()

void goto_symext::symex_assign_struct_member ( statet state,
const member_exprt lhs,
const exprt full_lhs,
const exprt rhs,
guardt guard,
assignment_typet  assignment_type 
)
protected

◆ symex_assign_symbol()

◆ symex_assign_typecast()

void goto_symext::symex_assign_typecast ( statet state,
const typecast_exprt lhs,
const exprt full_lhs,
const exprt rhs,
guardt guard,
assignment_typet  assignment_type 
)
protected

◆ symex_assume()

◆ symex_atomic_begin()

◆ symex_atomic_end()

◆ symex_catch()

◆ symex_cpp_delete()

void goto_symext::symex_cpp_delete ( statet state,
const codet code 
)
protectedvirtual

Definition at line 456 of file symex_builtin_functions.cpp.

References irept::get().

Referenced by symex_other().

◆ symex_cpp_new()

void goto_symext::symex_cpp_new ( statet state,
const exprt lhs,
const side_effect_exprt code 
)
protectedvirtual

Handles side effects of type 'new' for C++ and 'new array' for C++ and Java language modes.

Parameters
stateSymex state
lhsleft-hand side of assignment
coderight-hand side containing side effect

Definition at line 394 of file symex_builtin_functions.cpp.

References symbol_table_baset::add(), symbolt::base_name, clean_expr(), dynamic_counter, irept::find(), from_integer(), irept::get(), irept::id(), id2string(), index_type(), INVARIANT_WITH_IREP, symbolt::is_lvalue, symbolt::mode, exprt::move_to_operands(), symbolt::name, irept::set(), typet::subtype(), symbolt::symbol_expr(), goto_symex_statet::symbol_table, symex_assign(), to_string(), symbolt::type, and exprt::type().

Referenced by symex_assign().

◆ symex_dead()

◆ symex_decl() [1/2]

void goto_symext::symex_decl ( statet state)
protectedvirtual

◆ symex_decl() [2/2]

◆ symex_end_of_function()

void goto_symext::symex_end_of_function ( statet state)
protectedvirtual

◆ symex_fkt()

void goto_symext::symex_fkt ( statet state,
const code_function_callt code 
)
protectedvirtual

Definition at line 505 of file symex_builtin_functions.cpp.

References Forall_operands, and exprt::reserve_operands().

Referenced by symex_function_call_symbol().

◆ symex_from_entry_point_of() [1/2]

void goto_symext::symex_from_entry_point_of ( const goto_functionst goto_functions,
symbol_tablet new_symbol_table 
)
virtual

symex entire program starting from entry point

The state that goto_symext maintains has a large memory footprint. This method deallocates the state as soon as symbolic execution has completed, so use it if you don't care about having the state around afterwards.

Definition at line 260 of file symex_main.cpp.

References get_function_from_goto_functions().

Referenced by bmct::perform_symbolic_execution().

◆ symex_from_entry_point_of() [2/2]

void goto_symext::symex_from_entry_point_of ( const get_goto_functiont get_goto_function,
symbol_tablet new_symbol_table 
)
virtual

symex entire program starting from entry point

The state that goto_symext maintains has a large memory footprint. This method deallocates the state as soon as symbolic execution has completed, so use it if you don't care about having the state around afterwards.

Definition at line 268 of file symex_main.cpp.

References goto_functionst::entry_point(), initialize_entry_point(), and symex_with_state().

◆ symex_function_call()

void goto_symext::symex_function_call ( const get_goto_functiont get_goto_function,
statet state,
const code_function_callt code 
)
protectedvirtual

Definition at line 166 of file symex_function_call.cpp.

References code_function_callt::function(), and symex_function_call_symbol().

Referenced by symex_step().

◆ symex_function_call_code()

◆ symex_function_call_symbol()

◆ symex_gcc_builtin_va_arg_next()

◆ symex_goto()

void goto_symext::symex_goto ( statet state)
protectedvirtual

Definition at line 22 of file symex_goto.cpp.

References guardt::add(), guardt::as_expr(), symex_target_equationt::assignment(), goto_symex_statet::assignment(), clean_expr(), goto_programt::instructiont::code, messaget::conditional_output(), DATA_INVARIANT, messaget::debug(), do_simplify(), doing_path_exploration, messaget::eom(), symbol_exprt::get_identifier(), goto_programt::instructiont::get_target(), get_unwind(), symex_target_equationt::goto_instruction(), goto_symex_statet::framet::goto_state_map, goto_symex_statet::guard, symex_targett::GUARD, goto_programt::instructiont::guard, goto_symex_statet::goto_statet::guard, guard_identifier, goto_symex_statet::has_saved_jump_target, goto_symex_statet::has_saved_next_instruction, irept::id(), goto_programt::instructiont::incoming_edges, INVARIANT, goto_programt::instructiont::is_backwards_goto(), exprt::is_false(), exprt::is_true(), goto_symex_statet::L1, symex_target_equationt::location(), log, loop_bound_exceeded(), goto_programt::loop_id(), goto_symex_statet::framet::loop_iterations, exprt::make_false(), exprt::make_not(), ns, exprt::op0(), exprt::operands(), path_storage, symex_targett::sourcet::pc, pointer_offset_bits(), irept::pretty(), path_storaget::push(), goto_symex_statet::rename(), goto_symex_statet::saved_target, goto_symex_statet::saved_target_is_backwards, self_loops_to_assumptions, should_pause_symex, goto_symex_statet::source, messaget::mstreamt::source_location, path_storaget::patht::state, symex_assume(), symex_transition(), target, goto_programt::instructiont::targets, goto_symex_statet::top(), and exprt::type().

Referenced by symex_step().

◆ symex_input()

◆ symex_instruction_range() [1/2]

void goto_symext::symex_instruction_range ( statet state,
const goto_functionst goto_functions,
goto_programt::const_targett  first,
goto_programt::const_targett  limit 
)
virtual

Symexes from the first instruction and the given state, terminating as soon as the last instruction is reached.

This is useful to explicitly symex certain ranges of a program, e.g. in an incremental decision procedure.

Parameters
stateSymex state to start with.
goto_functionsGOTO model to symex.
firstEntry point in form of a first instruction.
limitFinal instruction, which itself will not be symexed.

Definition at line 238 of file symex_main.cpp.

References get_function_from_goto_functions().

◆ symex_instruction_range() [2/2]

void goto_symext::symex_instruction_range ( statet state,
const get_goto_functiont get_goto_function,
goto_programt::const_targett  first,
goto_programt::const_targett  limit 
)
virtual

Symexes from the first instruction and the given state, terminating as soon as the last instruction is reached.

This is useful to explicitly symex certain ranges of a program, e.g. in an incremental decision procedure.

Parameters
stateSymex state to start with.
get_goto_functionretrieves a function body
firstEntry point in form of a first instruction.
limitFinal instruction, which itself will not be symexed.

Definition at line 248 of file symex_main.cpp.

References initialize_entry_point(), ns, outer_symbol_table, symex_targett::sourcet::pc, goto_symex_statet::source, goto_symex_statet::symbol_table, and symex_threaded_step().

◆ symex_macro()

void goto_symext::symex_macro ( statet state,
const code_function_callt code 
)
protectedvirtual

◆ symex_other()

◆ symex_output()

◆ symex_printf()

void goto_symext::symex_printf ( statet state,
const exprt lhs,
const exprt rhs 
)
protectedvirtual

◆ symex_start_thread()

◆ symex_step()

◆ symex_step_goto()

◆ symex_threaded_step()

void goto_symext::symex_threaded_step ( statet state,
const get_goto_functiont get_goto_function 
)
protected

Invokes symex_step and verifies whether additional threads can be executed.

Parameters
stateCurrent GOTO symex step.
get_goto_functionfunction that retrieves function bodies

Definition at line 141 of file symex_main.cpp.

References goto_symex_statet::call_stack(), symex_targett::sourcet::pc, should_pause_symex, goto_symex_statet::source, goto_symex_statet::switch_to_thread(), symex_step(), symex_transition(), symex_targett::sourcet::thread_nr, and goto_symex_statet::threads.

Referenced by symex_instruction_range(), and symex_with_state().

◆ symex_throw()

◆ symex_trace()

◆ symex_transition() [1/2]

◆ symex_transition() [2/2]

virtual void goto_symext::symex_transition ( statet state)
inlineprotectedvirtual

◆ symex_with_state() [1/2]

void goto_symext::symex_with_state ( statet state,
const goto_functionst goto_functions,
symbol_tablet new_symbol_table 
)
virtual

symex entire program starting from entry point

This method uses the state argument as the symbolic execution state, which is useful for examining the state after this method returns. The state that goto_symext maintains has a large memory footprint, so if keeping the state around is not necessary, clients should instead call goto_symext::symex_from_entry_point_of().

Definition at line 170 of file symex_main.cpp.

References get_function_from_goto_functions().

Referenced by scratch_programt::check_sat(), resume_symex_from_saved_state(), and symex_from_entry_point_of().

◆ symex_with_state() [2/2]

void goto_symext::symex_with_state ( statet state,
const get_goto_functiont get_goto_function,
symbol_tablet new_symbol_table 
)
virtual

symex entire program starting from entry point

This method uses the state argument as the symbolic execution state, which is useful for examining the state after this method returns. The state that goto_symext maintains has a large memory footprint, so if keeping the state around is not necessary, clients should instead call goto_symext::symex_from_entry_point_of().

Definition at line 181 of file symex_main.cpp.

References goto_symex_statet::call_stack(), goto_symex_statet::framet::end_of_function, goto_symex_statet::has_saved_jump_target, goto_symex_statet::has_saved_next_instruction, ns, outer_symbol_table, PRECONDITION, should_pause_symex, goto_symex_statet::symbol_table, symex_threaded_step(), and goto_symex_statet::top().

◆ trigger_auto_object()

◆ vcc()

Friends And Related Function Documentation

◆ symex_dereference_statet

friend class symex_dereference_statet
friend

Definition at line 243 of file goto_symex.h.

Member Data Documentation

◆ allow_pointer_unsoundness

const bool goto_symext::allow_pointer_unsoundness
protected

Definition at line 206 of file goto_symex.h.

Referenced by symex_assign_symbol().

◆ atomic_section_counter

unsigned goto_symext::atomic_section_counter
protected

Definition at line 239 of file goto_symex.h.

Referenced by symex_atomic_begin().

◆ constant_propagation

bool goto_symext::constant_propagation

Definition at line 215 of file goto_symex.h.

Referenced by bmct::bmct(), scratch_programt::check_sat(), and symex_assign_symbol().

◆ doing_path_exploration

const bool goto_symext::doing_path_exploration
protected

Definition at line 205 of file goto_symex.h.

Referenced by symex_goto(), and symex_step().

◆ dynamic_counter

unsigned goto_symext::dynamic_counter =0
staticprotected

Definition at line 461 of file goto_symex.h.

Referenced by make_auto_object(), symex_allocate(), and symex_cpp_new().

◆ guard_identifier

irep_idt goto_symext::guard_identifier
protected

Definition at line 279 of file goto_symex.h.

Referenced by phi_function(), and symex_goto().

◆ language_mode

irep_idt goto_symext::language_mode

language_mode: ID_java, ID_C or another language identifier if we know the source language in use, irep_idt() otherwise.

Definition at line 220 of file goto_symex.h.

Referenced by dereference_rec(), and bmct::setup().

◆ log

◆ max_depth

const unsigned goto_symext::max_depth
protected

Definition at line 204 of file goto_symex.h.

Referenced by symex_step().

◆ nondet_count

unsigned goto_symext::nondet_count =0
staticprotected

Definition at line 460 of file goto_symex.h.

Referenced by build_symex_nondet().

◆ ns

namespacet goto_symext::ns
protected

Initialized just before symbolic execution begins, to point to both outer_symbol_table and the symbol table owned by the goto_symex_statet object used during symbolic execution.

That symbol table must be owned by goto_symex_statet rather than passed in, in case the state is saved and resumed. This namespacet is used during symbolic execution to look up names from the original goto-program, and the names of dynamically-created objects.

Definition at line 237 of file goto_symex.h.

Referenced by address_arithmetic(), clean_expr(), dereference(), dereference_rec(), do_simplify(), symex_bmct::get_unwind_recursion(), symex_dereference_statet::get_value_set(), symex_dereference_statet::has_failed_symbol(), initialize_auto_object(), locality(), parameter_assignments(), phi_function(), process_array_expr(), return_assignment(), symex_allocate(), symex_assign_array(), symex_assign_if(), symex_assign_rec(), symex_assign_struct_member(), symex_assign_symbol(), symex_dead(), symex_decl(), symex_function_call_code(), symex_gcc_builtin_va_arg_next(), symex_goto(), symex_input(), symex_instruction_range(), symex_other(), symex_output(), symex_printf(), symex_start_thread(), symex_bmct::symex_step(), symex_step(), symex_step_goto(), symex_trace(), symex_with_state(), trigger_auto_object(), and vcc().

◆ options

const optionst& goto_symext::options
protected

◆ outer_symbol_table

const symbol_tablet& goto_symext::outer_symbol_table
protected

The symbol table associated with the goto-program that we're executing.

This symbol table will not additionally contain objects that are dynamically created as part of symbolic execution; the names of those object are stored in the symbol table passed as the new_symbol_table argument to the symex_* methods.

Definition at line 228 of file goto_symex.h.

Referenced by symex_allocate(), symex_instruction_range(), and symex_with_state().

◆ path_storage

path_storaget& goto_symext::path_storage
protected

Definition at line 467 of file goto_symex.h.

Referenced by symex_goto().

◆ remaining_vccs

unsigned goto_symext::remaining_vccs

Definition at line 213 of file goto_symex.h.

Referenced by bmct::execute(), bmct::slice(), and vcc().

◆ self_loops_to_assumptions

bool goto_symext::self_loops_to_assumptions

Definition at line 216 of file goto_symex.h.

Referenced by bmct::bmct(), and symex_goto().

◆ should_pause_symex

bool goto_symext::should_pause_symex

Have states been pushed onto the workqueue?

If this flag is set at the end of a symbolic execution run, it means that symex has been paused because we encountered a GOTO instruction while doing path exploration, and thus pushed the successor states of the GOTO onto path_storage. The symbolic execution caller should now choose which successor state to continue executing, and resume symex from that state.

Definition at line 175 of file goto_symex.h.

Referenced by bmct::execute(), symex_goto(), symex_threaded_step(), and symex_with_state().

◆ target

◆ total_vccs

unsigned goto_symext::total_vccs

Definition at line 213 of file goto_symex.h.

Referenced by bmct::slice(), and vcc().


The documentation for this class was generated from the following files: