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 @@ -41,6 +41,7 @@ symbolt &get_fresh_aux_symbol(
41
41
42
42
do
43
43
{
44
+ // Distinguish local variables with the same name
44
45
new_symbol.base_name =
45
46
basename_prefix+
46
47
" $" +
Original file line number Diff line number Diff line change @@ -61,18 +61,23 @@ static void build_ssa_identifier_rec(
61
61
62
62
if (!l0.empty ())
63
63
{
64
+ // Distinguish different threads of execution
64
65
os << ' !' << l0;
65
66
l1_object_os << ' !' << l0;
66
67
}
67
68
68
69
if (!l1.empty ())
69
70
{
71
+ // Distinguish different calls to the same function (~stack frame)
70
72
os << ' @' << l1;
71
73
l1_object_os << ' @' << l1;
72
74
}
73
75
74
76
if (!l2.empty ())
77
+ {
78
+ // Distinguish SSA steps for the same variable
75
79
os << ' #' << l2;
80
+ }
76
81
}
77
82
else
78
83
assert (false );
You can’t perform that action at this time.
0 commit comments