Files
hakorune/docs/development/testing/golden/loop_nested_if.mir.txt

69 lines
1.4 KiB
Plaintext

🔌 v2 plugin system initialized from nyash.toml
✅ v2 plugin system fully configured
🚀 Nyash MIR Compiler - Processing file: local_tests/loop_nested_if_test.hako 🚀
🚀 MIR Output for local_tests/loop_nested_if_test.hako:
; MIR Module: main
; Module Statistics:
; Functions: 1
; Globals: 0
; Total Blocks: 7
; Total Instructions: 28
; Pure Functions: 1
define void @main() {
; Function Statistics:
; Blocks: 7
; Instructions: 28
; Values: 0
; Phi Functions: 2
; Pure: yes
bb0:
0: safepoint
1: %1 = const 0
2: %2 = new IntegerBox(%1)
3: call %2.birth(%1)
4: br label bb1
; effects: pure|read|alloc
bb1: ; preds(bb6)
0: %3 = phi [%2, bb0], [%13, bb6]
1: %4 = const 1
2: %5 = new IntegerBox(%4)
3: call %5.birth(%4)
4: %6 = icmp Lt %3, %5
5: br %6, label bb2, label bb3
; effects: pure|read|alloc
bb2:
0: safepoint
1: %7 = const true
2: %8 = new BoolBox(%7)
3: call %8.birth(%7)
4: br %8, label bb4, label bb5
; effects: pure|read|alloc
bb3:
0: %14 = const void
1: ret %14
bb4:
0: %9 = const 1
1: %10 = new IntegerBox(%9)
2: call %10.birth(%9)
3: br label bb6
; effects: pure|read|alloc
bb5:
0: %11 = const 2
1: %12 = new IntegerBox(%11)
2: call %12.birth(%11)
3: br label bb6
; effects: pure|read|alloc
bb6:
0: %13 = phi [%10, bb4], [%12, bb5]
1: br label bb1
}