Skip to content

Typo in reachable #1561

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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/java_bytecode/ci_lazy_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ci_lazy_methodst::ci_lazy_methodst(
java_class_loader(java_class_loader),
pointer_type_selector(pointer_type_selector)
{
// build the class hierarclass_hierarchyy
// build the class hierarchy
class_hierarchy(symbol_table);
}

Expand Down Expand Up @@ -65,13 +65,13 @@ bool ci_lazy_methodst::operator()(
if(main_function.stop_convert)
{
// Failed, mark all functions in the given main class(es)
// reaclass_hierarchyable.
std::vector<irep_idt> reaclass_hierarchyable_classes;
// reachable.
std::vector<irep_idt> reachable_classes;
if(!main_class.empty())
reaclass_hierarchyable_classes.push_back(main_class);
reachable_classes.push_back(main_class);
else
reaclass_hierarchyable_classes=main_jar_classes;
for(const auto &classname : reaclass_hierarchyable_classes)
reachable_classes = main_jar_classes;
for(const auto &classname : reachable_classes)
{
const auto &methods=
java_class_loader.class_map.at(classname).parsed_class.methods;
Expand Down Expand Up @@ -190,8 +190,7 @@ bool ci_lazy_methodst::operator()(

debug() << "CI lazy methods: removed "
<< symbol_table.symbols.size() - keep_symbols.symbols.size()
<< " unreaclass_hierarchyable methods and globals"
<< eom;
<< " unreachable methods and globals" << eom;

symbol_table.swap(keep_symbols);

Expand Down