Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/cvl/builtin.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ built_in_rule_name ::=
| "deepSanity"
| "viewReentrancy"
| "safeCasting"
| "uncheckedOverflow"
| "uncheckedOverflows"
```

(built-in-msg-value-in-loop)=
Expand Down Expand Up @@ -228,10 +228,10 @@ in a spec file. In addition, the line `"safe_casting_builtin" : true` must be ad


(built-in-unchecked-overflow)=
Unchecked Overflow — `uncheckedOverflow`
Unchecked Overflow — `uncheckedOverflows`
--------------------------------------------------

The `uncheckedOverflow` built-in looks for cases where any of the operations `+, -, *` appearing within an `unchecked` solidity block can actually overflow.
The `uncheckedOverflows` built-in looks for cases where any of the operations `+, -, *` appearing within an `unchecked` solidity block can actually overflow.

For example:
```
Expand All @@ -245,6 +245,6 @@ This will fail the builtin rule, because the multiplication is a `uint128` multi

This rule can be enabled by including
```cvl
use builtin rule uncheckedOverflow;
use builtin rule uncheckedOverflows;
```
In addition, the line `"unchecked_overflow_builtin" : true` must be added to the conf file.
In addition, the line `"unchecked_overflow_builtin" : true` must be added to the conf file.