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

Scribble miscompiles lets inside of an implication #275

Open
cd1m0 opened this issue Jul 24, 2024 · 0 comments
Open

Scribble miscompiles lets inside of an implication #275

cd1m0 opened this issue Jul 24, 2024 · 0 comments
Assignees

Comments

@cd1m0
Copy link
Collaborator

cd1m0 commented Jul 24, 2024

Given the annotation: /// #if_succeeds cond ==> let x := E0 in E1; scribble will produce the following instrumentation:

    let x_0 := E0;
    if ((!cond) || E1) {
        ...
    }

This is incorrect, since E0 will always be evaluated, even when cond is false. This is can cause unexpected crashes. Fix it.

@cd1m0 cd1m0 self-assigned this Jul 24, 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

1 participant