publicstaticint $opt$reg$TestLostCopy() { int a = 0; int b = 0; do {
b = a;
a++;
} while (a != 5); return b;
}
publicstaticint $opt$reg$TestTwoLive() { int a = 0; int b = 0; do {
a++;
b += 3;
} while (a != 5); return a - b;
}
publicstaticint $opt$reg$TestThreeLive() { int a = 0; int b = 0; int c = 0; do {
a++;
b += 3;
c += 2;
} while (a != 5); return a - b - c;
}
publicstaticint $opt$reg$TestFourLive() { int a = 0; int b = 0; int c = 0; int d = 0; do {
a++;
b += 3;
c += 2;
d++;
} while (a != 5); return d;
}
publicstaticint $opt$reg$TestMultipleLive() { int a = 0; int b = 0; int c = 0; int d = 0; int e = 0; int f = 0; int g = 0; do {
a++;
b++;
c++;
d++;
e += 3;
f += 2;
g += 2;
} while (a != 5); return f;
}
publicstaticint $opt$reg$TestWithBreakAndContinue() { int a = 0; int b = 0; do {
a++; if (a == 2) { continue;
}
b++; if (a == 5) { break;
}
} while (true); return a - b;
}
publicstaticint $opt$reg$testSpillInIf(int a, int b, int c) { int d = 0; int e = 0; if (a == 5) {
b++;
c++;
d += 2;
e += 3;
}
return a - b - c - d - e;
}
publicstaticint $opt$reg$TestAggressiveLive1( int a, int b, int c, int d, int e, int f, int g) { int h = a - b; int i = c - d; int j = e - f; int k = 42 + g - a; do {
b++; while (k != 1) {
--k;
++i; if (i == 9) {
++i;
}
j += 5;
}
k = 9;
h++;
} while (h != 5); return a - b - c - d - e - f - g - h - i - j - k;
}
publicstaticint $opt$reg$TestAggressiveLive2( int a, int b, int c, int d, int e, int f, int g) { int h = a - b; int i = c - d; int j = e - f; int k = 42 + g - a; do {
h++;
} while (h != 5); return a - b - c - d - e - f - g - h - i - j - k;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.