Skip to content

Commit 6c33e07

Browse files
committed
Fix handling of symbols with no value
Because there was previously an assumption that all symbols in the symbol table had values and it is more straight forward to make the this code deal with that than to add an invariant.
1 parent 3bc5ee4 commit 6c33e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/smt2_incremental/smt2_incremental_decision_procedure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void smt2_incremental_decision_proceduret::define_dependent_functions(
6767
{
6868
const irep_idt &identifier = symbol_expr->get_identifier();
6969
const symbolt *symbol = nullptr;
70-
if(!ns.lookup(identifier, symbol))
70+
if(!ns.lookup(identifier, symbol) && !symbol->value.is_nil())
7171
{
7272
if(dependencies_needed(symbol->value))
7373
continue;

0 commit comments

Comments
 (0)