aboutsummaryrefslogtreecommitdiff
path: root/comparison/Inpla/src/fib-38.in
blob: 925f5ff57c19fedaf8af9546d11cc4362a9902cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// Fibonacci number
Fib(r) >< (int n)
| n == 0 => r~0
| n == 1 => r~1
| _ => Add(r,cnt2)~cnt1, Fib(cnt1)~(n-1), Fib(cnt2)~(n-2);


Fib(r)~38;
r;
free r;