C++: IRGuards uses Operand; fix CP in SignAnalysis

This commit is contained in:
Robert Marsh
2018-11-08 14:43:51 -08:00
parent 72bb7c9c42
commit 4fdc992cd9
4 changed files with 80 additions and 67 deletions

View File

@@ -7,3 +7,13 @@ int f(int x, int y) {
}
return 0;
}
int g(int x, int y) {
if (x < y) {
return y
}
if (x < 0) {
return x;
}
return 0;
}