Commit eae0fab 1 parent cca49e6 commit eae0fab Copy full SHA for eae0fab
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,12 @@ const Def* CPS2DS::rewrite_body(const Def* def) {
55
55
const Def* CPS2DS::rewrite_body_ (const Def* def) {
56
56
auto & world = def->world ();
57
57
if (auto app = def->isa <App>()) {
58
- auto callee = app->callee ();
59
- auto args = app->arg ();
60
- auto new_arg = rewrite_body (app->arg ());
58
+ auto callee = app->callee ();
59
+ auto args = app->arg ();
60
+ auto new_callee = rewrite_body (callee);
61
+ auto new_arg = rewrite_body (app->arg ());
61
62
62
- if (auto fun_app = callee ->isa <App>()) {
63
+ if (auto fun_app = new_callee ->isa <App>()) {
63
64
if (auto ty_app = fun_app->callee ()->isa <App>(); ty_app) {
64
65
if (auto axiom = ty_app->callee ()->isa <Axiom>()) {
65
66
if (axiom->flags () == ((flags_t )Axiom::Base<cps2ds_dep>)) {
@@ -164,7 +165,7 @@ const Def* CPS2DS::rewrite_body_(const Def* def) {
164
165
}
165
166
}
166
167
167
- auto new_callee = rewrite_body (app->callee ());
168
+ // auto new_callee = rewrite_body(app->callee());
168
169
// auto new_callee = app->callee();
169
170
return world.app (new_callee, new_arg);
170
171
}
You can’t perform that action at this time.
0 commit comments