diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-08-24 23:23:34 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-08-24 23:23:34 +0000 |
commit | 80afd586eb0865efcc38aa14833d682f1b7cc27f (patch) | |
tree | aac37b28e0330bf3b72083e979ae94ee71918771 /src/theory/arith | |
parent | 3619c784bd5dd4b91ab0a2ad429ea145636d3424 (diff) |
* disallow internal uses of mkVar() (you have to mkSkolem())
* add support for mkBoundVar() (BOUND_VAR_LISTs in quantifiers must be bound vars)
Diffstat (limited to 'src/theory/arith')
-rw-r--r-- | src/theory/arith/dio_solver.cpp | 2 | ||||
-rw-r--r-- | src/theory/arith/theory_arith_instantiator.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 |