Skip to content

Commit 973b309

Browse files
authored
Merge pull request #2073 from tautschnig/reset-namespace
Reset namespace after symbolic execution
2 parents 6b8583d + d475abc commit 973b309

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/goto-symex/symex_main.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ void goto_symext::symex_with_state(
208208
// execution, so return the names generated through symbolic execution
209209
// through `new_symbol_table`.
210210
new_symbol_table = state.symbol_table;
211+
// reset the namespace back to a sane state as state.symbol_table might go out
212+
// of scope
213+
ns = namespacet(outer_symbol_table);
211214
}
212215

213216
void goto_symext::resume_symex_from_saved_state(

0 commit comments

Comments
 (0)