From 80afd586eb0865efcc38aa14833d682f1b7cc27f Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 24 Aug 2012 23:23:34 +0000 Subject: * disallow internal uses of mkVar() (you have to mkSkolem()) * add support for mkBoundVar() (BOUND_VAR_LISTs in quantifiers must be bound vars) --- src/theory/arith/dio_solver.cpp | 2 +- src/theory/arith/theory_arith_instantiator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/theory/arith') diff --git a/src/theory/arith/dio_solver.cpp b/src/theory/arith/dio_solver.cpp index e3eae88b3..83ba49257 100644 --- a/src/theory/arith/dio_solver.cpp +++ b/src/theory/arith/dio_solver.cpp @@ -28,7 +28,7 @@ namespace arith { inline Node makeIntegerVariable(){ NodeManager* curr = NodeManager::currentNM(); - return curr->mkVar(curr->integerType()); + return curr->mkSkolem(curr->integerType()); } DioSolver::DioSolver(context::Context* ctxt) : diff --git a/src/theory/arith/theory_arith_instantiator.cpp b/src/theory/arith/theory_arith_instantiator.cpp index 1682897ae..51e3a6638 100644 --- a/src/theory/arith/theory_arith_instantiator.cpp +++ b/src/theory/arith/theory_arith_instantiator.cpp @@ -412,7 +412,7 @@ Node InstantiatorTheoryArith::getDelta( Node n ){ if( it==d_deltas.end() ){ std::ostringstream os; os << "delta_" << d_deltas.size(); - Node delta = NodeManager::currentNM()->mkVar( os.str(), n.getType() ); + Node delta = NodeManager::currentNM()->mkSkolem( os.str(), n.getType() ); d_deltas[ n.getType() ] = delta; Node gt = NodeManager::currentNM()->mkNode( GT, delta, NodeManager::currentNM()->mkConst( Rational(0) ) ); //add split -- cgit v1.2.3