rm Application from core graph, handle DoWhileStatement