Skip to content

Commit 52dfc36

Browse files
author
Matthias Güdemann
authored
Merge pull request #1731 from diffblue/bugfix/all_resolved_calls
[TG-1931] Resolve calls to java.lang.Object functions to more specific ones
2 parents 150f826 + 814cfcc commit 52dfc36

File tree

22 files changed

+305
-31
lines changed

22 files changed

+305
-31
lines changed
104 Bytes
Binary file not shown.
104 Bytes
Binary file not shown.
312 Bytes
Binary file not shown.
364 Bytes
Binary file not shown.
452 Bytes
Binary file not shown.
327 Bytes
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
E.class
3+
--show-goto-functions
4+
IF.*"java::D"
5+
IF.*"java::O"
6+
IF.*"java::C"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
interface A {
2+
public int f();
3+
}
4+
interface B {
5+
public int g();
6+
}
7+
8+
class O {
9+
public String toString() {
10+
return "O";
11+
}
12+
}
13+
14+
class D extends O implements A, B {
15+
public int f() {
16+
return 0;
17+
}
18+
public int g() {
19+
return 1;
20+
}
21+
}
22+
23+
class C extends D {
24+
public String toString() {
25+
return "C";
26+
}
27+
}
28+
29+
class E {
30+
C c;
31+
D d;
32+
String f(Object o) {
33+
return o.toString();
34+
}
35+
}

regression/cbmc-java/virtual6/test.desc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ A.class
33
--function A.main --show-goto-functions
44
^EXIT=0$
55
^SIGNAL=0$
6-
IF "java::C".*THEN GOTO
7-
IF "java::B".*THEN GOTO
6+
IF "java::A".*THEN GOTO

regression/cbmc-java/virtual7/test.desc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ test.class
33
--show-goto-functions
44
^EXIT=0$
55
^SIGNAL=0$
6-
IF "java::E".*THEN GOTO [12]
7-
IF "java::B".*THEN GOTO [12]
8-
IF "java::D".*THEN GOTO [12]
9-
IF "java::C".*THEN GOTO [12]
10-
--
11-
IF "java::A".*THEN GOTO
6+
IF.*"java::C".*THEN GOTO [12]
7+
IF.*"java::D".*THEN GOTO [12]
8+
IF.*"java::A".*THEN GOTO [12]

0 commit comments

Comments
 (0)