Skip to content

Update opcode summaries to standardize labels and improve clarity#2737

Merged
Stevengre merged 4 commits into
masterfrom
better-summarization
Apr 9, 2025
Merged

Update opcode summaries to standardize labels and improve clarity#2737
Stevengre merged 4 commits into
masterfrom
better-summarization

Conversation

@Stevengre
Copy link
Copy Markdown
Contributor

  • Changed labels for various opcode summaries to follow a consistent naming convention, replacing instances of -1 with -NOGAS or -USEGAS where applicable.
  • This update enhances readability and maintains uniformity across the summary definitions, ensuring better understanding and maintenance of the codebase.

@Stevengre Stevengre self-assigned this Apr 7, 2025
@Stevengre Stevengre marked this pull request as ready for review April 7, 2025 15:46
Comment thread kevm-pyk/src/kevm_pyk/summarizer.py Outdated
Comment thread kevm-pyk/src/kevm_pyk/summarizer.py Outdated
@Stevengre Stevengre force-pushed the better-summarization branch from e45d3db to 2872076 Compare April 9, 2025 12:21
@Stevengre Stevengre requested a review from tothtamas28 April 9, 2025 12:21
- Changed labels for various opcode summaries to follow a consistent naming convention, replacing instances of `-1` with `-NOGAS` or `-USEGAS` where applicable.
- This update enhances readability and maintains uniformity across the summary definitions, ensuring better understanding and maintenance of the codebase.
- Introduced helper functions to determine the presence of `USEGAS`, `BERLIN`, `LE0`, and `INVALID` rules, improving code clarity and maintainability.
- Updated the `_transform_rule_id` function to utilize these new helper functions for better readability and streamlined logic.
- Removed outdated transformation functions that were no longer necessary, enhancing overall code efficiency.
@Stevengre Stevengre force-pushed the better-summarization branch from 2872076 to 8308c81 Compare April 9, 2025 17:23
@Stevengre Stevengre merged commit db7d25e into master Apr 9, 2025
12 checks passed
@Stevengre Stevengre deleted the better-summarization branch April 9, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants