First pass converting qlref tests to inline expectation with postprocess

This commit is contained in:
Owen Mansel-Chan
2026-06-10 07:46:42 +02:00
parent 8d456df26f
commit 1c1d26453d
420 changed files with 2846 additions and 2598 deletions

View File

@@ -5,14 +5,14 @@ class A {
void f(int initx) {
boolean done = false;
while(!done) { // BAD: main loop condition is constant in the loop
while(!done) { // $ Alert // BAD: main loop condition is constant in the loop
if (otherCond()) break;
}
int x = initx * 2;
int i = 0;
for(x++; ; i++) {
if (x > 5 && otherCond()) { // BAD: x>5 is constant in the loop and guards all exits
if (x > 5 && otherCond()) { // $ Alert // BAD: x>5 is constant in the loop and guards all exits
if (i > 3) break;
if (otherCond()) return;
}
@@ -26,14 +26,14 @@ class A {
i++;
}
for(int j = 0; j < 2 * initx; i++) { // BAD: j<initx is constant in the loop
for(int j = 0; j < 2 * initx; i++) { // $ Alert // BAD: j<initx is constant in the loop
}
while(initx > 0) { // OK: loop used as an if-statement
break;
}
while (cond) { // BAD: read of final field
while (cond) { // $ Alert // BAD: read of final field
i++;
}
}