File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ symbolt &get_fresh_aux_symbol(
33
33
34
34
do
35
35
{
36
+ // Distinguish local variables with the same name
36
37
new_symbol.base_name =
37
38
basename_prefix+
38
39
" $" +
Original file line number Diff line number Diff line change @@ -49,18 +49,23 @@ static void build_ssa_identifier_rec(
49
49
50
50
if (!l0.empty ())
51
51
{
52
+ // Distinguish different threads of execution
52
53
os << ' !' << l0;
53
54
l1_object_os << ' !' << l0;
54
55
}
55
56
56
57
if (!l1.empty ())
57
58
{
59
+ // Distinguish different calls to the same function (~stack frame)
58
60
os << ' @' << l1;
59
61
l1_object_os << ' @' << l1;
60
62
}
61
63
62
64
if (!l2.empty ())
65
+ {
66
+ // Distinguish SSA steps for the same variable
63
67
os << ' #' << l2;
68
+ }
64
69
}
65
70
else
66
71
assert (false );
You can’t perform that action at this time.
0 commit comments