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

Reference an &mut _ binder in fstar! inside loop invariant #861

Open
mamonet opened this issue Aug 26, 2024 · 0 comments
Open

Reference an &mut _ binder in fstar! inside loop invariant #861

mamonet opened this issue Aug 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mamonet
Copy link
Collaborator

mamonet commented Aug 26, 2024

Using a reference in fstar! macro inside loop invariant doesn't work. e.g. using a mutable reference zeta_i: &mut usize in loop invariant like the following hax_lib::loop_invariant!(|i: usize| { fstar!("v $zeta_i == v $_zeta_i + (v $i * 4)") }); throws an error. However, referencing that variable inside requires works.

@hacspec hacspec deleted a comment Aug 26, 2024
@hacspec hacspec deleted a comment Aug 26, 2024
@W95Psp W95Psp changed the title Reference in fstar! macro inside loop invariant Reference an &mut _ binder in fstar! inside loop invariant Aug 28, 2024
@franziskuskiefer franziskuskiefer added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants