2021-01-19 11:56:22 +00:00
|
|
|
{"errors":[{"component":"general","errorCode":"4984","formattedMessage":"Warning: CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
Counterexample:
|
|
|
|
arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
a = 0x0
|
2021-01-19 11:56:22 +00:00
|
|
|
x = 1
|
|
|
|
|
|
|
|
Transaction trace:
|
|
|
|
test.constructor()
|
|
|
|
State: arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
test.f(0x0, 2)
|
2021-01-19 11:56:22 +00:00
|
|
|
--> A:9:7:
|
|
|
|
|
|
|
|
|
9 | \t\t\t\t\t\tx + type(uint).max;
|
|
|
|
| \t\t\t\t\t\t^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
","message":"CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
|
|
Counterexample:
|
|
|
|
arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
a = 0x0
|
2021-01-19 11:56:22 +00:00
|
|
|
x = 1
|
|
|
|
|
|
|
|
Transaction trace:
|
|
|
|
test.constructor()
|
|
|
|
State: arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
test.f(0x0, 2)","severity":"warning","sourceLocation":{"end":203,"file":"A","start":185},"type":"Warning"}],"sources":{"A":{"id":0}}}
|