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

Add support for spec annotations #64

Open
sonmarcho opened this issue Dec 20, 2023 · 1 comment
Open

Add support for spec annotations #64

sonmarcho opened this issue Dec 20, 2023 · 1 comment

Comments

@sonmarcho
Copy link
Member

It would be good to add the possibility of annotating the definitions with pre/post-conditions and even proof annotations.
This issue should be done after #63

@Nadrieril
Copy link
Member

Nadrieril commented Apr 8, 2024

After #105, an annotation like

#[postcondition(*x == y)]
fn foo(&mut x, y) { ... }

will show up as a string "postcondition(*x == y)" in the function attributes. Can we do more than that on the charon side?

@Nadrieril Nadrieril added C-unsupported-language-feature A rust feature we don't extract well and removed C-unsupported-language-feature A rust feature we don't extract well labels Apr 23, 2024
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