solidity/test/cmdlineTests/standard_model_checker_targets_default_chc/output.json
2022-10-26 15:13:47 +05:00

165 lines
3.0 KiB
JSON

{
"errors":
[
{
"component": "general",
"errorCode": "4281",
"formattedMessage": "Warning: CHC: Division by zero happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)
--> A:10:7:
|
10 | \t\t\t\t\t\t2 / x;
| \t\t\t\t\t\t^^^^^
",
"message": "CHC: Division by zero happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)",
"severity": "warning",
"sourceLocation":
{
"end": 216,
"file": "A",
"start": 211
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "6328",
"formattedMessage": "Warning: CHC: Assertion violation happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)
--> A:12:7:
|
12 | \t\t\t\t\t\tassert(x > 0);
| \t\t\t\t\t\t^^^^^^^^^^^^^
",
"message": "CHC: Assertion violation happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)",
"severity": "warning",
"sourceLocation":
{
"end": 258,
"file": "A",
"start": 245
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "2529",
"formattedMessage": "Warning: CHC: Empty array \"pop\" happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)
--> A:13:7:
|
13 | \t\t\t\t\t\tarr.pop();
| \t\t\t\t\t\t^^^^^^^^^
",
"message": "CHC: Empty array \"pop\" happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)",
"severity": "warning",
"sourceLocation":
{
"end": 275,
"file": "A",
"start": 266
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "6368",
"formattedMessage": "Warning: CHC: Out of bounds access happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)
--> A:14:7:
|
14 | \t\t\t\t\t\tarr[x];
| \t\t\t\t\t\t^^^^^^
",
"message": "CHC: Out of bounds access happens here.
Counterexample:
arr = []
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0x0, 1)",
"severity": "warning",
"sourceLocation":
{
"end": 289,
"file": "A",
"start": 283
},
"type": "Warning"
}
],
"sources":
{
"A":
{
"id": 0
}
}
}