// bit-blasting atoms on queue
- for (unsigned i = 0; i < d_bitblastQueue.size(); ++i) {
- d_bitblaster->bbAtom(d_bitblastQueue[i]);
- // would be nice to clear the bitblastQueue?
+ while (!d_bitblastQueue.empty()) {
+ TNode node = d_bitblastQueue.front();
+ d_bitblaster->bbAtom(node);
+ d_bitblastQueue.pop();
}
// bit-blaster propagation
/** Bitblaster */
Bitblaster* d_bitblaster;
- context::CDList<TNode> d_bitblastQueue;
+ context::CDQueue<TNode> d_bitblastQueue;
/** Context dependent set of atoms we already propagated */
context::CDHashSet<TNode, TNodeHashFunction> d_alreadyPropagatedSet;