Skip to content

Commit 10d3857

Browse files
Add test for instanceof String
This checks the bug with class identifier of nondet strings was fixed.
1 parent 12ca989 commit 10d3857

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
602 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Test {
2+
3+
public static String check(String s) {
4+
if (s == null)
5+
return "null";
6+
assert(s instanceof String);
7+
return "non-null";
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Test.class
3+
--refine-strings --string-max-length 1000 --function Test.check
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
assertion at file Test.java line 6 .* SUCCESS$
7+
^VERIFICATION SUCCESSFUL$
8+
--

0 commit comments

Comments
 (0)