Skip to content

Commit 43d2e09

Browse files
Also reset fresh temporary symbol counter
Otherwise temporary identifiers are not comparable in goto-diff.
1 parent 9ef28f4 commit 43d2e09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/goto_convert_functions.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Date: June 2003
1616
#include <util/std_code.h>
1717
#include <util/symbol_table.h>
1818
#include <util/prefix.h>
19+
#include <util/fresh_symbol.h>
1920

2021
#include "goto_inline.h"
2122

@@ -145,6 +146,7 @@ void goto_convert_functionst::convert_function(
145146
// make tmp variables local to function
146147
tmp_symbol_prefix=id2string(symbol.name)+"::$tmp::";
147148
temporary_counter=0;
149+
reset_temporary_counter();
148150

149151
f.type=to_code_type(symbol.type);
150152

0 commit comments

Comments
 (0)