Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this fib code should work #425

Open
bizid777 opened this issue Jan 27, 2025 · 2 comments
Open

this fib code should work #425

bizid777 opened this issue Jan 27, 2025 · 2 comments

Comments

@bizid777
Copy link

divergent def fib (n : U32) : Result U32 :=
match n with
| 0#scalar => Result.ok 1#u32
| 1#scalar => Result.ok 1#u32
| _ =>
do
let i ← n - 1#u32
let i1 ← fib i
let i2 ← n - 2#u32
let i3 ← fib i2
i1 + i3

end aeneas_test

@sonmarcho
Copy link
Member

Could you please precise what the exact issue is? The model doesn't type-check (with what error message)?

@bizid777
Copy link
Author

bizid777 commented Jan 27, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants