File tree 3 files changed +27
-0
lines changed
jbmc/regression/jbmc/nondet-array-size
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ import org .cprover .CProver ;
2
+
3
+ public class TestClass {
4
+
5
+ public static void minimalJbmc (Object [] a ) {
6
+ CProver .assume (a != null && a .length > 1 );
7
+ float [] assigned = new float [a .length ];
8
+ assigned [0 ] = 1.0f ;
9
+ assert (false );
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ TestClass.class
3
+ --function "TestClass.minimalJbmc" --unwind 5 --max-nondet-string-length 10 --java-unwind-enum-static --trace --json-ui
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ VERIFICATION FAILED
7
+ --
8
+ --
9
+ Verify that when an array's size is determined by an array input, the resulting
10
+ trace is valid.
11
+ To compile this source file, use:
12
+
13
+ ```bash
14
+ $ javac -g TestClass.java -cp ../../../lib/java-models-library/target/classes/:.
15
+ ```
16
+ to have the cprover library on the class path.
You can’t perform that action at this time.
0 commit comments