mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
297 B
30 lines
297 B
5 years ago
|
|
||
|
```act
|
||
|
behaviour add of SafeAdd
|
||
|
interface add(uint256 X, uint256 Y)
|
||
|
|
||
|
iff in range uint256
|
||
|
|
||
|
X + Y
|
||
|
|
||
|
iff
|
||
|
|
||
|
VCallValue == 0
|
||
|
|
||
|
returns X + Y
|
||
|
```
|
||
|
```act
|
||
|
behaviour addv2 of SafeAdd
|
||
|
interface addv2(uint256 X, uint256 Y)
|
||
|
|
||
|
iff in range uint256
|
||
|
|
||
|
X + Y
|
||
|
|
||
|
iff
|
||
|
|
||
|
VCallValue == 0
|
||
|
|
||
|
returns X + Y
|
||
|
```
|