-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(avm): bytecode avm control flow #4253
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
051bed3
4209 - add a getter for pc in execution and adjust pc value after return
jeanmon 17ff26b
4209 - unit test on internal_call and internal_return
jeanmon 392670d
4209 - add unit test for calldatacopy and jump opcodes
jeanmon 924b409
4209 - add unit test for nested calls
jeanmon 7126294
4209 - review feedback addressed
jeanmon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a general GTest comment (just in case):
EXPECT_
should only be used to check what the test case if testing, and not be used to check preconditions for the test case to run correctly. (I'm not sure which case is here).For example, if a test is
Then the first assert should not be an EXPECT because it's a precondition check.
Another comment (related to the above): if an EXPECT fails, the test does not stop. But if an ASSERT fails, it does.
Another comment (related): ASSERTs on subroutines/helper functions do not work as expected. Some extra work is needed: https://github.com/google/googletest/blob/main/docs/advanced.md#asserting-on-subroutines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fcarreiro Thanks for the pointer. The check_circuit() is part of the test rather than a precondition check in this context.
In the context of deterministic tests, I am not sure it matters so much. You will want to have everything green anyway. The ASSERT will allow you to save CPU time.