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

aconversions: StateElimination fix

parent 435a16d3
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,8 @@ RegExpElement* StateElimination::transition( const State & p, const State & q ) ...@@ -159,6 +159,8 @@ RegExpElement* StateElimination::transition( const State & p, const State & q )
{ {
Alternation* alt = new Alternation( ); Alternation* alt = new Alternation( );
   
alt->getElements( ).push_back( new RegExpEmpty( ) );
for( const auto & transition : m_MR.m_transitions ) for( const auto & transition : m_MR.m_transitions )
if( transition.m_from == p && transition.m_to == q ) if( transition.m_from == p && transition.m_to == q )
alt->getElements( ).push_back( transition.m_regexp->clone( ) ); alt->getElements( ).push_back( transition.m_regexp->clone( ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment