Seol mar théacs é seo: The finite representation of abstract programs by automata and Petri nets /