summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/quant_conflict_find.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-06-11 17:30:26 -0500
committerGitHub <noreply@github.com>2019-06-11 17:30:26 -0500
commit1edbc2ea82ab15110942acfbbfa0859bcfd7dac4 (patch)
treee25ec25d5d8d38af18c049f4119f3f6d2f1d1668 /src/theory/quantifiers/quant_conflict_find.h
parent3c2099bc67595bc015eb3b491e1110b1e94c0d25 (diff)
Minor cleaning of conflict-based instantiation (#2966)
Diffstat (limited to 'src/theory/quantifiers/quant_conflict_find.h')
-rw-r--r--src/theory/quantifiers/quant_conflict_find.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/theory/quantifiers/quant_conflict_find.h b/src/theory/quantifiers/quant_conflict_find.h
index f22910191..7e4eb517d 100644
--- a/src/theory/quantifiers/quant_conflict_find.h
+++ b/src/theory/quantifiers/quant_conflict_find.h
@@ -242,14 +242,30 @@ public:
bool needsCheck(Theory::Effort level) override;
/** reset round */
void reset_round(Theory::Effort level) override;
- /** check */
+ /** check
+ *
+ * This method attempts to construct a conflicting or propagating instance.
+ * If such an instance exists, then it makes a call to
+ * Instantiation::addInstantiation or QuantifiersEngine::addLemma.
+ */
void check(Theory::Effort level, QEffort quant_e) override;
private:
- bool d_needs_computeRelEqr;
-public:
- void computeRelevantEqr();
-private:
+ /** check quantified formula
+ *
+ * This method is called by the above check method for each quantified
+ * formula q. It attempts to find a conflicting or propagating instance for
+ * q, depending on the effort level (d_effort).
+ *
+ * isConflict: this is set to true if we discovered a conflicting instance.
+ * This flag may be set instead of d_conflict if --qcf-all-conflict is true,
+ * in which we continuing adding all conflicts.
+ * addedLemmas: tracks the total number of lemmas added, and is incremented by
+ * this method when applicable.
+ */
+ void checkQuantifiedFormula(Node q, bool& isConflict, unsigned& addedLemmas);
+
+ private:
void debugPrint( const char * c );
//for debugging
std::vector< Node > d_quants;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback