diff --git a/src/math/lp/nla_expr.h b/src/math/lp/nla_expr.h index e9717f4d6..0e7d287c0 100644 --- a/src/math/lp/nla_expr.h +++ b/src/math/lp/nla_expr.h @@ -334,9 +334,12 @@ public: k--; } } - + SASSERT(powers.size() == 0); while(k ++ < i) children().pop_back(); + + if (children().size() == 0) + *this = scalar(T(1)); return *this; }