We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 386cde3 commit bd46eeeCopy full SHA for bd46eee
src/goto-instrument/nondet_static.cpp
@@ -52,11 +52,11 @@ void nondet_static(
52
if(is_constant_or_has_constant_components(sym.type(), ns))
53
continue;
54
55
- i_it=init.insert_before(++i_it);
+ const goto_programt::instructiont original_instruction = instruction;
56
i_it->make_assignment();
57
i_it->code=code_assignt(sym, side_effect_expr_nondett(sym.type()));
58
- i_it->source_location=instruction.source_location;
59
- i_it->function=instruction.function;
+ i_it->source_location = original_instruction.source_location;
+ i_it->function = original_instruction.function;
60
}
61
else if(instruction.is_function_call())
62
{
0 commit comments