; LLVM IR from wuzhouhui/leetcode :: 199bin_tree_right_side_view (rightSideView)

; 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.qnode = type { i32, ptr, ptr }
%struct.TreeNode = type { i32, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local ptr @rightSideView(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %17, label %15

15:                                               ; preds = %2
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  store ptr null, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %139

17:                                               ; preds = %2
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 8, ptr %8, align 4, !tbaa !9
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = mul i64 %19, 4
  %21 = call noalias ptr @malloc(i64 noundef %20) #6
  store ptr %21, ptr %7, align 8, !tbaa !5
  %22 = call noalias ptr @malloc(i64 noundef 24) #6
  store ptr %22, ptr %10, align 8, !tbaa !5
  store ptr %22, ptr %9, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.qnode, ptr %24, i32 0, i32 1
  store ptr %23, ptr %25, align 8, !tbaa !11
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qnode, ptr %26, i32 0, i32 0
  store i32 0, ptr %27, align 8, !tbaa !13
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qnode, ptr %28, i32 0, i32 2
  store ptr null, ptr %29, align 8, !tbaa !14
  br label %30

30:                                               ; preds = %133, %17
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %135

33:                                               ; preds = %30
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %34, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.qnode, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.TreeNode, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %63

41:                                               ; preds = %33
  %42 = call noalias ptr @malloc(i64 noundef 24) #6
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.qnode, ptr %43, i32 0, i32 2
  store ptr %42, ptr %44, align 8, !tbaa !14
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.qnode, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  store ptr %47, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.qnode, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !13
  %51 = add nsw i32 %50, 1
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.qnode, ptr %52, i32 0, i32 0
  store i32 %51, ptr %53, align 8, !tbaa !13
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.qnode, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.TreeNode, ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.qnode, ptr %59, i32 0, i32 1
  store ptr %58, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.qnode, ptr %61, i32 0, i32 2
  store ptr null, ptr %62, align 8, !tbaa !14
  br label %63

63:                                               ; preds = %41, %33
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.qnode, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.TreeNode, ptr %66, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %92

70:                                               ; preds = %63
  %71 = call noalias ptr @malloc(i64 noundef 24) #6
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qnode, ptr %72, i32 0, i32 2
  store ptr %71, ptr %73, align 8, !tbaa !14
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.qnode, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  store ptr %76, ptr %10, align 8, !tbaa !5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.qnode, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !13
  %80 = add nsw i32 %79, 1
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.qnode, ptr %81, i32 0, i32 0
  store i32 %80, ptr %82, align 8, !tbaa !13
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.qnode, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.TreeNode, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.qnode, ptr %88, i32 0, i32 1
  store ptr %87, ptr %89, align 8, !tbaa !11
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.qnode, ptr %90, i32 0, i32 2
  store ptr null, ptr %91, align 8, !tbaa !14
  br label %92

92:                                               ; preds = %70, %63
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.qnode, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  store ptr %95, ptr %9, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %99, label %98

98:                                               ; preds = %92
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %98, %92
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %110

102:                                              ; preds = %99
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.qnode, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !13
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.qnode, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 8, !tbaa !13
  %109 = icmp ne i32 %105, %108
  br i1 %109, label %110, label %133

110:                                              ; preds = %102, %99
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = icmp sle i32 %111, %112
  br i1 %113, label %114, label %122

114:                                              ; preds = %110
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = add nsw i32 %115, 8
  store i32 %116, ptr %8, align 4, !tbaa !9
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = mul i64 %119, 4
  %121 = call ptr @realloc(ptr noundef %117, i64 noundef %120) #7
  store ptr %121, ptr %7, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %114, %110
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.qnode, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds %struct.TreeNode, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !18
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load i32, ptr %6, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %6, align 4, !tbaa !9
  %131 = sext i32 %129 to i64
  %132 = getelementptr inbounds i32, ptr %128, i64 %131
  store i32 %127, ptr %132, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %122, %102
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %134) #5
  br label %30, !llvm.loop !19

135:                                              ; preds = %30
  %136 = load i32, ptr %6, align 4, !tbaa !9
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 %136, ptr %137, align 4, !tbaa !9
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %138, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %139

139:                                              ; preds = %135, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %140 = load ptr, ptr %3, align 8
  ret ptr %140
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; 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 allocsize(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 #3 = { nounwind allocsize(1) "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 #4 = { nounwind "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(1) }

!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 = !{!"qnode", !10, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!12, !10, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!16, !6, i64 8}
!16 = !{!"TreeNode", !10, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!16, !6, i64 16}
!18 = !{!16, !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; 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"

; Function Attrs: nounwind uwtable
define dso_local noalias ptr @rightSideView(ptr noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.loopexit, label %3

3:                                                ; preds = %2
  %4 = tail call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #4
  %5 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #4
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %5, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr null, ptr %7, align 8, !tbaa !12
  br label %8

8:                                                ; preds = %3, %49
  %.04264 = phi ptr [ %5, %3 ], [ %.2, %49 ]
  %.04363 = phi ptr [ %5, %3 ], [ %33, %49 ]
  %.04462 = phi i32 [ 8, %3 ], [ %.246, %49 ]
  %.04761 = phi ptr [ %4, %3 ], [ %.249, %49 ]
  %.05060 = phi i32 [ 0, %3 ], [ %.151, %49 ]
  %9 = getelementptr inbounds i8, ptr %.04363, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %.not55 = icmp eq ptr %12, null
  br i1 %.not55, label %20, label %13

13:                                               ; preds = %8
  %14 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #4
  %15 = getelementptr inbounds i8, ptr %.04264, i64 16
  store ptr %14, ptr %15, align 8, !tbaa !12
  %16 = load i32, ptr %.04363, align 8, !tbaa !11
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr %14, align 8, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %12, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %14, i64 16
  store ptr null, ptr %19, align 8, !tbaa !12
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %13, %8
  %21 = phi ptr [ %.pre, %13 ], [ %10, %8 ]
  %.1 = phi ptr [ %14, %13 ], [ %.04264, %8 ]
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %.not56 = icmp eq ptr %23, null
  br i1 %.not56, label %31, label %24

24:                                               ; preds = %20
  %25 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #4
  %26 = getelementptr inbounds i8, ptr %.1, i64 16
  store ptr %25, ptr %26, align 8, !tbaa !12
  %27 = load i32, ptr %.04363, align 8, !tbaa !11
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %25, align 8, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %25, i64 8
  store ptr %23, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %25, i64 16
  store ptr null, ptr %30, align 8, !tbaa !12
  br label %31

31:                                               ; preds = %24, %20
  %.2 = phi ptr [ %25, %24 ], [ %.1, %20 ]
  %32 = getelementptr inbounds i8, ptr %.04363, i64 16
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %.not57 = icmp eq ptr %33, null
  br i1 %.not57, label %37, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %.04363, align 8, !tbaa !11
  %36 = load i32, ptr %33, align 8, !tbaa !11
  %.not58 = icmp eq i32 %35, %36
  br i1 %.not58, label %49, label %37

37:                                               ; preds = %34, %31
  %.not59 = icmp sgt i32 %.04462, %.05060
  br i1 %.not59, label %43, label %38

38:                                               ; preds = %37
  %39 = add nsw i32 %.04462, 8
  %40 = sext i32 %39 to i64
  %41 = shl nsw i64 %40, 2
  %42 = tail call ptr @realloc(ptr noundef %.04761, i64 noundef %41) #5
  br label %43

43:                                               ; preds = %38, %37
  %.148 = phi ptr [ %42, %38 ], [ %.04761, %37 ]
  %.145 = phi i32 [ %39, %38 ], [ %.04462, %37 ]
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 8, !tbaa !16
  %46 = add nsw i32 %.05060, 1
  %47 = sext i32 %.05060 to i64
  %48 = getelementptr inbounds i32, ptr %.148, i64 %47
  store i32 %45, ptr %48, align 4, !tbaa !17
  br label %49

49:                                               ; preds = %43, %34
  %.151 = phi i32 [ %46, %43 ], [ %.05060, %34 ]
  %.249 = phi ptr [ %.148, %43 ], [ %.04761, %34 ]
  %.246 = phi i32 [ %.145, %43 ], [ %.04462, %34 ]
  tail call void @free(ptr noundef nonnull %.04363) #6
  br i1 %.not57, label %.loopexit, label %8, !llvm.loop !18

.loopexit:                                        ; preds = %49, %2
  %storemerge = phi i32 [ 0, %2 ], [ %.151, %49 ]
  %.0 = phi ptr [ null, %2 ], [ %.249, %49 ]
  store i32 %storemerge, ptr %1, align 4, !tbaa !17
  ret ptr %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #2 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #4 = { nounwind allocsize(0) }
attributes #5 = { nounwind allocsize(1) }
attributes #6 = { 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, !10, i64 8}
!6 = !{!"qnode", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!14, !10, i64 8}
!14 = !{!"TreeNode", !7, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass