Skip to content

Commit 69a9528

Browse files
author
Daniel Kroening
authored
Merge pull request #4932 from diffblue/use_sorted_symbol_names
use sorted_symbol_names in show_symbol_table_brief_plain
2 parents 565542d + 4cd5ab1 commit 69a9528

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/goto-programs/show_symbol_table.cpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,9 @@ void show_symbol_table_brief_plain(
3131
std::ostream &out)
3232
{
3333
// we want to sort alphabetically
34-
std::set<std::string> symbols;
35-
36-
for(const auto &symbol_pair : symbol_table.symbols)
37-
{
38-
symbols.insert(id2string(symbol_pair.first));
39-
}
40-
4134
const namespacet ns(symbol_table);
4235

43-
for(const std::string &id : symbols)
36+
for(const auto &id : symbol_table.sorted_symbol_names())
4437
{
4538
const symbolt &symbol=ns.lookup(id);
4639

0 commit comments

Comments
 (0)