We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9191b6a + 1a79a11 commit 18fb262Copy full SHA for 18fb262
src/goto-instrument/stack_depth.cpp
@@ -107,8 +107,8 @@ void stack_depth(
107
goto_programt::targett it=init.insert_before(first);
108
it->make_assignment();
109
it->code=code_assignt(sym, from_integer(0, sym.type()));
110
- it->source_location=first->source_location;
111
- it->function=first->function;
+ // no suitable value for source location -- omitted
+ it->function = INITIALIZE_FUNCTION;
112
113
// update counters etc.
114
goto_model.goto_functions.update();
0 commit comments