53 return std::move(
tmp);
86 return tmp2.true_case();
87 else if(
tmp.is_false())
88 return tmp2.false_case();
90 return std::move(
tmp2);
100 return std::move(
tmp);
124 const auto &type = expr.
type();
129 if(!ns.
lookup(
id, symbol))
158 if(SSA_step.
source.
pc->source_location().as_string().empty())
216 typedef std::map<mp_integer, std::vector<ssa_step_iteratort>>
time_mapt;
243 if(it->is_constraint() ||
246 else if(it->is_atomic_begin())
255 else if(it->is_shared_read() || it->is_shared_write() ||
260 if(it->is_shared_read() || it->is_shared_write())
303 if(it->is_assignment() &&
322 "last step in SSA trace to keep must not be filtered out as a sync "
323 "instruction, not-taken branch, PHI node, or similar");
328 unsigned step_nr = 0;
343 if(SSA_step.is_assert())
354 goto_trace_step.function_arguments = SSA_step.converted_function_arguments;
357 arg = decision_procedure.
get(arg);
363 (SSA_step.is_assignment() &&
364 (SSA_step.assignment_type ==
366 SSA_step.assignment_type ==
371 if(SSA_step.original_full_lhs.is_not_nil())
377 SSA_step.original_full_lhs,
378 SSA_step.ssa_full_lhs),
383 if(SSA_step.ssa_full_lhs.is_not_nil())
386 decision_procedure.
get(SSA_step.ssa_full_lhs);
392 for(
const auto &
j : SSA_step.converted_io_args)
405 if(SSA_step.is_assert() || SSA_step.is_assume() || SSA_step.is_goto())
410 decision_procedure.
get(SSA_step.cond_handle).is_true();
428 symex_target_equationt::SSA_stepst::const_iterator it,
436 symex_target_equationt::SSA_stepst::const_iterator step,
439 return step->is_assert() &&
440 decision_procedure.
get(step->cond_handle).is_false();
static exprt build_full_lhs_rec(const decision_proceduret &decision_procedure, const namespacet &ns, const exprt &src_original, const exprt &src_ssa)
static void set_internal_dynamic_object(const exprt &expr, goto_trace_stept &goto_trace_step, const namespacet &ns)
set internal field for variable assignment related to dynamic_object[0-9] and dynamic_[0-9]_array.
static void update_internal_field(const SSA_stept &SSA_step, goto_trace_stept &goto_trace_step, const namespacet &ns)
set internal for variables assignments related to dynamic_object and CPROVER internal functions (e....
static bool is_failed_assertion_step(symex_target_equationt::SSA_stepst::const_iterator step, const decision_proceduret &decision_procedure)
static void replace_nondet_in_type(typet &type, const decision_proceduret &solver)
Replace nondet values that appear in type by their values as found by solver.
void build_goto_trace(const symex_target_equationt &target, ssa_step_predicatet is_last_step_to_keep, const decision_proceduret &decision_procedure, const namespacet &ns, goto_tracet &goto_trace)
Build a trace by going through the steps of target and stopping after the step matching a given condi...
std::function< bool(symex_target_equationt::SSA_stepst::const_iterator, const decision_proceduret &)> ssa_step_predicatet
Expression classes for byte-level operators.
const byte_extract_exprt & to_byte_extract_expr(const exprt &expr)
Single SSA step in the equation.
symex_targett::assignment_typet assignment_type
symex_targett::sourcet source
bool is_function_call() const
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
virtual exprt get(const exprt &expr) const =0
Return expr with variables replaced by values from satisfying assignment if available.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Base class for all expressions.
typet & type()
Return the type of the expression.
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
Step of the trace of a GOTO program.
The trinary if-then-else operator.
bool get_bool(const irep_idt &name) const
const irep_idt & id() const
Extract member of struct or union.
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().
static irep_idt rw_clock_id(event_it e, axiomt axiom=AX_PROPAGATION)
Build identifier for the read/write clock variable.
const irep_idt get_original_name() const
static symbol_exprt typeless(const irep_idt &id)
Generate a symbol_exprt without a proper type.
typet type
Type of symbol.
Inheriting the interface of symex_targett this class represents the SSA form of the input program as ...
@ VISIBLE_ACTUAL_PARAMETER
@ HIDDEN_ACTUAL_PARAMETER
Semantic type conversion.
The type of an expression, extends irept.
const typet & subtype() const
Decision Procedure Interface.
#define forall_operands(it, expr)
Goto Programs with Functions.
Add constraints to equation encoding partial orders on events.
bool simplify(exprt &expr, const namespacet &ns)
exprt simplify_expr(exprt src, const namespacet &ns)
int solver(std::istream &in)
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
const ssa_exprt & to_ssa_expr(const exprt &expr)
Cast a generic exprt to an ssa_exprt.
const index_exprt & to_index_expr(const exprt &expr)
Cast an exprt to an index_exprt.
const typecast_exprt & to_typecast_expr(const exprt &expr)
Cast an exprt to a typecast_exprt.
const if_exprt & to_if_expr(const exprt &expr)
Cast an exprt to an if_exprt.
const member_exprt & to_member_expr(const exprt &expr)
Cast an exprt to a member_exprt.
const array_typet & to_array_type(const typet &type)
Cast a typet to an array_typet.
goto_programt::const_targett pc