-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
wp
currently assumes virtual variables are not reused, but this is not guaranteed. The same virtual may be assigned to multiple times and each assignment shadows the previous ones. The assignments may even have different types, as in this snipped where #5
is assigned to with a 32-bit number and an 8-bit number.
00000063: #5 := 0x18
00000065: #5 := 0x18
...
0000006b: R1 := #5
...
00000093: #5 := low:8[R2]
This doesn't actually arise in practice (much) right now, but we should probably fix it by generating a fresh name each time a virtual is assigned to (which will require some careful thought about program order).
Metadata
Metadata
Assignees
Labels
No labels