pr4.2
This commit is contained in:
@@ -1,55 +1,3 @@
|
||||
# PR-4.2 — Basic Stack Safety Verification (Underflow/Overflow)
|
||||
|
||||
### Briefing
|
||||
|
||||
The verifier must ensure the stack never underflows or exceeds defined limits during execution.
|
||||
|
||||
### Target
|
||||
|
||||
* Implement stack safety checks across the control-flow graph.
|
||||
|
||||
### Work items
|
||||
|
||||
* Simulate stack depth across instructions.
|
||||
* Detect:
|
||||
|
||||
* Stack underflow.
|
||||
* Stack overflow beyond declared limits.
|
||||
* Emit appropriate verifier errors.
|
||||
|
||||
### Acceptance checklist
|
||||
|
||||
* [ ] Underflow cases are rejected.
|
||||
* [ ] Overflow cases are rejected.
|
||||
* [ ] Valid programs pass.
|
||||
* [ ] `cargo test` passes.
|
||||
|
||||
### Tests
|
||||
|
||||
* Add tests:
|
||||
|
||||
* Program with underflow → verifier error.
|
||||
* Program exceeding stack limit → verifier error.
|
||||
* Valid program → passes.
|
||||
|
||||
### Junie instructions
|
||||
|
||||
**You MAY:**
|
||||
|
||||
* Add stack depth simulation.
|
||||
* Introduce verifier error types.
|
||||
|
||||
**You MUST NOT:**
|
||||
|
||||
* Change runtime stack implementation.
|
||||
* Introduce dynamic stack resizing.
|
||||
|
||||
**If unclear:**
|
||||
|
||||
* Ask before choosing stack limit rules.
|
||||
|
||||
---
|
||||
|
||||
# PR-4.3 — Control Flow and Jump Target Verification
|
||||
|
||||
### Briefing
|
||||
|
||||
Reference in New Issue
Block a user