Skip to content

Commit c7d8ea6

Browse files
Tests for simplifying ID_string equalities
1 parent ddf6c92 commit c7d8ea6

File tree

16 files changed

+86
-0
lines changed

16 files changed

+86
-0
lines changed

regression/cbmc-java/virtual8/A.class

222 Bytes
Binary file not shown.

regression/cbmc-java/virtual8/B.class

207 Bytes
Binary file not shown.

regression/cbmc-java/virtual8/C.class

207 Bytes
Binary file not shown.

regression/cbmc-java/virtual8/D.class

164 Bytes
Binary file not shown.

regression/cbmc-java/virtual8/E.class

164 Bytes
Binary file not shown.
354 Bytes
Binary file not shown.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
public class Test {
2+
public static void runF(A x) {
3+
x.f();
4+
}
5+
6+
public static void main() {
7+
A y = new D();
8+
runF(y);
9+
}
10+
}
11+
12+
class A {
13+
void f() { }
14+
}
15+
16+
17+
class B extends A {
18+
void f() { }
19+
}
20+
21+
class C extends A {
22+
void f() { }
23+
}
24+
25+
class D extends C {
26+
}
27+
28+
class E extends B {
29+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
Test.class
3+
--program-only
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
C\.f
7+
--
8+
A\.f
9+
B\.f
10+
D\.f
11+
E\.f

regression/cbmc-java/virtual9/A.class

222 Bytes
Binary file not shown.

regression/cbmc-java/virtual9/B.class

207 Bytes
Binary file not shown.

regression/cbmc-java/virtual9/C.class

207 Bytes
Binary file not shown.

regression/cbmc-java/virtual9/D.class

164 Bytes
Binary file not shown.

regression/cbmc-java/virtual9/E.class

164 Bytes
Binary file not shown.
456 Bytes
Binary file not shown.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
public class Test {
2+
public static void runF(A x) {
3+
x.f();
4+
}
5+
6+
public static void main(String[] args) {
7+
A y = null;
8+
if(args.length==3)
9+
y = new C();
10+
else
11+
y = new E();
12+
runF(y);
13+
}
14+
}
15+
16+
class A {
17+
void f() { }
18+
}
19+
20+
21+
class B extends A {
22+
void f() { }
23+
}
24+
25+
class C extends A {
26+
void f() { }
27+
}
28+
29+
class D extends C {
30+
}
31+
32+
class E extends B {
33+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
KNOWNBUG
2+
Test.class
3+
--program-only
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
B\.f
7+
C\.f
8+
--
9+
A\.f
10+
D\.f
11+
E\.f
12+
--
13+
could be pruned by a value set analysis

0 commit comments

Comments
 (0)