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
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

0 commit comments

Comments
 (0)