Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slither/tests/detectors/redundant-statements/0.4.25/redundant_statements.sol.0....

715 lines
35 KiB

[
[
{
"elements": [
{
"type": "node",
"name": "uint256",
"source_mapping": {
"start": 141,
"length": 4,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
6
],
"starting_column": 9,
"ending_column": 13
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "constructor",
"source_mapping": {
"start": 110,
"length": 93,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
5,
6,
7,
8,
9
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
},
"signature": "constructor()"
}
}
}
},
{
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
}
],
"description": "Redundant expression \"uint256 (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#6)\" inRedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#3-18)\n",
"markdown": "Redundant expression \"[uint256](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L6)\" in[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L3-L18)\n",
"first_markdown_element": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L6",
"id": "5e6cc88b3d8b0ef5d6247751e3b9cf045557e07c6f0de8d9f1270db008fca82a",
"check": "redundant-statements",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "node",
"name": "uint256",
"source_mapping": {
"start": 257,
"length": 4,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
12
],
"starting_column": 9,
"ending_column": 13
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "test",
"source_mapping": {
"start": 209,
"length": 109,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
},
"signature": "test()"
}
}
}
},
{
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
}
],
"description": "Redundant expression \"uint256 (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#12)\" inRedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#3-18)\n",
"markdown": "Redundant expression \"[uint256](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L12)\" in[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L3-L18)\n",
"first_markdown_element": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L12",
"id": "7423f2beb0d066fc4e193c27dd50b172186e9539b778ab72bf950dbe872df720",
"check": "redundant-statements",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "node",
"name": "test",
"source_mapping": {
"start": 287,
"length": 4,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
14
],
"starting_column": 9,
"ending_column": 13
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "test",
"source_mapping": {
"start": 209,
"length": 109,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
},
"signature": "test()"
}
}
}
},
{
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
}
],
"description": "Redundant expression \"test (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#14)\" inRedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#3-18)\n",
"markdown": "Redundant expression \"[test](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L14)\" in[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L3-L18)\n",
"first_markdown_element": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L14",
"id": "c3c9961e4467e57974929ecfaeb34a0923fc257422a7705c9d1b14257cfe0c3a",
"check": "redundant-statements",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "node",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 169,
"length": 27,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
8
],
"starting_column": 9,
"ending_column": 36
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "constructor",
"source_mapping": {
"start": 110,
"length": 93,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
5,
6,
7,
8,
9
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
},
"signature": "constructor()"
}
}
}
},
{
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
}
],
"description": "Redundant expression \"RedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#8)\" inRedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#3-18)\n",
"markdown": "Redundant expression \"[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L8)\" in[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L3-L18)\n",
"first_markdown_element": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L8",
"id": "cb9ace5d0188d80bdc530d3760b41a1dcf1a4c10151b720e468550bb22be0e74",
"check": "redundant-statements",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "node",
"name": "bool",
"source_mapping": {
"start": 155,
"length": 4,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
7
],
"starting_column": 9,
"ending_column": 13
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "constructor",
"source_mapping": {
"start": 110,
"length": 93,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
5,
6,
7,
8,
9
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
},
"signature": "constructor()"
}
}
}
},
{
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
}
],
"description": "Redundant expression \"bool (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#7)\" inRedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#3-18)\n",
"markdown": "Redundant expression \"[bool](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L7)\" in[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L3-L18)\n",
"first_markdown_element": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L7",
"id": "da776628bba71bca43caf77bb06a7055fe3c0f4f18a30274c5cb508bcb3a27b4",
"check": "redundant-statements",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "node",
"name": "assert(bool)",
"source_mapping": {
"start": 271,
"length": 6,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
13
],
"starting_column": 9,
"ending_column": 15
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "test",
"source_mapping": {
"start": 209,
"length": 109,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
},
"signature": "test()"
}
}
}
},
{
"type": "contract",
"name": "RedundantStatementsContract",
"source_mapping": {
"start": 66,
"length": 254,
"filename_relative": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"starting_column": 1,
"ending_column": 0
}
}
],
"description": "Redundant expression \"assert(bool) (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#13)\" inRedundantStatementsContract (tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#3-18)\n",
"markdown": "Redundant expression \"[assert(bool)](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L13)\" in[RedundantStatementsContract](tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L3-L18)\n",
"first_markdown_element": "tests/detectors/redundant-statements/0.4.25/redundant_statements.sol#L13",
"id": "e0137cf6a61eb49d07e1a67a7cdfd0cb82cac0402cded9f1cfb85ae1e6e8d3fe",
"check": "redundant-statements",
"impact": "Informational",
"confidence": "High"
}
]
]