Skip to content

Commit 000aeb4

Browse files
committed
Fix: use a private namespace if giving a fresh name to a 'malloc' in the interpreter, since the existing symex_dynamic names could clash with the real names generated during symex.
1 parent 9c22100 commit 000aeb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-programs/interpreter_evaluate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ void interpretert::evaluate(
326326
if (show) error() << "malloc not fully implemented " << expr.type().subtype().pretty() << messaget::endl << eom;
327327
std::stringstream buffer;
328328
num_dynamic_objects++;
329-
buffer <<"symex_dynamic::dynamic_object" << num_dynamic_objects;
329+
buffer <<"interpreter::malloc_object" << num_dynamic_objects;
330330
irep_idt id(buffer.str().c_str());
331331
mp_integer address=build_memory_map(id,expr.type().subtype());//TODO: check array of type
332-
dest.push_back(address);
332+
dest.push_back(address);
333333
return;
334334
}
335335
if (show) error() << "side effect not implemented " << side_effect.get_statement() << messaget::endl << eom;

0 commit comments

Comments
 (0)