C++: test fixes for sign analysis

This commit is contained in:
Robert Marsh
2018-10-15 14:35:40 -07:00
parent 2d04d9ea04
commit 9d2d381e68
3 changed files with 690 additions and 688 deletions

View File

@@ -16,4 +16,4 @@ string getASignString(Instruction i) {
}
from Instruction i
select i, i.getAST(), strictconcat(string s | s = getASignString(i) | s, " ")
select i, strictconcat(string s | s = getASignString(i) | s, " ")

View File

@@ -0,0 +1,8 @@
int test01(int x, int y) {
int b = x > 10 && y < 0;
if (b) {
return x;
} else {
return y;
}
}