Skip to content

Commit 84e5518

Browse files
author
Daniel Kroening
committed
symbol_table API
1 parent bc4f0bb commit 84e5518

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hw-cbmc/gen_interface.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ void gen_interfacet::gen_module(
215215
std::set<irep_idt>::iterator
216216
in_progress_it=modules_in_progress.insert(module.name).first;
217217

218-
forall_symbol_module_map(it, symbol_table.symbol_module_map, module.name)
218+
for(auto it=symbol_table.symbol_module_map.lower_bound(module.name);
219+
it!=symbol_table.symbol_module_map.upper_bound(module.name);
220+
it++)
219221
{
220222
const symbolt &symbol=lookup(it->second);
221223

@@ -231,7 +233,9 @@ void gen_interfacet::gen_module(
231233

232234
os << "struct module_" << module.base_name << " {\n";
233235

234-
forall_symbol_module_map(it, symbol_table.symbol_module_map, module.name)
236+
for(auto it=symbol_table.symbol_module_map.lower_bound(module.name);
237+
it!=symbol_table.symbol_module_map.upper_bound(module.name);
238+
it++)
235239
{
236240
const symbolt &symbol=lookup(it->second);
237241

0 commit comments

Comments
 (0)