coarsener produces legal code for pathfinder but I do not handle break statements