2022-10-26 10:13:47 +00:00
|
|
|
{
|
|
|
|
"errors":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"component": "general",
|
|
|
|
"errorCode": "4661",
|
|
|
|
"formattedMessage": "Warning: BMC: Assertion violation happens here.
|
2020-12-01 13:46:26 +00:00
|
|
|
--> A:4:47:
|
|
|
|
|
|
|
|
|
4 | contract C { function f(uint x) public pure { assert(x > 0); } }
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
Note: Counterexample:
|
2020-10-14 15:44:40 +00:00
|
|
|
x = 0
|
|
|
|
|
2020-12-01 13:46:26 +00:00
|
|
|
Note: Callstack:
|
|
|
|
Note:
|
2020-10-14 15:44:40 +00:00
|
|
|
|
2022-10-26 10:13:47 +00:00
|
|
|
",
|
|
|
|
"message": "BMC: Assertion violation happens here.",
|
|
|
|
"secondarySourceLocations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"message": "Counterexample:
|
2020-10-14 15:44:40 +00:00
|
|
|
x = 0
|
2022-10-26 10:13:47 +00:00
|
|
|
"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": "Callstack:"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"severity": "warning",
|
|
|
|
"sourceLocation":
|
|
|
|
{
|
|
|
|
"end": 119,
|
|
|
|
"file": "A",
|
|
|
|
"start": 106
|
|
|
|
},
|
|
|
|
"type": "Warning"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"sources":
|
|
|
|
{
|
|
|
|
"A":
|
|
|
|
{
|
|
|
|
"id": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|