Skip to content

Commit 51a717a

Browse files
Merge pull request #4076 from romainbrenguier/doc/symex-trace2
Document build_goto_trace [DOC-136]
2 parents e3f7deb + e84da80 commit 51a717a

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

src/goto-symex/build_goto_trace.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Author: Daniel Kroening
2525

2626
#include "partial_order_concurrency.h"
2727

28-
exprt build_full_lhs_rec(
28+
static exprt build_full_lhs_rec(
2929
const prop_convt &prop_conv,
3030
const namespacet &ns,
3131
const exprt &src_original, // original identifiers
@@ -104,7 +104,7 @@ exprt build_full_lhs_rec(
104104

105105
/// set internal field for variable assignment related to dynamic_object[0-9]
106106
/// and dynamic_[0-9]_array.
107-
void set_internal_dynamic_object(
107+
static void set_internal_dynamic_object(
108108
const exprt &expr,
109109
goto_trace_stept &goto_trace_step,
110110
const namespacet &ns)
@@ -132,7 +132,7 @@ void set_internal_dynamic_object(
132132

133133
/// set internal for variables assignments related to dynamic_object and CPROVER
134134
/// internal functions (e.g., __CPROVER_initialize)
135-
void update_internal_field(
135+
static void update_internal_field(
136136
const symex_target_equationt::SSA_stept &SSA_step,
137137
goto_trace_stept &goto_trace_step,
138138
const namespacet &ns)

src/goto-symex/build_goto_trace.h

+21-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,25 @@ Date: July 2005
1717
#include "symex_target_equation.h"
1818
#include "goto_symex_state.h"
1919

20-
// builds a trace that stops at first failing assertion
20+
/// Build a trace by going through the steps of \p target and stopping at the
21+
/// first failing assertion
22+
/// \param target: SSA form of the program
23+
/// \param prop_conv: solver from which to get valuations
24+
/// \param ns: namespace
25+
/// \param [out] goto_trace: trace to which the steps of the trace get appended
2126
void build_goto_trace(
2227
const symex_target_equationt &target,
2328
const prop_convt &prop_conv,
2429
const namespacet &ns,
2530
goto_tracet &goto_trace);
2631

27-
// builds a trace that stops after the given step
32+
/// Build a trace by going through the steps of \p target and stopping after
33+
/// the given step
34+
/// \param target: SSA form of the program
35+
/// \param last_step_to_keep: iterator pointing to the last step to keep
36+
/// \param prop_conv: solver from which to get valuations
37+
/// \param ns: namespace
38+
/// \param [out] goto_trace: trace to which the steps of the trace get appended
2839
void build_goto_trace(
2940
const symex_target_equationt &target,
3041
symex_target_equationt::SSA_stepst::const_iterator last_step_to_keep,
@@ -36,7 +47,14 @@ typedef std::function<
3647
bool(symex_target_equationt::SSA_stepst::const_iterator, const prop_convt &)>
3748
ssa_step_predicatet;
3849

39-
// builds a trace that stops after the step matching a given condition
50+
/// Build a trace by going through the steps of \p target and stopping after
51+
/// the step matching a given condition
52+
/// \param target: SSA form of the program
53+
/// \param stop_after_predicate: function with an SSA step iterator and solver
54+
/// as argument, which should return true for the last step to keep
55+
/// \param prop_conv: solver from which to get valuations
56+
/// \param ns: namespace
57+
/// \param [out] goto_trace: trace to which the steps of the trace get appended
4058
void build_goto_trace(
4159
const symex_target_equationt &target,
4260
ssa_step_predicatet stop_after_predicate,

0 commit comments

Comments
 (0)