Skip to content

Commit 15423ea

Browse files
author
svorenova
committed
Document nondet-static functions
1 parent 43f4902 commit 15423ea

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/goto-instrument/nondet_static.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ bool is_nondet_initializable_static(
4949
!is_constant_or_has_constant_components(ns.lookup(id).type, ns);
5050
}
5151

52-
52+
/// Nondeterministically initializes certain global scope variables in a
53+
/// goto-function. Iterates over instructions in the specified function
54+
/// and replaces all values assigned to nondet-initializable static variables
55+
/// by nondeterministic values.
56+
/// \param ns Namespace for resolving type information.
57+
/// \param goto_functions Existing goto-functions to be updated.
58+
/// \param fct_name Name of the goto-function to be updated.
5359
void nondet_static(
5460
const namespacet &ns,
5561
goto_functionst &goto_functions,
@@ -93,6 +99,10 @@ void nondet_static(
9399
}
94100
}
95101

102+
/// Nondeterministically initializes certain global scope variables in
103+
/// CPROVER_initialize function.
104+
/// \param ns Namespace for resolving type information.
105+
/// \param goto_functions Existing goto-functions to be updated.
96106
void nondet_static(
97107
const namespacet &ns,
98108
goto_functionst &goto_functions)
@@ -103,6 +113,9 @@ void nondet_static(
103113
goto_functions.update();
104114
}
105115

116+
/// Main entry point of the module. Nondeterministically initializes certain
117+
/// global scope variables.
118+
/// \param [out] goto_model Existing goto-model to be updated.
106119
void nondet_static(goto_modelt &goto_model)
107120
{
108121
const namespacet ns(goto_model.symbol_table);

0 commit comments

Comments
 (0)