pr4.4
This commit is contained in:
@@ -1,53 +1,3 @@
|
||||
# PR-4.4 — Function Boundary and Terminator Verification
|
||||
|
||||
### Briefing
|
||||
|
||||
Functions must follow canonical entry and exit rules. The verifier must enforce valid terminators and boundaries.
|
||||
|
||||
### Target
|
||||
|
||||
* Ensure functions start and end correctly.
|
||||
* Ensure terminator instructions are valid.
|
||||
|
||||
### Work items
|
||||
|
||||
* Verify function entry points are valid instruction boundaries.
|
||||
* Verify function exit instructions:
|
||||
|
||||
* Proper `RET` usage.
|
||||
* Proper `FRAME_SYNC` placement (as per spec).
|
||||
* Reject functions without valid termination.
|
||||
|
||||
### Acceptance checklist
|
||||
|
||||
* [ ] All functions have valid entry and exit.
|
||||
* [ ] Invalid termination is rejected.
|
||||
* [ ] `cargo test` passes.
|
||||
|
||||
### Tests
|
||||
|
||||
* Add tests:
|
||||
|
||||
* Function without terminator → verifier error.
|
||||
* Properly terminated function → passes.
|
||||
|
||||
### Junie instructions
|
||||
|
||||
**You MAY:**
|
||||
|
||||
* Add boundary validation logic.
|
||||
|
||||
**You MUST NOT:**
|
||||
|
||||
* Redefine function semantics.
|
||||
* Change terminator opcode behavior.
|
||||
|
||||
**If unclear:**
|
||||
|
||||
* Ask before enforcing termination rules.
|
||||
|
||||
---
|
||||
|
||||
# PR-4.5 — Multi-Return (`ret_slots`) Verification
|
||||
|
||||
### Briefing
|
||||
|
||||
Reference in New Issue
Block a user