Skip to content

fix(runtime): preserve EVM gas semantics during SPP scheduling - #579

Open
abmcar wants to merge 6 commits into
DTVMStack:mainfrom
abmcar:codex/fix-spp-gas-accounting
Open

fix(runtime): preserve EVM gas semantics during SPP scheduling#579
abmcar wants to merge 6 commits into
DTVMStack:mainfrom
abmcar:codex/fix-spp-gas-accounting

Conversation

@abmcar

@abmcar abmcar commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

  • N
  • Y

2. What is the scope of this PR (e.g. component or file name):

EVM cache-build SPP scheduling in src/evm/evm_cache.cpp, cache and
differential regressions under src/tests/, the cache-build module
documentation, and the light-tier change document at
docs/changes/2026-07-28-evm-spp-gas-boundaries/README.md.

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains CI/CD configuration changes
  • Contains documentation changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

SPP may move a successor block's gas charge into its predecessor. This
preserves whole-path cost only when intermediate gas cannot affect execution
and every runtime successor is represented by the CFG used for compensation.

Two missing barriers violated those conditions:

  • SSTORE can fail at the EIP-2200 call-stipend threshold, so precharging
    later work before it can change a successful execution into an out-of-gas
    failure.
  • Unresolved dynamic JUMP and JUMPI sources have runtime targets omitted
    from the explicit CFG. Shifting an explicit JUMPI fallthrough cost onto
    the source also charges the taken path without compensating its omitted
    target.

This change:

  • treats SSTORE as a gas-sensitive SPP boundary;
  • records unresolved dynamic successors in the existing GasBlock padding
    and rejects source-side shifts at those blocks;
  • retains the implicit-predecessor guard that prevents shifts into possible
    dynamic targets;
  • adds cache-level regressions for both boundaries and one
    interpreter-versus-multipass differential regression for unresolved
    dynamic JUMPI;
  • documents the source, successor, and CFG invariants in both the module
    documentation and a light-tier change document.

GasBlock remains 32 bytes. Treating SSTORE as a boundary before Istanbul
and rejecting shifts around unresolved dynamic jumps are intentionally
conservative: they can reduce SPP scheduling opportunities at those
boundaries. No performance claim is made.

Change doc: docs/changes/2026-07-28-evm-spp-gas-boundaries/README.md

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

No API, ABI, configuration, or persisted-data format changes are introduced.

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

The current head 66305e02bbfd0a6e7cd3fe0417092ddf5aab767d was verified
against upstream/main at
8268abb94531b2553d20a77fcb08586cfcc014fc:

  • tools/format.sh check
  • evmCacheTests and evmDifferentialTests build cleanly, with no new
    compiler warnings
  • focused SPP cache regressions: 2/2
  • focused interpreter-versus-multipass differential regression: 1/1
  • full differential test target: 71/71
  • tools/dtvm_local_test.sh --auto --base upstream/main: interpreter unit
    tests 215/215, Cancun state tests 2723/2723, EVM assembly tests 209/209,
    and CTest 12/12
  • git diff --check
  • GitHub Actions: 17/17 required checks passed

The final test-only commit removes the standalone block 21,800,020
transaction 260 replay test and its embedded data header. The production
src/evm/evm_cache.cpp blob remains
6ca5d7a55812920d4d0e1de8b258c176c3d3c252.

The production implementation also passed a sealed multipass replay of
blocks 21,800,000–21,800,031:

  • 32/32 blocks, 4,993 transactions, 594,578,894 gas
  • header/body, per-block post, union post, gas/receipt-root/bloom,
    DB-state-access, and fresh-DB assertions all passed
  • semantic summary matched the frozen builtin reference and exported
    post-state was byte-identical
  • replay result SHA-256:
    ac08110078666c3f3667914c9727b4e42ec9f03bbf0454c950209e7d2423e191
  • post-state SHA-256:
    8f5ece8cfcbb6e3de66846b44dd6ed37aaf02ca7d347ec13adf52c178fcb4d14

The replay evidence is intentionally tied to the unchanged production blob;
it does not claim that the later documentation/test-only head was replayed.

6. Release note

Fix multipass EVM gas accounting around SSTORE and unresolved dynamic jumps by preventing SPP precharging across those boundaries.

Copilot AI review requested due to automatic review settings July 27, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

⚡ Performance Regression Check Results

✅ Performance Check Passed (interpreter)

Performance Benchmark Results (threshold: 25%)

