plan: Phase 1 exit review (P1-11)
- all Phase 1 tasks done, exit criterion met - README and architecture reflect the implemented modules - open question Q-020: size bound for SSA array values
This commit is contained in:
1 parent
1ae6b485d8
commit
e3dc0fb7bb
5 files changed
+39
-25
No files matched your search
+3
-2
@@ -98,5 +98,6 @@ These run through all phases rather than belonging to one.
|
||||
| Phase | Status |
|
||||
|---|---|
|
||||
| P0 | done; AIR format 0 frozen as the semantic baseline (spec 07 §8.7) |
|
||||
| P1 | in progress: RFC 0005 accepted and integrated (P1-1, P1-2) |
|
||||
| P2–P8 | not started |
|
||||
| P1 | done (exit review in the phase file) |
|
||||
| P2 | next |
|
||||
| P3–P8 | not started |
|
||||
@@ -22,12 +22,22 @@ Out: heap, regions, move-only values, borrow-typed block parameters (`borrow_joi
|
||||
|---|---|---|---|---|---|
|
||||
| P1-1 | done | Resolve Q-009 and Q-010; RFC 0005 accepted | — | RFC 0005 | owner accepted revision 2 |
|
||||
| P1-2 | done | Integrate RFC 0005 into the spec and registries | P1-1 | spec 03/07/07a/08, reference files | features `ownership`, `arrays` published |
|
||||
| P1-3 | todo | Data model, parser and printer: new types, `from`, multi-result, opcodes; feature gating | P1-2 | `src/air/` | round-trip fuzz covers new forms; `feature_not_declared` tests |
|
||||
| P1-4 | todo | Type rules: second-class rule, borrow/slice typing, zeroable types, `from` mode | P1-3 | `src/verifier/types.zig` | E1001 accept/reject pairs for each rule |
|
||||
| P1-5 | todo | Frame rules: `local.alloc` only in entry (E5002), frame size limit (E5101) | P1-3 | `cfg.zig`, `budget.zig` | reject tests for both |
|
||||
| P1-6 | todo | Initialization verifier | P1-4 | `src/verifier/init.zig` | E1010 accept/reject, including joins |
|
||||
| P1-7 | todo | Borrow verifier | P1-6 | `src/verifier/borrow.zig` | E2101, E2102, E2105–E2108 accept/reject; path linearity across branches; join state equality |
|
||||
| P1-8 | todo | Bounds facts for `borrow.index.proven` | P1-7 | `src/verifier/bounds.zig` | every row of the fact table accepted; `le i n` and other non-facts rejected (E2103) |
|
||||
| P1-9 | todo | Interpreter: frame storage, borrows, slices, bounds traps (T0008) | P1-4 | `src/interp/` | run tests for every instruction; T0008 for each checked operation |
|
||||
| P1-10 | todo | `aji features` lists `arrays`, `ownership`; conformance corpus for Phase 1 | P1-7…P1-9 | `tests/conformance/phase1/` | accept/reject/run tests for every new code and trap |
|
||||
| P1-11 | todo | Phase exit review | all | plan status | exit criterion passes |
|
||||
| P1-3 | done | Data model, parser and printer: new types, `from`, multi-result, opcodes; feature gating | P1-2 | `src/air/` | round-trip fuzz covers new forms; `feature_not_declared` tests |
|
||||
| P1-4 | done | Type rules: second-class rule, borrow/slice typing, zeroable types, `from` mode | P1-3 | `src/verifier/types.zig` | E1001 accept/reject pairs for each rule |
|
||||
| P1-5 | done | Frame rules: `local.alloc` only in entry (E5002), frame size limit (E5101) | P1-3 | `cfg.zig`, `budget.zig` | reject tests for both |
|
||||
| P1-6 | done | Initialization verifier | P1-4 | `src/verifier/init.zig` | E1010 accept/reject, including joins |
|
||||
| P1-7 | done | Borrow verifier | P1-6 | `src/verifier/borrow.zig` | E2101, E2102, E2105–E2108 accept/reject; path linearity across branches; join state equality |
|
||||
| P1-8 | done | Bounds facts for `borrow.index.proven` | P1-7 | `src/verifier/bounds.zig` | every row of the fact table accepted; `le i n` and other non-facts rejected (E2103) |
|
||||
| P1-9 | done | Interpreter: frame storage, borrows, slices, bounds traps (T0008) | P1-4 | `src/interp/` | run tests for every instruction; T0008 for each checked operation |
|
||||
| P1-10 | done | `aji features` lists `arrays`, `ownership`; conformance corpus for Phase 1 | P1-7…P1-9 | `tests/conformance/phase1/` | accept/reject/run tests for every new code and trap |
|
||||
| P1-11 | done | Phase exit review | all | plan status | exit criterion passes |
|
||||
|
||||
## Exit review
|
||||
|
||||
- Exit criterion met: `tests/conformance/phase1/run/file_copy_core.air` fills a local buffer, copies it into a second one in chunks with `slice.sub` + `slice.copy`, and returns `[0,1,…,9]`; every run is executed twice and compared.
|
||||
- Corpus: 5 accept, 18 reject, 11 run tests. Every Phase 1 code has a reject test (E1001 rules, E1010, E2101, E2102, E2103, E2105–E2108, E5002, E5101, E0006 `feature_not_declared` and `borrow_joins`); T0008 has run tests for `borrow.index`, `slice.sub` (including the overflow case) and `slice.copy`.
|
||||
- Every row of the fact table and the non-facts (`le i n`, `ge n i`, wrong edge, guard on a false-edge comparison, other slice, shared target block) have unit tests.
|
||||
- 6 000 mutated Phase 1 modules through `aji check` and `aji run --fuel` without a crash.
|
||||
- Spec clarification made during implementation: borrow, initialization and fact analysis cover blocks reachable from the entry block (spec 08 §11.4). Erratum: the array type is spelled `array<T, N>` in text AIR (RFC 0005 header).
|
||||
- Known limitation, not a soundness issue: the interpreter stores every element as a tagged value, so large arrays are memory-hungry; acceptable for conformance programs.
|
||||
- Open for the owner: SSA array values (`array.splat`) are bounded only by `N ≤ 2^32`, not by the frame limit; see Q-020.
|
||||
Reference in new issue
Block a user