|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
Running constant propagation on this Java code:
public class Foo
{
public void foo()
{
int x = 10;
while (something())
{
x = 5;
if (cond())
{
x = 10;
}
else
{}
call(x);
}
}
}
should not propagate x = 5 in the call(x) inside the while, but it does. However, changing the assignment x = 10 in the if (cond()) to x = 1 (or anything other than 10 for that matter) makes constant propagation behave correctly again.
|
|
Description
|
Running constant propagation on this Java code:
public class Foo
{
public void foo()
{
int x = 10;
while (something())
{
x = 5;
if (cond())
{
x = 10;
}
else
{}
call(x);
}
}
}
should not propagate x = 5 in the call(x) inside the while, but it does. However, changing the assignment x = 10 in the if (cond()) to x = 1 (or anything other than 10 for that matter) makes constant propagation behave correctly again. |
Show » |
|
|
STR-511. Both set- and add-in-rule-scope do not work properly in all cases when multiple change sets are created.