Phase 1: frame storage, second-class borrows, arrays (P1-3..P1-10)
- air: types local/ref/mut/array/slice/slice_mut, from-returns, multi-result binding, 18 new instructions; feature gating reports E0006 feature_not_declared; borrow-typed block parameters gated by borrow_joins; printer and round-trip tests for all new forms - verifier: second-class and zeroable type rules (E1001); local.alloc only in entry (E5002); frame size accounting (E5101); stages init (E1010), borrow (E2101, E2102, E2105-E2108) and bounds facts (E2103); value types shared between stages - interp: frame cells, places, slices, deep copies between storage and SSA values, T0008 bounds traps - features arrays and ownership supported; implemented_phase = 1 - conformance: 5 accept, 18 reject, 11 run tests for Phase 1, including the file-copy core exit program; 6000 mutants without a crash
This commit is contained in:
1 parent
be9dd0e1ed
commit
1ae6b485d8
50 files changed
+2376
-37
No files matched your search
@@ -171,6 +171,8 @@ Every borrow has a **root** (a `local` or a lent parameter), a **path** from the
|
||||
|
||||
The complete borrow state MUST be identical on every edge into a block (`E2105`, reported at the block). The state of each borrow consists of its identity (SSA value), kind (`ref`/`mut`), provenance (root), path, parent borrow, and whether it is live or ended. In particular a borrow created inside a loop body is ended before the back edge.
|
||||
|
||||
Sections 11–13 apply to the blocks reachable from the entry block; blocks that cannot execute are not analyzed (their SSA and types are still checked, spec 07 §8.2).
|
||||
|
||||
Only the set of accepted programs is normative. Because states must match exactly at joins, an implementation can verify a function in one pass over a reverse postorder with one comparison per back edge, but it is not required to work that way.
|
||||
|
||||
### 11.5 Frame size
|
||||
|
||||
Reference in new issue
Block a user