pr 46
This commit is contained in:
@@ -1,31 +1,3 @@
|
||||
## PR-06 — Control flow opcodes: jumps, conditional branches, structured “if”
|
||||
|
||||
**Why:** `if` must be predictable and verifier-safe.
|
||||
|
||||
### Scope
|
||||
|
||||
* Implement opcodes:
|
||||
|
||||
* `JMP <i32 rel>`
|
||||
* `JMP_IF_TRUE <i32 rel>`
|
||||
* `JMP_IF_FALSE <i32 rel>`
|
||||
* Verifier rules:
|
||||
|
||||
* targets must be valid instruction boundaries
|
||||
* stack height at join points must match
|
||||
|
||||
### Tests
|
||||
|
||||
* nested if
|
||||
* if with empty branches
|
||||
* branch join mismatch rejected
|
||||
|
||||
### Acceptance
|
||||
|
||||
* Control flow is safe; no implicit stack juggling.
|
||||
|
||||
---
|
||||
|
||||
## PR-07 — Calling convention v0: CALL / RET / multi-slot returns
|
||||
|
||||
**Why:** Without a correct call model, PBS isn’t executable.
|
||||
|
||||
Reference in New Issue
Block a user