Benchmark Baseline (us) Current (us) Change Status
total/main/blake2b_huff/8415nulls 2.81 2.72 -3.2% PASS
total/main/blake2b_huff/empty 0.05 0.05 -0.2% PASS
total/main/blake2b_shifts/8415nulls 12.19 13.60 +11.5% PASS
total/main/sha1_divs/5311 9.20 9.18 -0.2% PASS
total/main/sha1_divs/empty 0.11 0.10 -8.2% PASS
total/main/sha1_shifts/5311 6.47 6.25 -3.3% PASS
total/main/sha1_shifts/empty 0.04 0.04 +1.2% PASS
total/main/snailtracer/benchmark 102.75 98.05 -4.6% PASS
total/main/structarray_alloc/nfts_rank 1.02 1.26 +23.1% PASS
total/main/swap_math/insufficient_liquidity 0.00 0.00 +2.7% PASS
total/main/swap_math/received 0.01 0.01 +0.4% PASS
total/main/swap_math/spent 0.01 0.01 -1.0% PASS
total/main/weierstrudel/1 0.32 0.32 +0.3% PASS
total/main/weierstrudel/15 3.50 3.51 +0.3% PASS
total/micro/JUMPDEST_n0/empty 1.89 1.88 -0.5% PASS
total/micro/jump_around/empty 0.08 0.08 +1.2% PASS
total/micro/loop_with_many_jumpdests/empty 69.34 70.15 +1.2% PASS
total/micro/memory_grow_mload/by1 0.19 0.18 -5.8% PASS
total/micro/memory_grow_mload/by16 0.21 0.21 +1.4% PASS
total/micro/memory_grow_mload/by32 0.11 0.11 +4.5% PASS
total/micro/memory_grow_mload/nogrow 0.11 0.12 +2.1% PASS
total/micro/memory_grow_mstore/by1 0.20 0.20 -3.6% PASS
total/micro/memory_grow_mstore/by16 0.10 0.11 +4.2% PASS
total/micro/memory_grow_mstore/by32 0.25 0.25 +0.3% PASS
total/micro/memory_grow_mstore/nogrow 0.17 0.19 +14.8% PASS
total/micro/signextend/one 0.24 0.27 +12.1% PASS
total/micro/signextend/zero 0.44 0.49 +11.3% PASS
total/synth/ADD/b0 1.42 1.42 -0.0% PASS
total/synth/ADD/b1 2.69 2.75 +2.3% PASS
total/synth/ADDRESS/a0 10.54 10.45 -0.9% PASS
total/synth/ADDRESS/a1 6.34 6.35 +0.2% PASS
total/synth/AND/b0 1.32 1.28 -2.8% PASS
total/synth/AND/b1 2.53 2.62 +3.6% PASS
total/synth/BYTE/b0 6.61 6.08 -8.0% PASS
total/synth/BYTE/b1 8.56 8.52 -0.5% PASS
total/synth/CALLDATASIZE/a0 7.11 6.54 -7.9% PASS
total/synth/CALLDATASIZE/a1 3.27 3.26 -0.4% PASS
total/synth/CALLER/a0 10.49 10.50 +0.1% PASS
total/synth/CALLER/a1 10.48 10.51 +0.3% PASS
total/synth/CALLVALUE/a0 3.07 3.06 -0.2% PASS
total/synth/CALLVALUE/a1 6.34 6.55 +3.3% PASS
total/synth/CODESIZE/a0 8.03 7.96 -0.9% PASS
total/synth/CODESIZE/a1 7.98 7.94 -0.5% PASS
total/synth/DUP1/d0 1.80 1.85 +2.5% PASS
total/synth/DUP1/d1 1.85 1.85 +0.2% PASS
total/synth/DUP10/d0 1.83 1.65 -9.7% PASS
total/synth/DUP10/d1 1.84 1.82 -1.0% PASS
total/synth/DUP11/d0 1.09 1.09 -0.1% PASS
total/synth/DUP11/d1 1.85 1.87 +0.7% PASS
total/synth/DUP12/d0 1.88 1.72 -8.5% PASS
total/synth/DUP12/d1 1.13 1.15 +1.1% PASS
total/synth/DUP13/d0 1.81 1.85 +2.0% PASS
total/synth/DUP13/d1 1.82 1.85 +2.1% PASS
total/synth/DUP14/d0 1.10 1.10 +0.1% PASS
total/synth/DUP14/d1 1.65 1.86 +12.6% PASS
total/synth/DUP15/d0 1.83 1.81 -1.2% PASS
total/synth/DUP15/d1 1.13 1.15 +1.4% PASS
total/synth/DUP16/d0 1.80 1.85 +2.9% PASS
total/synth/DUP16/d1 1.82 1.85 +2.1% PASS
total/synth/DUP2/d0 1.10 1.10 -0.4% PASS
total/synth/DUP2/d1 1.85 1.82 -1.7% PASS
total/synth/DUP3/d0 1.84 1.74 -5.4% PASS
total/synth/DUP3/d1 1.15 1.13 -1.2% PASS
total/synth/DUP4/d0 1.82 1.89 +3.7% PASS
total/synth/DUP4/d1 1.71 1.69 -0.9% PASS
total/synth/DUP5/d0 1.09 1.09 +0.2% PASS
total/synth/DUP5/d1 1.85 1.86 +0.5% PASS
total/synth/DUP6/d0 1.76 1.87 +6.2% PASS
total/synth/DUP6/d1 1.14 1.15 +0.6% PASS
total/synth/DUP7/d0 1.88 1.78 -5.3% PASS
total/synth/DUP7/d1 1.75 1.83 +4.5% PASS
total/synth/DUP8/d0 1.09 1.09 +0.0% PASS
total/synth/DUP8/d1 1.82 1.84 +1.3% PASS
total/synth/DUP9/d0 1.87 1.84 -1.7% PASS
total/synth/DUP9/d1 1.14 1.14 +0.1% PASS
total/synth/EQ/b0 5.44 5.61 +3.1% PASS
total/synth/EQ/b1 5.55 5.59 +0.6% PASS
total/synth/GAS/a0 3.42 3.39 -1.1% PASS
total/synth/GAS/a1 9.01 9.01 +0.0% PASS
total/synth/GT/b0 5.78 5.66 -2.1% PASS
total/synth/GT/b1 5.76 5.84 +1.3% PASS
total/synth/ISZERO/u0 7.97 7.98 +0.1% PASS
total/synth/JUMPDEST/n0 1.89 1.90 +0.3% PASS
total/synth/LT/b0 5.66 5.67 +0.2% PASS
total/synth/LT/b1 3.66 3.65 -0.3% PASS
total/synth/MSIZE/a0 8.38 8.39 +0.0% PASS
total/synth/MSIZE/a1 8.37 8.45 +0.9% PASS
total/synth/MUL/b0 6.19 6.30 +1.9% PASS
total/synth/MUL/b1 4.82 4.81 -0.1% PASS
total/synth/NOT/u0 2.16 2.14 -1.0% PASS
total/synth/OR/b0 2.59 2.62 +1.3% PASS
total/synth/OR/b1 1.18 1.21 +2.1% PASS
total/synth/PC/a0 7.11 7.07 -0.5% PASS
total/synth/PC/a1 3.26 3.26 -0.1% PASS
total/synth/PUSH1/p0 2.14 2.18 +1.9% PASS
total/synth/PUSH1/p1 1.38 1.39 +0.5% PASS
total/synth/PUSH10/p0 2.06 2.16 +5.2% PASS
total/synth/PUSH10/p1 1.42 1.42 +0.5% PASS
total/synth/PUSH11/p0 2.12 2.16 +2.3% PASS
total/synth/PUSH11/p1 2.15 2.14 -0.5% PASS
total/synth/PUSH12/p0 1.37 1.38 +0.3% PASS
total/synth/PUSH12/p1 2.16 2.15 -0.7% PASS
total/synth/PUSH13/p0 2.15 2.11 -1.9% PASS
total/synth/PUSH13/p1 1.42 1.43 +0.9% PASS
total/synth/PUSH14/p0 2.18 2.17 -0.6% PASS
total/synth/PUSH14/p1 2.03 2.15 +6.0% PASS
total/synth/PUSH15/p0 1.39 1.38 -1.2% PASS
total/synth/PUSH15/p1 2.15 2.16 +0.4% PASS
total/synth/PUSH16/p0 2.12 2.16 +1.9% PASS
total/synth/PUSH16/p1 1.42 1.45 +1.7% PASS
total/synth/PUSH17/p0 2.20 2.03 -7.9% PASS
total/synth/PUSH17/p1 2.13 2.14 +0.3% PASS
total/synth/PUSH18/p0 1.38 1.38 -0.4% PASS
total/synth/PUSH18/p1 2.16 2.15 -0.2% PASS
total/synth/PUSH19/p0 2.20 2.14 -2.7% PASS
total/synth/PUSH19/p1 1.45 1.44 -0.4% PASS
total/synth/PUSH2/p0 2.16 2.12 -2.0% PASS
total/synth/PUSH2/p1 2.12 2.09 -1.3% PASS
total/synth/PUSH20/p0 2.02 2.15 +6.6% PASS
total/synth/PUSH20/p1 2.15 2.11 -1.6% PASS
total/synth/PUSH21/p0 1.39 1.40 +0.1% PASS
total/synth/PUSH21/p1 2.14 2.15 +0.2% PASS
total/synth/PUSH22/p0 2.14 2.08 -2.9% PASS
total/synth/PUSH22/p1 1.43 1.45 +1.5% PASS
total/synth/PUSH23/p0 2.13 2.07 -2.9% PASS
total/synth/PUSH23/p1 2.15 2.16 +0.3% PASS
total/synth/PUSH24/p0 1.41 1.37 -2.8% PASS
total/synth/PUSH24/p1 2.15 2.16 +0.5% PASS
total/synth/PUSH25/p0 2.16 2.12 -1.5% PASS
total/synth/PUSH25/p1 1.45 1.44 -0.8% PASS
total/synth/PUSH26/p0 2.18 2.09 -4.3% PASS
total/synth/PUSH26/p1 2.12 2.14 +1.2% PASS
total/synth/PUSH27/p0 1.41 1.39 -1.7% PASS
total/synth/PUSH27/p1 2.17 2.14 -1.2% PASS
total/synth/PUSH28/p0 2.19 2.17 -1.1% PASS
total/synth/PUSH28/p1 1.45 1.45 -0.2% PASS
total/synth/PUSH29/p0 2.17 2.17 -0.1% PASS
total/synth/PUSH29/p1 2.16 2.03 -6.1% PASS
total/synth/PUSH3/p0 1.37 1.37 -0.2% PASS
total/synth/PUSH3/p1 2.15 2.16 +0.1% PASS
total/synth/PUSH30/p0 1.44 1.38 -4.3% PASS
total/synth/PUSH30/p1 2.16 2.14 -0.4% PASS
total/synth/PUSH31/p0 2.15 2.14 -0.5% PASS
total/synth/PUSH31/p1 1.50 1.55 +3.3% PASS
total/synth/PUSH32/p0 2.18 2.12 -2.9% PASS
total/synth/PUSH32/p1 2.15 2.16 +0.8% PASS
total/synth/PUSH4/p0 2.20 2.03 -7.6% PASS
total/synth/PUSH4/p1 1.40 1.42 +1.5% PASS
total/synth/PUSH5/p0 2.05 2.08 +2.5% PASS
total/synth/PUSH5/p1 2.16 2.13 -1.4% PASS
total/synth/PUSH6/p0 1.37 1.36 -0.6% PASS
total/synth/PUSH6/p1 2.15 1.93 -10.0% PASS
total/synth/PUSH7/p0 2.15 2.19 +1.6% PASS
total/synth/PUSH7/p1 1.39 1.41 +1.4% PASS
total/synth/PUSH8/p0 2.18 2.07 -5.1% PASS
total/synth/PUSH8/p1 2.15 2.15 -0.3% PASS
total/synth/PUSH9/p0 1.39 1.37 -1.0% PASS
total/synth/PUSH9/p1 2.15 2.08 -3.1% PASS
total/synth/RETURNDATASIZE/a0 3.79 3.54 -6.7% PASS
total/synth/RETURNDATASIZE/a1 7.82 7.82 -0.1% PASS
total/synth/SAR/b0 3.88 3.79 -2.2% PASS
total/synth/SAR/b1 9.19 8.91 -3.0% PASS
total/synth/SGT/b0 4.70 4.36 -7.2% PASS
total/synth/SGT/b1 2.44 2.45 +0.4% PASS
total/synth/SHL/b0 4.73 4.78 +1.1% PASS
total/synth/SHL/b1 1.51 1.52 +0.6% PASS
total/synth/SHR/b0 4.52 4.54 +0.5% PASS
total/synth/SHR/b1 3.57 3.76 +5.3% PASS
total/synth/SIGNEXTEND/b0 3.37 3.31 -1.7% PASS
total/synth/SIGNEXTEND/b1 6.74 6.90 +2.4% PASS
total/synth/SLT/b0 2.68 2.67 -0.1% PASS
total/synth/SLT/b1 4.20 4.31 +2.7% PASS
total/synth/SUB/b0 2.59 2.78 +7.5% PASS
total/synth/SUB/b1 2.75 2.50 -9.2% PASS
total/synth/SWAP1/s0 1.19 1.18 -1.0% PASS
total/synth/SWAP10/s0 1.20 1.20 -0.5% PASS
total/synth/SWAP11/s0 3.38 3.41 +1.0% PASS
total/synth/SWAP12/s0 3.40 3.40 +0.0% PASS
total/synth/SWAP13/s0 1.21 1.20 -0.7% PASS
total/synth/SWAP14/s0 3.39 3.43 +1.1% PASS
total/synth/SWAP15/s0 3.38 3.22 -4.6% PASS
total/synth/SWAP16/s0 1.21 1.21 +0.1% PASS
total/synth/SWAP2/s0 3.33 3.31 -0.7% PASS
total/synth/SWAP3/s0 3.36 3.28 -2.2% PASS
total/synth/SWAP4/s0 1.20 1.20 +0.4% PASS
total/synth/SWAP5/s0 3.19 3.04 -4.7% PASS
total/synth/SWAP6/s0 3.38 3.39 +0.2% PASS
total/synth/SWAP7/s0 1.20 1.19 -0.7% PASS
total/synth/SWAP8/s0 3.39 3.38 -0.2% PASS
total/synth/SWAP9/s0 3.36 3.36 +0.0% PASS
total/synth/XOR/b0 2.42 2.47 +1.8% PASS
total/synth/XOR/b1 2.48 2.43 -2.0% PASS
total/synth/loop_v1 9.59 9.45 -1.5% PASS
total/synth/loop_v2 9.57 9.60 +0.4% PASS

