Skip to content
Snippets Groups Projects
Commit 5cf57fdc authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix opposite push pop for special symbols in PDAs

parent 0c215823
No related branches found
No related tags found
No related merge requests found
......@@ -225,14 +225,14 @@ automaton::InputDrivenNPDA < common::ranked_symbol < SymbolType, RankType >, cha
}
 
res.addInputSymbol ( subtreeWildcard );
res.setPushdownStoreOperation ( subtreeWildcard, ext::vector < char > ( 1, S ), ext::vector < char > { } );
res.setPushdownStoreOperation ( subtreeWildcard, ext::vector < char > { }, ext::vector < char > ( 1, S ) );
 
res.addInputSymbol ( variablesBar );
res.setPushdownStoreOperation ( variablesBar, ext::vector < char > { }, ext::vector < char > ( 1, S ) );
res.setPushdownStoreOperation ( variablesBar, ext::vector < char > ( 1, S ), ext::vector < char > { } );
 
for ( const common::ranked_symbol < SymbolType, RankType > & nonlinearVariable : nonlinearVariables ) {
res.addInputSymbol ( nonlinearVariable );
res.setPushdownStoreOperation ( nonlinearVariable, ext::vector < char > ( 1, S ), ext::vector < char > { } );
res.setPushdownStoreOperation ( nonlinearVariable, ext::vector < char > { }, ext::vector < char > ( 1, S ) );
}
 
unsigned i = 1;
......
......@@ -52,10 +52,10 @@ automaton::InputDrivenNPDA < common::ranked_symbol < SymbolType, RankType >, cha
}
 
res.addInputSymbol ( subtreeWildcard );
res.setPushdownStoreOperation ( subtreeWildcard, ext::vector < char > ( 1, S ), ext::vector < char > { } );
res.setPushdownStoreOperation ( subtreeWildcard, ext::vector < char > { }, ext::vector < char > ( 1, S ) );
 
res.addInputSymbol ( variablesBar );
res.setPushdownStoreOperation ( variablesBar, ext::vector < char > { }, ext::vector < char > ( 1, S ) );
res.setPushdownStoreOperation ( variablesBar, ext::vector < char > ( 1, S ), ext::vector < char > { } );
 
unsigned i = 1;
ext::deque < unsigned > subtreeJumps;
......
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