diff options
author | Guy <guy@Guy-X260> | 2016-09-16 16:26:30 -0700 |
---|---|---|
committer | Guy <guy@Guy-X260> | 2016-09-16 16:26:30 -0700 |
commit | 0e68cfe050946d1ed9544dffcbd5e75be0e6f22f (patch) | |
tree | 1c968358d3ff2f5bc592a89ca52d2c5f91fdb54f /src/theory/uf | |
parent | 976ee5b66b7584b9fe46eab1facf5e5f857e723f (diff) |
Handling a corner case where a ROW's guard is a constant disequality.
If this is a simple proof (e.g., just 1 != 2), change the d_id from Transitivity to ConstantDisequality
Diffstat (limited to 'src/theory/uf')
-rw-r--r-- | src/theory/uf/equality_engine.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/theory/uf/equality_engine.cpp b/src/theory/uf/equality_engine.cpp index f98ad556f..5d929a708 100644 --- a/src/theory/uf/equality_engine.cpp +++ b/src/theory/uf/equality_engine.cpp @@ -987,7 +987,14 @@ void EqualityEngine::explainEquality(TNode t1, TNode t2, bool polarity, std::vec } if (eqp) { - if(eqp->d_children.size() == 1) { + if (eqp->d_children.size() == 0) { + // Corner case where this is actually a disequality between two constants + Debug("pf::ee") << "Encountered a constant disequality (not a transitivity proof): " + << eqp->d_node << std::endl; + Assert(eqp->d_node[0][0].isConst()); + Assert(eqp->d_node[0][1].isConst()); + eqp->d_id = MERGED_THROUGH_CONSTANTS; + } else if (eqp->d_children.size() == 1) { // The transitivity proof has just one child. Simplify. EqProof* temp = eqp->d_children[0]; eqp->d_children.clear(); |