ConsenSysDiligence / ConsenSysDiligence/scribble

Scribble miscompiles lets inside of an implication

Open
#275 0 comments 0 reactions 1 assignee Assigned to @cd1m0 View on GitHub
Dominant language
TypeScript
Stars
334
Forks
28
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.