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.
Revert "Do lowering of java_new as a function-level pass"
This partially reverts commit 166563f. remove_java_new was introduced because ID_java_new represented an abstract, unsized allocation whereas ID_allocate carried a definite size, and running java_bytecode_convert_method on a function could change a type's size by discovering previously-unknown fields belonging to opaque types. However, as of e86e2a0 the sizes of types are ascertained earlier (during java_bytecode_languaget::typecheck), and so there is now no problem with using ID_allocate from the outset.
- Loading branch information
Showing
11 changed files
with
47 additions
and
153 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 |
---|---|---|
|
@@ -32,7 +32,6 @@ Author: Daniel Kroening, [email protected] | |
#include <goto-programs/link_to_library.h> | ||
#include <goto-programs/goto_inline.h> | ||
#include <goto-programs/xml_goto_trace.h> | ||
#include <goto-programs/remove_java_new.h> | ||
|
||
#include <goto-instrument/dump_c.h> | ||
|
||
|
@@ -214,8 +213,6 @@ bool clobber_parse_optionst::process_goto_program( | |
goto_modelt &goto_model) | ||
{ | ||
{ | ||
remove_java_new(goto_model, get_message_handler()); | ||
|
||
// do partial inlining | ||
status() << "Partial Inlining" << eom; | ||
goto_partial_inline(goto_model, get_message_handler()); | ||
|
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 |
---|---|---|
|
@@ -37,7 +37,6 @@ Author: Daniel Kroening, [email protected] | |
#include <goto-programs/read_goto_binary.h> | ||
#include <goto-programs/goto_inline.h> | ||
#include <goto-programs/link_to_library.h> | ||
#include <goto-programs/remove_java_new.h> | ||
|
||
#include <analyses/is_threaded.h> | ||
#include <analyses/goto_check.h> | ||
|
@@ -745,8 +744,6 @@ bool goto_analyzer_parse_optionst::process_goto_program( | |
link_to_library(goto_model, ui_message_handler); | ||
#endif | ||
|
||
remove_java_new(goto_model, get_message_handler()); | ||
|
||
// remove function pointers | ||
status() << "Removing function pointers and virtual functions" << eom; | ||
remove_function_pointers( | ||
|
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -44,7 +44,6 @@ Author: Daniel Kroening, [email protected] | |
#include <goto-programs/show_goto_functions.h> | ||
#include <goto-programs/show_symbol_table.h> | ||
#include <goto-programs/show_properties.h> | ||
#include <goto-programs/remove_java_new.h> | ||
|
||
#include <goto-symex/adjust_float_expressions.h> | ||
|
||
|
@@ -735,9 +734,7 @@ bool jbmc_parse_optionst::process_goto_functions( | |
{ | ||
try | ||
{ | ||
remove_java_new(goto_model, get_message_handler()); | ||
|
||
status() << "Removal of virtual functions" << eom; | ||
status() << "Running GOTO functions transformation passes" << eom; | ||
// remove catch and throw (introduces instanceof but request it is removed) | ||
remove_exceptions( | ||
goto_model, remove_exceptions_typest::REMOVE_ADDED_INSTANCEOF); | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ Author: Chris Smowton, [email protected] | |
#include <langapi/mode.h> | ||
#include <goto-programs/initialize_goto_model.h> | ||
#include <goto-programs/goto_inline.h> | ||
#include <goto-programs/remove_java_new.h> | ||
#include <java_bytecode/java_bytecode_language.h> | ||
#include <java_bytecode/java_types.h> | ||
#include <pointer-analysis/value_set_analysis.h> | ||
|
@@ -184,9 +183,6 @@ SCENARIO("test_value_set_analysis", | |
|
||
namespacet ns(goto_model.symbol_table); | ||
|
||
// VSA doesn't currently support java_new as an allocator | ||
remove_java_new(goto_model, null_output); | ||
|
||
// Fully inline the test program, to avoid VSA conflating | ||
// constructor callsites confusing the results we're trying to check: | ||
goto_function_inline(goto_model, TEST_FUNCTION_NAME, null_output); | ||
|