// be added to the packet represented by this state.
//
bool State::canAddInsnClass(unsigned InsnClass) const {
- for (std::set<unsigned>::iterator SI = stateInfo.begin();
+ for (std::set<unsigned>::const_iterator SI = stateInfo.begin();
SI != stateInfo.end(); ++SI) {
if (~*SI & InsnClass)
return true;
// Add the new transition.
bool Added = stateTransitions[T->from].insert(T).second;
assert(Added && "Cannot have multiple states for the same input");
+ (void)Added;
}