; LLVM IR from pranjalwalia/Competitive-programming :: implementations/segtrees/template/node_based.ll (Z6updatePiiiiii)

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

@tree = external dso_local global [40004 x %struct.node], align 16

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

; 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)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6updatePiiiiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %17 = load i32, ptr %12, align 4, !tbaa !9
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds i32, ptr %18, i64 %20
  store i32 %17, ptr %21, align 4, !tbaa !9
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = icmp eq i32 %22, %23
  br i1 %24, label %25, label %46

25:                                               ; preds = %6
  %26 = load i32, ptr %12, align 4, !tbaa !9
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %28
  %30 = getelementptr inbounds %struct.node, ptr %29, i32 0, i32 0
  store i32 %26, ptr %30, align 16, !tbaa !11
  %31 = load i32, ptr %12, align 4, !tbaa !9
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %33
  %35 = getelementptr inbounds %struct.node, ptr %34, i32 0, i32 1
  store i32 %31, ptr %35, align 4, !tbaa !13
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %38
  %40 = getelementptr inbounds %struct.node, ptr %39, i32 0, i32 2
  store i32 %36, ptr %40, align 8, !tbaa !14
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.node, ptr %44, i32 0, i32 3
  store i32 %41, ptr %45, align 4, !tbaa !15
  br label %191

46:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = add nsw i32 %47, %48
  %50 = sdiv i32 %49, 2
  store i32 %50, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %54, label %63

54:                                               ; preds = %46
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = mul nsw i32 2, %56
  %58 = add nsw i32 %57, 1
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  call void @_Z6updatePiiiiii(ptr noundef %55, i32 noundef %58, i32 noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef %62)
  br label %73

63:                                               ; preds = %46
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = mul nsw i32 2, %65
  %67 = add nsw i32 %66, 2
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  call void @_Z6updatePiiiiii(ptr noundef %64, i32 noundef %67, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72)
  br label %73

73:                                               ; preds = %63, %54
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = mul nsw i32 2, %74
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.node, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 16, !tbaa !11
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = mul nsw i32 2, %81
  %83 = add nsw i32 %82, 2
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %84
  %86 = getelementptr inbounds %struct.node, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 16, !tbaa !11
  %88 = add nsw i32 %80, %87
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %90
  %92 = getelementptr inbounds %struct.node, ptr %91, i32 0, i32 0
  store i32 %88, ptr %92, align 16, !tbaa !11
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = mul nsw i32 2, %93
  %95 = add nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.node, ptr %97, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = mul nsw i32 2, %99
  %101 = add nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %102
  %104 = getelementptr inbounds %struct.node, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 16, !tbaa !11
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = mul nsw i32 2, %106
  %108 = add nsw i32 %107, 2
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %109
  %111 = getelementptr inbounds %struct.node, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 4, !tbaa !13
  %113 = add nsw i32 %105, %112
  store i32 %113, ptr %14, align 4, !tbaa !9
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %98, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %117
  %119 = getelementptr inbounds %struct.node, ptr %118, i32 0, i32 1
  store i32 %115, ptr %119, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %120 = load i32, ptr %8, align 4, !tbaa !9
  %121 = mul nsw i32 2, %120
  %122 = add nsw i32 %121, 2
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %123
  %125 = getelementptr inbounds %struct.node, ptr %124, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = mul nsw i32 2, %126
  %128 = add nsw i32 %127, 2
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %129
  %131 = getelementptr inbounds %struct.node, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 16, !tbaa !11
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = mul nsw i32 2, %133
  %135 = add nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %136
  %138 = getelementptr inbounds %struct.node, ptr %137, i32 0, i32 2
  %139 = load i32, ptr %138, align 8, !tbaa !14
  %140 = add nsw i32 %132, %139
  store i32 %140, ptr %15, align 4, !tbaa !9
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %125, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %144
  %146 = getelementptr inbounds %struct.node, ptr %145, i32 0, i32 2
  store i32 %142, ptr %146, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %148
  %150 = getelementptr inbounds %struct.node, ptr %149, i32 0, i32 1
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %152
  %154 = getelementptr inbounds %struct.node, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = mul nsw i32 2, %155
  %157 = add nsw i32 %156, 1
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %158
  %160 = getelementptr inbounds %struct.node, ptr %159, i32 0, i32 3
  %161 = load i32, ptr %8, align 4, !tbaa !9
  %162 = mul nsw i32 2, %161
  %163 = add nsw i32 %162, 2
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %164
  %166 = getelementptr inbounds %struct.node, ptr %165, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %167 = load i32, ptr %8, align 4, !tbaa !9
  %168 = mul nsw i32 2, %167
  %169 = add nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %170
  %172 = getelementptr inbounds %struct.node, ptr %171, i32 0, i32 2
  %173 = load i32, ptr %172, align 8, !tbaa !14
  %174 = load i32, ptr %8, align 4, !tbaa !9
  %175 = mul nsw i32 2, %174
  %176 = add nsw i32 %175, 2
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %177
  %179 = getelementptr inbounds %struct.node, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 4, !tbaa !13
  %181 = add nsw i32 %173, %180
  store i32 %181, ptr %16, align 4, !tbaa !9
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %166, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %160, ptr noundef nonnull align 4 dereferenceable(4) %182)
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %154, ptr noundef nonnull align 4 dereferenceable(4) %183)
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %150, ptr noundef nonnull align 4 dereferenceable(4) %184)
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = load i32, ptr %8, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %188
  %190 = getelementptr inbounds %struct.node, ptr %189, i32 0, i32 3
  store i32 %186, ptr %190, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %191

