forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for simplifying ID_string equalities
- Loading branch information
1 parent
ddf6c92
commit c7d8ea6
Showing
16 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
public class Test { | ||
public static void runF(A x) { | ||
x.f(); | ||
} | ||
|
||
public static void main() { | ||
A y = new D(); | ||
runF(y); | ||
} | ||
} | ||
|
||
class A { | ||
void f() { } | ||
} | ||
|
||
|
||
class B extends A { | ||
void f() { } | ||
} | ||
|
||
class C extends A { | ||
void f() { } | ||
} | ||
|
||
class D extends C { | ||
} | ||
|
||
class E extends B { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CORE | ||
Test.class | ||
--program-only | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
C\.f | ||
-- | ||
A\.f | ||
B\.f | ||
D\.f | ||
E\.f |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
public class Test { | ||
public static void runF(A x) { | ||
x.f(); | ||
} | ||
|
||
public static void main(String[] args) { | ||
A y = null; | ||
if(args.length==3) | ||
y = new C(); | ||
else | ||
y = new E(); | ||
runF(y); | ||
} | ||
} | ||
|
||
class A { | ||
void f() { } | ||
} | ||
|
||
|
||
class B extends A { | ||
void f() { } | ||
} | ||
|
||
class C extends A { | ||
void f() { } | ||
} | ||
|
||
class D extends C { | ||
} | ||
|
||
class E extends B { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
KNOWNBUG | ||
Test.class | ||
--program-only | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
B\.f | ||
C\.f | ||
-- | ||
A\.f | ||
D\.f | ||
E\.f | ||
-- | ||
could be pruned by a value set analysis |