Skip to content

Commit 37935ee

Browse files
committed
java: separate bounds onto different lines
1 parent 6ed8950 commit 37935ee

File tree

1 file changed

+4
-2
lines changed
  • java/ql/test/library-tests/dataflow/range-analysis-inline

1 file changed

+4
-2
lines changed

java/ql/test/library-tests/dataflow/range-analysis-inline/B.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public int forloopexitstep() {
2727

2828
public int forloopexitupd() {
2929
int result = 0;
30-
for (; result < 10; result++) { // $ bound="result in [0..9]" bound="result in [0..10]"
30+
for (; result < 10; // $ bound="result in [0..10]"
31+
result++) { // $ bound="result in [0..9]"
3132
}
3233
return result; // $ bound="result = 10"
3334
}
@@ -46,7 +47,8 @@ public int forloopexitnested() {
4647

4748
public int emptyforloop() {
4849
int result = 0;
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]"
5052
result = i; // $ bound="i in [0..-1]"
5153
}
5254
return result; // $ bound="result = 0"

0 commit comments

Comments
 (0)