Commit Graph

23874 Commits

Author SHA1 Message Date
r0qs
b5d4e1d685
Pass YulString instead of std::string to Object::subObjectAt 2023-10-02 14:35:38 +02:00
r0qs
84d3af4a29
Apply suggestions 2023-10-02 14:35:38 +02:00
r0qs
1ec239c63f
Restore efficient subobject search 2023-10-02 14:35:38 +02:00
r0qs
98b5b6c916
Avoid creating copy of the object 2023-10-02 14:35:38 +02:00
r0qs
61162deea7
Fix subObjectAt 2023-10-02 14:35:37 +02:00
r0qs
4d8d6fe447
Rename traverseObjectTree to visitPath and make it a member function 2023-10-02 14:35:37 +02:00
r0qs
3b2805b760
Traverse object tree 2023-10-02 14:35:37 +02:00
r0qs
e61843428a
Apply suggestions 2023-10-02 14:35:37 +02:00
r0qs
ce6abc6e42
Rename _qualifiedPath to _qualifiedName 2023-10-02 14:35:37 +02:00
Daniel Lupu
83fec48f54
set proper execution num for creation objects 2023-10-02 14:35:37 +02:00
Daniel Lupu
feb4880b50
mostly style changes 2023-10-02 14:35:37 +02:00
Daniel Lupu
284adee620
process some of the feedback 2023-10-02 14:35:36 +02:00
Daniel Lupu
9012ade27f
getObject -> Object::objectAt 2023-10-02 14:35:36 +02:00
Daniel Lupu
4095ea50c2
process some of the feedback 2023-10-02 14:35:36 +02:00
Daniel Lupu
8b99ac4054
fix: apply suggestions + small fix 2023-10-02 14:35:36 +02:00
Daniel Lupu
98b598fdc4
fix: apply coding style suggestions 2023-10-02 14:35:36 +02:00
Daniel Lupu
fc50f8ff96
remove unnecessary brackets 2023-10-02 14:35:36 +02:00
Daniel Lupu
d8173fb158
slightly improve a var name 2023-10-02 14:35:36 +02:00
Daniel Lupu
66e314b7a0
modify <object> flag description 2023-10-02 14:35:35 +02:00
Daniel Lupu
67e987b53f
make objectApply recursive 2023-10-02 14:35:35 +02:00
Daniel Lupu
1a2ea45f45
if input was code block, only print code 2023-10-02 14:35:35 +02:00
Daniel Lupu
97fc74f74d
do not use Object::pathToSubObject in getSubObject 2023-10-02 14:35:35 +02:00
Daniel Lupu
3078ab2d9c
yulopti: Add support for Yul Objects 2023-10-02 14:35:35 +02:00
Kamil Śliwak
fe1f9c640e
Merge pull request #14565 from ethereum/viaIR-codegen-import-bug-test
Add test for via-ir codegen import bug
2023-09-30 00:04:55 +02:00
r0qs
ab2d3957cb Add bytecode test for multiple sources compiler at same time
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2023-09-29 23:17:15 +02:00
Kamil Śliwak
2b7ec23edc
Merge pull request #14562 from ethereum/fix-viaIR-codegen-import-bug
Fix Via-IR bytecode divergence when compiling multiple files that are already included via imports
2023-09-29 23:01:37 +02:00
r0qs
e3b36f736d
Avoid sorting FunctionDefinitions by AST ID during codegen
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2023-09-26 14:02:00 +02:00
Daniel
cc7a14a61d
Merge pull request #14518 from ethereum/analysis-framework-refactor
`AnalysisFramework` refactor
2023-09-19 18:52:57 +02:00
Kamil Śliwak
3fb2f1db88 AnalysisFramework: Move common setup to the framework 2023-09-19 15:56:49 +02:00
Kamil Śliwak
d2bfb2f737 AnalysisFramework: Reimplement parseAnalyseAndReturnError() with runFramework() 2023-09-19 15:56:49 +02:00
Kamil Śliwak
b766268ff3 AnalysisFramework: Get rid of parseAndAnalyse() and success()
- There are too many badly named functions doing different things. E.g. SyntaxTest has both this and parseAndAnalyze().
2023-09-19 15:56:49 +02:00
Kamil Śliwak
309a8de530 Refactor AnalysisFramework to share more features between test cases that depend on it 2023-09-19 15:56:49 +02:00
Daniel
dc44f8ad91
Merge pull request #14550 from ethereum/events-at-file-level
File-level events
2023-09-18 14:36:14 +02:00
Daniel
586a7c54eb
Merge pull request #14503 from Saw-mon-and-Natalie/fix-test-typo
fixed `MSTORE` typo in `libevmasm` tests
2023-09-18 14:30:55 +02:00
Kamil Śliwak
b0a986ffff Allow event definitions at file level 2023-09-15 14:47:40 +02:00
Nikola Matić
020b59680e
Merge pull request #14552 from ethereum/bump-cmake-and-boost-to-work-with-vs-2022
Work around differences in `lexically_normal()` on Boost 1.78+ and bump cmake and boost versions
2023-09-14 20:38:53 +02:00
Kamil Śliwak
5a5e0b5bb3
Merge pull request #14551 from zobront/develop
docs: add clarification about post-execution modifier behavior
2023-09-14 20:28:20 +02:00
Zach Obront
6e8b9dff51 docs: add clarification about post execution modifier behavior 2023-09-14 17:58:18 +02:00
Kamil Śliwak
70cf104f19 fixup! Bump cmake to 3.27.4 and boost to 1.83 on Windows to work with Visual Studio 2022 2023-09-14 17:44:08 +02:00
Saw-mon & Natalie
85b1cb9013 fixed MSTORE typo 2023-09-14 16:15:28 +02:00
Kamil Śliwak
0a69758468 FileReader::isPathPrefix(): Work around lexically_normal() no longer preserving UNC slashes on Boost 1.78+ on Windows 2023-09-14 16:12:43 +02:00
Nikola Matic
5d88b74746 install_deps.ps1: Remove downloaded packages and sources after installation 2023-09-14 16:12:43 +02:00
Nikola Matic
73d582d4b3 Bump cmake to 3.27.4 and boost to 1.83 on Windows to work with Visual Studio 2022 2023-09-14 16:12:43 +02:00
Daniel
9bce5f91dc
Merge pull request #14538 from ethereum/experimentalAnalysisBasicInfrastructure
New Analysis basic infrastructure
2023-09-13 13:00:56 +02:00
Kamil Śliwak
64a0f62700
Merge pull request #14506 from ethereum/extracted-natspec-json-tests
Replace Boost-based Natspec test case with one derived from `SyntaxTest`
2023-09-11 19:28:31 +02:00
Kamil Śliwak
b63a94031f Generate expectations for moved Natspec syntax tests 2023-09-11 18:06:42 +02:00
Kamil Śliwak
dc68480f72 Move Natspec syntax tests to natspecJSON 2023-09-11 18:06:42 +02:00
Kamil Śliwak
d083925bed natspecJSON: Generate missing expectations (including errors) 2023-09-11 18:06:42 +02:00
Kamil Śliwak
481c7256cb natspecJSON: Include version and kind fields in expectations where missing 2023-09-11 18:06:42 +02:00
Kamil Śliwak
99bfdf930a SolidityNatspecJSON: Convert Boost-based test cases into natspectJSON/*.sol tests 2023-09-11 18:06:42 +02:00