-
Notifications
You must be signed in to change notification settings - Fork 273
Revert "Do lowering of java_new as a function-level pass" #1793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
smowton
merged 1 commit into
diffblue:develop
from
smowton:smowton/cleanup/remove-java-new-lowering-pass
Feb 7, 2018
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can use range based for loop here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to stick with a plain revert there