summaryrefslogtreecommitdiff
path: root/src/theory/arith/arith_static_learner.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-08-03 20:39:25 +0000
committerMorgan Deters <mdeters@gmail.com>2012-08-03 20:39:25 +0000
commit3daaecd22fe5f6147cb08e5a4e08177b33a2daa2 (patch)
tree46cb65c3673a5678a7779ff970aea9460233f1f1 /src/theory/arith/arith_static_learner.cpp
parente26a44d5f98a9953dffeb07b29a21e7efd501684 (diff)
fix uses of getMetaKind() from outside the expr package. (they now use isConst() and isVar() as appropriate)
also some base infrastructure for the new ::isConst().
Diffstat (limited to 'src/theory/arith/arith_static_learner.cpp')
-rw-r--r--src/theory/arith/arith_static_learner.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/theory/arith/arith_static_learner.cpp b/src/theory/arith/arith_static_learner.cpp
index a478f3cfb..46b0264ea 100644
--- a/src/theory/arith/arith_static_learner.cpp
+++ b/src/theory/arith/arith_static_learner.cpp
@@ -135,7 +135,7 @@ void ArithStaticLearner::process(TNode n, NodeBuilder<>& learned, const TNodeSet
case IMPLIES:
// == 3-FINITE VALUE SET : Collect information ==
if(n[1].getKind() == EQUAL &&
- n[1][0].getMetaKind() == metakind::VARIABLE &&
+ n[1][0].isVar() &&
defTrue.find(n) != defTrue.end()){
Node eqTo = n[1][1];
Node rewriteEqTo = Rewriter::rewrite(eqTo);
@@ -166,12 +166,12 @@ void ArithStaticLearner::process(TNode n, NodeBuilder<>& learned, const TNodeSet
break;
}
Node var, c1, c2;
- if(n[0][0].getMetaKind() == metakind::VARIABLE &&
- n[0][1].getMetaKind() == metakind::CONSTANT) {
+ if(n[0][0].isVar() &&
+ n[0][1].isConst()) {
var = n[0][0];
c1 = n[0][1];
- } else if(n[0][1].getMetaKind() == metakind::VARIABLE &&
- n[0][0].getMetaKind() == metakind::CONSTANT) {
+ } else if(n[0][1].isVar() &&
+ n[0][0].isConst()) {
var = n[0][1];
c1 = n[0][0];
} else {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback