git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1247
e59a4935-1847-0410-ae03-
e826735625c1
}
break;
+ case BEEV::WRITE:
+ if (children[0].GetKind() == BEEV::WRITE)
+ {
+ // If the indexes of two writes are the same, then discard the inner write.
+ if (children[1] == children[0][1])
+ {
+ result = NodeFactory::CreateArrayTerm(BEEV::WRITE, children[0].GetIndexWidth(), children[0].GetValueWidth(), children[0][0], children[1], children[2]);
+ }
+ }
+ break;
case BEEV::READ:
if (children[0].GetKind() == BEEV::WRITE)