File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,11 @@ class goto_symex_statet final
196
196
bool is_recursion = false ;
197
197
};
198
198
std::unordered_map<irep_idt, loop_infot> loop_iterations;
199
+
200
+ explicit framet (const symex_targett::sourcet &_calling_location)
201
+ : calling_location(_calling_location)
202
+ {
203
+ }
199
204
};
200
205
201
206
typedef std::vector<framet> call_stackt;
@@ -224,8 +229,14 @@ class goto_symex_statet final
224
229
return call_stack ().back ();
225
230
}
226
231
227
- framet &new_frame () { call_stack ().push_back (framet ()); return top (); }
232
+ framet &new_frame ()
233
+ {
234
+ call_stack ().emplace_back (source);
235
+ return top ();
236
+ }
237
+
228
238
void pop_frame () { call_stack ().pop_back (); }
239
+
229
240
const framet &previous_frame () { return *(--(--call_stack ().end ())); }
230
241
231
242
void print_backtrace (std::ostream &) const ;
Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ void goto_symext::symex_function_call_code(
311
311
312
312
frame.end_of_function =--goto_function.body .instructions .end ();
313
313
frame.return_value =call.lhs ();
314
- frame.calling_location =state.source ;
315
314
frame.function_identifier =identifier;
316
315
frame.hidden_function =goto_function.is_hidden ();
317
316
You can’t perform that action at this time.
0 commit comments