fixed parser2.ast_to_cfg so it no longer takes a file, but rather an AST to covert