diff --git a/tests/e2e/solc_parsing/test_ast_parsing.py b/tests/e2e/solc_parsing/test_ast_parsing.py index 307e6736f..7c425e517 100644 --- a/tests/e2e/solc_parsing/test_ast_parsing.py +++ b/tests/e2e/solc_parsing/test_ast_parsing.py @@ -287,6 +287,10 @@ ALL_TESTS = [ "if-all.sol", ALL_VERSIONS, ), + Test( + "if-with-ternary-condition-all.sol", + ALL_VERSIONS, + ), Test( "modifier-all.sol", VERSIONS_04 + VERSIONS_05 + VERSIONS_06, @@ -331,6 +335,10 @@ ALL_TESTS = [ "dowhile-0.4.5.sol", make_version(4, 5, 9) + VERSIONS_05 + VERSIONS_06 + VERSIONS_07 + VERSIONS_08, ), + Test( + "dowhile-with-ternary-condition-0.4.5.sol", + make_version(4, 5, 9) + VERSIONS_05 + VERSIONS_06 + VERSIONS_07 + VERSIONS_08, + ), Test( "custom_error-0.4.0.sol", ALL_VERSIONS, @@ -367,6 +375,10 @@ ALL_TESTS = [ "for-all.sol", ALL_VERSIONS, ), + Test( + "for-with-ternary-condition-all.sol", + ALL_VERSIONS, + ), Test("trycatch-0.4.0.sol", VERSIONS_04 + VERSIONS_05), # TODO: legacy failing Test( @@ -412,6 +424,14 @@ ALL_TESTS = [ "while-all.sol", ALL_VERSIONS, ), + Test( + "while-with-ternary-condition-all.sol", + ALL_VERSIONS, + ), + Test( + "nested-while-with-ternary-condition-all.sol", + ALL_VERSIONS, + ), Test( "complex_imports/import_free/Caller.sol", ["0.8.2"], diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.zip new file mode 100644 index 000000000..3ff230dee Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.zip new file mode 100644 index 000000000..ddf2ad0dc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.zip new file mode 100644 index 000000000..00f1d962d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.zip new file mode 100644 index 000000000..5bbe0012f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.zip new file mode 100644 index 000000000..f2ba3142f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.zip new file mode 100644 index 000000000..a857703b9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.zip new file mode 100644 index 000000000..04b70baa8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.zip new file mode 100644 index 000000000..b08922fbf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.zip new file mode 100644 index 000000000..ee628d6c1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.zip new file mode 100644 index 000000000..8437ea141 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.zip new file mode 100644 index 000000000..2da26fd92 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.zip new file mode 100644 index 000000000..e2662feb8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.zip new file mode 100644 index 000000000..2be23da53 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.zip new file mode 100644 index 000000000..5ad4cc3d2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.zip new file mode 100644 index 000000000..dfdd1f53e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.zip new file mode 100644 index 000000000..7152778e0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.zip new file mode 100644 index 000000000..9aef9926a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.zip new file mode 100644 index 000000000..97e302bcc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.zip new file mode 100644 index 000000000..2e34eb0ec Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.zip new file mode 100644 index 000000000..e4807e6b2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.zip new file mode 100644 index 000000000..e6e6707fe Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.zip new file mode 100644 index 000000000..ef8aaaa22 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.zip new file mode 100644 index 000000000..f6da920ae Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.zip new file mode 100644 index 000000000..6e6a6c1ac Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.zip new file mode 100644 index 000000000..8dd324239 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.zip new file mode 100644 index 000000000..9cb1b5813 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.zip new file mode 100644 index 000000000..715bd5314 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.zip new file mode 100644 index 000000000..5f77b12b1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.zip new file mode 100644 index 000000000..2d2987251 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.zip new file mode 100644 index 000000000..5055c3526 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.zip new file mode 100644 index 000000000..a20e1e92d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.zip new file mode 100644 index 000000000..4b35a9beb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.zip new file mode 100644 index 000000000..f6df61a46 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.zip new file mode 100644 index 000000000..596f29325 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.zip new file mode 100644 index 000000000..ba7c4af9f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.zip new file mode 100644 index 000000000..c26b8a51b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.zip new file mode 100644 index 000000000..38d4058f8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.zip new file mode 100644 index 000000000..4ca8bd08e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.zip new file mode 100644 index 000000000..c039ea668 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.zip new file mode 100644 index 000000000..c049328a9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.zip new file mode 100644 index 000000000..7def1aec2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.zip new file mode 100644 index 000000000..9fcf0f317 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.zip new file mode 100644 index 000000000..b7a89bd6d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.zip new file mode 100644 index 000000000..756e43d29 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.zip new file mode 100644 index 000000000..e0d7707ab Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.zip new file mode 100644 index 000000000..4c935d8aa Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.zip new file mode 100644 index 000000000..11447b6ef Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.zip new file mode 100644 index 000000000..85065d62e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.zip new file mode 100644 index 000000000..3baa5b464 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.zip new file mode 100644 index 000000000..e764fdfcb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.zip new file mode 100644 index 000000000..bcceb09e0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.zip new file mode 100644 index 000000000..77d9f37ed Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.zip new file mode 100644 index 000000000..a0995458c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.zip new file mode 100644 index 000000000..2d24029ab Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.zip new file mode 100644 index 000000000..af3001cf0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.zip new file mode 100644 index 000000000..e7c3df245 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.zip new file mode 100644 index 000000000..96bcd0107 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.zip new file mode 100644 index 000000000..42927c815 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.zip new file mode 100644 index 000000000..d851b2ad3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.zip new file mode 100644 index 000000000..0921d643d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.zip new file mode 100644 index 000000000..961f97374 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.zip new file mode 100644 index 000000000..b2bd0bce0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.zip new file mode 100644 index 000000000..1a84b0493 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.zip new file mode 100644 index 000000000..a4b2fc73e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.zip new file mode 100644 index 000000000..076999cee Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.zip new file mode 100644 index 000000000..be9cd4729 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.zip new file mode 100644 index 000000000..70b7f647e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.zip new file mode 100644 index 000000000..06eeb80fb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.zip new file mode 100644 index 000000000..3b813e22c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.zip new file mode 100644 index 000000000..3839a3e78 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.zip new file mode 100644 index 000000000..c2b175614 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.zip new file mode 100644 index 000000000..7ff1048b7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.zip new file mode 100644 index 000000000..3990a7ab6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.zip new file mode 100644 index 000000000..a51a198a9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.zip new file mode 100644 index 000000000..930b0c5b0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.zip new file mode 100644 index 000000000..c9af47fa1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.zip new file mode 100644 index 000000000..716e232cf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.zip new file mode 100644 index 000000000..8dffa58b1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.zip new file mode 100644 index 000000000..8524f5ae3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.zip new file mode 100644 index 000000000..9ca5e9720 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.zip new file mode 100644 index 000000000..ad707c11c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.zip new file mode 100644 index 000000000..6678ae4ed Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.zip new file mode 100644 index 000000000..741700218 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.zip new file mode 100644 index 000000000..f0374de5e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.zip new file mode 100644 index 000000000..4e2be63ab Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.zip new file mode 100644 index 000000000..b521aee14 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.zip new file mode 100644 index 000000000..2fda8ad58 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.zip new file mode 100644 index 000000000..1d8321ce9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.zip new file mode 100644 index 000000000..3e9ab657c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.zip new file mode 100644 index 000000000..4279c9ef5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.zip new file mode 100644 index 000000000..b6bfc5397 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.zip new file mode 100644 index 000000000..9f06e3593 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.zip new file mode 100644 index 000000000..f5bcfc422 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.zip new file mode 100644 index 000000000..6acdb0daf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.zip new file mode 100644 index 000000000..d71ddc4fe Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.zip new file mode 100644 index 000000000..2a85d5258 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.zip new file mode 100644 index 000000000..3deb78ef2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.0-legacy.zip new file mode 100644 index 000000000..f382d1ccb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.1-legacy.zip new file mode 100644 index 000000000..7d3ffaa84 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.10-legacy.zip new file mode 100644 index 000000000..0eb8d3947 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.11-legacy.zip new file mode 100644 index 000000000..ae5a2d946 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.12-compact.zip new file mode 100644 index 000000000..803ee9f92 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.12-legacy.zip new file mode 100644 index 000000000..1c47976a7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.13-compact.zip new file mode 100644 index 000000000..18b5ab753 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.13-legacy.zip new file mode 100644 index 000000000..6f0dd008f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.14-compact.zip new file mode 100644 index 000000000..148a2627a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.14-legacy.zip new file mode 100644 index 000000000..31489b0a2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.15-compact.zip new file mode 100644 index 000000000..a4dc509f7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.15-legacy.zip new file mode 100644 index 000000000..410732bbd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.16-compact.zip new file mode 100644 index 000000000..48983a8c0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.16-legacy.zip new file mode 100644 index 000000000..c63c40bd2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.17-compact.zip new file mode 100644 index 000000000..2385c655a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.17-legacy.zip new file mode 100644 index 000000000..deff04049 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.18-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.18-compact.zip new file mode 100644 index 000000000..4eb3d347a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.18-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.18-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.18-legacy.zip new file mode 100644 index 000000000..02d5622d9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.18-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.19-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.19-compact.zip new file mode 100644 index 000000000..e36aec090 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.19-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.19-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.19-legacy.zip new file mode 100644 index 000000000..7027df2cf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.19-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.2-legacy.zip new file mode 100644 index 000000000..cb484ddd8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.20-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.20-compact.zip new file mode 100644 index 000000000..dd0dce6ff Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.20-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.20-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.20-legacy.zip new file mode 100644 index 000000000..8412d05cf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.20-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.21-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.21-compact.zip new file mode 100644 index 000000000..dbeea89e1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.21-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.21-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.21-legacy.zip new file mode 100644 index 000000000..adb8f1d51 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.21-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.22-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.22-compact.zip new file mode 100644 index 000000000..916ddbc80 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.22-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.22-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.22-legacy.zip new file mode 100644 index 000000000..703a1d11e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.22-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.23-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.23-compact.zip new file mode 100644 index 000000000..e83556c7b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.23-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.23-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.23-legacy.zip new file mode 100644 index 000000000..1b2f4d413 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.23-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.24-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.24-compact.zip new file mode 100644 index 000000000..770067f6d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.24-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.24-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.24-legacy.zip new file mode 100644 index 000000000..8a148dd77 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.24-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.25-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.25-compact.zip new file mode 100644 index 000000000..8851b388d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.25-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.25-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.25-legacy.zip new file mode 100644 index 000000000..57905a325 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.25-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.26-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.26-compact.zip new file mode 100644 index 000000000..50e0a5315 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.26-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.26-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.26-legacy.zip new file mode 100644 index 000000000..da8110e24 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.26-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.3-legacy.zip new file mode 100644 index 000000000..46966fa68 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.4-legacy.zip new file mode 100644 index 000000000..03c71ac6a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.5-legacy.zip new file mode 100644 index 000000000..877b70053 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.6-legacy.zip new file mode 100644 index 000000000..df898eff5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.7-legacy.zip new file mode 100644 index 000000000..e38b9a84e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.8-legacy.zip new file mode 100644 index 000000000..f9e6d7211 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.9-legacy.zip new file mode 100644 index 000000000..ccccc01f7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.4.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.0-compact.zip new file mode 100644 index 000000000..31f1c0721 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.0-legacy.zip new file mode 100644 index 000000000..2b3fff837 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.1-compact.zip new file mode 100644 index 000000000..b7886b3cc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.1-legacy.zip new file mode 100644 index 000000000..ad7e38337 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.10-compact.zip new file mode 100644 index 000000000..8874c34eb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.10-legacy.zip new file mode 100644 index 000000000..91f981501 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.11-compact.zip new file mode 100644 index 000000000..5c8f8bf23 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.11-legacy.zip new file mode 100644 index 000000000..4b9c9c849 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.12-compact.zip new file mode 100644 index 000000000..ed8c440fc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.12-legacy.zip new file mode 100644 index 000000000..0e36f4d59 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.13-compact.zip new file mode 100644 index 000000000..527c96977 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.13-legacy.zip new file mode 100644 index 000000000..8b57d00de Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.14-compact.zip new file mode 100644 index 000000000..b740aac7a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.14-legacy.zip new file mode 100644 index 000000000..76f6b1f3d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.15-compact.zip new file mode 100644 index 000000000..bd232f085 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.15-legacy.zip new file mode 100644 index 000000000..a7260eef4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.16-compact.zip new file mode 100644 index 000000000..cc0f105b6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.16-legacy.zip new file mode 100644 index 000000000..84589abde Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.17-compact.zip new file mode 100644 index 000000000..d460a822a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.17-legacy.zip new file mode 100644 index 000000000..3ff9a1a7e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.2-compact.zip new file mode 100644 index 000000000..8aeef5779 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.2-legacy.zip new file mode 100644 index 000000000..d01407e11 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.3-compact.zip new file mode 100644 index 000000000..0df18871c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.3-legacy.zip new file mode 100644 index 000000000..7cd441f0d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.4-compact.zip new file mode 100644 index 000000000..17907c00e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.4-legacy.zip new file mode 100644 index 000000000..ae7be6af1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.5-compact.zip new file mode 100644 index 000000000..967b4e1ea Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.5-legacy.zip new file mode 100644 index 000000000..496d8206f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.6-compact.zip new file mode 100644 index 000000000..a3b9d6e19 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.6-legacy.zip new file mode 100644 index 000000000..66c3325e9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.7-compact.zip new file mode 100644 index 000000000..3e5224c5e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.7-legacy.zip new file mode 100644 index 000000000..8fca91011 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.8-compact.zip new file mode 100644 index 000000000..7b6ab2e4b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.8-legacy.zip new file mode 100644 index 000000000..dd0f29435 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.9-compact.zip new file mode 100644 index 000000000..4099c543a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.9-legacy.zip new file mode 100644 index 000000000..bf9a453b2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.5.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.0-compact.zip new file mode 100644 index 000000000..9211a5a17 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.0-legacy.zip new file mode 100644 index 000000000..72c3ebad1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.1-compact.zip new file mode 100644 index 000000000..b8662dcfb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.1-legacy.zip new file mode 100644 index 000000000..a0b94d0f0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.10-compact.zip new file mode 100644 index 000000000..37ed8088c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.10-legacy.zip new file mode 100644 index 000000000..5ddc6eb4e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.11-compact.zip new file mode 100644 index 000000000..9288bba50 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.11-legacy.zip new file mode 100644 index 000000000..4d6afa50d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.12-compact.zip new file mode 100644 index 000000000..02120dd0a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.12-legacy.zip new file mode 100644 index 000000000..07ddd15a4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.2-compact.zip new file mode 100644 index 000000000..5662412da Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.2-legacy.zip new file mode 100644 index 000000000..cd26ae32c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.3-compact.zip new file mode 100644 index 000000000..2f187ae65 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.3-legacy.zip new file mode 100644 index 000000000..df4e2c0fc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.4-compact.zip new file mode 100644 index 000000000..deb9ff26a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.4-legacy.zip new file mode 100644 index 000000000..e022c531a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.5-compact.zip new file mode 100644 index 000000000..d59f98ead Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.5-legacy.zip new file mode 100644 index 000000000..29a647016 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.6-compact.zip new file mode 100644 index 000000000..90c6d5559 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.6-legacy.zip new file mode 100644 index 000000000..fbf1e843a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.7-compact.zip new file mode 100644 index 000000000..0da26a53b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.7-legacy.zip new file mode 100644 index 000000000..9b45ef796 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.8-compact.zip new file mode 100644 index 000000000..5e7c5b04c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.8-legacy.zip new file mode 100644 index 000000000..c1e2ea801 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.9-compact.zip new file mode 100644 index 000000000..12d387345 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.9-legacy.zip new file mode 100644 index 000000000..6fe3c63a2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.6.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.0-compact.zip new file mode 100644 index 000000000..57e056201 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.0-legacy.zip new file mode 100644 index 000000000..d9c8fed94 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.1-compact.zip new file mode 100644 index 000000000..98897ffab Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.1-legacy.zip new file mode 100644 index 000000000..af1ed6378 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.2-compact.zip new file mode 100644 index 000000000..b916dc4de Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.2-legacy.zip new file mode 100644 index 000000000..f655e14fe Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.3-compact.zip new file mode 100644 index 000000000..fb7ba8fc7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.3-legacy.zip new file mode 100644 index 000000000..8175883b2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.4-compact.zip new file mode 100644 index 000000000..4692df897 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.4-legacy.zip new file mode 100644 index 000000000..a341cdbdf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.5-compact.zip new file mode 100644 index 000000000..9161add06 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.5-legacy.zip new file mode 100644 index 000000000..39e150481 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.6-compact.zip new file mode 100644 index 000000000..975b650be Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.6-legacy.zip new file mode 100644 index 000000000..12af78e64 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.7.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.0-compact.zip new file mode 100644 index 000000000..9e3e98ce0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.1-compact.zip new file mode 100644 index 000000000..4ec6ca04d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.10-compact.zip new file mode 100644 index 000000000..a3d3b1f9c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.11-compact.zip new file mode 100644 index 000000000..84e254911 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.12-compact.zip new file mode 100644 index 000000000..fb085250c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.13-compact.zip new file mode 100644 index 000000000..aa362d24f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.14-compact.zip new file mode 100644 index 000000000..2cd0f33f3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.15-compact.zip new file mode 100644 index 000000000..6c1a79a1e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.2-compact.zip new file mode 100644 index 000000000..c2bca2c32 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.3-compact.zip new file mode 100644 index 000000000..27ca3f029 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.4-compact.zip new file mode 100644 index 000000000..a069468ec Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.5-compact.zip new file mode 100644 index 000000000..ded89f542 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.6-compact.zip new file mode 100644 index 000000000..411868f4a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.7-compact.zip new file mode 100644 index 000000000..133ebca6d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.8-compact.zip new file mode 100644 index 000000000..fe0441235 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.9-compact.zip new file mode 100644 index 000000000..488a54d42 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/for-with-ternary-condition-all.sol-0.8.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.0-legacy.zip new file mode 100644 index 000000000..80b0c3887 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.1-legacy.zip new file mode 100644 index 000000000..5a4b0847c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.10-legacy.zip new file mode 100644 index 000000000..44098356e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.11-legacy.zip new file mode 100644 index 000000000..1c6452f1c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.12-compact.zip new file mode 100644 index 000000000..1162a31b3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.12-legacy.zip new file mode 100644 index 000000000..30b80d5b9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.13-compact.zip new file mode 100644 index 000000000..d303d958c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.13-legacy.zip new file mode 100644 index 000000000..40806421e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.14-compact.zip new file mode 100644 index 000000000..167a5d0b8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.14-legacy.zip new file mode 100644 index 000000000..ff8ca7ee0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.15-compact.zip new file mode 100644 index 000000000..8183ac093 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.15-legacy.zip new file mode 100644 index 000000000..7f5a553b7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.16-compact.zip new file mode 100644 index 000000000..514295d23 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.16-legacy.zip new file mode 100644 index 000000000..a32aaab73 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.17-compact.zip new file mode 100644 index 000000000..0899bf960 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.17-legacy.zip new file mode 100644 index 000000000..dbe81f845 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.18-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.18-compact.zip new file mode 100644 index 000000000..2634e2990 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.18-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.18-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.18-legacy.zip new file mode 100644 index 000000000..e96f25839 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.18-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.19-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.19-compact.zip new file mode 100644 index 000000000..214057585 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.19-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.19-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.19-legacy.zip new file mode 100644 index 000000000..a680954f7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.19-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.2-legacy.zip new file mode 100644 index 000000000..c65934746 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.20-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.20-compact.zip new file mode 100644 index 000000000..f80d86653 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.20-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.20-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.20-legacy.zip new file mode 100644 index 000000000..b50ec359c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.20-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.21-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.21-compact.zip new file mode 100644 index 000000000..61ea0928e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.21-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.21-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.21-legacy.zip new file mode 100644 index 000000000..09f01670e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.21-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.22-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.22-compact.zip new file mode 100644 index 000000000..c5330cf3d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.22-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.22-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.22-legacy.zip new file mode 100644 index 000000000..eb010f45a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.22-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.23-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.23-compact.zip new file mode 100644 index 000000000..372d87fe7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.23-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.23-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.23-legacy.zip new file mode 100644 index 000000000..da45a836a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.23-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.24-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.24-compact.zip new file mode 100644 index 000000000..ce38718d5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.24-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.24-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.24-legacy.zip new file mode 100644 index 000000000..cdc7f1f07 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.24-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.25-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.25-compact.zip new file mode 100644 index 000000000..ff6c03511 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.25-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.25-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.25-legacy.zip new file mode 100644 index 000000000..374a477c4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.25-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.26-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.26-compact.zip new file mode 100644 index 000000000..9fc6d1946 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.26-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.26-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.26-legacy.zip new file mode 100644 index 000000000..b8db835bb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.26-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.3-legacy.zip new file mode 100644 index 000000000..53df69d92 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.4-legacy.zip new file mode 100644 index 000000000..5c01cb0f7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.5-legacy.zip new file mode 100644 index 000000000..54391106f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.6-legacy.zip new file mode 100644 index 000000000..2b843ff80 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.7-legacy.zip new file mode 100644 index 000000000..65d971d7e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.8-legacy.zip new file mode 100644 index 000000000..2e2bc9ee0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.9-legacy.zip new file mode 100644 index 000000000..75166d308 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.4.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.0-compact.zip new file mode 100644 index 000000000..35844cf60 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.0-legacy.zip new file mode 100644 index 000000000..370302be1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.1-compact.zip new file mode 100644 index 000000000..f90af72c7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.1-legacy.zip new file mode 100644 index 000000000..25cda139c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.10-compact.zip new file mode 100644 index 000000000..82ae6b273 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.10-legacy.zip new file mode 100644 index 000000000..04ac3beb9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.11-compact.zip new file mode 100644 index 000000000..16edaf438 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.11-legacy.zip new file mode 100644 index 000000000..cd3c0942c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.12-compact.zip new file mode 100644 index 000000000..f4f180480 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.12-legacy.zip new file mode 100644 index 000000000..5758a847e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.13-compact.zip new file mode 100644 index 000000000..3b2ea1690 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.13-legacy.zip new file mode 100644 index 000000000..533d9b027 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.14-compact.zip new file mode 100644 index 000000000..c057cc95d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.14-legacy.zip new file mode 100644 index 000000000..9a0923f85 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.15-compact.zip new file mode 100644 index 000000000..40bebdc06 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.15-legacy.zip new file mode 100644 index 000000000..bca20b799 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.16-compact.zip new file mode 100644 index 000000000..f6f32940e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.16-legacy.zip new file mode 100644 index 000000000..8a97dfb7b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.17-compact.zip new file mode 100644 index 000000000..9727c59ab Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.17-legacy.zip new file mode 100644 index 000000000..c25842161 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.2-compact.zip new file mode 100644 index 000000000..075d6d183 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.2-legacy.zip new file mode 100644 index 000000000..dd6f36f4f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.3-compact.zip new file mode 100644 index 000000000..0a6f6fb2f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.3-legacy.zip new file mode 100644 index 000000000..c24eac2c8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.4-compact.zip new file mode 100644 index 000000000..72f1e7863 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.4-legacy.zip new file mode 100644 index 000000000..32779ab19 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.5-compact.zip new file mode 100644 index 000000000..76813bfce Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.5-legacy.zip new file mode 100644 index 000000000..7c85f9eb8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.6-compact.zip new file mode 100644 index 000000000..7044f3c24 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.6-legacy.zip new file mode 100644 index 000000000..d4a1c0387 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.7-compact.zip new file mode 100644 index 000000000..948fa4347 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.7-legacy.zip new file mode 100644 index 000000000..4e2f5eabd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.8-compact.zip new file mode 100644 index 000000000..66ee55683 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.8-legacy.zip new file mode 100644 index 000000000..92a545870 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.9-compact.zip new file mode 100644 index 000000000..cfac2d950 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.9-legacy.zip new file mode 100644 index 000000000..ac08b8cf0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.5.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.0-compact.zip new file mode 100644 index 000000000..0af8d9b4a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.0-legacy.zip new file mode 100644 index 000000000..8cb66842f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.1-compact.zip new file mode 100644 index 000000000..899c7af45 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.1-legacy.zip new file mode 100644 index 000000000..ee88a25ea Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.10-compact.zip new file mode 100644 index 000000000..c56d7e962 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.10-legacy.zip new file mode 100644 index 000000000..afec9421a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.11-compact.zip new file mode 100644 index 000000000..e467400b5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.11-legacy.zip new file mode 100644 index 000000000..3a78ce357 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.12-compact.zip new file mode 100644 index 000000000..0da33356e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.12-legacy.zip new file mode 100644 index 000000000..90a5d467b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.2-compact.zip new file mode 100644 index 000000000..7f22c7d6f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.2-legacy.zip new file mode 100644 index 000000000..b4ba2cdae Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.3-compact.zip new file mode 100644 index 000000000..8f3002b7a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.3-legacy.zip new file mode 100644 index 000000000..58115cce2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.4-compact.zip new file mode 100644 index 000000000..564ef12d2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.4-legacy.zip new file mode 100644 index 000000000..cfd09d94a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.5-compact.zip new file mode 100644 index 000000000..05e86e593 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.5-legacy.zip new file mode 100644 index 000000000..fdd2eedb4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.6-compact.zip new file mode 100644 index 000000000..5823e4ef3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.6-legacy.zip new file mode 100644 index 000000000..58d53ecd8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.7-compact.zip new file mode 100644 index 000000000..bd7a70c81 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.7-legacy.zip new file mode 100644 index 000000000..631c20dca Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.8-compact.zip new file mode 100644 index 000000000..d98e43e5a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.8-legacy.zip new file mode 100644 index 000000000..07619adef Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.9-compact.zip new file mode 100644 index 000000000..3800e9371 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.9-legacy.zip new file mode 100644 index 000000000..f0fece26b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.6.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.0-compact.zip new file mode 100644 index 000000000..3291284bc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.0-legacy.zip new file mode 100644 index 000000000..ed1283618 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.1-compact.zip new file mode 100644 index 000000000..1773fb32d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.1-legacy.zip new file mode 100644 index 000000000..826eb943c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.2-compact.zip new file mode 100644 index 000000000..7475bd4f0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.2-legacy.zip new file mode 100644 index 000000000..35f7e42a2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.3-compact.zip new file mode 100644 index 000000000..37fc2780c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.3-legacy.zip new file mode 100644 index 000000000..fd798496b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.4-compact.zip new file mode 100644 index 000000000..4bb63289c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.4-legacy.zip new file mode 100644 index 000000000..404598502 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.5-compact.zip new file mode 100644 index 000000000..76e61464c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.5-legacy.zip new file mode 100644 index 000000000..b6e8d4538 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.6-compact.zip new file mode 100644 index 000000000..4cfacdc26 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.6-legacy.zip new file mode 100644 index 000000000..88da8c0df Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.7.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.0-compact.zip new file mode 100644 index 000000000..88cc99ed5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.1-compact.zip new file mode 100644 index 000000000..fad180007 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.10-compact.zip new file mode 100644 index 000000000..18c8cd7fb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.11-compact.zip new file mode 100644 index 000000000..57178431e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.12-compact.zip new file mode 100644 index 000000000..1fdba25bc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.13-compact.zip new file mode 100644 index 000000000..97432a1da Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.14-compact.zip new file mode 100644 index 000000000..15e5f6b4f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.15-compact.zip new file mode 100644 index 000000000..85a9cecce Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.2-compact.zip new file mode 100644 index 000000000..6c397a4c2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.3-compact.zip new file mode 100644 index 000000000..b30269219 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.4-compact.zip new file mode 100644 index 000000000..bcf8bcbfd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.5-compact.zip new file mode 100644 index 000000000..f94cb7ab4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.6-compact.zip new file mode 100644 index 000000000..fe8bc3327 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.7-compact.zip new file mode 100644 index 000000000..6de4f29fc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.8-compact.zip new file mode 100644 index 000000000..dbb0be984 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.9-compact.zip new file mode 100644 index 000000000..c072df253 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/if-with-ternary-condition-all.sol-0.8.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.0-legacy.zip new file mode 100644 index 000000000..58c301266 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.1-legacy.zip new file mode 100644 index 000000000..07900121e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.10-legacy.zip new file mode 100644 index 000000000..27396cf4a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.11-legacy.zip new file mode 100644 index 000000000..6c503f742 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.12-compact.zip new file mode 100644 index 000000000..65d434349 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.12-legacy.zip new file mode 100644 index 000000000..f5cab0465 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.13-compact.zip new file mode 100644 index 000000000..b32f449bb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.13-legacy.zip new file mode 100644 index 000000000..45ac256d2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.14-compact.zip new file mode 100644 index 000000000..a14244c2f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.14-legacy.zip new file mode 100644 index 000000000..ddb48c786 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.15-compact.zip new file mode 100644 index 000000000..01f293fe6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.15-legacy.zip new file mode 100644 index 000000000..a02040572 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.16-compact.zip new file mode 100644 index 000000000..514f41635 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.16-legacy.zip new file mode 100644 index 000000000..720030266 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.17-compact.zip new file mode 100644 index 000000000..bd1fe0926 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.17-legacy.zip new file mode 100644 index 000000000..4b6dc0868 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.18-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.18-compact.zip new file mode 100644 index 000000000..6aeb30b5b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.18-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.18-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.18-legacy.zip new file mode 100644 index 000000000..1ffbdfabd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.18-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.19-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.19-compact.zip new file mode 100644 index 000000000..28fd3cf0b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.19-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.19-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.19-legacy.zip new file mode 100644 index 000000000..b5f3f316d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.19-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.2-legacy.zip new file mode 100644 index 000000000..91b6c0d63 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.20-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.20-compact.zip new file mode 100644 index 000000000..74581d8d1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.20-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.20-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.20-legacy.zip new file mode 100644 index 000000000..738bf583f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.20-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.21-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.21-compact.zip new file mode 100644 index 000000000..eee6ebbbf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.21-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.21-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.21-legacy.zip new file mode 100644 index 000000000..b8870f710 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.21-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.22-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.22-compact.zip new file mode 100644 index 000000000..1a9cdffb6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.22-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.22-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.22-legacy.zip new file mode 100644 index 000000000..42b0bf0c6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.22-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.23-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.23-compact.zip new file mode 100644 index 000000000..713525ef4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.23-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.23-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.23-legacy.zip new file mode 100644 index 000000000..fe5691d07 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.23-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.24-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.24-compact.zip new file mode 100644 index 000000000..0e5bb8ad4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.24-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.24-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.24-legacy.zip new file mode 100644 index 000000000..55b3c3c74 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.24-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.25-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.25-compact.zip new file mode 100644 index 000000000..ec86a8bc6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.25-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.25-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.25-legacy.zip new file mode 100644 index 000000000..154e9c475 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.25-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.26-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.26-compact.zip new file mode 100644 index 000000000..7cabf4bac Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.26-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.26-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.26-legacy.zip new file mode 100644 index 000000000..c050fa43a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.26-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.3-legacy.zip new file mode 100644 index 000000000..d5695f5bb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.4-legacy.zip new file mode 100644 index 000000000..76a3240a9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.5-legacy.zip new file mode 100644 index 000000000..74e864271 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.6-legacy.zip new file mode 100644 index 000000000..2634d7d1a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.7-legacy.zip new file mode 100644 index 000000000..21db3b862 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.8-legacy.zip new file mode 100644 index 000000000..e7203eb76 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.9-legacy.zip new file mode 100644 index 000000000..32ed043e2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.4.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.0-compact.zip new file mode 100644 index 000000000..0a0a4549a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.0-legacy.zip new file mode 100644 index 000000000..903bb83e3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.1-compact.zip new file mode 100644 index 000000000..acae1803f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.1-legacy.zip new file mode 100644 index 000000000..0ab02ac6c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.10-compact.zip new file mode 100644 index 000000000..191cab4ac Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.10-legacy.zip new file mode 100644 index 000000000..e6cde07a5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.11-compact.zip new file mode 100644 index 000000000..378a6995c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.11-legacy.zip new file mode 100644 index 000000000..1cb7ec1d8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.12-compact.zip new file mode 100644 index 000000000..6bf642625 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.12-legacy.zip new file mode 100644 index 000000000..69cfda7c5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.13-compact.zip new file mode 100644 index 000000000..0d5a64b13 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.13-legacy.zip new file mode 100644 index 000000000..5ac214211 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.14-compact.zip new file mode 100644 index 000000000..329ec4ba4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.14-legacy.zip new file mode 100644 index 000000000..4ad9c9034 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.15-compact.zip new file mode 100644 index 000000000..2ed4c5a99 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.15-legacy.zip new file mode 100644 index 000000000..5079edd73 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.16-compact.zip new file mode 100644 index 000000000..fc4e111e7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.16-legacy.zip new file mode 100644 index 000000000..90025118d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.17-compact.zip new file mode 100644 index 000000000..8d78692c1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.17-legacy.zip new file mode 100644 index 000000000..c8868f3f9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.2-compact.zip new file mode 100644 index 000000000..92b224326 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.2-legacy.zip new file mode 100644 index 000000000..5530c7547 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.3-compact.zip new file mode 100644 index 000000000..d0514f4b4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.3-legacy.zip new file mode 100644 index 000000000..f7aedef4c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.4-compact.zip new file mode 100644 index 000000000..9f2322eba Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.4-legacy.zip new file mode 100644 index 000000000..106b904aa Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.5-compact.zip new file mode 100644 index 000000000..90526907b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.5-legacy.zip new file mode 100644 index 000000000..b54d7e45c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.6-compact.zip new file mode 100644 index 000000000..e9808962f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.6-legacy.zip new file mode 100644 index 000000000..07f74ced8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.7-compact.zip new file mode 100644 index 000000000..907b464b2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.7-legacy.zip new file mode 100644 index 000000000..d12bc1e9f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.8-compact.zip new file mode 100644 index 000000000..9d2515b71 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.8-legacy.zip new file mode 100644 index 000000000..19809e484 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.9-compact.zip new file mode 100644 index 000000000..2ce14faf3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.9-legacy.zip new file mode 100644 index 000000000..787216d83 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.5.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.0-compact.zip new file mode 100644 index 000000000..e25e43247 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.0-legacy.zip new file mode 100644 index 000000000..fd9e1d279 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.1-compact.zip new file mode 100644 index 000000000..8b4e7561a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.1-legacy.zip new file mode 100644 index 000000000..4a23a17ad Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.10-compact.zip new file mode 100644 index 000000000..85c2999a0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.10-legacy.zip new file mode 100644 index 000000000..1c4f5f855 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.11-compact.zip new file mode 100644 index 000000000..0e075d814 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.11-legacy.zip new file mode 100644 index 000000000..64562d5cc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.12-compact.zip new file mode 100644 index 000000000..9d3440fee Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.12-legacy.zip new file mode 100644 index 000000000..2193205a0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.2-compact.zip new file mode 100644 index 000000000..2c59d3dab Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.2-legacy.zip new file mode 100644 index 000000000..aa511bbc8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.3-compact.zip new file mode 100644 index 000000000..c8a4854cb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.3-legacy.zip new file mode 100644 index 000000000..424ef94f3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.4-compact.zip new file mode 100644 index 000000000..d93ef0e63 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.4-legacy.zip new file mode 100644 index 000000000..9dd0ac17c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.5-compact.zip new file mode 100644 index 000000000..05bbc5c70 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.5-legacy.zip new file mode 100644 index 000000000..f3cdcf727 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.6-compact.zip new file mode 100644 index 000000000..bc898c9df Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.6-legacy.zip new file mode 100644 index 000000000..c98d697cf Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.7-compact.zip new file mode 100644 index 000000000..b0db1cd1f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.7-legacy.zip new file mode 100644 index 000000000..d12f8432d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.8-compact.zip new file mode 100644 index 000000000..dc838fbe1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.8-legacy.zip new file mode 100644 index 000000000..3df4ea88f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.9-compact.zip new file mode 100644 index 000000000..81c87bd6d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.9-legacy.zip new file mode 100644 index 000000000..645a94ffa Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.6.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.0-compact.zip new file mode 100644 index 000000000..30ad6e1da Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.0-legacy.zip new file mode 100644 index 000000000..3c2489f42 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.1-compact.zip new file mode 100644 index 000000000..a9eae7a40 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.1-legacy.zip new file mode 100644 index 000000000..2f498e767 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.2-compact.zip new file mode 100644 index 000000000..886626419 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.2-legacy.zip new file mode 100644 index 000000000..a9c1f6020 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.3-compact.zip new file mode 100644 index 000000000..83527eac7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.3-legacy.zip new file mode 100644 index 000000000..5fc20aa27 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.4-compact.zip new file mode 100644 index 000000000..ae825d369 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.4-legacy.zip new file mode 100644 index 000000000..4c7d0d53c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.5-compact.zip new file mode 100644 index 000000000..5e78204ce Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.5-legacy.zip new file mode 100644 index 000000000..6766fa9bb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.6-compact.zip new file mode 100644 index 000000000..06034fea9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.6-legacy.zip new file mode 100644 index 000000000..1617ca94d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.7.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.0-compact.zip new file mode 100644 index 000000000..94aa6559b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.1-compact.zip new file mode 100644 index 000000000..c4dd386c8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.10-compact.zip new file mode 100644 index 000000000..0100ed60d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.11-compact.zip new file mode 100644 index 000000000..759017263 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.12-compact.zip new file mode 100644 index 000000000..01da79dc2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.13-compact.zip new file mode 100644 index 000000000..d2f458dff Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.14-compact.zip new file mode 100644 index 000000000..12a45cc3a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.15-compact.zip new file mode 100644 index 000000000..c168a72ef Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.2-compact.zip new file mode 100644 index 000000000..ee42c1623 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.3-compact.zip new file mode 100644 index 000000000..8ca0f0a34 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.4-compact.zip new file mode 100644 index 000000000..bf683bf90 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.5-compact.zip new file mode 100644 index 000000000..b61c2bdef Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.6-compact.zip new file mode 100644 index 000000000..8c2bba0d1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.7-compact.zip new file mode 100644 index 000000000..d69dfad29 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.8-compact.zip new file mode 100644 index 000000000..e4511eda1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.9-compact.zip new file mode 100644 index 000000000..02db4f496 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/nested-while-with-ternary-condition-all.sol-0.8.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.0-legacy.zip new file mode 100644 index 000000000..2e0f44bc3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.1-legacy.zip new file mode 100644 index 000000000..ac4a00164 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.10-legacy.zip new file mode 100644 index 000000000..e5c07867a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.11-legacy.zip new file mode 100644 index 000000000..545d8b2a5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.12-compact.zip new file mode 100644 index 000000000..673ceb864 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.12-legacy.zip new file mode 100644 index 000000000..709c888af Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.13-compact.zip new file mode 100644 index 000000000..1a47046ea Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.13-legacy.zip new file mode 100644 index 000000000..d6423558b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.14-compact.zip new file mode 100644 index 000000000..00d8d30d6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.14-legacy.zip new file mode 100644 index 000000000..f9bdb6ab7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.15-compact.zip new file mode 100644 index 000000000..249aada48 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.15-legacy.zip new file mode 100644 index 000000000..471e3d41f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.16-compact.zip new file mode 100644 index 000000000..cac552412 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.16-legacy.zip new file mode 100644 index 000000000..e7f5bd7f8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.17-compact.zip new file mode 100644 index 000000000..811b82b00 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.17-legacy.zip new file mode 100644 index 000000000..677acd93d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.18-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.18-compact.zip new file mode 100644 index 000000000..731eff85c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.18-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.18-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.18-legacy.zip new file mode 100644 index 000000000..96b6363d3 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.18-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.19-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.19-compact.zip new file mode 100644 index 000000000..4d6682e7b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.19-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.19-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.19-legacy.zip new file mode 100644 index 000000000..800ddb784 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.19-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.2-legacy.zip new file mode 100644 index 000000000..1c98d31cd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.20-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.20-compact.zip new file mode 100644 index 000000000..d0ea7ef12 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.20-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.20-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.20-legacy.zip new file mode 100644 index 000000000..4c5db8649 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.20-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.21-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.21-compact.zip new file mode 100644 index 000000000..6ad58e7fd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.21-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.21-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.21-legacy.zip new file mode 100644 index 000000000..498bd2b06 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.21-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.22-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.22-compact.zip new file mode 100644 index 000000000..6f1844971 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.22-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.22-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.22-legacy.zip new file mode 100644 index 000000000..a936550cd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.22-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.23-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.23-compact.zip new file mode 100644 index 000000000..4803c265c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.23-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.23-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.23-legacy.zip new file mode 100644 index 000000000..5370750bd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.23-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.24-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.24-compact.zip new file mode 100644 index 000000000..56d586bd7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.24-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.24-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.24-legacy.zip new file mode 100644 index 000000000..440fb6ac6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.24-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.25-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.25-compact.zip new file mode 100644 index 000000000..7fb6356a2 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.25-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.25-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.25-legacy.zip new file mode 100644 index 000000000..ab572292d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.25-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.26-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.26-compact.zip new file mode 100644 index 000000000..caa44f7fc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.26-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.26-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.26-legacy.zip new file mode 100644 index 000000000..bfd071a9f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.26-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.3-legacy.zip new file mode 100644 index 000000000..d2ec118e7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.4-legacy.zip new file mode 100644 index 000000000..0b31ebf19 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.5-legacy.zip new file mode 100644 index 000000000..e63e33997 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.6-legacy.zip new file mode 100644 index 000000000..39002cfdd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.7-legacy.zip new file mode 100644 index 000000000..32dadd33e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.8-legacy.zip new file mode 100644 index 000000000..08d58996e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.9-legacy.zip new file mode 100644 index 000000000..87b87ad46 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.4.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.0-compact.zip new file mode 100644 index 000000000..ba67975d5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.0-legacy.zip new file mode 100644 index 000000000..dc3e2a07c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.1-compact.zip new file mode 100644 index 000000000..1db3a7dbd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.1-legacy.zip new file mode 100644 index 000000000..4c83cb555 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.10-compact.zip new file mode 100644 index 000000000..bc9af62fb Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.10-legacy.zip new file mode 100644 index 000000000..2c03ba0c7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.11-compact.zip new file mode 100644 index 000000000..c4a70b293 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.11-legacy.zip new file mode 100644 index 000000000..a6fcce250 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.12-compact.zip new file mode 100644 index 000000000..fac0504dd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.12-legacy.zip new file mode 100644 index 000000000..ceb8c8d6e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.13-compact.zip new file mode 100644 index 000000000..10ceb1b03 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.13-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.13-legacy.zip new file mode 100644 index 000000000..0818575fe Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.13-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.14-compact.zip new file mode 100644 index 000000000..3fb0159ad Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.14-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.14-legacy.zip new file mode 100644 index 000000000..a60a6e4d7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.14-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.15-compact.zip new file mode 100644 index 000000000..605b7bcb8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.15-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.15-legacy.zip new file mode 100644 index 000000000..15eee7871 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.15-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.16-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.16-compact.zip new file mode 100644 index 000000000..bdf5ed944 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.16-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.16-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.16-legacy.zip new file mode 100644 index 000000000..d84cf5643 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.16-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.17-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.17-compact.zip new file mode 100644 index 000000000..9319e4b54 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.17-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.17-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.17-legacy.zip new file mode 100644 index 000000000..69fac3bf7 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.17-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.2-compact.zip new file mode 100644 index 000000000..16f08c848 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.2-legacy.zip new file mode 100644 index 000000000..ef28d2e50 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.3-compact.zip new file mode 100644 index 000000000..687bd9953 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.3-legacy.zip new file mode 100644 index 000000000..cc7e4917b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.4-compact.zip new file mode 100644 index 000000000..7cd473fa8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.4-legacy.zip new file mode 100644 index 000000000..cc0e41c6b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.5-compact.zip new file mode 100644 index 000000000..e57324e1a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.5-legacy.zip new file mode 100644 index 000000000..dbc247ad1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.6-compact.zip new file mode 100644 index 000000000..66d73f664 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.6-legacy.zip new file mode 100644 index 000000000..de29293a8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.7-compact.zip new file mode 100644 index 000000000..b61500d3e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.7-legacy.zip new file mode 100644 index 000000000..a3c166618 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.8-compact.zip new file mode 100644 index 000000000..9471bdb64 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.8-legacy.zip new file mode 100644 index 000000000..dbcb69ad9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.9-compact.zip new file mode 100644 index 000000000..7ca17c5fd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.9-legacy.zip new file mode 100644 index 000000000..91c1cdc28 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.5.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.0-compact.zip new file mode 100644 index 000000000..b27128109 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.0-legacy.zip new file mode 100644 index 000000000..0ba3e7f91 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.1-compact.zip new file mode 100644 index 000000000..b63485949 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.1-legacy.zip new file mode 100644 index 000000000..bf928ac29 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.10-compact.zip new file mode 100644 index 000000000..c0551a883 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.10-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.10-legacy.zip new file mode 100644 index 000000000..17d769014 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.10-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.11-compact.zip new file mode 100644 index 000000000..5da28d6c0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.11-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.11-legacy.zip new file mode 100644 index 000000000..379b41468 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.11-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.12-compact.zip new file mode 100644 index 000000000..4f3f62f23 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.12-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.12-legacy.zip new file mode 100644 index 000000000..a1108abac Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.12-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.2-compact.zip new file mode 100644 index 000000000..f8a41c410 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.2-legacy.zip new file mode 100644 index 000000000..7f9f14607 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.3-compact.zip new file mode 100644 index 000000000..fc4e24619 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.3-legacy.zip new file mode 100644 index 000000000..ccde916df Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.4-compact.zip new file mode 100644 index 000000000..004c69a89 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.4-legacy.zip new file mode 100644 index 000000000..5da390c1c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.5-compact.zip new file mode 100644 index 000000000..6e74f1035 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.5-legacy.zip new file mode 100644 index 000000000..df3a82417 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.6-compact.zip new file mode 100644 index 000000000..2c4e27be0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.6-legacy.zip new file mode 100644 index 000000000..5b955b0d0 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.7-compact.zip new file mode 100644 index 000000000..e145beaa9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.7-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.7-legacy.zip new file mode 100644 index 000000000..87811bd20 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.7-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.8-compact.zip new file mode 100644 index 000000000..00e90f9f5 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.8-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.8-legacy.zip new file mode 100644 index 000000000..b9716eb8f Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.8-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.9-compact.zip new file mode 100644 index 000000000..ed530d2a8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.9-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.9-legacy.zip new file mode 100644 index 000000000..b2b483b57 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.6.9-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.0-compact.zip new file mode 100644 index 000000000..6a143bac6 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.0-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.0-legacy.zip new file mode 100644 index 000000000..388562535 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.0-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.1-compact.zip new file mode 100644 index 000000000..f0beec34b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.1-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.1-legacy.zip new file mode 100644 index 000000000..f8cd41847 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.1-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.2-compact.zip new file mode 100644 index 000000000..a6bdbb6c1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.2-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.2-legacy.zip new file mode 100644 index 000000000..acf97c364 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.2-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.3-compact.zip new file mode 100644 index 000000000..720b5e5d9 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.3-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.3-legacy.zip new file mode 100644 index 000000000..91cd561ae Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.3-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.4-compact.zip new file mode 100644 index 000000000..5c2d6d86e Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.4-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.4-legacy.zip new file mode 100644 index 000000000..ce1242e18 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.4-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.5-compact.zip new file mode 100644 index 000000000..6a05aff54 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.5-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.5-legacy.zip new file mode 100644 index 000000000..23d04f6c1 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.5-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.6-compact.zip new file mode 100644 index 000000000..2b0fd1c52 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.6-legacy.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.6-legacy.zip new file mode 100644 index 000000000..9066a1750 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.7.6-legacy.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.0-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.0-compact.zip new file mode 100644 index 000000000..4cb3e418d Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.0-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.1-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.1-compact.zip new file mode 100644 index 000000000..6f15504c8 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.1-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.10-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.10-compact.zip new file mode 100644 index 000000000..25e5fa075 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.10-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.11-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.11-compact.zip new file mode 100644 index 000000000..623f8c7ac Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.11-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.12-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.12-compact.zip new file mode 100644 index 000000000..ceb9da29b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.12-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.13-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.13-compact.zip new file mode 100644 index 000000000..368af5426 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.13-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.14-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.14-compact.zip new file mode 100644 index 000000000..10e2fae2b Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.14-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.15-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.15-compact.zip new file mode 100644 index 000000000..53f1e30dd Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.15-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.2-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.2-compact.zip new file mode 100644 index 000000000..3fe9bc7c4 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.2-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.3-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.3-compact.zip new file mode 100644 index 000000000..8722944de Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.3-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.4-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.4-compact.zip new file mode 100644 index 000000000..45879a618 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.4-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.5-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.5-compact.zip new file mode 100644 index 000000000..31174ce2c Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.5-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.6-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.6-compact.zip new file mode 100644 index 000000000..fe4605a7a Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.6-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.7-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.7-compact.zip new file mode 100644 index 000000000..316e9e9fc Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.7-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.8-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.8-compact.zip new file mode 100644 index 000000000..36ea67007 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.8-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.9-compact.zip b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.9-compact.zip new file mode 100644 index 000000000..114bf2a49 Binary files /dev/null and b/tests/e2e/solc_parsing/test_data/compile/while-with-ternary-condition-all.sol-0.8.9-compact.zip differ diff --git a/tests/e2e/solc_parsing/test_data/dowhile-with-ternary-condition-0.4.5.sol b/tests/e2e/solc_parsing/test_data/dowhile-with-ternary-condition-0.4.5.sol new file mode 100644 index 000000000..801e1f0b0 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/dowhile-with-ternary-condition-0.4.5.sol @@ -0,0 +1,18 @@ +contract C { + function f() public { + bool a = true; + bool b = true; + bool c = true; + int x = 4; + int y = 4; + do { + x++; + y--; + } while (a ? b : c); + + do { + x--; + y++; + } while (5 == (a ? x : y)); + } +} diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.4.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.5.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.6.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.7.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.json new file mode 100644 index 000000000..41d6c1bae --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/dowhile-with-ternary-condition-0.4.5.sol-0.8.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->6;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->8;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->17;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->11;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->13;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->15[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->14;\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->22;\n15[label=\"Node Type: END_LOOP 15\n\"];\n17[label=\"Node Type: IF 17\n\"];\n17->18[label=\"True\"];\n17->19[label=\"False\"];\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->20;\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->20;\n20[label=\"Node Type: END_IF 20\n\"];\n20->7;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->12;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.0-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.1-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.10-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.11-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.12-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.12-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.13-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.13-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.14-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.14-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.15-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.15-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.16-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.16-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.17-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.17-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.18-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.18-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.18-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.18-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.18-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.18-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.19-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.19-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.19-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.19-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.19-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.19-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.2-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.20-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.20-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.20-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.20-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.20-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.20-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.21-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.21-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.21-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.21-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.21-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.21-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.22-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.22-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.22-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.22-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.22-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.22-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.23-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.23-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.23-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.23-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.23-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.23-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.24-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.24-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.24-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.24-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.24-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.24-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.25-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.25-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.25-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.25-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.25-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.25-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.26-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.26-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.26-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.26-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.26-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.26-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.3-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.4-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.5-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.6-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.7-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.8-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.9-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.4.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.0-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.0-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.1-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.1-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.10-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.10-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.11-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.11-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.12-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.12-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.13-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.13-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.14-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.14-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.15-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.15-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.16-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.16-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.17-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.17-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.2-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.2-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.3-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.3-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.4-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.4-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.5-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.5-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.6-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.6-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.7-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.7-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.8-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.8-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.9-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.9-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.5.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.0-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.0-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.1-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.1-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.10-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.10-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.11-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.11-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.12-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.12-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.2-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.2-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.3-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.3-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.4-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.4-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.5-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.5-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.6-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.6-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.7-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.7-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.8-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.8-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.9-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.9-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.6.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.0-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.0-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.1-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.1-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.2-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.2-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.3-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.3-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.4-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.4-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.5-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.5-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.6-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.6-legacy.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.7.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.0-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.1-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.10-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.11-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.12-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.13-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.14-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.15-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.2-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.3-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.4-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.5-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.6-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.7-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.8-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.9-compact.json new file mode 100644 index 000000000..7ef953a8b --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/for-with-ternary-condition-all.sol-0.8.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->8;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->9;\n7[label=\"Node Type: END_LOOP 7\n\"];\n7->15;\n8[label=\"Node Type: NEW VARIABLE 8\n\"];\n8->28;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->7[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->11;\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->44;\n13[label=\"Node Type: BEGIN_LOOP 13\n\"];\n13->16;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->21;\n15[label=\"Node Type: NEW VARIABLE 15\n\"];\n15->34;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->14[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->48;\n19[label=\"Node Type: BEGIN_LOOP 19\n\"];\n19->22;\n20[label=\"Node Type: END_LOOP 20\n\"];\n21[label=\"Node Type: NEW VARIABLE 21\n\"];\n21->40;\n22[label=\"Node Type: IF_LOOP 22\n\"];\n22->23[label=\"True\"];\n22->20[label=\"False\"];\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->52;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->6;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->13;\n40[label=\"Node Type: IF 40\n\"];\n40->41[label=\"True\"];\n40->42[label=\"False\"];\n41[label=\"Node Type: EXPRESSION 41\n\"];\n41->43;\n42[label=\"Node Type: EXPRESSION 42\n\"];\n42->43;\n43[label=\"Node Type: END_IF 43\n\"];\n43->19;\n44[label=\"Node Type: IF 44\n\"];\n44->45[label=\"True\"];\n44->46[label=\"False\"];\n45[label=\"Node Type: EXPRESSION 45\n\"];\n45->47;\n46[label=\"Node Type: EXPRESSION 46\n\"];\n46->47;\n47[label=\"Node Type: END_IF 47\n\"];\n47->9;\n48[label=\"Node Type: IF 48\n\"];\n48->49[label=\"True\"];\n48->50[label=\"False\"];\n49[label=\"Node Type: EXPRESSION 49\n\"];\n49->51;\n50[label=\"Node Type: EXPRESSION 50\n\"];\n50->51;\n51[label=\"Node Type: END_IF 51\n\"];\n51->16;\n52[label=\"Node Type: IF 52\n\"];\n52->53[label=\"True\"];\n52->54[label=\"False\"];\n53[label=\"Node Type: EXPRESSION 53\n\"];\n53->55;\n54[label=\"Node Type: EXPRESSION 54\n\"];\n54->55;\n55[label=\"Node Type: END_IF 55\n\"];\n55->22;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.0-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.1-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.10-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.11-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.12-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.12-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.13-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.13-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.14-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.14-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.15-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.15-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.16-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.16-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.17-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.17-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.18-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.18-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.18-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.18-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.18-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.18-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.19-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.19-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.19-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.19-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.19-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.19-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.2-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.20-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.20-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.20-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.20-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.20-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.20-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.21-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.21-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.21-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.21-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.21-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.21-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.22-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.22-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.22-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.22-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.22-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.22-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.23-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.23-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.23-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.23-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.23-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.23-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.24-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.24-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.24-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.24-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.24-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.24-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.25-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.25-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.25-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.25-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.25-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.25-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.26-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.26-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.26-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.26-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.26-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.26-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.3-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.4-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.5-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.6-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.7-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.8-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.9-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.4.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.0-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.0-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.1-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.1-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.10-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.10-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.11-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.11-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.12-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.12-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.13-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.13-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.14-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.14-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.15-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.15-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.16-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.16-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.17-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.17-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.2-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.2-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.3-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.3-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.4-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.4-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.5-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.5-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.6-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.6-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.7-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.7-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.8-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.8-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.9-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.9-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.5.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.0-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.0-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.1-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.1-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.10-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.10-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.11-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.11-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.12-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.12-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.2-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.2-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.3-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.3-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.4-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.4-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.5-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.5-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.6-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.6-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.7-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.7-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.8-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.8-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.9-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.9-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.6.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.0-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.0-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.1-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.1-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.2-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.2-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.3-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.3-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.4-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.4-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.5-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.5-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.6-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.6-legacy.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.7.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.0-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.1-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.10-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.11-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.12-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.13-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.14-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.15-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.2-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.3-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.4-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.5-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.6-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.7-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.8-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.9-compact.json new file mode 100644 index 000000000..66e08f16a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/if-with-ternary-condition-all.sol-0.8.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->18;\n6[label=\"Node Type: IF 6\n\"];\n6->7[label=\"True\"];\n6->9[label=\"False\"];\n7[label=\"Node Type: EXPRESSION 7\n\"];\n7->8;\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: END_IF 9\n\"];\n9->23;\n10[label=\"Node Type: IF 10\n\"];\n10->11[label=\"True\"];\n10->12[label=\"False\"];\n11[label=\"Node Type: EXPRESSION 11\n\"];\n11->12;\n12[label=\"Node Type: END_IF 12\n\"];\n12->28;\n13[label=\"Node Type: IF 13\n\"];\n13->14[label=\"True\"];\n13->16[label=\"False\"];\n14[label=\"Node Type: EXPRESSION 14\n\"];\n14->15;\n15[label=\"Node Type: EXPRESSION 15\n\"];\n15->16;\n16[label=\"Node Type: END_IF 16\n\"];\n18[label=\"Node Type: IF 18\n\"];\n18->19[label=\"True\"];\n18->20[label=\"False\"];\n19[label=\"Node Type: EXPRESSION 19\n\"];\n19->21;\n20[label=\"Node Type: EXPRESSION 20\n\"];\n20->21;\n21[label=\"Node Type: END_IF 21\n\"];\n21->6;\n23[label=\"Node Type: IF 23\n\"];\n23->24[label=\"True\"];\n23->25[label=\"False\"];\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->26;\n25[label=\"Node Type: EXPRESSION 25\n\"];\n25->26;\n26[label=\"Node Type: END_IF 26\n\"];\n26->10;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->13;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.0-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.1-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.10-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.11-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.12-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.12-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.13-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.13-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.14-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.14-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.15-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.15-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.16-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.16-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.17-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.17-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.18-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.18-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.18-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.18-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.18-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.18-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.19-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.19-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.19-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.19-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.19-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.19-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.2-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.20-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.20-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.20-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.20-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.20-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.20-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.21-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.21-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.21-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.21-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.21-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.21-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.22-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.22-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.22-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.22-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.22-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.22-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.23-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.23-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.23-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.23-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.23-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.23-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.24-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.24-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.24-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.24-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.24-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.24-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.25-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.25-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.25-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.25-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.25-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.25-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.26-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.26-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.26-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.26-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.26-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.26-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.3-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.4-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.5-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.6-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.7-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.8-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.9-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.4.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.0-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.0-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.1-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.1-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.10-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.10-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.11-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.11-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.12-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.12-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.13-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.13-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.14-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.14-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.15-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.15-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.16-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.16-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.17-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.17-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.2-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.2-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.3-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.3-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.4-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.4-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.5-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.5-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.6-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.6-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.7-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.7-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.8-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.8-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.9-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.9-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.5.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.0-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.0-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.1-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.1-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.10-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.10-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.11-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.11-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.12-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.12-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.2-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.2-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.3-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.3-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.4-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.4-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.5-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.5-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.6-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.6-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.7-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.7-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.8-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.8-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.9-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.9-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.6.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.0-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.0-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.1-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.1-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.2-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.2-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.3-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.3-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.4-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.4-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.5-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.5-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.6-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.6-legacy.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.7.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.0-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.1-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.10-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.11-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.12-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.13-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.14-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.15-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.2-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.3-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.4-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.5-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.6-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.7-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.8-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.9-compact.json new file mode 100644 index 000000000..9ca27d630 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/nested-while-with-ternary-condition-all.sol-0.8.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->16;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->22[label=\"True\"];\n7->13[label=\"False\"];\n8[label=\"Node Type: BEGIN_LOOP 8\n\"];\n8->9;\n9[label=\"Node Type: IF_LOOP 9\n\"];\n9->10[label=\"True\"];\n9->11[label=\"False\"];\n10[label=\"Node Type: EXPRESSION 10\n\"];\n10->30;\n11[label=\"Node Type: END_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: EXPRESSION 12\n\"];\n12->26;\n13[label=\"Node Type: END_LOOP 13\n\"];\n16[label=\"Node Type: IF 16\n\"];\n16->17[label=\"True\"];\n16->18[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->19;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->19;\n19[label=\"Node Type: END_IF 19\n\"];\n19->6;\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->8;\n26[label=\"Node Type: IF 26\n\"];\n26->27[label=\"True\"];\n26->28[label=\"False\"];\n27[label=\"Node Type: EXPRESSION 27\n\"];\n27->29;\n28[label=\"Node Type: EXPRESSION 28\n\"];\n28->29;\n29[label=\"Node Type: END_IF 29\n\"];\n29->7;\n30[label=\"Node Type: IF 30\n\"];\n30->31[label=\"True\"];\n30->32[label=\"False\"];\n31[label=\"Node Type: EXPRESSION 31\n\"];\n31->33;\n32[label=\"Node Type: EXPRESSION 32\n\"];\n32->33;\n33[label=\"Node Type: END_IF 33\n\"];\n33->9;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.0-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.1-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.10-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.11-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.12-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.12-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.13-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.13-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.14-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.14-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.15-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.15-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.16-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.16-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.17-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.17-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.18-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.18-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.18-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.18-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.18-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.18-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.19-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.19-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.19-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.19-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.19-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.19-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.2-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.20-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.20-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.20-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.20-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.20-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.20-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.21-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.21-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.21-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.21-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.21-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.21-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.22-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.22-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.22-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.22-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.22-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.22-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.23-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.23-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.23-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.23-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.23-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.23-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.24-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.24-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.24-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.24-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.24-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.24-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.25-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.25-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.25-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.25-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.25-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.25-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.26-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.26-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.26-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.26-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.26-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.26-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.3-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.4-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.5-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.6-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.7-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.8-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.9-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.4.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.0-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.0-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.1-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.1-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.10-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.10-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.11-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.11-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.12-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.12-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.13-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.13-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.13-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.13-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.14-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.14-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.14-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.14-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.15-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.15-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.15-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.15-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.16-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.16-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.16-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.16-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.16-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.16-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.17-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.17-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.17-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.17-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.17-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.17-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.2-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.2-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.3-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.3-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.4-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.4-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.5-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.5-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.6-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.6-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.7-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.7-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.8-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.8-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.9-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.9-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.5.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.0-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.0-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.1-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.1-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.10-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.10-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.10-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.10-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.11-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.11-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.11-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.11-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.12-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.12-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.12-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.12-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.2-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.2-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.3-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.3-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.4-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.4-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.5-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.5-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.6-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.6-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.7-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.7-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.7-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.7-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.8-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.8-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.8-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.8-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.9-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.9-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.9-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.6.9-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.0-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.0-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.0-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.0-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.1-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.1-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.1-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.1-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.2-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.2-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.2-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.2-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.3-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.3-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.3-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.3-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.4-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.4-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.4-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.4-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.5-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.5-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.5-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.5-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.6-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.6-legacy.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.6-legacy.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.7.6-legacy.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.0-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.0-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.0-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.1-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.1-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.1-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.10-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.10-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.10-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.11-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.11-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.11-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.12-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.12-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.12-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.13-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.13-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.13-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.14-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.14-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.14-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.15-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.15-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.15-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.2-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.2-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.2-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.3-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.3-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.3-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.4-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.4-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.4-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.5-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.5-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.5-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.6-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.6-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.6-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.7-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.7-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.7-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.8-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.8-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.8-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.9-compact.json b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.9-compact.json new file mode 100644 index 000000000..45bc1365a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/expected/while-with-ternary-condition-all.sol-0.8.9-compact.json @@ -0,0 +1,5 @@ +{ + "C": { + "f()": "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: NEW VARIABLE 3\n\"];\n3->4;\n4[label=\"Node Type: NEW VARIABLE 4\n\"];\n4->5;\n5[label=\"Node Type: NEW VARIABLE 5\n\"];\n5->22;\n6[label=\"Node Type: BEGIN_LOOP 6\n\"];\n6->7;\n7[label=\"Node Type: IF_LOOP 7\n\"];\n7->8[label=\"True\"];\n7->10[label=\"False\"];\n8[label=\"Node Type: EXPRESSION 8\n\"];\n8->9;\n9[label=\"Node Type: EXPRESSION 9\n\"];\n9->38;\n10[label=\"Node Type: END_LOOP 10\n\"];\n10->28;\n11[label=\"Node Type: BEGIN_LOOP 11\n\"];\n11->12;\n12[label=\"Node Type: IF_LOOP 12\n\"];\n12->13[label=\"True\"];\n12->14[label=\"False\"];\n13[label=\"Node Type: EXPRESSION 13\n\"];\n13->42;\n14[label=\"Node Type: END_LOOP 14\n\"];\n14->34;\n15[label=\"Node Type: BEGIN_LOOP 15\n\"];\n15->16;\n16[label=\"Node Type: IF_LOOP 16\n\"];\n16->17[label=\"True\"];\n16->19[label=\"False\"];\n17[label=\"Node Type: EXPRESSION 17\n\"];\n17->18;\n18[label=\"Node Type: EXPRESSION 18\n\"];\n18->46;\n19[label=\"Node Type: END_LOOP 19\n\"];\n22[label=\"Node Type: IF 22\n\"];\n22->23[label=\"True\"];\n22->24[label=\"False\"];\n23[label=\"Node Type: EXPRESSION 23\n\"];\n23->25;\n24[label=\"Node Type: EXPRESSION 24\n\"];\n24->25;\n25[label=\"Node Type: END_IF 25\n\"];\n25->6;\n28[label=\"Node Type: IF 28\n\"];\n28->29[label=\"True\"];\n28->30[label=\"False\"];\n29[label=\"Node Type: EXPRESSION 29\n\"];\n29->31;\n30[label=\"Node Type: EXPRESSION 30\n\"];\n30->31;\n31[label=\"Node Type: END_IF 31\n\"];\n31->11;\n34[label=\"Node Type: IF 34\n\"];\n34->35[label=\"True\"];\n34->36[label=\"False\"];\n35[label=\"Node Type: EXPRESSION 35\n\"];\n35->37;\n36[label=\"Node Type: EXPRESSION 36\n\"];\n36->37;\n37[label=\"Node Type: END_IF 37\n\"];\n37->15;\n38[label=\"Node Type: IF 38\n\"];\n38->39[label=\"True\"];\n38->40[label=\"False\"];\n39[label=\"Node Type: EXPRESSION 39\n\"];\n39->41;\n40[label=\"Node Type: EXPRESSION 40\n\"];\n40->41;\n41[label=\"Node Type: END_IF 41\n\"];\n41->7;\n42[label=\"Node Type: IF 42\n\"];\n42->43[label=\"True\"];\n42->44[label=\"False\"];\n43[label=\"Node Type: EXPRESSION 43\n\"];\n43->45;\n44[label=\"Node Type: EXPRESSION 44\n\"];\n44->45;\n45[label=\"Node Type: END_IF 45\n\"];\n45->12;\n46[label=\"Node Type: IF 46\n\"];\n46->47[label=\"True\"];\n46->48[label=\"False\"];\n47[label=\"Node Type: EXPRESSION 47\n\"];\n47->49;\n48[label=\"Node Type: EXPRESSION 48\n\"];\n48->49;\n49[label=\"Node Type: END_IF 49\n\"];\n49->16;\n}\n" + } +} \ No newline at end of file diff --git a/tests/e2e/solc_parsing/test_data/for-with-ternary-condition-all.sol b/tests/e2e/solc_parsing/test_data/for-with-ternary-condition-all.sol new file mode 100644 index 000000000..fa70bad64 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/for-with-ternary-condition-all.sol @@ -0,0 +1,20 @@ +contract C { + function f() public { + bool a = true; + bool b = true; + bool c = true; + int x = 4; + int y = 4; + for (int i = 0; a ? b : c; i++) { + x++; + y--; + } + + for (int j = 0; a ? b : c; j++) a = false; + + for (int k = 0; 5 == ((k < 3) ? x : y); k--) { + x--; + y++; + } + } +} diff --git a/tests/e2e/solc_parsing/test_data/if-with-ternary-condition-all.sol b/tests/e2e/solc_parsing/test_data/if-with-ternary-condition-all.sol new file mode 100644 index 000000000..36316f83f --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/if-with-ternary-condition-all.sol @@ -0,0 +1,20 @@ +contract C { + function f() public { + bool a = true; + bool b = true; + bool c = true; + int x = 4; + int y = 4; + if (a ? b : c) { + x++; + y--; + } + + if (a ? b : c) a = false; + + if (5 == (a ? x : y)) { + x--; + y++; + } + } +} diff --git a/tests/e2e/solc_parsing/test_data/nested-while-with-ternary-condition-all.sol b/tests/e2e/solc_parsing/test_data/nested-while-with-ternary-condition-all.sol new file mode 100644 index 000000000..94fd38cf4 --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/nested-while-with-ternary-condition-all.sol @@ -0,0 +1,15 @@ +contract C { + function f() public { + bool a = true; + bool b = true; + bool c = true; + int x = 4; + int y = 4; + while (a ? b : c) { + while (5 == (a ? x : y)) { + y++; + } + x--; + } + } +} diff --git a/tests/e2e/solc_parsing/test_data/while-with-ternary-condition-all.sol b/tests/e2e/solc_parsing/test_data/while-with-ternary-condition-all.sol new file mode 100644 index 000000000..f81cf9f5a --- /dev/null +++ b/tests/e2e/solc_parsing/test_data/while-with-ternary-condition-all.sol @@ -0,0 +1,20 @@ +contract C { + function f() public { + bool a = true; + bool b = true; + bool c = true; + int x = 4; + int y = 4; + while (a ? b : c) { + x++; + y--; + } + + while (a ? b : c) a = false; + + while (5 == (a ? x : y)) { + x--; + y++; + } + } +}