diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-04-14 21:28:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 21:28:57 -0500 |
commit | 4fb65ae4d0018dc01fe79df8bbf7f3ec0ff583b9 (patch) | |
tree | 8237d54731d6c0190cd2c56b2b594a6f126c3485 /src/theory/quantifiers/inst_match.h | |
parent | be6719144c88921fa39823976376961fe03f17a7 (diff) |
Fix combinations of cegqi and non-standard triggers (#4271)
Counterexample-guided instantiation may produce quantified formulas with INST_CONSTANT nodes, which are also used as patterns for non-standard triggers for E-matching. This fixes a few combinations that were problematic.
Fixes #4250, fixes #4254, fixes #4269 and fixes #4281.
Diffstat (limited to 'src/theory/quantifiers/inst_match.h')
-rw-r--r-- | src/theory/quantifiers/inst_match.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/quantifiers/inst_match.h b/src/theory/quantifiers/inst_match.h index d298c43a8..324b2c736 100644 --- a/src/theory/quantifiers/inst_match.h +++ b/src/theory/quantifiers/inst_match.h @@ -79,15 +79,15 @@ public: out << " )"; } /** get the i^th term in the instantiation */ - Node get(int i) const; + Node get(size_t i) const; /** set/overwrites the i^th field in the instantiation with n */ - void setValue( int i, TNode n ); + void setValue(size_t i, TNode n); /** set the i^th term in the instantiation to n * * This method returns true if the i^th field was previously uninitialized, * or is equivalent to n modulo the equalities given by q. */ - bool set(EqualityQuery* q, int i, TNode n); + bool set(EqualityQuery* q, size_t i, TNode n); }; inline std::ostream& operator<<(std::ostream& out, const InstMatch& m) { |