Skip to content
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
9 changes: 5 additions & 4 deletions src/goto-programs/slice_global_inits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ Date: December 2016

\*******************************************************************/

#include <unordered_set>

#include <analyses/call_graph.h>

#include <util/namespace.h>
#include <util/std_expr.h>
#include <util/cprover_prefix.h>
#include <util/prefix.h>
#include <util/hash_cont.h>

#include <goto-programs/goto_functions.h>
#include <goto-programs/remove_skip.h>
Expand Down Expand Up @@ -43,7 +44,7 @@ void slice_global_inits(
const call_grapht::grapht &graph=call_graph.graph;

std::list<irep_idt> worklist;
hash_set_cont<irep_idt, irep_id_hash> functions_reached;
std::unordered_set<irep_idt, irep_id_hash> functions_reached;

const irep_idt entry_point=goto_functionst::entry_point();

Expand Down Expand Up @@ -91,7 +92,7 @@ void slice_global_inits(
}
}

hash_set_cont<irep_idt, irep_id_hash> symbols;
std::unordered_set<irep_idt, irep_id_hash> symbols;
};

symbol_collectort visitor;
Expand All @@ -111,7 +112,7 @@ void slice_global_inits(
}
}

const hash_set_cont<irep_idt, irep_id_hash> &symbols=visitor.symbols;
const std::unordered_set<irep_idt, irep_id_hash> &symbols=visitor.symbols;

// now remove unnecessary initializations

Expand Down