Skip to content

Commit 53fe0e5

Browse files
committed
Fix scope to contain an set of if conditions
1 parent 5e16a43 commit 53fe0e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/goto-programs/scope_tree.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <goto-programs/goto_program.h>
1616

17+
#include <unordered_set>
18+
1719
class code_frontend_declt;
1820

1921
typedef std::size_t node_indext;
@@ -95,8 +97,7 @@ class scope_treet
9597
struct declaration_statet
9698
{
9799
goto_programt::targett instruction;
98-
optionalt<irep_idt> label;
99-
std::unordered_map<irep_idt, irep_id_hash> if_conditions_added;
100+
std::unordered_set<irep_idt, irep_id_hash> if_conditions_added;
100101
};
101102

102103
scope_treet()

0 commit comments

Comments
 (0)