@@ -18,6 +18,12 @@ Author: Daniel Kroening, kroening@kroening.com
18
18
#include < util/exception_utils.h>
19
19
#include < util/invariant.h>
20
20
21
+ static void locality (
22
+ const irep_idt &function_identifier,
23
+ goto_symext::statet &state,
24
+ const goto_functionst::goto_functiont &goto_function,
25
+ const namespacet &ns);
26
+
21
27
bool goto_symext::get_unwind_recursion (const irep_idt &, unsigned , unsigned )
22
28
{
23
29
return false ;
@@ -300,7 +306,7 @@ void goto_symext::symex_function_call_code(
300
306
framet &frame = state.new_frame ();
301
307
302
308
// preserve locality of local variables
303
- locality (identifier, state, goto_function);
309
+ locality (identifier, state, goto_function, ns );
304
310
305
311
// assign actuals to formal parameters
306
312
parameter_assignments (identifier, goto_function, state, arguments);
@@ -378,10 +384,11 @@ void goto_symext::symex_end_of_function(statet &state)
378
384
379
385
// / preserves locality of local variables of a given function by applying L1
380
386
// / renaming to the local identifiers
381
- void goto_symext:: locality (
387
+ static void locality (
382
388
const irep_idt &function_identifier,
383
- statet &state,
384
- const goto_functionst::goto_functiont &goto_function)
389
+ goto_symext::statet &state,
390
+ const goto_functionst::goto_functiont &goto_function,
391
+ const namespacet &ns)
385
392
{
386
393
unsigned &frame_nr=
387
394
state.threads [state.source .thread_nr ].function_frame [function_identifier];
0 commit comments