diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2012-06-17 16:08:38 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2012-06-17 16:08:38 +0000 |
commit | 037134f3dd1311c5184d61d7e46315ea384a3eba (patch) | |
tree | b0cfc97544ec8e7135f91da8cf9473c5bdfd9dbc /src/theory/uf | |
parent | 9f875caa97a4943ed5d56f6472745828e197909d (diff) |
fixing wrong assertion
Diffstat (limited to 'src/theory/uf')
-rw-r--r-- | src/theory/uf/equality_engine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/theory/uf/equality_engine.cpp b/src/theory/uf/equality_engine.cpp index ac6cd17fa..54fe8e508 100644 --- a/src/theory/uf/equality_engine.cpp +++ b/src/theory/uf/equality_engine.cpp @@ -1658,7 +1658,11 @@ void EqualityEngine::getDisequalities(bool allowConstants, EqualityNodeId classI } // Representative of the other member EqualityNodeId toCompareRep = getEqualityNode(toCompare).getFind(); - Assert(toCompareRep != classId, "Otherwise we are in conflict"); + if (toCompareRep == classId) { + // We're in conflict, so we will send it out from merge + out.clear(); + return; + } // Check if we already have this one if (alreadyVisited.count(toCompareRep) == 0) { // Mark as visited |