@@ -49,7 +49,13 @@ bool is_nondet_initializable_static(
49
49
!is_constant_or_has_constant_components (ns.lookup (id).type , ns);
50
50
}
51
51
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.
53
59
void nondet_static (
54
60
const namespacet &ns,
55
61
goto_functionst &goto_functions,
@@ -93,6 +99,10 @@ void nondet_static(
93
99
}
94
100
}
95
101
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.
96
106
void nondet_static (
97
107
const namespacet &ns,
98
108
goto_functionst &goto_functions)
@@ -103,6 +113,9 @@ void nondet_static(
103
113
goto_functions.update ();
104
114
}
105
115
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.
106
119
void nondet_static (goto_modelt &goto_model)
107
120
{
108
121
const namespacet ns (goto_model.symbol_table );
0 commit comments