nyash-codex
0175e62d9e
feat(joinir): Phase 204-2 PHI dst overwrite detection
Task 204-2: Implement verify_no_phi_dst_overwrite()
- Added PHI dst overwrite detection in merge/mod.rs
- Helper get_instruction_dst() extracts dst from MirInstruction
- Integrated into verify_joinir_contracts()
- Fixed pre-existing bugs:
- entry_block_remapped → entry_block (line 592)
- HashMap → BTreeMap in reconnector.rs (line 174)
- All instructions covered with wildcard pattern
Design:
- Debug-only (#[cfg(debug_assertions)])
- Fail-Fast panic on violation
- Checks PHI dst not overwritten by later instructions in header block
Status: Build SUCCESS (Task 204-2 complete)
Next: Task 204-3 (PHI inputs verification)