Skip to content

Commit 6b5c687

Browse files
committed
Do not construct a namespace ad hoc when the environment provides one
The empty namespace will lack symbol information that may be needed, and is just unnecessary anyway.
1 parent 884b4ef commit 6b5c687

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/goto-instrument/cover_instrument_assume.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ void cover_assume_instrumentert::instrument(
2323
{
2424
if(i_it->is_assume())
2525
{
26-
const auto assume_condition =
27-
expr2c(i_it->condition(), namespacet{symbol_tablet()});
26+
const auto assume_condition = expr2c(i_it->condition(), ns);
2827
const auto comment_before =
2928
"assert(false) before assume(" + assume_condition + ")";
3029
const auto comment_after =

0 commit comments

Comments
 (0)