|
|
c27981c35a
|
refactor(phi): Phase 25.1q - Conservative PHI strategy unification
**Changes**:
1. Created phi_core/conservative.rs module
- ConservativeMerge struct for PHI generation analysis
- Unified Conservative strategy implementation
- Box-First theory application
2. Refactored phi.rs merge_modified_vars
- Use ConservativeMerge::analyze() instead of inline logic
- Reduced from ~60 lines to ~35 lines (42% reduction)
- Improved code clarity and maintainability
**Benefits**:
- Centralized Conservative PHI logic (easier to maintain)
- Eliminated duplicate variable union calculation
- Clear separation of concerns (analysis vs execution)
- Foundation for future PhiMergeHelper unification
**Testing**:
✅ mir_stage1_using_resolver_full_collect_entries_verifies passes
✅ Phase 25.1c/k SSA fix preserved
✅ MIR correctness verified
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-19 10:32:16 +09:00 |
|