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

Gracefully handle incorrect code #306

Open
Nadrieril opened this issue Aug 9, 2024 · 0 comments
Open

Gracefully handle incorrect code #306

Nadrieril opened this issue Aug 9, 2024 · 0 comments
Assignees
Labels
C-bug A bug in charon

Comments

@Nadrieril
Copy link
Member

Nadrieril commented Aug 9, 2024

When charon is given incorrect rust code, it often crashes before letting rustc display the error to the user. We should make sure we always check the code before translating it.

This is straightforward to do (simply hook into after_analysis), but we would run into stealing issues. Hence this likely requires a fully general fix to stealing issues, such as using optimized MIR or evaluated values for constants. See also hacspec/hax#27.

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

No branches or pull requests

1 participant