summaryrefslogtreecommitdiff
path: root/src/theory
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2017-04-28 15:48:13 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2017-04-28 15:48:13 -0500
commit4a4b05fa4bc52a53a33b8eaa542c3a5e1d603b94 (patch)
treef83d2c423dbd3e72f195ae23bf958c12ddd34c0a /src/theory
parent24385c4c5f9c17610f10ed2f8d44c10a16c1567f (diff)
Fix bug for real division.
Diffstat (limited to 'src/theory')
-rw-r--r--src/theory/arith/theory_arith_private.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/theory/arith/theory_arith_private.cpp b/src/theory/arith/theory_arith_private.cpp
index 4f62f4451..f40e7204a 100644
--- a/src/theory/arith/theory_arith_private.cpp
+++ b/src/theory/arith/theory_arith_private.cpp
@@ -238,8 +238,8 @@ static Node getSkolemConstrainedToDivisionTotal(
if(total_div_node.getAttribute(LinearIntDivAttr(), total_div_skolem)) {
return total_div_skolem;
}
- total_div_skolem = nm->mkSkolem("DivisionTotalSkolem", nm->integerType(),
- "the result of an intdiv-by-k term");
+ total_div_skolem = nm->mkSkolem("DivisionTotalSkolem", nm->realType(),
+ "the result of a div term");
total_div_node.setAttribute(LinearIntDivAttr(), total_div_skolem);
Node zero = mkRationalNode(0);
Node lemma = den.eqNode(zero).iteNode(
@@ -258,8 +258,8 @@ static Node getSkolemConstrainedToDivision(
if(div_node.getAttribute(LinearIntDivAttr(), div_skolem)) {
return div_skolem;
}
- div_skolem = nm->mkSkolem("DivisionSkolem", nm->integerType(),
- "the result of an intdiv-by-k term");
+ div_skolem = nm->mkSkolem("DivisionSkolem", nm->realType(),
+ "the result of a div term");
div_node.setAttribute(LinearIntDivAttr(), div_skolem);
Node div0 = nm->mkNode(APPLY_UF, div0Func, num);
Node total_div = getSkolemConstrainedToDivisionTotal(num, den, out);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback