summaryrefslogtreecommitdiff
path: root/src/theory/arith
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-02-06 19:12:29 -0600
committerGitHub <noreply@github.com>2020-02-06 17:12:29 -0800
commitc98585d9913878cfe5328fe98fb4357f911b29b0 (patch)
treedfa4b4e2b29f69489243778b8beb57e5581c4ecd /src/theory/arith
parentbabbe0e30d769b5f68cb3f36820fbb5e176de7c5 (diff)
Fix exact sqrt (#3721)
Co-authored-by: Ahmed Irfan <43099566+ahmed-irfan@users.noreply.github.com>
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