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.
Use optionalt instead of safe_pointer
- Loading branch information
1 parent
c69b00d
commit 4b245f8
Showing
7 changed files
with
16 additions
and
88 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/symbol_table.h> | ||
#include <util/message.h> | ||
#include <util/safe_pointer.h> | ||
#include "java_string_library_preprocess.h" | ||
|
||
#include "java_bytecode_parse_tree.h" | ||
|
@@ -28,7 +27,7 @@ void java_bytecode_convert_method( | |
symbol_tablet &symbol_table, | ||
message_handlert &message_handler, | ||
size_t max_array_length, | ||
safe_pointer<ci_lazy_methods_neededt> needed_lazy_methods, | ||
optionalt<ci_lazy_methods_neededt> needed_lazy_methods, | ||
java_string_library_preprocesst &string_preprocess); | ||
|
||
inline void java_bytecode_convert_method( | ||
|
@@ -45,7 +44,7 @@ inline void java_bytecode_convert_method( | |
symbol_table, | ||
message_handler, | ||
max_array_length, | ||
safe_pointer<ci_lazy_methods_neededt>::create_null(), | ||
optionalt<ci_lazy_methods_neededt>(), | ||
string_preprocess); | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ Author: Daniel Kroening, [email protected] | |
#include <util/message.h> | ||
#include <util/std_types.h> | ||
#include <util/std_expr.h> | ||
#include <util/safe_pointer.h> | ||
#include <analyses/cfg_dominators.h> | ||
#include "java_bytecode_parse_tree.h" | ||
#include "java_bytecode_convert_class.h" | ||
|
@@ -35,12 +34,12 @@ class java_bytecode_convert_methodt:public messaget | |
symbol_tablet &_symbol_table, | ||
message_handlert &_message_handler, | ||
size_t _max_array_length, | ||
safe_pointer<ci_lazy_methods_neededt> needed_lazy_methods, | ||
optionalt<ci_lazy_methods_neededt> needed_lazy_methods, | ||
java_string_library_preprocesst &_string_preprocess) | ||
: messaget(_message_handler), | ||
symbol_table(_symbol_table), | ||
max_array_length(_max_array_length), | ||
needed_lazy_methods(needed_lazy_methods), | ||
needed_lazy_methods(std::move(needed_lazy_methods)), | ||
string_preprocess(_string_preprocess), | ||
slots_for_parameters(0), | ||
method_has_this(false) | ||
|
@@ -61,7 +60,7 @@ class java_bytecode_convert_methodt:public messaget | |
protected: | ||
symbol_tablet &symbol_table; | ||
const size_t max_array_length; | ||
safe_pointer<ci_lazy_methods_neededt> needed_lazy_methods; | ||
optionalt<ci_lazy_methods_neededt> needed_lazy_methods; | ||
|
||
/// Fully qualified name of the method under translation. | ||
/// Initialized by `convert`. | ||
|
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.