Skip to content

Commit 0bf58a5

Browse files
codebyzebromainbrenguier
authored andcommitted
Implement model for String.equals
String.equals currently handled by CBMC, this removes support within CBMC so that String.equals will be handled by a model instead.
1 parent b6258db commit 0bf58a5

File tree

59 files changed

+65
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+65
-132
lines changed

jbmc/regression/jbmc-strings/StringBuilderInsert/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--function Test.check
3+
--function Test.check --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion at file Test.java line 13 .*: SUCCESS

jbmc/regression/jbmc-strings/StringConcat_StringII/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--max-nondet-string-length 4 --verbosity 10 --unwind 5 --function Test.testSuccess
3+
--max-nondet-string-length 4 --verbosity 10 --unwind 5 --function Test.testSuccess --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
assertion at file Test.java line 23 .*: SUCCESS

jbmc/regression/jbmc-strings/StringConcatenation01/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
StringConcatenation01.class
3-
--max-nondet-string-length 1000
3+
--max-nondet-string-length 1000 --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc-strings/StringEquals/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--max-nondet-string-length 40 --function Test.check
3+
--max-nondet-string-length 40 --function Test.check --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion at file Test.java line 9 .* SUCCESS
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--max-nondet-string-length 20 --unwind 30 --function Test.verifyNonNull
3+
--max-nondet-string-length 20 --unwind 30 --function Test.verifyNonNull --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
assertion at file Test.java line 48 .* SUCCESS

jbmc/regression/jbmc-strings/StringMiscellaneous04/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
StringMiscellaneous04.class
3-
--max-nondet-string-length 1000 --unwind 30
3+
--max-nondet-string-length 1000 --unwind 30 --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--unwind 10 --max-nondet-string-length 6 --function Test.testSuccess
3+
--unwind 10 --max-nondet-string-length 6 --function Test.testSuccess --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
assertion at file Test.java line 21.*: SUCCESS

jbmc/regression/jbmc-strings/SubString01/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
SubString01.class
3-
--max-nondet-string-length 1000
3+
--max-nondet-string-length 1000 --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc-strings/bug-test-gen-119-2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
StringValueOfLong.class
3-
--max-nondet-string-length 1000 --function StringValueOfLong.main
3+
--max-nondet-string-length 1000 --function StringValueOfLong.main --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

jbmc/regression/jbmc-strings/bug-test-gen-119/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
StringValueOfBool.class
3-
--max-nondet-string-length 1000 --function StringValueOfBool.main
3+
--max-nondet-string-length 1000 --function StringValueOfBool.main --cp `../../../../scripts/format_classpath.sh . ../../../src/java_bytecode/library/core-models.jar`
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

0 commit comments

Comments
 (0)