docs(phase29aa): mark P7 complete and queue P8

This commit is contained in:
2025-12-28 06:00:34 +09:00
parent d3cf73f2ae
commit 6d17a0f988
3 changed files with 20 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Self Current Task — Now (main)
## Current Focus: Phase 29aa P7Deterministic ReleaseStrong ordering
## Current Focus: Phase 29aa P8Null propagation across CFG; Copy-only
**2025-12-28: Phase 29aa P5 完了**
- 目的: Return block が複数 predecessor のとき、incoming state が完全一致する場合のみ ReturnCleanup を成立させる
@ -25,6 +25,10 @@
- Selfcheck: Case 3.11values が昇順であることを検証PASS
- 検証: quick 154/154 PASS / selfcheck PASS
**2025-12-28: Phase 29aa P8 進行中**
- 目的: CFG を跨いだ null 伝播Copy-onlyで explicit dropStore nullの精度を上げる
- 入口: `docs/development/current/main/phases/phase-29aa/README.md`
**2025-12-27: Phase 29aa P4 完了**
- 目的: Jump の直列チェーン(単一 predecessorを通して ReturnCleanup を成立させるcleanup は Return block のみ)
- 入口: `docs/development/current/main/phases/phase-29aa/README.md`

View File

@ -68,13 +68,14 @@ Related:
- 入口: `docs/development/current/main/phases/phase-29z/README.md`
- 指示書: `docs/development/current/main/phases/phase-29z/P0-RC_INSERTION_MINIMAL-INSTRUCTIONS.md`
- **Phase 29aaP6 COMPLETE / P7 planned: RC insertion safety expansionCFG-aware**
- **Phase 29aaP7 COMPLETE / P8 planned: RC insertion safety expansionCFG-aware**
- 進捗: P2 ✅ 完了Jump/Branch 終端で cleanup を入れない契約の SSOT 化)
- 進捗: P3 ✅ 完了Jump→Return single-predecessor state 伝播)
- 進捗: P4 ✅ 完了Jump-chain propagation to Return
- 進捗: P5 ✅ 完了Multi-predecessor Return join: state完全一致のみ
- 進捗: P6 ✅ 完了Multi-predecessor Return join: intersection
- : P7Deterministic ReleaseStrong ordering
- 進捗: P7 ✅ 完了Deterministic ReleaseStrong ordering
- 次: P8Null propagation across basic blocks; Copy-only first
- 入口: `docs/development/current/main/phases/phase-29aa/README.md`
- **Phase 29xplanned, post self-host: De-Rust runtime for LLVM execution**

View File

@ -1,6 +1,6 @@
# Phase 29aa: RC insertion safety expansionCFG-aware design
Status: P7 Complete (Deterministic ReleaseStrong ordering)
Status: P8 Ready (Null propagation across CFG; Copy-only)
Scope: Phase 29z の単一block限定実装から、誤releaseを起こさない形で CFG-aware に拡張するための設計を固める。
Entry:
@ -27,6 +27,7 @@ Progress:
- P5: Multi-predecessor Return で incoming state が完全一致する場合のみ ReturnCleanup を成立させるP2/P3/P4 維持)
- P6: Multi-predecessor Return で incoming state の「安全な共通部分intersection」のみ cleanup するP2-P5 維持)
- P7: ReleaseStrong の values 順序を決定的にするHashSet/HashMap 由来の非決定性を排除)
- P8: Null 伝播を CFG を跨いで扱う(最初は Copy-only + single-predecessor
P3 SSOT:
- Contract:
@ -102,6 +103,16 @@ P7 SSOT:
- Scope:
- ReturnCleanup単一block / P4 chain / P6 join`values` が対象
- Overwrite/ExplicitNull の単一要素 vec はそのままで OK
P8 SSOT:
- Objective:
- `Store null`explicit dropの追跡を CFG 越しに正しく扱い、誤 release を避ける。
- Contract:
- 最初は Copy-only の null 伝播のみ(`Copy dst, src`
- single-predecessorJump-chain / single-pred Return範囲に限定
- multi-predecessor では null 伝播は合流しない(保守的に Unknown 扱い)
- Acceptance:
- selfcheck: null を A で作って B で Store に使うJump で跨ぐ)ケースを追加し PASS
- Conservative:
- intersection は「安全だが保守的」。value 不一致の ptr は release されない=リーク方向
- P5 でも同じく release できてなかったケースなので回帰にはならないが、完全なメモリ回収には将来の PHI 対応が必要