Skip to content

Commit f7f033d

Browse files
committed
String smoke tests: ensure no type mismatches are seen
Type mismatches previously resulted from the expression simplifier removing casts from one struct type to another, so e.g. (struct A)b would be simplified to b, changing its type and leading to an equality with a type mismatch. Now that the simplifier has been fixed this should no longer happen -- this change ensures that none of the smoke tests generate the warning any longer.
1 parent b627c3d commit f7f033d

File tree

114 files changed

+237
-114
lines changed

Some content is hidden

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

114 files changed

+237
-114
lines changed
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
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
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
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
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

+2-1
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

+2-1
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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+
non equal types
910
$ignoring\s*char\s*array
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
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
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
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
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
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
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)