2022-10-26 10:13:47 +00:00
|
|
|
{
|
|
|
|
"errors":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"component": "general",
|
|
|
|
"errorCode": "6838",
|
|
|
|
"formattedMessage": "Warning: BMC: Condition is always true.
|
2021-01-19 11:56:22 +00:00
|
|
|
--> A:7:15:
|
|
|
|
|
|
|
|
|
7 | \t\t\t\t\t\trequire(x >= 0);
|
|
|
|
| \t\t\t\t\t\t ^^^^^^
|
|
|
|
Note: Callstack:
|
|
|
|
|
2022-10-26 10:13:47 +00:00
|
|
|
",
|
|
|
|
"message": "BMC: Condition is always true.",
|
|
|
|
"secondarySourceLocations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"message": "Callstack:"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"severity": "warning",
|
|
|
|
"sourceLocation":
|
|
|
|
{
|
|
|
|
"end": 165,
|
|
|
|
"file": "A",
|
|
|
|
"start": 159
|
|
|
|
},
|
|
|
|
"type": "Warning"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"component": "general",
|
|
|
|
"errorCode": "3046",
|
|
|
|
"formattedMessage": "Warning: BMC: Division by zero happens here.
|
2021-01-19 11:56:22 +00:00
|
|
|
--> A:10:7:
|
|
|
|
|
|
|
|
|
10 | \t\t\t\t\t\t2 / x;
|
|
|
|
| \t\t\t\t\t\t^^^^^
|
|
|
|
Note: Counterexample:
|
|
|
|
<result> = 0
|
|
|
|
a = 0
|
|
|
|
x = 0
|
|
|
|
|
|
|
|
Note: Callstack:
|
|
|
|
Note:
|
|
|
|
|
2022-10-26 10:13:47 +00:00
|
|
|
",
|
|
|
|
"message": "BMC: Division by zero happens here.",
|
|
|
|
"secondarySourceLocations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"message": "Counterexample:
|
2021-01-19 11:56:22 +00:00
|
|
|
<result> = 0
|
|
|
|
a = 0
|
|
|
|
x = 0
|
2022-10-26 10:13:47 +00:00
|
|
|
"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": "Callstack:"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"severity": "warning",
|
|
|
|
"sourceLocation":
|
|
|
|
{
|
|
|
|
"end": 216,
|
|
|
|
"file": "A",
|
|
|
|
"start": 211
|
|
|
|
},
|
|
|
|
"type": "Warning"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"component": "general",
|
|
|
|
"errorCode": "1236",
|
|
|
|
"formattedMessage": "Warning: BMC: Insufficient funds happens here.
|
2021-01-19 11:56:22 +00:00
|
|
|
--> A:11:7:
|
|
|
|
|
|
|
|
|
11 | \t\t\t\t\t\ta.transfer(x);
|
|
|
|
| \t\t\t\t\t\t^^^^^^^^^^^^^
|
|
|
|
Note: Counterexample:
|
|
|
|
a = 0
|
|
|
|
x = 0
|
|
|
|
|
|
|
|
Note: Callstack:
|
|
|
|
Note:
|
|
|
|
|
2022-10-26 10:13:47 +00:00
|
|
|
",
|
|
|
|
"message": "BMC: Insufficient funds happens here.",
|
|
|
|
"secondarySourceLocations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"message": "Counterexample:
|
2021-01-19 11:56:22 +00:00
|
|
|
a = 0
|
|
|
|
x = 0
|
2022-10-26 10:13:47 +00:00
|
|
|
"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": "Callstack:"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"severity": "warning",
|
|
|
|
"sourceLocation":
|
|
|
|
{
|
|
|
|
"end": 237,
|
|
|
|
"file": "A",
|
|
|
|
"start": 224
|
|
|
|
},
|
|
|
|
"type": "Warning"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"component": "general",
|
|
|
|
"errorCode": "4661",
|
|
|
|
"formattedMessage": "Warning: BMC: Assertion violation happens here.
|
2021-01-19 11:56:22 +00:00
|
|
|
--> A:12:7:
|
|
|
|
|
|
|
|
|
12 | \t\t\t\t\t\tassert(x > 0);
|
|
|
|
| \t\t\t\t\t\t^^^^^^^^^^^^^
|
|
|
|
Note: Counterexample:
|
|
|
|
a = 0
|
|
|
|
x = 0
|
|
|
|
|
|
|
|
Note: Callstack:
|
|
|
|
Note:
|
|
|
|
|
2022-10-26 10:13:47 +00:00
|
|
|
",
|
|
|
|
"message": "BMC: Assertion violation happens here.",
|
|
|
|
"secondarySourceLocations":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"message": "Counterexample:
|
2021-01-19 11:56:22 +00:00
|
|
|
a = 0
|
|
|
|
x = 0
|
2022-10-26 10:13:47 +00:00
|
|
|
"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": "Callstack:"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"severity": "warning",
|
|
|
|
"sourceLocation":
|
|
|
|
{
|
|
|
|
"end": 258,
|
|
|
|
"file": "A",
|
|
|
|
"start": 245
|
|
|
|
},
|
|
|
|
"type": "Warning"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"sources":
|
|
|
|
{
|
|
|
|
"A":
|
|
|
|
{
|
|
|
|
"id": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|