From 598be4cd1bdd79e4859ae30291f4d65682cc672a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 9 Jan 2025 22:26:02 +0200 Subject: initial reference checking --- examples/fib.fwd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/fib.fwd') 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); } } -- cgit v1.2.3