docs: Phase 267 P0 EdgeCFG Branch (BranchStub + emit_frag)

This commit is contained in:
2025-12-21 20:33:24 +09:00
parent bd84fdf78f
commit 86a51cad2b
4 changed files with 72 additions and 0 deletions

View File

@ -1,5 +1,18 @@
# Self Current Task — Now (main)
## 2025-12-21Phase 267 P0BranchStub + emit_frag
**目的**: Frag に Branch を第一級で追加し、wiresJump/Returnと同様に MIR terminator へ落とせる入口SSOTを作る
**結果**: `emit_frag()` により、`wires + branches` を BasicBlockId 層で PoC 証明unit testsまで完了
-`BranchStub` 追加 + `Frag.branches` 追加
-`compose::if_` が header→then/else の `BranchStub` を生成
-`emit_frag(function, frag)` 追加(`verify_frag_invariants_strict` を先頭で実行、1 block = 1 terminator を Fail-Fast
-`cargo test -p nyash-rust --lib` PASS
**注意P1**: NormalizedShadow/JoinIR への実適用は層ミスマッチがあるため Phase 268 に繰り越し
**詳細**: `docs/development/current/main/phases/phase-267/README.md`
## 2025-12-21Phase 266wires → MIR terminator 生成 - 最小 PoC
**目的**: wires を MIR terminator に変換する最小 PoC を実装し、Phase 267 での本格適用に備える