@@ -173,47 +173,31 @@ class goto_symex_statet final
173
173
174
174
// stack frames -- these are used for function calls and
175
175
// for exceptions
176
- class framet
176
+ struct framet
177
177
{
178
- public:
179
178
// function calls
180
179
irep_idt function_identifier;
181
180
goto_state_mapt goto_state_map;
182
181
symex_targett::sourcet calling_location;
183
182
184
183
goto_programt::const_targett end_of_function;
185
- exprt return_value;
186
- bool hidden_function;
184
+ exprt return_value = nil_exprt() ;
185
+ bool hidden_function = false ;
187
186
188
187
symex_renaming_levelt::current_namest old_level1;
189
188
190
- typedef std::set<irep_idt> local_objectst;
191
- local_objectst local_objects;
192
-
193
- framet ():
194
- return_value (nil_exprt()),
195
- hidden_function (false )
196
- {
197
- }
189
+ std::set<irep_idt> local_objects;
198
190
199
191
// exceptions
200
- typedef std::map<irep_idt, goto_programt::targett> catch_mapt;
201
- catch_mapt catch_map;
192
+ std::map<irep_idt, goto_programt::targett> catch_map;
202
193
203
194
// loop and recursion unwinding
204
195
struct loop_infot
205
196
{
206
- loop_infot ():
207
- count (0 ),
208
- is_recursion (false )
209
- {
210
- }
211
-
212
- unsigned count;
213
- bool is_recursion;
197
+ unsigned count = 0 ;
198
+ bool is_recursion = false ;
214
199
};
215
- typedef std::unordered_map<irep_idt, loop_infot> loop_iterationst;
216
- loop_iterationst loop_iterations;
200
+ std::unordered_map<irep_idt, loop_infot> loop_iterations;
217
201
};
218
202
219
203
typedef std::vector<framet> call_stackt;
@@ -249,40 +233,27 @@ class goto_symex_statet final
249
233
// threads
250
234
unsigned atomic_section_id;
251
235
typedef std::pair<unsigned , std::list<guardt> > a_s_r_entryt;
252
- typedef std::unordered_map<ssa_exprt, a_s_r_entryt, irep_hash>
253
- read_in_atomic_sectiont;
254
236
typedef std::list<guardt> a_s_w_entryt;
255
- typedef std::unordered_map<ssa_exprt, a_s_w_entryt, irep_hash>
256
- written_in_atomic_sectiont;
257
- read_in_atomic_sectiont read_in_atomic_section;
258
- written_in_atomic_sectiont written_in_atomic_section;
237
+ std::unordered_map<ssa_exprt, a_s_r_entryt, irep_hash> read_in_atomic_section;
238
+ std::unordered_map<ssa_exprt, a_s_w_entryt, irep_hash>
239
+ written_in_atomic_section;
259
240
260
241
unsigned total_vccs, remaining_vccs;
261
242
262
- class threadt
243
+ struct threadt
263
244
{
264
- public:
265
245
goto_programt::const_targett pc;
266
246
guardt guard;
267
247
call_stackt call_stack;
268
248
std::map<irep_idt, unsigned > function_frame;
269
- unsigned atomic_section_id;
270
-
271
- threadt ():
272
- atomic_section_id (0 )
273
- {
274
- }
249
+ unsigned atomic_section_id = 0 ;
275
250
};
276
251
277
- typedef std::vector<threadt> threadst;
278
- threadst threads;
252
+ std::vector<threadt> threads;
279
253
280
254
bool l2_thread_read_encoding (ssa_exprt &expr, const namespacet &ns);
281
255
bool l2_thread_write_encoding (const ssa_exprt &expr, const namespacet &ns);
282
256
283
- void populate_dirty_for_function (
284
- const irep_idt &id, const goto_functiont &);
285
-
286
257
bool record_events;
287
258
incremental_dirtyt dirty;
288
259
@@ -294,7 +265,6 @@ class goto_symex_statet final
294
265
// / \brief This state is saved, with the PC pointing to the next instruction
295
266
// / of a GOTO
296
267
bool has_saved_next_instruction;
297
- bool saved_target_is_backwards;
298
268
299
269
private:
300
270
// / \brief Dangerous, do not use
0 commit comments