diff options
author | ajreynol <andrew.j.reynolds@gmail.com> | 2015-01-24 19:42:21 +0100 |
---|---|---|
committer | ajreynol <andrew.j.reynolds@gmail.com> | 2015-01-24 19:42:21 +0100 |
commit | 79ad2d6ec3ebd5c45dce4e13e895d0bed0a6f525 (patch) | |
tree | 7524e1376337c2b3d6544eeda832f8f3d574b409 /src/theory/quantifiers/quant_util.h | |
parent | 73cecf65a750b9ee59486083af5ee55734da0a6a (diff) |
Variable patterns only look at eligible terms. Minor refactoring of quantifiers check for sat.
Diffstat (limited to 'src/theory/quantifiers/quant_util.h')
-rw-r--r-- | src/theory/quantifiers/quant_util.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/theory/quantifiers/quant_util.h b/src/theory/quantifiers/quant_util.h index c1c39fa0f..116211bfb 100644 --- a/src/theory/quantifiers/quant_util.h +++ b/src/theory/quantifiers/quant_util.h @@ -28,7 +28,7 @@ namespace CVC4 { namespace theory { class QuantifiersEngine; - + class QuantArith { public: @@ -112,6 +112,9 @@ public: class QuantLtePartialInst { private: + // was this module invoked + bool d_wasInvoked; + //representatives per type std::map< TypeNode, std::vector< Node > > d_reps; // should we instantiate quantifier std::map< Node, bool > d_do_inst; @@ -125,7 +128,7 @@ private: /** reset */ void reset(); /** get instantiations */ - void getPartialInstantiations( std::vector< Node >& conj, Node q, Node bvl, + void getPartialInstantiations( std::vector< Node >& conj, Node q, Node bvl, std::vector< Node >& vars, std::vector< Node >& inst, std::vector< TypeNode >& types, unsigned index ); /** get eligible inst variables */ void getEligibleInstVars( Node n, std::map< Node, bool >& vars ); @@ -135,6 +138,8 @@ public: bool addQuantifier( Node q ); /** get instantiations */ void getInstantiations( std::vector< Node >& lemmas ); + /** was invoked */ + bool wasInvoked() { return d_wasInvoked; } }; |