Converting unstructured to structed flow graphs as an exercise in DAGs and PLT