forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#2270 from peterschrammel/fix-stub-identif…
…iers Prefix identifiers in stubs with function name
- Loading branch information
Showing
8 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
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,16 @@ | ||
public class Opaque extends Exception | ||
{ | ||
public static Opaque static_field; | ||
public Opaque field; | ||
|
||
public Opaque(Opaque o) { | ||
} | ||
|
||
public static Opaque static_method(Opaque o) { | ||
return o; | ||
} | ||
|
||
public Opaque[] method(Opaque[] o) { | ||
return o; | ||
} | ||
} |
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,24 @@ | ||
public class Test | ||
{ | ||
public static void f00(Opaque z) | ||
{ | ||
try { | ||
Opaque x = new Opaque(Opaque.static_field); | ||
Opaque[] a = {Opaque.static_method(x.field), z}; | ||
Opaque[] y = x.method(a); | ||
throw y[0]; | ||
} catch(Opaque o) { | ||
} | ||
} | ||
public Opaque f01(Opaque z) | ||
{ | ||
try { | ||
Opaque x = new Opaque(Opaque.static_field); | ||
Opaque[] a = {Opaque.static_method(x.field), z}; | ||
Opaque[] y = x.method(a); | ||
throw y[0]; | ||
} catch(Opaque o) { | ||
return o; | ||
} | ||
} | ||
} |
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,23 @@ | ||
CORE symex-driven-lazy-loading-expected-failure | ||
Test.class | ||
--show-symbol-table | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^Symbol\.*: java::Opaque\.static_method:\(LOpaque;\)LOpaque;::malloc_site\$[0-3]?$ | ||
^Symbol\.*: java::Opaque\.method:\(\[LOpaque;\)\[LOpaque;::malloc_site\$[0-3]?$ | ||
-- | ||
^Symbol\.*: malloc_site | ||
^Symbol\.*: to_construct | ||
^Symbol\.*: to_return | ||
^Symbol\.*: this | ||
^Symbol\.*: caught_exception | ||
^Symbol\.*: anonlocal | ||
^Symbol\.*: stub_ignored_arg | ||
^Symbol\.*: #return_value | ||
^Symbol\.*: return_tmp | ||
^Symbol\.*: new_tmp | ||
^Symbol\.*: tmp_new_data_array | ||
^Symbol\.*: newarray_tmp | ||
-- | ||
Does not work with symex-driven lazy loading because we want to check the | ||
symbol table for the entire program. |
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
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
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
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