2015-07-23 08:07:30 +08:00
|
|
|
# RUN: %python -m artiq.compiler.testbench.jit %s
|
2015-07-23 13:09:25 +08:00
|
|
|
# RUN: %python %s
|
2015-07-23 08:07:30 +08:00
|
|
|
|
|
|
|
def fib(x):
|
|
|
|
if x == 1:
|
|
|
|
return x
|
|
|
|
else:
|
|
|
|
return x * fib(x - 1)
|
|
|
|
assert fib(5) == 120
|
|
|
|
|
|
|
|
# argument combinations handled in lambda.py
|