Skip to content

Commit 733d559

Browse files
committed
associate variables' names to tmp_post
1 parent fee89cc commit 733d559

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/goto-programs/goto_convert_side_effect.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,13 @@ void goto_convertt::remove_post(
314314
if(result_is_used)
315315
{
316316
exprt tmp = op;
317-
make_temp_symbol(tmp, "post", dest, mode);
317+
std::string suffix = "post";
318+
if (tmp.id() == ID_symbol)
319+
{
320+
suffix = suffix + "_" + tmp.get(ID_identifier).c_str();
321+
}
322+
323+
make_temp_symbol(tmp, suffix, dest, mode);
318324
expr.swap(tmp);
319325
}
320326
else

0 commit comments

Comments
 (0)