Skip to content

Scribble miscompiles lets inside of an implication #275

@cd1m0

Description

@cd1m0

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions