Skip to content

Commit 8646fdd

Browse files
author
Daniel Kroening
authored
Merge pull request #2817 from NathanJPhillips/cleanup/lazy-loading
Minor code cleanup related to lazy loading
2 parents 7e6ff00 + e4bc16e commit 8646fdd

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

jbmc/src/java_bytecode/ci_lazy_methods.cpp

+4-9
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,12 @@ bool ci_lazy_methodst::operator()(
103103

104104
// Add any extra entry points specified; we should elaborate these in the
105105
// same way as the main function.
106-
std::vector<irep_idt> extra_entry_points;
107106
for(const auto &extra_function_generator : lazy_methods_extra_entry_points)
108107
{
109-
const auto &extra_methods = extra_function_generator(symbol_table);
110-
extra_entry_points.insert(
111-
extra_entry_points.end(), extra_methods.begin(), extra_methods.end());
108+
std::vector<irep_idt> extra_methods =
109+
extra_function_generator(symbol_table);
110+
methods_to_convert_later.insert(extra_methods.begin(), extra_methods.end());
112111
}
113-
methods_to_convert_later.insert(
114-
extra_entry_points.begin(), extra_entry_points.end());
115112

116113
std::unordered_set<irep_idt> instantiated_classes;
117114

@@ -300,9 +297,7 @@ ci_lazy_methodst::convert_and_analyze_method(
300297
symbol_table,
301298
pointer_type_selector);
302299

303-
const bool could_not_convert_function =
304-
method_converter(method_name, needed_methods);
305-
if(could_not_convert_function)
300+
if(method_converter(method_name, needed_methods))
306301
return result;
307302

308303
const exprt &method_body = symbol_table.lookup_ref(method_name).value;

0 commit comments

Comments
 (0)