Skip to content

Commit f570ce5

Browse files
authored
Merge pull request #1696 from smowton/smowton/fix/identical_struct_equality
Replace unsound struct-cast simplification
2 parents 61b0d6d + 42cf61a commit f570ce5

File tree

116 files changed

+253
-118
lines changed

Some content is hidden

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

116 files changed

+253
-118
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
CORE
22
test_append_char.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion.* file test_append_char.java line 23 .* SUCCESS
77
assertion.* file test_append_char.java line 25 .* FAILURE
88
--
9+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FUTURE
22
test_append_int.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FUTURE
22
test_append_object.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
9+
--
810
Issue: diffblue/test-gen#82
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_append_string.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
CORE
22
test_append_string.class
3-
--refine-strings --string-max-length 10 --function test_append_string.check --java-assume-inputs-non-null
3+
--refine-strings --verbosity 10 --string-max-length 10 --function test_append_string.check --java-assume-inputs-non-null
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.*\].* line 22.* SUCCESS$
77
^\[.*assertion.*\].* line 23.* SUCCESS$
88
^\[.*assertion.*\].* line 24.* SUCCESS$
99
^\[.*assertion.*\].* line 25.* FAILURE$
1010
--
11+
non equal types

regression/strings-smoke-tests/java_case/test.desc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_case.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion.* file test_case.java line 10 .* SUCCESS$
@@ -10,3 +10,4 @@ assertion.* file test_case.java line 16 .* FAILURE$
1010
assertion.* file test_case.java line 20 .* SUCCESS$
1111
assertion.* file test_case.java line 24 .* FAILURE$
1212
--
13+
non equal types

regression/strings-smoke-tests/java_char_array/test.desc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
test_char_array.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
.*assertion.* test_char_array.java line 7 .* SUCCESS$
@@ -12,3 +12,4 @@ test_char_array.class
1212
.*assertion.* test_char_array.java line 29 .* FAILURE$
1313
^VERIFICATION FAILED$
1414
--
15+
non equal types
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FUTURE
22
test_init.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
9+
--
810
cbmc/test-gen#259
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_char_at.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_code_point.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_compare.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
CORE
22
test_concat.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 10.* SUCCESS$
77
^\[.*assertion.2\].* line 11.* FAILURE$
88
--
9+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
CORE
22
test_contains.class
3-
--refine-strings --string-max-length 100
3+
--refine-strings --verbosity 10 --string-max-length 100
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 8.* SUCCESS$
77
^\[.*assertion.2\].* line 9.* SUCCESS$
88
^VERIFICATION SUCCESSFUL$
99
--
10+
non equal types
1011
--
1112
Issue: diffblue/test-gen#201
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
KNOWNBUG
22
test_contains.class
3-
--refine-strings --string-max-length 100 --string-printable
3+
--refine-strings --verbosity 10 --string-max-length 100 --string-printable
44
^EXIT=0$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 8.* SUCCESS$
77
^\[.*assertion.2\].* line 9.* SUCCESS$
88
^VERIFICATION SUCCESSFUL$
99
--
10+
non equal types
1011
--
1112
This should create a huge formula and run out of memory.
1213
Issue: https://github.com/diffblue/test-gen/issues/745
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_delete.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_delete_char_at.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_empty.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
CORE
22
test_endswith.class
3-
--refine-strings --string-max-length 100
3+
--refine-strings --verbosity 10 --string-max-length 100
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 9.* SUCCESS$
77
^\[.*assertion.2\].* line 10.* FAILURE$
88
--
9+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
CORE
22
test_equal.class
3-
--refine-strings --string-max-length 100 --string-max-length 100
3+
--refine-strings --verbosity 10 --string-max-length 100 --string-max-length 100
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 8.* FAILURE$
77
^\[.*assertion.2\].* line 9.* SUCCESS$
88
--
9+
non equal types
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
KNOWNBUG
22
test_equal_2.class
3-
--refine-strings --string-max-length 100 --string-max-length 100
3+
--refine-strings --verbosity 10 --string-max-length 100 --string-max-length 100
44
^EXIT=0$
55
^SIGNAL=0$
66
--
7+
non equal types
8+
--
79
https://github.com/diffblue/test-gen/issues/856
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FUTURE
22
test_float.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CORE
22
test.class
3-
--refine-strings --string-max-length 20
3+
--refine-strings --verbosity 10 --string-max-length 20
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 6.* SUCCESS$
77
^\[.*assertion.2\].* line 7.* FAILURE$
88
--
9+
non equal types
910
^ignoring
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CORE
22
test.class
3-
--refine-strings --string-max-length 20
3+
--refine-strings --verbosity 10 --string-max-length 20
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 6.* SUCCESS$
77
^\[.*assertion.2\].* line 7.* FAILURE$
88
--
9+
non equal types
910
^warning
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CORE
22
test.class
3-
--refine-strings --string-max-length 20
3+
--refine-strings --verbosity 10 --string-max-length 20
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 7.* SUCCESS$
77
^\[.*assertion.2\].* line 9.* FAILURE$
88
--
9+
non equal types
910
^warning
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
KNOWNBUG
22
test.class
3-
--refine-strings --string-max-length 20
3+
--refine-strings --verbosity 10 --string-max-length 20
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 8.* SUCCESS$
77
^\[.*assertion.2\].* line 13.* FAILURE$
88
--
9+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
THOROUGH
22
test.class
3-
--refine-strings --string-max-length 20
3+
--refine-strings --verbosity 10 --string-max-length 20
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 7.* SUCCESS$
77
^\[.*assertion.2\].* line 9.* FAILURE$
88
--
9+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
CORE
22
test_hash_code.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 8.* SUCCESS$
77
^\[.*assertion.2\].* line 9.* FAILURE$
88
--
9+
non equal types
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CORE
22
test.class
3-
--refine-strings --string-max-length 100
3+
--refine-strings --verbosity 10 --string-max-length 100
44
^EXIT=10$
55
^SIGNAL=0$
66
^\[.*assertion.1\].* line 11.* SUCCESS$
77
^\[.*assertion.2\].* line 13.* FAILURE$
88
--
9-
$ignoring\s*char\s*array
9+
non equal types
10+
ignoring\s*char\s*array
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_index_of.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_index_of2.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
^VERIFICATION FAILED$
77
--
8+
non equal types
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
CORE
22
test_index_of_char.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
9+
--
810
Issue: cbmc/test-gen#77
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_insert_char.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
CORE
22
test_insert_char_array.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=10$
55
^SIGNAL=0$
66
assertion.* file test_insert_char_array.java line 20 .* SUCCESS$
77
assertion.* file test_insert_char_array.java line 22 .* FAILURE$
88
--
9+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FUTURE
22
test_insert_int.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CORE
22
test_insert_multiple.class
3-
--refine-strings --string-max-length 1000
3+
--refine-strings --verbosity 10 --string-max-length 1000
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$
77
--
8+
non equal types

0 commit comments

Comments
 (0)