Skip to content

fix: reject dead AOT PC slots#2856

Open
Kuhai9801 wants to merge 2 commits into
openvm-org:mainfrom
Kuhai9801:rv32im-aot-dead-pc-dispatch
Open

fix: reject dead AOT PC slots#2856
Kuhai9801 wants to merge 2 commits into
openvm-org:mainfrom
Kuhai9801:rv32im-aot-dead-pc-dispatch

Conversation

@Kuhai9801

@Kuhai9801 Kuhai9801 commented Jun 7, 2026

Copy link
Copy Markdown

Fixes #2852.

Summary

AOT dispatch now emits fallback handlers for padded PC slots before pc_base and for explicit None program slots. This keeps pure and metered AOT behavior aligned with the interpreter for unreachable PCs instead of dispatching through a dead table slot.

Testing

  • OPENVM_FAST_TEST=1 OPENVM_SKIP_DEBUG=1 cargo test -p openvm-rv32im-circuit --features aot test_aot_dispatch_rejects_dead_pc_slots
  • cargo +nightly fmt --all -- --check
  • cargo clippy -p openvm-circuit -p openvm-rv32im-circuit --features aot --all-targets -- -D warnings

@Kuhai9801 Kuhai9801 marked this pull request as ready for review June 8, 2026 13:45
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.

RV32IM AOT dispatch does not reject dead PC slots

1 participant