beala/bullfrog — Issue #2: Tail call optimization chokes on nested functions
Author: beala
Created: 2012-01-04 01:42:26+00:00
State: open

When the optimizations are turned on, the following code doesn't compile correctly.

``` python
def f():
return g(h(),i())
def g(a,b):
return a+b
def h():
return 10
def i():
return 20

print f()
```

I believe the problem is the nested function calls `g(h(),i())`. The executable prints a garbage value (-269224994).