We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed8950 commit 37935eeCopy full SHA for 37935ee
1 file changed
java/ql/test/library-tests/dataflow/range-analysis-inline/B.java
@@ -27,7 +27,8 @@ public int forloopexitstep() {
27
28
public int forloopexitupd() {
29
int result = 0;
30
- for (; result < 10; result++) { // $ bound="result in [0..9]" bound="result in [0..10]"
+ for (; result < 10; // $ bound="result in [0..10]"
31
+ result++) { // $ bound="result in [0..9]"
32
}
33
return result; // $ bound="result = 10"
34
@@ -46,7 +47,8 @@ public int forloopexitnested() {
46
47
48
public int emptyforloop() {
49
- for (int i = 0; i < 0; i++) { // $ bound="i = 0" bound="i in [0..-1]"
50
+ for (int i = 0; i < 0; // $ bound="i = 0"
51
+ i++) { // $ bound="i in [0..-1]"
52
result = i; // $ bound="i in [0..-1]"
53
54
return result; // $ bound="result = 0"
0 commit comments