File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
java/ql/test/library-tests/dataflow/range-analysis-inline Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments