; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x43-线段树/245. 你能回答这些问题吗.ll (Z5buildiii)

; 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.SegmentTree = type { i32, i32, i32, i32, i32, i32 }

@a = external dso_local global [500010 x i32], align 16
@t = external dso_local global [2000040 x %struct.SegmentTree], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5buildiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  %11 = load i32, ptr %5, align 4, !tbaa !5
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %13
  %15 = getelementptr inbounds %struct.SegmentTree, ptr %14, i32 0, i32 0
  store i32 %11, ptr %15, align 8, !tbaa !9
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %18
  %20 = getelementptr inbounds %struct.SegmentTree, ptr %19, i32 0, i32 1
  store i32 %16, ptr %20, align 4, !tbaa !11
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %24, label %45

24:                                               ; preds = %3
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.SegmentTree, ptr %31, i32 0, i32 5
  store i32 %28, ptr %32, align 4, !tbaa !12
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %34
  %36 = getelementptr inbounds %struct.SegmentTree, ptr %35, i32 0, i32 4
  store i32 %28, ptr %36, align 8, !tbaa !13
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %38
  %40 = getelementptr inbounds %struct.SegmentTree, ptr %39, i32 0, i32 3
  store i32 %28, ptr %40, align 4, !tbaa !14
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %42
  %44 = getelementptr inbounds %struct.SegmentTree, ptr %43, i32 0, i32 2
  store i32 %28, ptr %44, align 8, !tbaa !15
  br label %161

45:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = add nsw i32 %46, %47
  %49 = ashr i32 %48, 1
  store i32 %49, ptr %7, align 4, !tbaa !5
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = mul nsw i32 2, %50
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z5buildiii(i32 noundef %51, i32 noundef %52, i32 noundef %53)
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = mul nsw i32 2, %54
  %56 = add nsw i32 %55, 1
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  %59 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z5buildiii(i32 noundef %56, i32 noundef %58, i32 noundef %59)
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = mul nsw i32 2, %60
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.SegmentTree, ptr %63, i32 0, i32 5
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = mul nsw i32 2, %66
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.SegmentTree, ptr %70, i32 0, i32 5
  %72 = load i32, ptr %71, align 4, !tbaa !12
  %73 = add nsw i32 %65, %72
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.SegmentTree, ptr %76, i32 0, i32 5
  store i32 %73, ptr %77, align 4, !tbaa !12
  %78 = load i32, ptr %4, align 4, !tbaa !5
  %79 = mul nsw i32 2, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.SegmentTree, ptr %81, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = mul nsw i32 2, %83
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.SegmentTree, ptr %86, i32 0, i32 5
  %88 = load i32, ptr %87, align 4, !tbaa !12
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = mul nsw i32 2, %89
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %92
  %94 = getelementptr inbounds %struct.SegmentTree, ptr %93, i32 0, i32 3
  %95 = load i32, ptr %94, align 4, !tbaa !14
  %96 = add nsw i32 %88, %95
  store i32 %96, ptr %8, align 4, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %82, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = load i32, ptr %4, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.SegmentTree, ptr %101, i32 0, i32 3
  store i32 %98, ptr %102, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = mul nsw i32 2, %103
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %106
  %108 = getelementptr inbounds %struct.SegmentTree, ptr %107, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = mul nsw i32 2, %109
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %112
  %114 = getelementptr inbounds %struct.SegmentTree, ptr %113, i32 0, i32 5
  %115 = load i32, ptr %114, align 4, !tbaa !12
  %116 = load i32, ptr %4, align 4, !tbaa !5
  %117 = mul nsw i32 2, %116
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %118
  %120 = getelementptr inbounds %struct.SegmentTree, ptr %119, i32 0, i32 4
  %121 = load i32, ptr %120, align 8, !tbaa !13
  %122 = add nsw i32 %115, %121
  store i32 %122, ptr %9, align 4, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %108, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr %4, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %126
  %128 = getelementptr inbounds %struct.SegmentTree, ptr %127, i32 0, i32 4
  store i32 %124, ptr %128, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %129 = load i32, ptr %4, align 4, !tbaa !5
  %130 = mul nsw i32 2, %129
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %131
  %133 = getelementptr inbounds %struct.SegmentTree, ptr %132, i32 0, i32 2
  %134 = load i32, ptr %4, align 4, !tbaa !5
  %135 = mul nsw i32 2, %134
  %136 = add nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.SegmentTree, ptr %138, i32 0, i32 2
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %133, ptr noundef nonnull align 4 dereferenceable(4) %139)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %141 = load i32, ptr %4, align 4, !tbaa !5
  %142 = mul nsw i32 2, %141
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %143
  %145 = getelementptr inbounds %struct.SegmentTree, ptr %144, i32 0, i32 4
  %146 = load i32, ptr %145, align 8, !tbaa !13
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = mul nsw i32 2, %147
  %149 = add nsw i32 %148, 1
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %150
  %152 = getelementptr inbounds %struct.SegmentTree, ptr %151, i32 0, i32 3
  %153 = load i32, ptr %152, align 4, !tbaa !14
  %154 = add nsw i32 %146, %153
  store i32 %154, ptr %10, align 4, !tbaa !5
  %155 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %140, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = load i32, ptr %4, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %158
  %160 = getelementptr inbounds %struct.SegmentTree, ptr %159, i32 0, i32 2
  store i32 %156, ptr %160, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %161

