Files
hakorune/docs/development/current/main/phases/phase-29aa/README.md

1.2 KiB
Raw Blame History

Phase 29aa: RC insertion safety expansionCFG-aware design

Status: P2 Complete (No cleanup on Jump/Branch)
Scope: Phase 29z の単一block限定実装から、誤releaseを起こさない形で CFG-aware に拡張するための設計を固める。

Entry:

  • SSOT: docs/development/current/main/phases/phase-29y/20-RC-INSERTION-SSOT.md
  • 指示書: docs/development/current/main/phases/phase-29aa/P0-RC_INSERTION_CFG_AWARE_DESIGN-INSTRUCTIONS.md

Non-goals:

  • 既定挙動変更feature rc-insertion-minimal 以外は no-op 維持)
  • SSA last-use を根拠にした drop
  • いきなり全ケース実装(設計+最小プロトタイプを優先)

Deliverables (P0):

  • RcPlan解析→挿入の二段階設計
  • PHI/loop/early-exit の危険パターン整理と Fail-Fast 方針
  • release 安全条件の契約
  • P1 で実装する最小ターゲットを 1 個に絞る

Progress:

  • P0: CFG-aware 設計の固定RcPlan/危険パターン/安全条件の契約)
  • P1: rc_insertion を RcPlan の Plan→Apply 2-stage へ分離(挙動不変)
  • P2: Jump/Branch 終端では cleanup を入れない契約を SSOT 化Fail-Fast guard