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
23 changes: 23 additions & 0 deletions docs/prover/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2524,6 +2524,29 @@ _Configuration file_
```


(--assume_no_casting_overflow)=
## `assume_no_casting_overflow`

This option adds an implicit assumption to all Solidity casting operation. For example, if `int16(x)` appears in the Solidity code, then it is assumed that `x` is indeed in the valid range of `int16` at this point in the program.

Note that this flag may result in an underapproximation, i.e., it may result in the tool not checking some valid runs. That is because solidity does not revert on out-of-bounds casting operations. Therefore, it is important to use this option with caution.

**Example**

To assume Solidity casts do not overflow / underflow:

_Command line_

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Example**
To assume Solidity casts do not overflow / underflow:
_Command line_
```sh
certoraRun proj.conf --assume_no_casting_overflow
```
_Configuration file_
```json
"assume_no_casting_overflow": true
```

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, except I believe it needs a true on the command line as well. So added that.

```sh
certoraRun proj.conf --assume_no_casting_overflow true
```

_Configuration file_

```json
"assume_no_casting_overflow": true
```

(--precise_bitwise_ops)=
## `precise_bitwise_ops`

Expand Down