Skip to content

Commit 07e49b5

Browse files
author
Owen Jones
committed
Minor improvement to initialize()
1 parent 2bd1630 commit 07e49b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pointer-analysis/local_value_set_analysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ void local_value_set_analysist::initialize(const goto_programt &fun)
6666
external_symbols.end());
6767

6868
auto &initial_state=(*this)[fun.instructions.begin()].value_set;
69+
const external_value_set_typet
70+
default_mode_for_new_evs=external_value_set_typet::ROOT_OBJECT;
6971

7072
// Now insert fresh symbols for each external symbol,
7173
// indicating an unknown external points-to set.
@@ -83,7 +85,7 @@ void local_value_set_analysist::initialize(const goto_programt &fun)
8385
external_value_set_exprt extsym_var(
8486
extsym.type().subtype(),
8587
constant_exprt(extsym_name, string_typet()),
86-
external_value_set_typet::ROOT_OBJECT,
88+
default_mode_for_new_evs,
8789
true);
8890
initial_state.insert(extsym_entry.object_map, extsym_var);
8991
}

0 commit comments

Comments
 (0)