Skip to content

Commit fa657ac

Browse files
committed
Fix check on value emptiness in polynomial acceleration
Without z3 installed the regession tests for this don't correctly exercise this part of the code. This fix addresses a bug which appears to have been introduced in a previous refactor to replace `nil_typet` with `optionalt<typet>`.
1 parent cce4503 commit fa657ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-instrument/accelerate/polynomial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exprt polynomialt::to_expr()
3535
t_it!=m_it->terms.end();
3636
++t_it)
3737
{
38-
if(itype.has_value())
38+
if(!itype.has_value())
3939
{
4040
itype=t_it->var.type();
4141
}

0 commit comments

Comments
 (0)