diff --git a/slither/solc_parsing/yul/parse_yul.py b/slither/solc_parsing/yul/parse_yul.py index 4a47ef800..1e9402101 100644 --- a/slither/solc_parsing/yul/parse_yul.py +++ b/slither/solc_parsing/yul/parse_yul.py @@ -694,7 +694,7 @@ def parse_yul_identifier(root: YulScope, _node: YulNode, ast: Dict) -> Optional[ return Identifier(func.underlying) # check for magic suffixes - if name.endswith("_slot"): + if name.endswith("_slot") or name.endswith(".slot"): potential_name = name[:-5] var = root.function.contract.get_state_variable_from_name(potential_name) if var: @@ -702,7 +702,7 @@ def parse_yul_identifier(root: YulScope, _node: YulNode, ast: Dict) -> Optional[ var = root.function.get_local_variable_from_name(potential_name) if var and var.is_storage: return Identifier(var) - if name.endswith("_offset"): + if name.endswith("_offset") or name.endswith(".offset"): potential_name = name[:-7] var = root.function.contract.get_state_variable_from_name(potential_name) if var: diff --git a/tests/ast-parsing/compile/yul-0.4.0-legacy.zip b/tests/ast-parsing/compile/yul-0.4.0-legacy.zip index 80260e304..e213df607 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.0-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.0-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.1-legacy.zip b/tests/ast-parsing/compile/yul-0.4.1-legacy.zip index bda3500a1..d96535614 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.1-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.1-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.10-legacy.zip b/tests/ast-parsing/compile/yul-0.4.10-legacy.zip index c9e6ad4e0..381848635 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.10-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.10-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.11-legacy.zip b/tests/ast-parsing/compile/yul-0.4.11-legacy.zip index e4801d09d..4e23da836 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.11-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.11-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.12-compact.zip b/tests/ast-parsing/compile/yul-0.4.12-compact.zip index 9cbb1df04..36fbe22ca 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.12-compact.zip and b/tests/ast-parsing/compile/yul-0.4.12-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.12-legacy.zip b/tests/ast-parsing/compile/yul-0.4.12-legacy.zip index 066944f43..9015b6fcc 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.12-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.12-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.13-compact.zip b/tests/ast-parsing/compile/yul-0.4.13-compact.zip index 410b0d19e..ff9aaed3f 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.13-compact.zip and b/tests/ast-parsing/compile/yul-0.4.13-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.13-legacy.zip b/tests/ast-parsing/compile/yul-0.4.13-legacy.zip index 9d0aab868..29de0514e 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.13-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.13-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.14-compact.zip b/tests/ast-parsing/compile/yul-0.4.14-compact.zip index 2c475635a..40a2c973b 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.14-compact.zip and b/tests/ast-parsing/compile/yul-0.4.14-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.14-legacy.zip b/tests/ast-parsing/compile/yul-0.4.14-legacy.zip index 6cb060c4f..0afed5aa3 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.14-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.14-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.15-compact.zip b/tests/ast-parsing/compile/yul-0.4.15-compact.zip index 14925fd20..a4008b964 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.15-compact.zip and b/tests/ast-parsing/compile/yul-0.4.15-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.15-legacy.zip b/tests/ast-parsing/compile/yul-0.4.15-legacy.zip index f39adc68e..044ce00f6 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.15-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.15-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.16-compact.zip b/tests/ast-parsing/compile/yul-0.4.16-compact.zip index 234944abb..859bb6c24 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.16-compact.zip and b/tests/ast-parsing/compile/yul-0.4.16-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.16-legacy.zip b/tests/ast-parsing/compile/yul-0.4.16-legacy.zip index 3f4cce68c..5561749dd 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.16-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.16-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.17-compact.zip b/tests/ast-parsing/compile/yul-0.4.17-compact.zip index e731c9087..126cf17f6 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.17-compact.zip and b/tests/ast-parsing/compile/yul-0.4.17-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.17-legacy.zip b/tests/ast-parsing/compile/yul-0.4.17-legacy.zip index 858eb5fd9..fed491f8c 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.17-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.17-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.18-compact.zip b/tests/ast-parsing/compile/yul-0.4.18-compact.zip index 2abd5103b..076d4e02a 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.18-compact.zip and b/tests/ast-parsing/compile/yul-0.4.18-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.18-legacy.zip b/tests/ast-parsing/compile/yul-0.4.18-legacy.zip index 3c2f97f31..febcd91bc 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.18-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.18-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.19-compact.zip b/tests/ast-parsing/compile/yul-0.4.19-compact.zip index 46ecb1bb5..531e202a5 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.19-compact.zip and b/tests/ast-parsing/compile/yul-0.4.19-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.19-legacy.zip b/tests/ast-parsing/compile/yul-0.4.19-legacy.zip index e8460f36b..a748f4523 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.19-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.19-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.2-legacy.zip b/tests/ast-parsing/compile/yul-0.4.2-legacy.zip index 6cc2ee713..d0daec48c 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.2-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.2-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.20-compact.zip b/tests/ast-parsing/compile/yul-0.4.20-compact.zip index c29517092..5e673ecf8 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.20-compact.zip and b/tests/ast-parsing/compile/yul-0.4.20-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.20-legacy.zip b/tests/ast-parsing/compile/yul-0.4.20-legacy.zip index d979ccbc0..4510d579a 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.20-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.20-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.21-compact.zip b/tests/ast-parsing/compile/yul-0.4.21-compact.zip index e9e08220f..d13d63392 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.21-compact.zip and b/tests/ast-parsing/compile/yul-0.4.21-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.21-legacy.zip b/tests/ast-parsing/compile/yul-0.4.21-legacy.zip index 8e9fc4357..a0367618e 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.21-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.21-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.22-compact.zip b/tests/ast-parsing/compile/yul-0.4.22-compact.zip index 1622bd4df..a615e1db3 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.22-compact.zip and b/tests/ast-parsing/compile/yul-0.4.22-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.22-legacy.zip b/tests/ast-parsing/compile/yul-0.4.22-legacy.zip index a94d3a9e7..3db142ad3 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.22-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.22-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.23-compact.zip b/tests/ast-parsing/compile/yul-0.4.23-compact.zip index 538298f50..e03680aae 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.23-compact.zip and b/tests/ast-parsing/compile/yul-0.4.23-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.23-legacy.zip b/tests/ast-parsing/compile/yul-0.4.23-legacy.zip index 790945d3f..fc67c3aef 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.23-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.23-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.24-compact.zip b/tests/ast-parsing/compile/yul-0.4.24-compact.zip index 6db0095e8..21923c8ce 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.24-compact.zip and b/tests/ast-parsing/compile/yul-0.4.24-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.24-legacy.zip b/tests/ast-parsing/compile/yul-0.4.24-legacy.zip index 4a2b9856d..5b6a2a951 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.24-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.24-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.25-compact.zip b/tests/ast-parsing/compile/yul-0.4.25-compact.zip index 661f27034..69006d62e 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.25-compact.zip and b/tests/ast-parsing/compile/yul-0.4.25-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.25-legacy.zip b/tests/ast-parsing/compile/yul-0.4.25-legacy.zip index 0dbabb0ae..83c6b260b 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.25-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.25-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.26-compact.zip b/tests/ast-parsing/compile/yul-0.4.26-compact.zip index 0b7e2af5d..7d93c0855 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.26-compact.zip and b/tests/ast-parsing/compile/yul-0.4.26-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.26-legacy.zip b/tests/ast-parsing/compile/yul-0.4.26-legacy.zip index 0fc5d12d5..6930bfa2d 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.26-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.26-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.3-legacy.zip b/tests/ast-parsing/compile/yul-0.4.3-legacy.zip index 0ee9f763f..fa9cd3d59 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.3-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.3-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.4-legacy.zip b/tests/ast-parsing/compile/yul-0.4.4-legacy.zip index d939b89c4..8b921fd90 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.4-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.4-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.5-legacy.zip b/tests/ast-parsing/compile/yul-0.4.5-legacy.zip index cb4a78bf8..4a63a0c52 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.5-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.5-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.6-legacy.zip b/tests/ast-parsing/compile/yul-0.4.6-legacy.zip index 0dc98a2b1..4c6ee4c4f 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.6-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.6-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.7-legacy.zip b/tests/ast-parsing/compile/yul-0.4.7-legacy.zip index d0e2e9f5e..c886d313b 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.7-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.7-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.8-legacy.zip b/tests/ast-parsing/compile/yul-0.4.8-legacy.zip index ef6acd247..e7a1a4bbc 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.8-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.8-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.4.9-legacy.zip b/tests/ast-parsing/compile/yul-0.4.9-legacy.zip index 43daa575b..098108194 100644 Binary files a/tests/ast-parsing/compile/yul-0.4.9-legacy.zip and b/tests/ast-parsing/compile/yul-0.4.9-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.0-compact.zip b/tests/ast-parsing/compile/yul-0.5.0-compact.zip index 2fff84b4b..0e82ff0df 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.0-compact.zip and b/tests/ast-parsing/compile/yul-0.5.0-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.0-legacy.zip b/tests/ast-parsing/compile/yul-0.5.0-legacy.zip index d16c13489..0360b4bd9 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.0-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.0-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.1-compact.zip b/tests/ast-parsing/compile/yul-0.5.1-compact.zip index 27eae5ac9..43abfc30e 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.1-compact.zip and b/tests/ast-parsing/compile/yul-0.5.1-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.1-legacy.zip b/tests/ast-parsing/compile/yul-0.5.1-legacy.zip index f305f7ae4..a7b00d761 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.1-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.1-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.10-compact.zip b/tests/ast-parsing/compile/yul-0.5.10-compact.zip index be72e6a61..c9d683219 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.10-compact.zip and b/tests/ast-parsing/compile/yul-0.5.10-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.10-legacy.zip b/tests/ast-parsing/compile/yul-0.5.10-legacy.zip index cd89987db..cd3620d68 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.10-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.10-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.11-compact.zip b/tests/ast-parsing/compile/yul-0.5.11-compact.zip index 5439bea0b..83ada5e08 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.11-compact.zip and b/tests/ast-parsing/compile/yul-0.5.11-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.11-legacy.zip b/tests/ast-parsing/compile/yul-0.5.11-legacy.zip index f94b2bfd8..cd559c61a 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.11-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.11-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.12-compact.zip b/tests/ast-parsing/compile/yul-0.5.12-compact.zip index 7c5ab1aa0..e8b06e254 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.12-compact.zip and b/tests/ast-parsing/compile/yul-0.5.12-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.12-legacy.zip b/tests/ast-parsing/compile/yul-0.5.12-legacy.zip index 4aa4ab5be..9dbb4e8cc 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.12-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.12-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.13-compact.zip b/tests/ast-parsing/compile/yul-0.5.13-compact.zip index c6a2b3119..d7e0dcef1 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.13-compact.zip and b/tests/ast-parsing/compile/yul-0.5.13-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.13-legacy.zip b/tests/ast-parsing/compile/yul-0.5.13-legacy.zip index 5ab20ed95..693714e34 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.13-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.13-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.14-compact.zip b/tests/ast-parsing/compile/yul-0.5.14-compact.zip index 0a5562f87..c41898a10 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.14-compact.zip and b/tests/ast-parsing/compile/yul-0.5.14-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.14-legacy.zip b/tests/ast-parsing/compile/yul-0.5.14-legacy.zip index 832876e15..6732906f7 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.14-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.14-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.15-compact.zip b/tests/ast-parsing/compile/yul-0.5.15-compact.zip index 62f381ce3..a579c6d2a 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.15-compact.zip and b/tests/ast-parsing/compile/yul-0.5.15-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.15-legacy.zip b/tests/ast-parsing/compile/yul-0.5.15-legacy.zip index f7bbad9c6..3039d497c 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.15-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.15-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.16-compact.zip b/tests/ast-parsing/compile/yul-0.5.16-compact.zip index 079ac30ed..c1b980e9b 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.16-compact.zip and b/tests/ast-parsing/compile/yul-0.5.16-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.16-legacy.zip b/tests/ast-parsing/compile/yul-0.5.16-legacy.zip index dbfc92f54..f951a74c1 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.16-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.16-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.17-compact.zip b/tests/ast-parsing/compile/yul-0.5.17-compact.zip index 9f8396f91..0bfcdf503 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.17-compact.zip and b/tests/ast-parsing/compile/yul-0.5.17-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.17-legacy.zip b/tests/ast-parsing/compile/yul-0.5.17-legacy.zip index 0171d6c13..32fc5e7d9 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.17-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.17-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.2-compact.zip b/tests/ast-parsing/compile/yul-0.5.2-compact.zip index 8c42e0f92..10bc7c332 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.2-compact.zip and b/tests/ast-parsing/compile/yul-0.5.2-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.2-legacy.zip b/tests/ast-parsing/compile/yul-0.5.2-legacy.zip index 23b99c1b9..f2b8f34ef 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.2-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.2-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.3-compact.zip b/tests/ast-parsing/compile/yul-0.5.3-compact.zip index 672a1311b..0e91dddbd 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.3-compact.zip and b/tests/ast-parsing/compile/yul-0.5.3-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.3-legacy.zip b/tests/ast-parsing/compile/yul-0.5.3-legacy.zip index 3d1a4d4ae..45e8f6c85 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.3-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.3-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.4-compact.zip b/tests/ast-parsing/compile/yul-0.5.4-compact.zip index 37610edae..69ac32ac8 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.4-compact.zip and b/tests/ast-parsing/compile/yul-0.5.4-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.4-legacy.zip b/tests/ast-parsing/compile/yul-0.5.4-legacy.zip index 45c078d0e..5793fdf11 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.4-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.4-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.5-compact.zip b/tests/ast-parsing/compile/yul-0.5.5-compact.zip index c4945a587..7779913c6 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.5-compact.zip and b/tests/ast-parsing/compile/yul-0.5.5-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.5-legacy.zip b/tests/ast-parsing/compile/yul-0.5.5-legacy.zip index 69625cd70..d0d42f838 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.5-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.5-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.6-compact.zip b/tests/ast-parsing/compile/yul-0.5.6-compact.zip index 8d0871b79..ee0d66a42 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.6-compact.zip and b/tests/ast-parsing/compile/yul-0.5.6-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.6-legacy.zip b/tests/ast-parsing/compile/yul-0.5.6-legacy.zip index abf3bc713..30681b149 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.6-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.6-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.7-compact.zip b/tests/ast-parsing/compile/yul-0.5.7-compact.zip index 75537abe2..99631e444 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.7-compact.zip and b/tests/ast-parsing/compile/yul-0.5.7-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.7-legacy.zip b/tests/ast-parsing/compile/yul-0.5.7-legacy.zip index 7dcf5676b..59c81f34d 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.7-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.7-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.8-compact.zip b/tests/ast-parsing/compile/yul-0.5.8-compact.zip index cab5eed82..1f76dd9b2 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.8-compact.zip and b/tests/ast-parsing/compile/yul-0.5.8-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.8-legacy.zip b/tests/ast-parsing/compile/yul-0.5.8-legacy.zip index 94b285db2..290d80303 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.8-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.8-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.9-compact.zip b/tests/ast-parsing/compile/yul-0.5.9-compact.zip index eece08a64..a98cc612b 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.9-compact.zip and b/tests/ast-parsing/compile/yul-0.5.9-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.5.9-legacy.zip b/tests/ast-parsing/compile/yul-0.5.9-legacy.zip index 5ef83126d..a96764433 100644 Binary files a/tests/ast-parsing/compile/yul-0.5.9-legacy.zip and b/tests/ast-parsing/compile/yul-0.5.9-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.0-compact.zip b/tests/ast-parsing/compile/yul-0.6.0-compact.zip index f0dab8bd2..d00bf0d7f 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.0-compact.zip and b/tests/ast-parsing/compile/yul-0.6.0-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.0-legacy.zip b/tests/ast-parsing/compile/yul-0.6.0-legacy.zip index 3ed77756f..6443659ca 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.0-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.0-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.1-compact.zip b/tests/ast-parsing/compile/yul-0.6.1-compact.zip index 936004eb7..92520a77c 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.1-compact.zip and b/tests/ast-parsing/compile/yul-0.6.1-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.1-legacy.zip b/tests/ast-parsing/compile/yul-0.6.1-legacy.zip index 8886dd0a9..77ae55991 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.1-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.1-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.10-compact.zip b/tests/ast-parsing/compile/yul-0.6.10-compact.zip index 8f19688c1..7c64d912e 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.10-compact.zip and b/tests/ast-parsing/compile/yul-0.6.10-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.10-legacy.zip b/tests/ast-parsing/compile/yul-0.6.10-legacy.zip index 329b24c83..c9ba5a36e 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.10-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.10-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.11-compact.zip b/tests/ast-parsing/compile/yul-0.6.11-compact.zip index 06d656014..fbf63354f 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.11-compact.zip and b/tests/ast-parsing/compile/yul-0.6.11-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.11-legacy.zip b/tests/ast-parsing/compile/yul-0.6.11-legacy.zip index de3d25860..6a07771b1 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.11-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.11-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.12-compact.zip b/tests/ast-parsing/compile/yul-0.6.12-compact.zip index 57e6803aa..89e6da149 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.12-compact.zip and b/tests/ast-parsing/compile/yul-0.6.12-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.12-legacy.zip b/tests/ast-parsing/compile/yul-0.6.12-legacy.zip index c75228659..3ffc9c790 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.12-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.12-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.2-compact.zip b/tests/ast-parsing/compile/yul-0.6.2-compact.zip index 38cafd0ab..f2c86fb52 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.2-compact.zip and b/tests/ast-parsing/compile/yul-0.6.2-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.2-legacy.zip b/tests/ast-parsing/compile/yul-0.6.2-legacy.zip index 96549c861..496f09ed1 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.2-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.2-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.3-compact.zip b/tests/ast-parsing/compile/yul-0.6.3-compact.zip index 220a41021..863c238be 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.3-compact.zip and b/tests/ast-parsing/compile/yul-0.6.3-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.3-legacy.zip b/tests/ast-parsing/compile/yul-0.6.3-legacy.zip index 602b8d74c..8d08ca124 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.3-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.3-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.4-compact.zip b/tests/ast-parsing/compile/yul-0.6.4-compact.zip index fa358615b..d30e78667 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.4-compact.zip and b/tests/ast-parsing/compile/yul-0.6.4-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.4-legacy.zip b/tests/ast-parsing/compile/yul-0.6.4-legacy.zip index 867e5d819..ca3e31a8c 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.4-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.4-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.5-compact.zip b/tests/ast-parsing/compile/yul-0.6.5-compact.zip index 0cff7e738..a6756f570 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.5-compact.zip and b/tests/ast-parsing/compile/yul-0.6.5-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.5-legacy.zip b/tests/ast-parsing/compile/yul-0.6.5-legacy.zip index bf4e5b032..cd36160d7 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.5-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.5-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.6-compact.zip b/tests/ast-parsing/compile/yul-0.6.6-compact.zip index ffa2e220f..de8b7cefa 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.6-compact.zip and b/tests/ast-parsing/compile/yul-0.6.6-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.6-legacy.zip b/tests/ast-parsing/compile/yul-0.6.6-legacy.zip index 8b62cee4d..7bc6b9804 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.6-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.6-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.7-compact.zip b/tests/ast-parsing/compile/yul-0.6.7-compact.zip index e4c2351e5..3e5dc6502 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.7-compact.zip and b/tests/ast-parsing/compile/yul-0.6.7-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.7-legacy.zip b/tests/ast-parsing/compile/yul-0.6.7-legacy.zip index ec54ef044..8e550b582 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.7-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.7-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.8-compact.zip b/tests/ast-parsing/compile/yul-0.6.8-compact.zip index 92ee5f950..20e37902a 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.8-compact.zip and b/tests/ast-parsing/compile/yul-0.6.8-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.8-legacy.zip b/tests/ast-parsing/compile/yul-0.6.8-legacy.zip index 51bbcc31a..7844ddbef 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.8-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.8-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.9-compact.zip b/tests/ast-parsing/compile/yul-0.6.9-compact.zip index a4ed79a2b..f336f9490 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.9-compact.zip and b/tests/ast-parsing/compile/yul-0.6.9-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.6.9-legacy.zip b/tests/ast-parsing/compile/yul-0.6.9-legacy.zip index 68888d562..a71b7eae2 100644 Binary files a/tests/ast-parsing/compile/yul-0.6.9-legacy.zip and b/tests/ast-parsing/compile/yul-0.6.9-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.0-compact.zip b/tests/ast-parsing/compile/yul-0.7.0-compact.zip index a1f4db45f..caa307208 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.0-compact.zip and b/tests/ast-parsing/compile/yul-0.7.0-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.0-legacy.zip b/tests/ast-parsing/compile/yul-0.7.0-legacy.zip index 52b6ffc38..67a203f50 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.0-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.0-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.1-compact.zip b/tests/ast-parsing/compile/yul-0.7.1-compact.zip index 1b10eac53..c908ed479 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.1-compact.zip and b/tests/ast-parsing/compile/yul-0.7.1-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.1-legacy.zip b/tests/ast-parsing/compile/yul-0.7.1-legacy.zip index c111eeae3..a70812fdf 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.1-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.1-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.2-compact.zip b/tests/ast-parsing/compile/yul-0.7.2-compact.zip index e89c5ef55..26469b529 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.2-compact.zip and b/tests/ast-parsing/compile/yul-0.7.2-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.2-legacy.zip b/tests/ast-parsing/compile/yul-0.7.2-legacy.zip index 0d13da6f5..a9b807c36 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.2-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.2-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.3-compact.zip b/tests/ast-parsing/compile/yul-0.7.3-compact.zip index c789c5020..ed64e8e9b 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.3-compact.zip and b/tests/ast-parsing/compile/yul-0.7.3-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.3-legacy.zip b/tests/ast-parsing/compile/yul-0.7.3-legacy.zip index 902fa2885..d59cb8d02 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.3-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.3-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.4-compact.zip b/tests/ast-parsing/compile/yul-0.7.4-compact.zip index 7bb60cd41..f86c4d3a7 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.4-compact.zip and b/tests/ast-parsing/compile/yul-0.7.4-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.4-legacy.zip b/tests/ast-parsing/compile/yul-0.7.4-legacy.zip index 4363fbe5f..039a1652e 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.4-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.4-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.5-compact.zip b/tests/ast-parsing/compile/yul-0.7.5-compact.zip index d498ca645..a394648c5 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.5-compact.zip and b/tests/ast-parsing/compile/yul-0.7.5-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.5-legacy.zip b/tests/ast-parsing/compile/yul-0.7.5-legacy.zip index dbe266aad..96c19062e 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.5-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.5-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.6-compact.zip b/tests/ast-parsing/compile/yul-0.7.6-compact.zip index 9e01a74f2..124cc638f 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.6-compact.zip and b/tests/ast-parsing/compile/yul-0.7.6-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.7.6-legacy.zip b/tests/ast-parsing/compile/yul-0.7.6-legacy.zip index 2d7a3022f..acdc43163 100644 Binary files a/tests/ast-parsing/compile/yul-0.7.6-legacy.zip and b/tests/ast-parsing/compile/yul-0.7.6-legacy.zip differ diff --git a/tests/ast-parsing/compile/yul-0.8.0-compact.zip b/tests/ast-parsing/compile/yul-0.8.0-compact.zip index 0447ac8fd..30b7cb79e 100644 Binary files a/tests/ast-parsing/compile/yul-0.8.0-compact.zip and b/tests/ast-parsing/compile/yul-0.8.0-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.8.1-compact.zip b/tests/ast-parsing/compile/yul-0.8.1-compact.zip index 806ba5737..0d57d712a 100644 Binary files a/tests/ast-parsing/compile/yul-0.8.1-compact.zip and b/tests/ast-parsing/compile/yul-0.8.1-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.8.2-compact.zip b/tests/ast-parsing/compile/yul-0.8.2-compact.zip index 506b7f1de..84040bca9 100644 Binary files a/tests/ast-parsing/compile/yul-0.8.2-compact.zip and b/tests/ast-parsing/compile/yul-0.8.2-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.8.3-compact.zip b/tests/ast-parsing/compile/yul-0.8.3-compact.zip index c5d71e80f..6f1b5281e 100644 Binary files a/tests/ast-parsing/compile/yul-0.8.3-compact.zip and b/tests/ast-parsing/compile/yul-0.8.3-compact.zip differ diff --git a/tests/ast-parsing/compile/yul-0.8.4-compact.zip b/tests/ast-parsing/compile/yul-0.8.4-compact.zip index 6e367167f..5758f8d09 100644 Binary files a/tests/ast-parsing/compile/yul-0.8.4-compact.zip and b/tests/ast-parsing/compile/yul-0.8.4-compact.zip differ diff --git a/tests/ast-parsing/expected/yul-0.6.0-compact.json b/tests/ast-parsing/expected/yul-0.6.0-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.0-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.1-compact.json b/tests/ast-parsing/expected/yul-0.6.1-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.1-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.10-compact.json b/tests/ast-parsing/expected/yul-0.6.10-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.10-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.11-compact.json b/tests/ast-parsing/expected/yul-0.6.11-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.11-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.12-compact.json b/tests/ast-parsing/expected/yul-0.6.12-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.12-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.2-compact.json b/tests/ast-parsing/expected/yul-0.6.2-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.2-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.3-compact.json b/tests/ast-parsing/expected/yul-0.6.3-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.3-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.4-compact.json b/tests/ast-parsing/expected/yul-0.6.4-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.4-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.5-compact.json b/tests/ast-parsing/expected/yul-0.6.5-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.5-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.6-compact.json b/tests/ast-parsing/expected/yul-0.6.6-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.6-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.7-compact.json b/tests/ast-parsing/expected/yul-0.6.7-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.7-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.8-compact.json b/tests/ast-parsing/expected/yul-0.6.8-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.8-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.6.9-compact.json b/tests/ast-parsing/expected/yul-0.6.9-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.6.9-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.0-compact.json b/tests/ast-parsing/expected/yul-0.7.0-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.0-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.1-compact.json b/tests/ast-parsing/expected/yul-0.7.1-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.1-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.2-compact.json b/tests/ast-parsing/expected/yul-0.7.2-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.2-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.3-compact.json b/tests/ast-parsing/expected/yul-0.7.3-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.3-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.4-compact.json b/tests/ast-parsing/expected/yul-0.7.4-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.4-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.5-compact.json b/tests/ast-parsing/expected/yul-0.7.5-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.5-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.7.6-compact.json b/tests/ast-parsing/expected/yul-0.7.6-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.7.6-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.8.0-compact.json b/tests/ast-parsing/expected/yul-0.8.0-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.8.0-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.8.1-compact.json b/tests/ast-parsing/expected/yul-0.8.1-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.8.1-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.8.2-compact.json b/tests/ast-parsing/expected/yul-0.8.2-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.8.2-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.8.3-compact.json b/tests/ast-parsing/expected/yul-0.8.3-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.8.3-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/expected/yul-0.8.4-compact.json b/tests/ast-parsing/expected/yul-0.8.4-compact.json new file mode 100644 index 000000000..04cb49aa8 --- /dev/null +++ b/tests/ast-parsing/expected/yul-0.8.4-compact.json @@ -0,0 +1,6 @@ +{ + "L": {}, + "C": { + "f(uint256,uint256[])": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: NEW VARIABLE 1\n\"];\n1->2;\n2[label=\"Node Type: NEW VARIABLE 2\n\"];\n2->3;\n3[label=\"Node Type: INLINE ASM 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: EXPRESSION 5\n\"];\n5->6;\n6[label=\"Node Type: NEW VARIABLE 6\n\"];\n6->7;\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->10;\n10[label=\"Node Type: NEW VARIABLE 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->13;\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: NEW VARIABLE 16\n\"];\n16->17;\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: NEW VARIABLE 18\n\"];\n18->19;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: NEW VARIABLE 20\n\"];\n20->21;\n21[label=\"Node Type: EXPRESSION 21\n\"];\n21->22;\n22[label=\"Node Type: NEW VARIABLE 22\n\"];\n22->23;\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->24;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: EXPRESSION 26\n\"];\n26->27;\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->28;\n28[label=\"Node Type: NEW VARIABLE 28\n\"];\n28->29;\n29[label=\"Node Type: EXPRESSION 29\n\"];\n}\n" + } +} \ No newline at end of file diff --git a/tests/ast-parsing/yul-0.4.11.sol b/tests/ast-parsing/yul-0.4.11.sol index e67f2b5bf..aa1f0d772 100644 --- a/tests/ast-parsing/yul-0.4.11.sol +++ b/tests/ast-parsing/yul-0.4.11.sol @@ -34,7 +34,7 @@ contract C { let aStoreC := mul(sload(storC_slot), storC_offset) - let libAddr := L + // let libAddr := L // Not supported for now } } -} \ No newline at end of file +} diff --git a/tests/ast-parsing/yul-0.7.0.sol b/tests/ast-parsing/yul-0.7.0.sol index eb5de4d88..68cbbd6cd 100644 --- a/tests/ast-parsing/yul-0.7.0.sol +++ b/tests/ast-parsing/yul-0.7.0.sol @@ -34,7 +34,7 @@ contract C { let aStoreC := mul(sload(storC.slot), storC.offset) - let libAddr := L + // let libAddr := L // Not supported for now } } -} \ No newline at end of file +} diff --git a/tests/test_ast_parsing.py b/tests/test_ast_parsing.py index a61d77946..abc6fe2a6 100644 --- a/tests/test_ast_parsing.py +++ b/tests/test_ast_parsing.py @@ -67,9 +67,6 @@ XFAIL = ( + [f"variabledeclaration_0.7.{ver}_legacy" for ver in ALL_07] + [f"variabledeclaration_0.8.{ver}_legacy" for ver in ALL_08] + [f"variabledeclaration_0.4.{ver}_compact" for ver in range(12, 27)] - + [f"yul_0.6.{ver}_compact" for ver in ALL_06] - + [f"yul_0.7.{ver}_compact" for ver in ALL_07] - + [f"yul_0.8.{ver}_compact" for ver in ALL_08] + [f"top-level_0.7.{ver}_legacy" for ver in ALL_07] + [f"top-level_0.7.{ver}_compact" for ver in ALL_07] + [f"top-level_0.8.{ver}_legacy" for ver in ALL_08]