deterministic push down automation
add flag to support pda stuck