Skip to content
Snippets Groups Projects
Commit f9de6271 authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Condition logic fix

parent ce1827d9
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ bool StateElimination::TransitionExtendedNFA::operator<( const StateElimination: ...@@ -204,7 +204,7 @@ bool StateElimination::TransitionExtendedNFA::operator<( const StateElimination:
{ {
if( m_from != x.m_from ) if( m_from != x.m_from )
return m_from < x.m_from; return m_from < x.m_from;
else if( ! ( m_regexp == x.m_regexp ) ) else if( m_regexp != x.m_regexp )
return m_regexp < x.m_regexp; return m_regexp < x.m_regexp;
else else
return m_to < x.m_to; return m_to < x.m_to;
......
...@@ -88,9 +88,9 @@ Brzozowski::BrzozowskiTransition::BrzozowskiTransition( const RegExp & from, con ...@@ -88,9 +88,9 @@ Brzozowski::BrzozowskiTransition::BrzozowskiTransition( const RegExp & from, con
   
bool Brzozowski::BrzozowskiTransition::operator<( const BrzozowskiTransition & x ) const bool Brzozowski::BrzozowskiTransition::operator<( const BrzozowskiTransition & x ) const
{ {
if( ! ( m_from == x.m_from ) ) if( m_from != x.m_from )
return m_from < x.m_from; return m_from < x.m_from;
else if( ! ( m_regexpSymbol == x.m_regexpSymbol ) ) else if( m_regexpSymbol != x.m_regexpSymbol )
return m_regexpSymbol < x.m_regexpSymbol; return m_regexpSymbol < x.m_regexpSymbol;
else else
return m_to < x.m_to; return m_to < x.m_to;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment