; LLVM IR from tangjz/acm-icpc :: codeforces/complete/193D.ll (Z7push_upii)

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

@seg = external dso_local global [600004 x %struct.SegTree], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7push_upii(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca i32, align 4
  %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 %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = add nsw i32 %11, %12
  %14 = ashr i32 %13, 1
  store i32 %14, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = call noundef i32 @_Z3idxii(i32 noundef %15, i32 noundef %16)
  store i32 %17, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = call noundef i32 @_Z3idxii(i32 noundef %18, i32 noundef %19)
  store i32 %20, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = call noundef i32 @_Z3idxii(i32 noundef %22, i32 noundef %23)
  store i32 %24, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %26
  %28 = getelementptr inbounds %struct.SegTree, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 16, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.SegTree, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = add nsw i32 %29, %34
  store i32 %35, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %36 = load i32, ptr %8, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.SegTree, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 16, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %42
  %44 = getelementptr inbounds %struct.SegTree, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = add nsw i32 %40, %45
  store i32 %46, ptr %10, align 4, !tbaa !5
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.SegTree, ptr %51, i32 0, i32 0
  store i32 %48, ptr %52, align 16, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.SegTree, ptr %55, i32 0, i32 2
  store i32 0, ptr %56, align 8, !tbaa !12
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %58
  %60 = getelementptr inbounds %struct.SegTree, ptr %59, i32 0, i32 1
  store i32 0, ptr %60, align 4, !tbaa !13
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.SegTree, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 16, !tbaa !9
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.SegTree, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 16, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.SegTree, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !11
  %76 = add nsw i32 %70, %75
  %77 = icmp eq i32 %65, %76
  br i1 %77, label %78, label %101

78:                                               ; preds = %2
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.SegTree, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !13
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.SegTree, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = add nsw i32 %88, %83
  store i32 %89, ptr %87, align 4, !tbaa !13
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %91
  %93 = getelementptr inbounds %struct.SegTree, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 8, !tbaa !12
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.SegTree, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %98, align 8, !tbaa !12
  %100 = add nsw i32 %99, %94
  store i32 %100, ptr %98, align 8, !tbaa !12
  br label %133

101:                                              ; preds = %2
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %103
  %105 = getelementptr inbounds %struct.SegTree, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 16, !tbaa !9
  %107 = add nsw i32 %106, 1
  %108 = load i32, ptr %7, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %109
  %111 = getelementptr inbounds %struct.SegTree, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 16, !tbaa !9
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %114
  %116 = getelementptr inbounds %struct.SegTree, ptr %115, i32 0, i32 3
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = add nsw i32 %112, %117
  %119 = icmp eq i32 %107, %118
  br i1 %119, label %120, label %132

120:                                              ; preds = %101
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %122
  %124 = getelementptr inbounds %struct.SegTree, ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !13
  %126 = load i32, ptr %6, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %127
  %129 = getelementptr inbounds %struct.SegTree, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 8, !tbaa !12
  %131 = add nsw i32 %130, %125
  store i32 %131, ptr %129, align 8, !tbaa !12
  br label %132

132:                                              ; preds = %120, %101
  br label %133

133:                                              ; preds = %132, %78
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %135
  %137 = getelementptr inbounds %struct.SegTree, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 16, !tbaa !9
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %140
  %142 = getelementptr inbounds %struct.SegTree, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 16, !tbaa !9
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %145
  %147 = getelementptr inbounds %struct.SegTree, ptr %146, i32 0, i32 3
  %148 = load i32, ptr %147, align 4, !tbaa !11
  %149 = add nsw i32 %143, %148
  %150 = icmp eq i32 %138, %149
  br i1 %150, label %151, label %174

151:                                              ; preds = %133
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %153
  %155 = getelementptr inbounds %struct.SegTree, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !13
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %158
  %160 = getelementptr inbounds %struct.SegTree, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 4, !tbaa !13
  %162 = add nsw i32 %161, %156
  store i32 %162, ptr %160, align 4, !tbaa !13
  %163 = load i32, ptr %8, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %164
  %166 = getelementptr inbounds %struct.SegTree, ptr %165, i32 0, i32 2
  %167 = load i32, ptr %166, align 8, !tbaa !12
  %168 = load i32, ptr %6, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %169
  %171 = getelementptr inbounds %struct.SegTree, ptr %170, i32 0, i32 2
  %172 = load i32, ptr %171, align 8, !tbaa !12
  %173 = add nsw i32 %172, %167
  store i32 %173, ptr %171, align 8, !tbaa !12
  br label %206

174:                                              ; preds = %133
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %176
  %178 = getelementptr inbounds %struct.SegTree, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 16, !tbaa !9
  %180 = add nsw i32 %179, 1
  %181 = load i32, ptr %8, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %182
  %184 = getelementptr inbounds %struct.SegTree, ptr %183, i32 0, i32 0
  %185 = load i32, ptr %184, align 16, !tbaa !9
  %186 = load i32, ptr %8, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %187
  %189 = getelementptr inbounds %struct.SegTree, ptr %188, i32 0, i32 3
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = add nsw i32 %185, %190
  %192 = icmp eq i32 %180, %191
  br i1 %192, label %193, label %205

193:                                              ; preds = %174
  %194 = load i32, ptr %8, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %195
  %197 = getelementptr inbounds %struct.SegTree, ptr %196, i32 0, i32 1
  %198 = load i32, ptr %197, align 4, !tbaa !13
  %199 = load i32, ptr %6, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.SegTree, ptr %201, i32 0, i32 2
  %203 = load i32, ptr %202, align 8, !tbaa !12
  %204 = add nsw i32 %203, %198
  store i32 %204, ptr %202, align 8, !tbaa !12
  br label %205

205:                                              ; preds = %193, %174
  br label %206

206:                                              ; preds = %205, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  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 i32 @_Z3idxii(i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_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 = !{!"_ZTS7SegTree", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 12}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 4}


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

@seg = external dso_local local_unnamed_addr global [600004 x %struct.SegTree], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z7push_upii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = add nsw i32 %1, %0
  %6 = ashr i32 %5, 1
  %7 = tail call noundef i32 @_Z3idxii(i32 noundef %0, i32 noundef %1)
  %8 = tail call noundef i32 @_Z3idxii(i32 noundef %0, i32 noundef %6)
  %9 = add nsw i32 %6, 1
  %10 = tail call noundef i32 @_Z3idxii(i32 noundef %9, i32 noundef %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %11 = sext i32 %8 to i64
  %12 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %11
  %13 = load i32, ptr %12, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %12, i64 12
  %15 = load i32, ptr %14, align 4, !tbaa !10
  %16 = add nsw i32 %15, %13
  store i32 %16, ptr %3, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %17 = sext i32 %10 to i64
  %18 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %17
  %19 = load i32, ptr %18, align 16, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %18, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !10
  %22 = add nsw i32 %21, %19
  store i32 %22, ptr %4, align 4, !tbaa !11
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %24 = load i32, ptr %23, align 4, !tbaa !11
  %25 = sext i32 %7 to i64
  %26 = getelementptr inbounds [600004 x %struct.SegTree], ptr @seg, i64 0, i64 %25
  store i32 %24, ptr %26, align 16, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  store i32 0, ptr %27, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %26, i64 4
  store i32 0, ptr %28, align 4, !tbaa !13
  %29 = load i32, ptr %12, align 16, !tbaa !5
  %30 = load i32, ptr %14, align 4, !tbaa !10
  %31 = add nsw i32 %30, %29
  %32 = icmp eq i32 %24, %31
  br i1 %32, label %33, label %36

33:                                               ; preds = %2
  %34 = getelementptr inbounds i8, ptr %12, i64 4
  %35 = load i32, ptr %34, align 4, !tbaa !13
  store i32 %35, ptr %28, align 4, !tbaa !13
  br label %.sink.split

36:                                               ; preds = %2
  %37 = add nsw i32 %24, 1
  %38 = icmp eq i32 %37, %31
  br i1 %38, label %.sink.split, label %40

.sink.split:                                      ; preds = %36, %33
  %.sink46 = phi i64 [ 8, %33 ], [ 4, %36 ]
  %.ph = phi i32 [ %35, %33 ], [ 0, %36 ]
  %39 = getelementptr inbounds i8, ptr %12, i64 %.sink46
  %.sink = load i32, ptr %39, align 4, !tbaa !11
  store i32 %.sink, ptr %27, align 8, !tbaa !12
  br label %40

40:                                               ; preds = %.sink.split, %36
  %41 = phi i32 [ 0, %36 ], [ %.ph, %.sink.split ]
  %42 = phi i32 [ 0, %36 ], [ %.sink, %.sink.split ]
  %43 = load i32, ptr %18, align 16, !tbaa !5
  %44 = load i32, ptr %20, align 4, !tbaa !10
  %45 = add nsw i32 %44, %43
  %46 = icmp eq i32 %24, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %40
  %48 = getelementptr inbounds i8, ptr %18, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !13
  %50 = add nsw i32 %41, %49
  store i32 %50, ptr %28, align 4, !tbaa !13
  br label %.sink.split43

51:                                               ; preds = %40
  %52 = add nsw i32 %24, 1
  %53 = icmp eq i32 %52, %45
  br i1 %53, label %.sink.split43, label %56

.sink.split43:                                    ; preds = %51, %47
  %.sink47 = phi i64 [ 8, %47 ], [ 4, %51 ]
  %54 = getelementptr inbounds i8, ptr %18, i64 %.sink47
  %.sink45 = load i32, ptr %54, align 4, !tbaa !11
  %55 = add nsw i32 %42, %.sink45
  store i32 %55, ptr %27, align 8, !tbaa !12
  br label %56

56:                                               ; preds = %.sink.split43, %51
  ret void
}

; 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 i32 @_Z3idxii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_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 = !{!"_ZTS7SegTree", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 12}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 4}


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