191:                                              ; preds = %73, %25
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS4node", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !10, i64 12}


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

@tree = external dso_local global [40004 x %struct.node], align 16

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

; 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 #1

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z6updatePiiiiii(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = sext i32 %1 to i64
  %11 = getelementptr inbounds i32, ptr %0, i64 %10
  store i32 %5, ptr %11, align 4, !tbaa !5
  %12 = icmp eq i32 %2, %3
  br i1 %12, label %13, label %17

13:                                               ; preds = %6
  %14 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %10
  %15 = insertelement <4 x i32> poison, i32 %5, i64 0
  %16 = shufflevector <4 x i32> %15, <4 x i32> poison, <4 x i32> zeroinitializer
  store <4 x i32> %16, ptr %14, align 16, !tbaa !5
  br label %62

17:                                               ; preds = %6
  %18 = add nsw i32 %3, %2
  %19 = sdiv i32 %18, 2
  %.not = icmp slt i32 %19, %4
  %20 = shl nsw i32 %1, 1
  br i1 %.not, label %23, label %21

21:                                               ; preds = %17
  %22 = or disjoint i32 %20, 1
  tail call void @_Z6updatePiiiiii(ptr noundef nonnull %0, i32 noundef %22, i32 noundef %2, i32 noundef %19, i32 noundef %4, i32 noundef %5)
  %.pre51 = add nsw i32 %20, 2
  br label %26

23:                                               ; preds = %17
  %24 = add nsw i32 %20, 2
  %25 = add nsw i32 %19, 1
  tail call void @_Z6updatePiiiiii(ptr noundef nonnull %0, i32 noundef %24, i32 noundef %25, i32 noundef %3, i32 noundef %4, i32 noundef %5)
  %.pre = or disjoint i32 %20, 1
  br label %26

26:                                               ; preds = %23, %21
  %.pre-phi52 = phi i32 [ %24, %23 ], [ %.pre51, %21 ]
  %.pre-phi50 = phi i32 [ %.pre, %23 ], [ %22, %21 ]
  %27 = sext i32 %.pre-phi50 to i64
  %28 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %27
  %29 = load i32, ptr %28, align 16, !tbaa !9
  %30 = sext i32 %.pre-phi52 to i64
  %31 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %30
  %32 = load i32, ptr %31, align 16, !tbaa !9
  %33 = add nsw i32 %32, %29
  %34 = getelementptr inbounds [40004 x %struct.node], ptr @tree, i64 0, i64 %10
  store i32 %33, ptr %34, align 16, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %28, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %36 = load i32, ptr %28, align 16, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %31, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !11
  %39 = add nsw i32 %38, %36
  store i32 %39, ptr %7, align 4, !tbaa !5
  %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) %7)
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %34, i64 4
  store i32 %41, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  %43 = getelementptr inbounds i8, ptr %31, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %44 = load i32, ptr %31, align 16, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %28, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !12
  %47 = add nsw i32 %46, %44
  store i32 %47, ptr %8, align 4, !tbaa !5
  %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) %8)
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %34, i64 8
  store i32 %49, ptr %50, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  %51 = getelementptr inbounds i8, ptr %28, i64 12
  %52 = getelementptr inbounds i8, ptr %31, i64 12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %53 = load i32, ptr %45, align 8, !tbaa !12
  %54 = load i32, ptr %37, align 4, !tbaa !11
  %55 = add nsw i32 %54, %53
  store i32 %55, ptr %9, align 4, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %57 = 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) %56)
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %58)
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %34, i64 12
  store i32 %60, ptr %61, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  br label %62

62:                                               ; preds = %26, %13
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = !{!"_ZTS4node", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 12}


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