solidity/test/cmdlineTests/standard_model_checker_targets_default_bmc/output.json

165 lines
3.5 KiB
JSON

{
"errors":
[
{
"component": "general",
"errorCode": "6838",
"formattedMessage": "Warning: BMC: Condition is always true.
--> A:7:15:
|
7 | \t\t\t\t\t\trequire(x >= 0);
| \t\t\t\t\t\t ^^^^^^
Note: Callstack:
",
"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.
--> 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:
",
"message": "BMC: Division by zero happens here.",
"secondarySourceLocations":
[
{
"message": "Counterexample:
<result> = 0
a = 0
x = 0
"
},
{
"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.
--> 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:
",
"message": "BMC: Insufficient funds happens here.",
"secondarySourceLocations":
[
{
"message": "Counterexample:
a = 0
x = 0
"
},
{
"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.
--> 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:
",
"message": "BMC: Assertion violation happens here.",
"secondarySourceLocations":
[
{
"message": "Counterexample:
a = 0
x = 0
"
},
{
"message": "Callstack:"
},
{
"message": ""
}
],
"severity": "warning",
"sourceLocation":
{
"end": 258,
"file": "A",
"start": 245
},
"type": "Warning"
}
],
"sources":
{
"A":
{
"id": 0
}
}
}