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 · 1 comment
Open

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

mamonet opened this issue Aug 26, 2024 · 1 comment
Labels
bug Something isn't working f* F* backend lib Lib-related issue (e.g. annotations lib)

Comments

@mamonet
Copy link
Member

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.

@cryspen cryspen deleted a comment Aug 26, 2024
@cryspen cryspen 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
Copy link

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working f* F* backend lib Lib-related issue (e.g. annotations lib)
Projects
None yet
Development

No branches or pull requests

3 participants