@@ -97,8 +97,8 @@ class memory_snapshot_harness_generatort : public goto_harness_generatort
97
97
const goto_programt::instructionst &instructions) const ;
98
98
};
99
99
100
- // / Parse a command line option to extract the user specified \ref
101
- // / entry_goto_locationt
100
+ // / Parse a command line option to extract the user specified entry goto
101
+ // / location
102
102
// / \param cmdl_option: a string of the format <func[:<n>]>
103
103
// / \return correctly constructed entry goto location
104
104
entry_goto_locationt parse_goto_location (const std::string &cmdl_option);
@@ -124,8 +124,8 @@ class memory_snapshot_harness_generatort : public goto_harness_generatort
124
124
const goto_programt::instructionst &instructions) const ;
125
125
};
126
126
127
- // / Parse a command line option to extract the user specified \ref
128
- // / entry_source_locationt
127
+ // / Parse a command line option to extract the user specified entry source
128
+ // / location
129
129
// / \param cmdl_option: a string of the format <file:n>
130
130
// / \return correctly constructed entry source location
131
131
entry_source_locationt parse_source_location (const std::string &cmdl_option);
@@ -158,7 +158,7 @@ class memory_snapshot_harness_generatort : public goto_harness_generatort
158
158
159
159
// / Find and return the entry instruction (requested by the user as source
160
160
// / location: file name + line number)
161
- // / \param entry_goto_location : user specified goto location
161
+ // / \param entry_source_location : user specified goto location
162
162
// / \param goto_functions: goto functions to be searched for the entry
163
163
// / instruction
164
164
// / \return the correctly constructed entry location
@@ -214,8 +214,12 @@ class memory_snapshot_harness_generatort : public goto_harness_generatort
214
214
// / ..second_part..
215
215
// / }
216
216
// /
217
+ // / \param func_init_done_var: symbol expression for the `func_init_done`
218
+ // / variable
217
219
// / \param goto_model: Model where the modification takes place
218
- void add_init_section (goto_modelt &goto_model) const ;
220
+ void add_init_section (
221
+ const symbol_exprt &func_init_done_var,
222
+ goto_modelt &goto_model) const ;
219
223
220
224
// / For each global symbol in the \p snapshot symbol table either:
221
225
// / 1) add \ref code_assignt assigning a value from the \p snapshot to the
@@ -254,7 +258,6 @@ class memory_snapshot_harness_generatort : public goto_harness_generatort
254
258
255
259
// / data to initialize the entry function
256
260
entry_locationt entry_location;
257
- symbol_exprt func_init_done_var;
258
261
259
262
message_handlert &message_handler;
260
263
};
0 commit comments