; LLVM IR from wuzhouhui/leetcode :: 107_bin_tree_lev_trav_II (levelOrderBottom)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TreeNode = type { i32, ptr, ptr }

@q_head1 = external hidden global ptr, align 8
@maxcolp = external hidden global i32, align 4
@p = external hidden global i32, align 4
@q_head2 = external hidden global ptr, align 8
@q_tail2 = external hidden global ptr, align 8
@q_tail1 = external hidden global ptr, align 8
@res = external hidden global ptr, align 8
@col = external hidden global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local ptr @levelOrderBottom(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %17, label %14

14:                                               ; preds = %3
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr null, ptr %15, align 8, !tbaa !5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  store ptr null, ptr %4, align 8
  br label %118

17:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  call void @do_init()
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void @enque1(ptr noundef %18)
  br label %19

19:                                               ; preds = %35, %17
  %20 = load ptr, ptr @q_head1, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %40

22:                                               ; preds = %19
  br label %23

23:                                               ; preds = %26, %22
  %24 = load ptr, ptr @q_head1, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %35

26:                                               ; preds = %23
  %27 = call ptr @deque1()
  store ptr %27, ptr %11, align 8, !tbaa !5
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  call void @add_ans(ptr noundef %28)
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.TreeNode, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  call void @enque2(ptr noundef %31)
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.TreeNode, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  call void @enque2(ptr noundef %34)
  br label %23, !llvm.loop !14

35:                                               ; preds = %23
  store i32 0, ptr @maxcolp, align 4, !tbaa !9
  %36 = load i32, ptr @p, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr @p, align 4, !tbaa !9
  %38 = load ptr, ptr @q_head2, align 8, !tbaa !5
  store ptr %38, ptr @q_head1, align 8, !tbaa !5
  %39 = load ptr, ptr @q_tail2, align 8, !tbaa !5
  store ptr %39, ptr @q_tail1, align 8, !tbaa !5
  store ptr null, ptr @q_tail2, align 8, !tbaa !5
  store ptr null, ptr @q_head2, align 8, !tbaa !5
  br label %19, !llvm.loop !16

40:                                               ; preds = %19
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %73, %40
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = load i32, ptr @p, align 4, !tbaa !9
  %44 = sdiv i32 %43, 2
  %45 = sub nsw i32 %44, 1
  %46 = icmp sle i32 %42, %45
  br i1 %46, label %47, label %76

47:                                               ; preds = %41
  %48 = load ptr, ptr @res, align 8, !tbaa !5
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds ptr, ptr %48, i64 %50
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  store ptr %52, ptr %10, align 8, !tbaa !5
  %53 = load ptr, ptr @res, align 8, !tbaa !5
  %54 = load i32, ptr @p, align 4, !tbaa !9
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = sub nsw i32 %54, %55
  %57 = sub nsw i32 %56, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %53, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = load ptr, ptr @res, align 8, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  store ptr %60, ptr %64, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr @res, align 8, !tbaa !5
  %67 = load i32, ptr @p, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = sub nsw i32 %67, %68
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %66, i64 %71
  store ptr %65, ptr %72, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %47
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !9
  br label %41, !llvm.loop !17

76:                                               ; preds = %41
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %109, %76
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = load i32, ptr @p, align 4, !tbaa !9
  %80 = sdiv i32 %79, 2
  %81 = sub nsw i32 %80, 1
  %82 = icmp sle i32 %78, %81
  br i1 %82, label %83, label %112

83:                                               ; preds = %77
  %84 = load ptr, ptr @col, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !9
  store i32 %88, ptr %9, align 4, !tbaa !9
  %89 = load ptr, ptr @col, align 8, !tbaa !5
  %90 = load i32, ptr @p, align 4, !tbaa !9
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = sub nsw i32 %90, %91
  %93 = sub nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %89, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr @col, align 8, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %97, i64 %99
  store i32 %96, ptr %100, align 4, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = load ptr, ptr @col, align 8, !tbaa !5
  %103 = load i32, ptr @p, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = sub nsw i32 %103, %104
  %106 = sub nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %102, i64 %107
  store i32 %101, ptr %108, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %83
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %8, align 4, !tbaa !9
  br label %77, !llvm.loop !18

112:                                              ; preds = %77
  %113 = load ptr, ptr @col, align 8, !tbaa !5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %113, ptr %114, align 8, !tbaa !5
  %115 = load i32, ptr @p, align 4, !tbaa !9
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %115, ptr %116, align 4, !tbaa !9
  %117 = load ptr, ptr @res, align 8, !tbaa !5
  store ptr %117, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  br label %118

118:                                              ; preds = %112, %14
  %119 = load ptr, ptr %4, align 8
  ret ptr %119
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare hidden void @do_init() #0

; Function Attrs: nounwind uwtable
declare hidden void @enque1(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @deque1() #0

; Function Attrs: nounwind uwtable
declare hidden void @add_ans(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @enque2(ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"TreeNode", !10, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@q_head1 = external hidden local_unnamed_addr global ptr, align 8
@maxcolp = external hidden local_unnamed_addr global i32, align 4
@p = external hidden local_unnamed_addr global i32, align 4
@q_head2 = external hidden local_unnamed_addr global ptr, align 8
@q_tail2 = external hidden local_unnamed_addr global ptr, align 8
@q_tail1 = external hidden local_unnamed_addr global ptr, align 8
@res = external hidden local_unnamed_addr global ptr, align 8
@col = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local ptr @levelOrderBottom(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %3
  store ptr null, ptr %1, align 8, !tbaa !5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %64

5:                                                ; preds = %3
  tail call void @do_init()
  tail call void @enque1(ptr noundef nonnull %0)
  %.pr = load ptr, ptr @q_head1, align 8, !tbaa !5
  %.not2532 = icmp eq ptr %.pr, null
  br i1 %.not2532, label %..preheader29_crit_edge, label %.lr.ph

..preheader29_crit_edge:                          ; preds = %5
  %.pre = load i32, ptr @p, align 4, !tbaa !9
  br label %.preheader29

.preheader29:                                     ; preds = %._crit_edge, %..preheader29_crit_edge
  %6 = phi i32 [ %.pre, %..preheader29_crit_edge ], [ %17, %._crit_edge ]
  %.not26.not33 = icmp sgt i32 %6, 1
  br i1 %.not26.not33, label %.lr.ph35.preheader, label %.preheader.thread

.preheader.thread:                                ; preds = %.preheader29
  %.pre4546 = load ptr, ptr @col, align 8, !tbaa !5
  br label %._crit_edge39

.lr.ph35.preheader:                               ; preds = %.preheader29
  %7 = lshr i32 %6, 1
  %8 = zext nneg i32 %6 to i64
  %wide.trip.count = zext nneg i32 %7 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %9 = icmp eq i32 %7, 1
  br i1 %9, label %.preheader.unr-lcssa, label %.lr.ph35.preheader.new

.lr.ph35.preheader.new:                           ; preds = %.lr.ph35.preheader
  %unroll_iter = and i64 %wide.trip.count, 1073741822
  br label %.lr.ph35

.lr.ph:                                           ; preds = %5, %.lr.ph.backedge
  %10 = tail call ptr @deque1()
  tail call void @add_ans(ptr noundef %10)
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  tail call void @enque2(ptr noundef %12)
  %13 = getelementptr inbounds i8, ptr %10, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  tail call void @enque2(ptr noundef %14)
  %15 = load ptr, ptr @q_head1, align 8, !tbaa !5
  %.not28 = icmp eq ptr %15, null
  br i1 %.not28, label %._crit_edge, label %.lr.ph.backedge

.lr.ph.backedge:                                  ; preds = %.lr.ph, %._crit_edge
  br label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph
  store i32 0, ptr @maxcolp, align 4, !tbaa !9
  %16 = load i32, ptr @p, align 4, !tbaa !9
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr @p, align 4, !tbaa !9
  %18 = load ptr, ptr @q_head2, align 8, !tbaa !5
  store ptr %18, ptr @q_head1, align 8, !tbaa !5
  %19 = load ptr, ptr @q_tail2, align 8, !tbaa !5
  store ptr %19, ptr @q_tail1, align 8, !tbaa !5
  store ptr null, ptr @q_tail2, align 8, !tbaa !5
  store ptr null, ptr @q_head2, align 8, !tbaa !5
  %.not25 = icmp eq ptr %18, null
  br i1 %.not25, label %.preheader29, label %.lr.ph.backedge

.preheader.unr-lcssa:                             ; preds = %.lr.ph35, %.lr.ph35.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph35.preheader ], [ %indvars.iv.next.1, %.lr.ph35 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph35.epil

.lr.ph35.epil:                                    ; preds = %.preheader.unr-lcssa
  %20 = load ptr, ptr @res, align 8, !tbaa !5
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv.unr
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = xor i64 %indvars.iv.unr, -1
  %24 = add nsw i64 %8, %23
  %25 = getelementptr inbounds ptr, ptr %20, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %21, align 8, !tbaa !5
  %27 = load ptr, ptr @res, align 8, !tbaa !5
  %28 = getelementptr inbounds ptr, ptr %27, i64 %24
  store ptr %22, ptr %28, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.unr-lcssa, %.lr.ph35.epil
  %.pre45 = load ptr, ptr @col, align 8, !tbaa !5
  br i1 %.not26.not33, label %.lr.ph38, label %._crit_edge39

.lr.ph35:                                         ; preds = %.lr.ph35, %.lr.ph35.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph35.preheader.new ], [ %indvars.iv.next.1, %.lr.ph35 ]
  %niter = phi i64 [ 0, %.lr.ph35.preheader.new ], [ %niter.next.1, %.lr.ph35 ]
  %29 = load ptr, ptr @res, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = xor i64 %indvars.iv, -1
  %33 = add nsw i64 %8, %32
  %34 = getelementptr inbounds ptr, ptr %29, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %35, ptr %30, align 8, !tbaa !5
  %36 = load ptr, ptr @res, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 %33
  store ptr %31, ptr %37, align 8, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %38 = load ptr, ptr @res, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv.next
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = xor i64 %indvars.iv, -2
  %42 = add nsw i64 %41, %8
  %43 = getelementptr inbounds ptr, ptr %38, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %39, align 8, !tbaa !5
  %45 = load ptr, ptr @res, align 8, !tbaa !5
  %46 = getelementptr inbounds ptr, ptr %45, i64 %42
  store ptr %40, ptr %46, align 8, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader.unr-lcssa, label %.lr.ph35, !llvm.loop !16

.lr.ph38:                                         ; preds = %.preheader, %.lr.ph38
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %.lr.ph38 ], [ 0, %.preheader ]
  %47 = phi i32 [ %60, %.lr.ph38 ], [ %6, %.preheader ]
  %48 = getelementptr inbounds i32, ptr %.pre45, i64 %indvars.iv42
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = trunc nuw nsw i64 %indvars.iv42 to i32
  %51 = xor i32 %50, -1
  %52 = add i32 %47, %51
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %.pre45, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %55, ptr %48, align 4, !tbaa !9
  %56 = load i32, ptr @p, align 4, !tbaa !9
  %57 = add i32 %56, %51
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %.pre45, i64 %58
  store i32 %49, ptr %59, align 4, !tbaa !9
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  %60 = load i32, ptr @p, align 4, !tbaa !9
  %61 = sdiv i32 %60, 2
  %62 = sext i32 %61 to i64
  %.not27.not = icmp slt i64 %indvars.iv.next43, %62
  br i1 %.not27.not, label %.lr.ph38, label %._crit_edge39, !llvm.loop !17

._crit_edge39:                                    ; preds = %.lr.ph38, %.preheader.thread, %.preheader
  %.pre4547 = phi ptr [ %.pre45, %.preheader ], [ %.pre4546, %.preheader.thread ], [ %.pre45, %.lr.ph38 ]
  %.lcssa = phi i32 [ %6, %.preheader ], [ %6, %.preheader.thread ], [ %60, %.lr.ph38 ]
  store ptr %.pre4547, ptr %1, align 8, !tbaa !5
  store i32 %.lcssa, ptr %2, align 4, !tbaa !9
  %63 = load ptr, ptr @res, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %._crit_edge39, %4
  %.0 = phi ptr [ %63, %._crit_edge39 ], [ null, %4 ]
  ret ptr %.0
}

; Function Attrs: nounwind uwtable
declare hidden void @do_init() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @enque1(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @deque1() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @add_ans(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @enque2(ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"TreeNode", !10, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass