File tree Expand file tree Collapse file tree 4 files changed +40
-0
lines changed
jbmc/regression/jbmc/NondetArrayPrimitive Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ class NondetArrayPrimitive
2
+ {
3
+ void intArray (int [] array )
4
+ {
5
+ if (array != null && array .length > 1500 && array [1500 ] == 42 ) {
6
+ assert false ;
7
+ }
8
+ }
9
+
10
+ void floatArray (float [] array )
11
+ {
12
+ if (array != null && array .length > 1500 && array [1500 ] == 42.0 ) {
13
+ assert false ;
14
+ }
15
+ }
16
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ NondetArrayPrimitive.class
3
+ --function NondetArrayPrimitive.floatArray --max-nondet-array-length 2000 --unwind 1
4
+ ^VERIFICATION FAILED$
5
+ ^EXIT=10$
6
+ ^SIGNAL=0$
7
+ line 13 assertion.*: FAILURE
8
+ --
9
+ Unwinding loop __CPROVER__start.0 iteration 2
10
+ ^warning: ignoring
11
+ --
12
+ Check no unwind needed to reach non-primitive array cell
Original file line number Diff line number Diff line change
1
+ CORE
2
+ NondetArrayPrimitive.class
3
+ --function NondetArrayPrimitive.intArray --max-nondet-array-length 2000 --unwind 1
4
+ ^VERIFICATION FAILED$
5
+ ^EXIT=10$
6
+ ^SIGNAL=0$
7
+ line 6 assertion.*: FAILURE
8
+ --
9
+ Unwinding loop __CPROVER__start.0 iteration 2
10
+ ^warning: ignoring
11
+ --
12
+ Check no unwind needed to reach non-primitive array cell
You can’t perform that action at this time.
0 commit comments