aboutsummaryrefslogtreecommitdiff
path: root/examples/fib.fwd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fib.fwd')
-rw-r--r--examples/fib.fwd5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/fib.fwd b/examples/fib.fwd
index e5014af..9bc5474 100644
--- a/examples/fib.fwd
+++ b/examples/fib.fwd
@@ -9,8 +9,9 @@ fib(int n, (int) res)
if n1 < 2 {
res(1);
} else {
- fib(n2 - 1) => int f1;
- fib(n2 - 2) => int f2;
+ fwd_copy(n2) => int n3, int n4;
+ fib(n3 - 1) => int f1;
+ fib(n4 - 2) => int f2;
res(f1 + f2);
}
}