161:                                              ; preds = %45, %24
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS11SegmentTree", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 20}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 12}
!15 = !{!10, !6, i64 8}


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

%struct.SegmentTree = type { i32, i32, i32, i32, i32, i32 }

@a = external dso_local local_unnamed_addr global [500010 x i32], align 16
@t = external dso_local global [2000040 x %struct.SegmentTree], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5buildiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = sext i32 %0 to i64
  %8 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %7
  store i32 %1, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %2, ptr %9, align 4, !tbaa !10
  %10 = icmp eq i32 %1, %2
  br i1 %10, label %11, label %19

11:                                               ; preds = %3
  %12 = sext i32 %1 to i64
  %13 = getelementptr inbounds [500010 x i32], ptr @a, i64 0, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !11
  %15 = getelementptr inbounds i8, ptr %8, i64 20
  store i32 %14, ptr %15, align 4, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %8, i64 16
  store i32 %14, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %8, i64 12
  store i32 %14, ptr %17, align 4, !tbaa !14
  br label %common.ret

common.ret:                                       ; preds = %11, %19
  %.sink = phi i32 [ %14, %11 ], [ %58, %19 ]
  %18 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.sink, ptr %18, align 8
  ret void

19:                                               ; preds = %3
  %20 = add nsw i32 %2, %1
  %21 = ashr i32 %20, 1
  %22 = shl nsw i32 %0, 1
  tail call void @_Z5buildiii(i32 noundef %22, i32 noundef %1, i32 noundef %21)
  %23 = or disjoint i32 %22, 1
  %24 = add nsw i32 %21, 1
  tail call void @_Z5buildiii(i32 noundef %23, i32 noundef %24, i32 noundef %2)
  %25 = sext i32 %22 to i64
  %26 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %25
  %27 = getelementptr inbounds i8, ptr %26, i64 20
  %28 = load i32, ptr %27, align 4, !tbaa !12
  %29 = sext i32 %23 to i64
  %30 = getelementptr inbounds [2000040 x %struct.SegmentTree], ptr @t, i64 0, i64 %29
  %31 = getelementptr inbounds i8, ptr %30, i64 20
  %32 = load i32, ptr %31, align 4, !tbaa !12
  %33 = add nsw i32 %32, %28
  %34 = getelementptr inbounds i8, ptr %8, i64 20
  store i32 %33, ptr %34, align 4, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %26, i64 12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %36 = load i32, ptr %27, align 4, !tbaa !12
  %37 = getelementptr inbounds i8, ptr %30, i64 12
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = add nsw i32 %38, %36
  store i32 %39, ptr %4, align 4, !tbaa !11
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %41 = load i32, ptr %40, align 4, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %8, i64 12
  store i32 %41, ptr %42, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  %43 = getelementptr inbounds i8, ptr %30, i64 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %44 = load i32, ptr %31, align 4, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %26, i64 16
  %46 = load i32, ptr %45, align 16, !tbaa !13
  %47 = add nsw i32 %46, %44
  store i32 %47, ptr %5, align 4, !tbaa !11
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = getelementptr inbounds i8, ptr %8, i64 16
  store i32 %49, ptr %50, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  %51 = getelementptr inbounds i8, ptr %26, i64 8
  %52 = getelementptr inbounds i8, ptr %30, i64 8
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %54 = load i32, ptr %45, align 16, !tbaa !13
  %55 = load i32, ptr %37, align 4, !tbaa !14
  %56 = add nsw i32 %55, %54
  store i32 %56, ptr %6, align 4, !tbaa !11
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %58 = load i32, ptr %57, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  br label %common.ret
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

attributes #0 = { mustprogress 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 #3 = { 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, !7, i64 0}
!6 = !{!"_ZTS11SegmentTree", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 20}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass