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

Remove Reconstruct_question_marks phase and Question_mark nodes from the AST #567

Open
W95Psp opened this issue Mar 12, 2024 · 4 comments
Open
Labels
engine Issue in the engine

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Mar 12, 2024

Resugaring question marks is not very useful, instead we prefer to treat them as "normal" early returns.
That simplifies a few things.

Also, in the context of a function that takes &mut inputs, question marks breaks for us. We rewrite a function &mut T -> Result<U, E> as T -> (Result<U, E>, T). In this settings, question mark expressions are useless: we need to rewrite e? so that if e is Err(e'), then we return (s, e) with s the "state" U. This cannot be captured with a question mark.

Status

Question marks are used by the proverif backend.
But question marks are broken, as noted above: &mut inputs functions + question mark are broken.
So we need to remove the need of question marks from proverif.

Copy link

github-actions bot commented Sep 2, 2024

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.

@github-actions github-actions bot added the stale label Sep 2, 2024
Copy link

This issue has been closed due to a lack of activity since being marked as stale. If you believe this issue is still relevant, please reopen it with an update or comment.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2024
@github-project-automation github-project-automation bot moved this to Done in hax Sep 13, 2024
@W95Psp
Copy link
Collaborator Author

W95Psp commented Sep 16, 2024

Still relevant

@W95Psp W95Psp reopened this Sep 16, 2024
@W95Psp W95Psp added engine Issue in the engine and removed stale labels Sep 16, 2024
@W95Psp
Copy link
Collaborator Author

W95Psp commented Sep 30, 2024

The proverif backend makes use of this phase and makes use of the Question_mark node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant