summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/alpha_equivalence.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-28 18:32:15 -0500
committerGitHub <noreply@github.com>2018-08-28 18:32:15 -0500
commit395aaff1ed21b37b49cba1a453a26effb2f4ca59 (patch)
tree60f99e0fb3b7aa9fa4191426b5b163c286d96f9d /src/theory/quantifiers/alpha_equivalence.cpp
parent85842c3ad03ab94586c6b34eb01149f449bff52d (diff)
Split term canonize utility to own file and document (#2398)
Diffstat (limited to 'src/theory/quantifiers/alpha_equivalence.cpp')
-rw-r--r--src/theory/quantifiers/alpha_equivalence.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/theory/quantifiers/alpha_equivalence.cpp b/src/theory/quantifiers/alpha_equivalence.cpp
index f9b9e909b..0f9d1acb1 100644
--- a/src/theory/quantifiers/alpha_equivalence.cpp
+++ b/src/theory/quantifiers/alpha_equivalence.cpp
@@ -14,7 +14,7 @@
**/
#include "theory/quantifiers/alpha_equivalence.h"
-#include "theory/quantifiers/term_util.h"
+#include "theory/quantifiers/term_canonize.h"
using namespace CVC4;
using namespace std;
@@ -23,7 +23,7 @@ using namespace CVC4::theory::quantifiers;
using namespace CVC4::kind;
struct sortTypeOrder {
- TermUtil* d_tu;
+ TermCanonize* d_tu;
bool operator() (TypeNode i, TypeNode j) {
return d_tu->getIdForType( i )<d_tu->getIdForType( j );
}
@@ -100,7 +100,7 @@ Node AlphaEquivalence::reduceQuantifier( Node q ) {
Assert( q.getKind()==FORALL );
Trace("aeq") << "Alpha equivalence : register " << q << std::endl;
//construct canonical quantified formula
- Node t = d_qe->getTermUtil()->getCanonicalTerm( q[1], true );
+ Node t = d_qe->getTermCanonize()->getCanonicalTerm(q[1], true);
Trace("aeq") << " canonical form: " << t << std::endl;
//compute variable type counts
std::map< TypeNode, int > typ_count;
@@ -113,7 +113,7 @@ Node AlphaEquivalence::reduceQuantifier( Node q ) {
}
}
sortTypeOrder sto;
- sto.d_tu = d_qe->getTermUtil();
+ sto.d_tu = d_qe->getTermCanonize();
std::sort( typs.begin(), typs.end(), sto );
Trace("aeq-debug") << " ";
Node ret = AlphaEquivalenceTypeNode::registerNode( &d_ae_typ_trie, d_qe, q, t, typs, typ_count );
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback