From 4a4b05fa4bc52a53a33b8eaa542c3a5e1d603b94 Mon Sep 17 00:00:00 2001 From: ajreynol Date: Fri, 28 Apr 2017 15:48:13 -0500 Subject: Fix bug for real division. --- src/theory/arith/theory_arith_private.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/theory') 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); -- cgit v1.2.3