File tree Expand file tree Collapse file tree 8 files changed +46
-18
lines changed
jbmc/regression/jbmc-strings Expand file tree Collapse file tree 8 files changed +46
-18
lines changed Original file line number Diff line number Diff line change
1
+ public class test
2
+ {
3
+ public static void nondet (String stringArg )
4
+ {
5
+ StringBuilder sb = new StringBuilder (stringArg );
6
+ sb .append ("Z" );
7
+ String s = sb .toString ();
8
+ if (s .startsWith ("fg" )) {
9
+ assert false ;
10
+ } else if (s .endsWith ("Z" )) {
11
+ assert false ;
12
+ } else {
13
+ assert false ;
14
+ }
15
+ }
16
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ test.class
3
+ --function test.nondet --max-nondet-string-length 1000 --cp `../../../../scripts/format_classpath.sh . ../../../lib/java-models-library/target/core-models.jar` --property "java::test.nondet:(Ljava/lang/String;)V.assertion.1"
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ \[.*assertion\.1\] .* line 9 .* FAILURE
7
+ ^VERIFICATION FAILED$
8
+ --
9
+ --
10
+ Check that StringBuilder.append() is correct when the base String is an input.
Original file line number Diff line number Diff line change
1
+ CORE
2
+ test.class
3
+ --function test.nondet --max-nondet-string-length 1000 --cp `../../../../scripts/format_classpath.sh . ../../../lib/java-models-library/target/core-models.jar` --property "java::test.nondet:(Ljava/lang/String;)V.assertion.2"
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ \[.*assertion\.2\] .* line 11.* FAILURE
7
+ ^VERIFICATION FAILED$
8
+ --
9
+ --
10
+ Check that StringBuilder.append() is correct when the base String is an input.
Original file line number Diff line number Diff line change
1
+ CORE symex-driven-lazy-loading-expected-failure
2
+ test.class
3
+ --function test.nondet --max-nondet-string-length 1000 --cp `../../../../scripts/format_classpath.sh . ../../../lib/java-models-library/target/core-models.jar` --property "java::test.nondet:(Ljava/lang/String;)V.assertion.3"
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ \[.*assertion\.3\] .* line 13.* SUCCESS
7
+ ^VERIFICATION SUCCESSFUL$
8
+ --
9
+ --
10
+ Check that StringBuilder.append() is correct when the base String is an input.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments