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