mutable TransitionMap Transitions;
State();
- State(const State &S);
bool operator<(const State &s) const {
return stateNum < s.stateNum;
State::State() :
stateNum(currentStateNum++), isInitial(false) {}
-
-State::State(const State &S) :
- stateNum(currentStateNum++), isInitial(S.isInitial),
- stateInfo(S.stateInfo) {}
-
DFA::DFA(): currentState(nullptr) {}
//
current->canAddInsnClass(InsnClass)) {
const State *NewState;
current->AddInsnClass(InsnClass, NewStateResources);
- assert(NewStateResources.size() && "New states must be generated");
+ assert(!NewStateResources.empty() && "New states must be generated");
//
// If we have seen this state before, then do not create a new state.