Summary: 194 benchmarks, 0 regressions


✅ Performance Check Passed (multipass)

Performance Benchmark Results (threshold: 25%)

Benchmark Baseline (us) Current (us) Change Status
total/main/blake2b_huff/8415nulls 1.29 1.30 +1.1% PASS
total/main/blake2b_huff/empty 0.03 0.02 -2.0% PASS
total/main/blake2b_shifts/8415nulls 4.29 4.28 -0.1% PASS
total/main/sha1_divs/5311 0.88 0.89 +1.7% PASS
total/main/sha1_divs/empty 0.01 0.01 -1.8% PASS
total/main/sha1_shifts/5311 0.77 0.79 +2.4% PASS
total/main/sha1_shifts/empty 0.01 0.01 +0.0% PASS
total/main/structarray_alloc/nfts_rank 0.26 0.26 -0.1% PASS
total/main/swap_math/insufficient_liquidity 0.00 0.00 -1.8% PASS
total/main/swap_math/received 0.01 0.01 +0.6% PASS
total/main/swap_math/spent 0.01 0.00 -3.9% PASS
total/main/weierstrudel/1 0.33 0.33 -0.1% PASS
total/main/weierstrudel/15 3.69 3.61 -2.2% PASS
total/micro/JUMPDEST_n0/empty 0.00 0.00 -0.1% PASS
total/micro/jump_around/empty 0.07 0.07 -0.7% PASS
total/micro/loop_with_many_jumpdests/empty 0.01 0.01 -3.2% PASS
total/micro/memory_grow_mload/by1 0.02 0.02 -5.0% PASS
total/micro/memory_grow_mload/by16 0.02 0.02 -3.4% PASS
total/micro/memory_grow_mload/by32 0.01 0.01 +0.9% PASS
total/micro/memory_grow_mload/nogrow 0.01 0.01 +0.6% PASS
total/micro/memory_grow_mstore/by1 0.02 0.02 +8.5% PASS
total/micro/memory_grow_mstore/by16 0.01 0.01 +1.8% PASS
total/micro/memory_grow_mstore/by32 0.03 0.02 -0.8% PASS
total/micro/memory_grow_mstore/nogrow 0.02 0.02 +3.3% PASS
total/micro/signextend/one 0.08 0.08 -1.8% PASS
total/micro/signextend/zero 0.19 0.19 -2.2% PASS
total/synth/ADD/b0 0.00 0.00 +0.4% PASS
total/synth/ADD/b1 0.00 0.00 +0.7% PASS
total/synth/ADDRESS/a0 0.23 0.23 -2.0% PASS
total/synth/ADDRESS/a1 0.15 0.15 -0.6% PASS
total/synth/AND/b0 0.00 0.00 +0.6% PASS
total/synth/AND/b1 0.00 0.00 +0.7% PASS
total/synth/BYTE/b0 0.00 0.00 -0.8% PASS
total/synth/BYTE/b1 0.00 0.00 +3.4% PASS
total/synth/CALLDATASIZE/a0 0.12 0.12 +0.3% PASS
total/synth/CALLDATASIZE/a1 0.07 0.07 -0.0% PASS
total/synth/CALLER/a0 0.22 0.22 -1.2% PASS
total/synth/CALLER/a1 0.23 0.22 -3.0% PASS
total/synth/CALLVALUE/a0 0.19 0.19 +0.4% PASS
total/synth/CALLVALUE/a1 0.28 0.29 +4.0% PASS
total/synth/CODESIZE/a0 0.12 0.12 +1.1% PASS
total/synth/CODESIZE/a1 0.13 0.12 -2.3% PASS
total/synth/DUP1/d0 0.00 0.00 +0.7% PASS
total/synth/DUP1/d1 0.00 0.00 +1.6% PASS
total/synth/DUP10/d0 0.00 0.00 +0.7% PASS
total/synth/DUP10/d1 0.00 0.00 +0.6% PASS
total/synth/DUP11/d0 0.00 0.00 -0.2% PASS
total/synth/DUP11/d1 0.00 0.00 -1.1% PASS
total/synth/DUP12/d0 0.00 0.00 +77.8% PASS
total/synth/DUP12/d1 0.00 0.00 +0.6% PASS
total/synth/DUP13/d0 0.00 0.00 +0.8% PASS
total/synth/DUP13/d1 0.00 0.00 +1.5% PASS
total/synth/DUP14/d0 0.00 0.00 +0.3% PASS
total/synth/DUP14/d1 0.00 0.00 +0.9% PASS
total/synth/DUP15/d0 0.00 0.00 +0.8% PASS
total/synth/DUP15/d1 0.00 0.00 -0.1% PASS
total/synth/DUP16/d0 0.00 0.00 +1.1% PASS
total/synth/DUP16/d1 0.00 0.00 +2.7% PASS
total/synth/DUP2/d0 0.00 0.00 +0.6% PASS
total/synth/DUP2/d1 0.00 0.00 -1.5% PASS
total/synth/DUP3/d0 0.00 0.00 +2.2% PASS
total/synth/DUP3/d1 0.00 0.00 +0.1% PASS
total/synth/DUP4/d0 0.00 0.00 +2.3% PASS
total/synth/DUP4/d1 0.00 0.00 +0.5% PASS
total/synth/DUP5/d0 0.00 0.00 +0.1% PASS
total/synth/DUP5/d1 0.00 0.00 +1.4% PASS
total/synth/DUP6/d0 0.00 0.00 +0.1% PASS
total/synth/DUP6/d1 0.00 0.00 +0.1% PASS
total/synth/DUP7/d0 0.00 0.00 +0.9% PASS
total/synth/DUP7/d1 0.00 0.00 +0.0% PASS
total/synth/DUP8/d0 0.00 0.00 -0.0% PASS
total/synth/DUP8/d1 0.00 0.00 +1.3% PASS
total/synth/DUP9/d0 0.00 0.00 +5.5% PASS
total/synth/DUP9/d1 0.00 0.00 +0.2% PASS
total/synth/EQ/b0 0.00 0.00 +0.3% PASS
total/synth/EQ/b1 0.00 0.00 +0.6% PASS
total/synth/GAS/a0 0.76 0.76 +0.1% PASS
total/synth/GAS/a1 0.93 0.91 -1.8% PASS
total/synth/GT/b0 0.00 0.00 +0.4% PASS
total/synth/GT/b1 0.00 0.00 +0.4% PASS
total/synth/ISZERO/u0 0.00 0.00 -0.4% PASS
total/synth/JUMPDEST/n0 0.00 0.00 +0.7% PASS
total/synth/LT/b0 0.00 0.00 +0.3% PASS
total/synth/LT/b1 0.00 0.00 -0.6% PASS
total/synth/MSIZE/a0 0.00 0.00 -1.7% PASS
total/synth/MSIZE/a1 0.00 0.00 +0.8% PASS
total/synth/MUL/b0 0.00 0.00 +0.8% PASS
total/synth/MUL/b1 0.00 0.00 +0.4% PASS
total/synth/NOT/u0 0.00 0.00 +0.3% PASS
total/synth/OR/b0 0.00 0.00 -2.2% PASS
total/synth/OR/b1 0.00 0.00 -0.1% PASS
total/synth/PC/a0 0.00 0.00 +2.0% PASS
total/synth/PC/a1 0.00 0.00 -0.3% PASS
total/synth/PUSH1/p0 0.00 0.00 +0.2% PASS
total/synth/PUSH1/p1 0.00 0.00 +0.4% PASS
total/synth/PUSH10/p0 0.00 0.00 -2.1% PASS
total/synth/PUSH10/p1 0.00 0.00 -0.3% PASS
total/synth/PUSH11/p0 0.00 0.00 +0.4% PASS
total/synth/PUSH11/p1 0.00 0.00 -1.2% PASS
total/synth/PUSH12/p0 0.00 0.00 -0.3% PASS
total/synth/PUSH12/p1 0.00 0.00 +0.9% PASS
total/synth/PUSH13/p0 0.00 0.00 +1.8% PASS
total/synth/PUSH13/p1 0.00 0.00 +0.1% PASS
total/synth/PUSH14/p0 0.00 0.00 -3.5% PASS
total/synth/PUSH14/p1 0.00 0.00 +6.4% PASS
total/synth/PUSH15/p0 0.00 0.00 -0.8% PASS
total/synth/PUSH15/p1 0.00 0.00 -4.6% PASS
total/synth/PUSH16/p0 0.00 0.00 +1.2% PASS
total/synth/PUSH16/p1 0.00 0.00 -1.2% PASS
total/synth/PUSH17/p0 0.00 0.00 +2.7% PASS
total/synth/PUSH17/p1 0.00 0.00 +3.1% PASS
total/synth/PUSH18/p0 0.00 0.00 -2.5% PASS
total/synth/PUSH18/p1 0.00 0.00 +2.1% PASS
total/synth/PUSH19/p0 0.00 0.00 -1.4% PASS
total/synth/PUSH19/p1 0.00 0.00 +0.6% PASS
total/synth/PUSH2/p0 0.00 0.00 +1.0% PASS
total/synth/PUSH2/p1 0.00 0.00 +1.3% PASS
total/synth/PUSH20/p0 0.00 0.00 +1.6% PASS
total/synth/PUSH20/p1 0.00 0.00 +1.2% PASS
total/synth/PUSH21/p0 0.00 0.00 -0.5% PASS
total/synth/PUSH21/p1 0.00 0.00 +3.2% PASS
total/synth/PUSH22/p0 1.67 1.74 +4.1% PASS
total/synth/PUSH22/p1 1.65 1.64 -0.8% PASS
total/synth/PUSH23/p0 1.70 1.78 +5.0% PASS
total/synth/PUSH23/p1 1.90 2.03 +7.1% PASS
total/synth/PUSH24/p0 1.20 1.20 -0.1% PASS
total/synth/PUSH24/p1 1.86 1.99 +6.9% PASS
total/synth/PUSH25/p0 1.99 1.73 -13.1% PASS
total/synth/PUSH25/p1 1.64 1.65 +0.5% PASS
total/synth/PUSH26/p0 1.66 1.75 +5.6% PASS
total/synth/PUSH26/p1 1.88 1.99 +6.2% PASS
total/synth/PUSH27/p0 1.20 1.20 -0.2% PASS
total/synth/PUSH27/p1 2.26 2.08 -7.9% PASS
total/synth/PUSH28/p0 1.68 1.76 +4.3% PASS
total/synth/PUSH28/p1 1.65 1.64 -0.5% PASS
total/synth/PUSH29/p0 1.72 1.77 +2.9% PASS
total/synth/PUSH29/p1 1.84 2.01 +9.7% PASS
total/synth/PUSH3/p0 0.00 0.00 +0.7% PASS
total/synth/PUSH3/p1 0.00 0.00 -1.8% PASS
total/synth/PUSH30/p0 1.26 1.36 +7.4% PASS
total/synth/PUSH30/p1 1.87 1.99 +6.4% PASS
total/synth/PUSH31/p0 1.73 1.75 +1.5% PASS
total/synth/PUSH31/p1 1.66 1.65 -0.5% PASS
total/synth/PUSH32/p0 1.69 1.77 +5.1% PASS
total/synth/PUSH32/p1 1.87 2.00 +6.5% PASS
total/synth/PUSH4/p0 0.00 0.00 +1.4% PASS
total/synth/PUSH4/p1 0.00 0.00 +0.1% PASS
total/synth/PUSH5/p0 0.00 0.00 -0.4% PASS
total/synth/PUSH5/p1 0.00 0.00 -0.5% PASS
total/synth/PUSH6/p0 0.00 0.00 -1.6% PASS
total/synth/PUSH6/p1 0.00 0.00 +1.7% PASS
total/synth/PUSH7/p0 0.00 0.00 +5.5% PASS
total/synth/PUSH7/p1 0.00 0.00 +1.5% PASS
total/synth/PUSH8/p0 0.00 0.00 +0.7% PASS
total/synth/PUSH8/p1 0.00 0.00 -1.4% PASS
total/synth/PUSH9/p0 0.00 0.00 -2.3% PASS
total/synth/PUSH9/p1 0.00 0.00 -0.1% PASS
total/synth/RETURNDATASIZE/a0 0.03 0.03 -0.1% PASS
total/synth/RETURNDATASIZE/a1 0.06 0.06 +0.5% PASS
total/synth/SAR/b0 0.00 0.00 +0.8% PASS
total/synth/SAR/b1 0.00 0.00 +1.4% PASS
total/synth/SGT/b0 0.00 0.00 +0.4% PASS
total/synth/SGT/b1 0.00 0.00 +0.2% PASS
total/synth/SHL/b0 0.00 0.00 +0.6% PASS
total/synth/SHL/b1 0.00 0.00 -0.5% PASS
total/synth/SHR/b0 0.00 0.00 +0.5% PASS
total/synth/SHR/b1 0.00 0.00 -0.1% PASS
total/synth/SIGNEXTEND/b0 0.00 0.00 +0.5% PASS
total/synth/SIGNEXTEND/b1 0.00 0.00 +1.1% PASS
total/synth/SLT/b0 0.00 0.00 +0.2% PASS
total/synth/SLT/b1 0.00 0.00 +1.1% PASS
total/synth/SUB/b0 0.00 0.00 +0.4% PASS
total/synth/SUB/b1 0.00 0.00 +0.5% PASS
total/synth/SWAP1/s0 0.00 0.00 +0.0% PASS
total/synth/SWAP10/s0 0.00 0.00 -1.0% PASS
total/synth/SWAP11/s0 0.00 0.00 +0.3% PASS
total/synth/SWAP12/s0 0.00 0.00 -0.5% PASS
total/synth/SWAP13/s0 0.00 0.00 -1.7% PASS
total/synth/SWAP14/s0 0.00 0.00 +1.0% PASS
total/synth/SWAP15/s0 0.00 0.00 +0.8% PASS
total/synth/SWAP16/s0 0.00 0.00 +0.9% PASS
total/synth/SWAP2/s0 0.00 0.00 +3.5% PASS
total/synth/SWAP3/s0 0.00 0.00 +0.4% PASS
total/synth/SWAP4/s0 0.00 0.00 -0.1% PASS
total/synth/SWAP5/s0 0.00 0.00 +0.5% PASS
total/synth/SWAP6/s0 0.00 0.00 -0.4% PASS
total/synth/SWAP7/s0 0.00 0.00 +0.3% PASS
total/synth/SWAP8/s0 0.00 0.00 +1.0% PASS
total/synth/SWAP9/s0 0.00 0.00 +1.2% PASS
total/synth/XOR/b0 0.00 0.00 -7.7% PASS
total/synth/XOR/b1 0.00 0.00 +1.1% PASS
total/synth/loop_v1 8.54 8.42 -1.5% PASS
total/synth/loop_v2 8.42 8.49 +0.8% PASS

Summary: 193 benchmarks, 0 regressions


Copilot AI review requested due to automatic review settings July 28, 2026 07:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 28, 2026 08:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@abmcar
abmcar marked this pull request as ready for review July 28, 2026 08:33
codex and others added 5 commits July 29, 2026 07:49
Treat SSTORE as a gas-sensitive boundary when shifting static block costs.
EIP-2200 checks gas left before the storage update, so precharging a successor
can change success into out-of-gas even when total path cost is unchanged.

Add a cache-level regression and an interpreter-versus-multipass replay of
mainnet block 21800020 transaction 260 using audited bytecode and calldata
fixtures.
Track omitted dynamic successors so SPP cannot charge untaken blocks on a taken path.

Bind focused execution revisions and pin storage, log, and gas regression oracles.
Move the mainnet bytecode into a test-only header and document the SPP gas boundaries.
@abmcar
abmcar force-pushed the codex/fix-spp-gas-accounting branch from 1ef8b0d to 5894039 Compare July 29, 2026 08:15
Copilot AI review requested due to automatic review settings July 29, 2026 08:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 30, 2026 09:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

3 participants