diff options
author | Tim King <taking@cs.nyu.edu> | 2010-05-20 22:51:48 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-05-20 22:51:48 +0000 |
commit | 5321d62fce6c747fa9d11e9df5b2ef8c4e25de21 (patch) | |
tree | 87685c6a9f32d99f09de28a02fc80378a94b6ec9 /src/theory/theory_engine.h | |
parent | ff70395fd3dcde9f68eda1c6a8bd70e6491f7458 (diff) |
Added the division symbol to the parser, and minimal support for it in TheoryArith. Also directly hacked in support for theoryOf() to work for equalities where the left hand is a variable of type real.
Diffstat (limited to 'src/theory/theory_engine.h')
-rw-r--r-- | src/theory/theory_engine.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/theory/theory_engine.h b/src/theory/theory_engine.h index b559da562..c8b93e8b4 100644 --- a/src/theory/theory_engine.h +++ b/src/theory/theory_engine.h @@ -221,8 +221,15 @@ public: if(lhs.getKind() == kind::VARIABLE) { // FIXME: we don't yet have a Type-to-Theory map. When we do, // look up the type of the LHS and return that Theory (?) - return &d_uf; - //Unimplemented(); + + //The following JUST hacks around this lack of a table + TypeNode type_of_n = lhs.getType(); + if(type_of_n.isReal()){ + return &d_arith; + }else{ + return &d_uf; + //Unimplemented(); + } } else { return theoryOf(lhs); } |