diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2013-06-28 15:46:13 -0500 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2013-06-28 15:46:20 -0500 |
commit | a23c5715ce7cd279d83e75b232fd24b5c53032ba (patch) | |
tree | d61ea9030f7d50995942d77e912a07c656d6807a /src/theory/quantifiers/first_order_model.cpp | |
parent | 3355cd887a424ace6bc7b51e63f8adc90d24e3a9 (diff) |
More bug fixes for interval models.
Diffstat (limited to 'src/theory/quantifiers/first_order_model.cpp')
-rw-r--r-- | src/theory/quantifiers/first_order_model.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/theory/quantifiers/first_order_model.cpp b/src/theory/quantifiers/first_order_model.cpp index 60d62391b..be6844a1e 100644 --- a/src/theory/quantifiers/first_order_model.cpp +++ b/src/theory/quantifiers/first_order_model.cpp @@ -665,4 +665,16 @@ bool FirstOrderModelFmc::isInterval(Node n) { Node FirstOrderModelFmc::getInterval( Node lb, Node ub ){ return NodeManager::currentNM()->mkNode( APPLY_UF, intervalOp, lb, ub ); -}
\ No newline at end of file +} + +bool FirstOrderModelFmc::isInRange( Node v, Node i ) { + for( unsigned b=0; b<2; b++ ){ + if( !isStar( i[b] ) ){ + if( ( b==0 && i[b].getConst<Rational>() > v.getConst<Rational>() ) || + ( b==1 && i[b].getConst<Rational>() <= v.getConst<Rational>() ) ){ + return false; + } + } + } + return true; +} |