summaryrefslogtreecommitdiff
path: root/src/theory/arith
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/arith')
-rw-r--r--src/theory/arith/nl_model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/arith/nl_model.cpp b/src/theory/arith/nl_model.cpp
index eff810522..54ae4c52a 100644
--- a/src/theory/arith/nl_model.cpp
+++ b/src/theory/arith/nl_model.cpp
@@ -1200,8 +1200,8 @@ bool NlModel::getApproximateSqrt(Node c, Node& l, Node& u, unsigned iter) const
Rational curr_sq = curr * curr;
if (curr_sq == rc)
{
- rl = curr_sq;
- ru = curr_sq;
+ rl = curr;
+ ru = curr;
break;
}
else if (curr_sq < rc)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback