* and the above registration of leaves, this should ensure that
* all subterms in the entire tree were registered in
* reverse-topological order. */
- for(std::list<TNode>::reverse_iterator i = toReg.rend();
- i != toReg.rbegin();
+ for(std::list<TNode>::reverse_iterator i = toReg.rbegin();
+ i != toReg.rend();
++i) {
TNode n = *i;
*/
for(Link* Px = ecChild->getFirst(); Px != NULL; Px = Px->next ){
if(equiv(n, Px->data)){
- d_pending.push_back(n.eqNode(Px->data));
+ Node pend = n.eqNode(Px->data);
+ d_pending.push_back(pend);
}
}
void TheoryUF::merge(){
while(d_currentPendingIdx < d_pending.size() ) {
- TNode assertion = d_pending[d_currentPendingIdx];
+ Node assertion = d_pending[d_currentPendingIdx];
d_currentPendingIdx = d_currentPendingIdx + 1;
TNode x = assertion[0];