Skip to content

Commit e84da80

Browse files
Document arguments in goto_trace.h
No functional changes. Improving documentation of the header file.
1 parent 947dc0c commit e84da80

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

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)