summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers_engine.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2017-11-14 19:06:49 -0600
committerGitHub <noreply@github.com>2017-11-14 19:06:49 -0600
commit85df7998e4362e0a9c796146d07d7b9e91045a31 (patch)
tree0ab2e33e807651386cd041257c1abff2bb769057 /src/theory/quantifiers_engine.h
parent748e20967ae7698f6b545a5128633865701aeb2d (diff)
Make QEffort an enum (#1366)
* Make QEffort an enum. * Format * Minor * Fix
Diffstat (limited to 'src/theory/quantifiers_engine.h')
-rw-r--r--src/theory/quantifiers_engine.h27
1 files changed, 10 insertions, 17 deletions
diff --git a/src/theory/quantifiers_engine.h b/src/theory/quantifiers_engine.h
index ffede2a5b..37691488e 100644
--- a/src/theory/quantifiers_engine.h
+++ b/src/theory/quantifiers_engine.h
@@ -44,7 +44,11 @@ class InstantiationNotify {
public:
InstantiationNotify(){}
virtual ~InstantiationNotify() {}
- virtual bool notifyInstantiation( unsigned quant_e, Node q, Node lem, std::vector< Node >& terms, Node body ) = 0;
+ virtual bool notifyInstantiation(QuantifiersModule::QEffort quant_e,
+ Node q,
+ Node lem,
+ std::vector<Node>& terms,
+ Node body) = 0;
virtual void filterInstantiations() = 0;
};
@@ -141,8 +145,6 @@ private:
std::unique_ptr<quantifiers::Skolemize> d_skolemize;
/** term enumeration utility */
std::unique_ptr<quantifiers::TermEnumeration> d_term_enum;
-
- private:
/** instantiation engine */
quantifiers::InstantiationEngine* d_inst_engine;
/** model engine */
@@ -174,26 +176,17 @@ private:
/** quantifiers instantiation propagtor */
quantifiers::InstPropagator * d_inst_prop;
- public: // effort levels (TODO : make an enum and use everywhere #1293)
- enum {
- QEFFORT_CONFLICT,
- QEFFORT_STANDARD,
- QEFFORT_MODEL,
- QEFFORT_LAST_CALL,
- //none
- QEFFORT_NONE,
- };
-private: //this information is reset during check
- /** current effort level */
- unsigned d_curr_effort_level;
+ private: //this information is reset during check
+ /** current effort level */
+ QuantifiersModule::QEffort d_curr_effort_level;
/** are we in conflict */
bool d_conflict;
- context::CDO< bool > d_conflict_c;
+ context::CDO<bool> d_conflict_c;
/** has added lemma this round */
bool d_hasAddedLemma;
/** whether to use model equality engine */
bool d_useModelEe;
-private:
+ private:
/** list of all quantifiers seen */
std::map< Node, bool > d_quants;
/** quantifiers reduced */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback