; LLVM IR from div-bargali/Data-Structures-and-Algorithms :: C++/Data-Structures/Tree/segment tree for max subsequnce(cont) for range queries.l_c9d69203 (Z5queryiiiii)

; 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 [200040 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 { i64, i64 } @_Z5queryiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca %struct.node, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.node, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.node, align 4
  %16 = alloca %struct.node, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %20 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 1
  store i32 -2147483648, ptr %20, align 4, !tbaa !9
  %21 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 0
  store i32 -2147483648, ptr %21, align 4, !tbaa !11
  %22 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 3
  store i32 -2147483648, ptr %22, align 4, !tbaa !12
  %23 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 2
  store i32 -2147483648, ptr %23, align 4, !tbaa !13
  %24 = load i32, ptr %11, align 4, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %31, label %27

27:                                               ; preds = %5
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %27, %5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %12, i64 16, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %149

32:                                               ; preds = %27
  %33 = load i32, ptr %10, align 4, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %36, label %44

36:                                               ; preds = %32
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = icmp sle i32 %37, %38
  br i1 %39, label %40, label %44

40:                                               ; preds = %36
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [200040 x %struct.node], ptr @tree, i64 0, i64 %42
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  br label %149

44:                                               ; preds = %36, %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = add nsw i32 %45, %46
  %48 = sdiv i32 %47, 2
  store i32 %48, ptr %14, align 4, !tbaa !5
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %51 = icmp sgt i32 %49, %50
  br i1 %51, label %52, label %66

52:                                               ; preds = %44
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = mul nsw i32 2, %53
  %55 = add nsw i32 %54, 2
  %56 = load i32, ptr %14, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  %58 = load i32, ptr %9, align 4, !tbaa !5
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = call { i64, i64 } @_Z5queryiiiii(i32 noundef %55, i32 noundef %57, i32 noundef %58, i32 noundef %59, i32 noundef %60)
  %62 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
  %63 = extractvalue { i64, i64 } %61, 0
  store i64 %63, ptr %62, align 4
  %64 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
  %65 = extractvalue { i64, i64 } %61, 1
  store i64 %65, ptr %64, align 4
  store i32 1, ptr %13, align 4
  br label %148

66:                                               ; preds = %44
  %67 = load i32, ptr %11, align 4, !tbaa !5
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = icmp sle i32 %67, %68
  br i1 %69, label %70, label %83

70:                                               ; preds = %66
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = mul nsw i32 2, %71
  %73 = add nsw i32 %72, 1
  %74 = load i32, ptr %8, align 4, !tbaa !5
  %75 = load i32, ptr %14, align 4, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = load i32, ptr %11, align 4, !tbaa !5
  %78 = call { i64, i64 } @_Z5queryiiiii(i32 noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77)
  %79 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
  %80 = extractvalue { i64, i64 } %78, 0
  store i64 %80, ptr %79, align 4
  %81 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
  %82 = extractvalue { i64, i64 } %78, 1
  store i64 %82, ptr %81, align 4
  store i32 1, ptr %13, align 4
  br label %148

83:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = mul nsw i32 2, %84
  %86 = add nsw i32 %85, 1
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = call { i64, i64 } @_Z5queryiiiii(i32 noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90)
  %92 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %93 = extractvalue { i64, i64 } %91, 0
  store i64 %93, ptr %92, align 4
  %94 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %95 = extractvalue { i64, i64 } %91, 1
  store i64 %95, ptr %94, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = mul nsw i32 2, %96
  %98 = add nsw i32 %97, 2
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = load i32, ptr %10, align 4, !tbaa !5
  %103 = load i32, ptr %11, align 4, !tbaa !5
  %104 = call { i64, i64 } @_Z5queryiiiii(i32 noundef %98, i32 noundef %100, i32 noundef %101, i32 noundef %102, i32 noundef %103)
  %105 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %106 = extractvalue { i64, i64 } %104, 0
  store i64 %106, ptr %105, align 4
  %107 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %108 = extractvalue { i64, i64 } %104, 1
  store i64 %108, ptr %107, align 4
  %109 = getelementptr inbounds %struct.node, ptr %15, i32 0, i32 0
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 0
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = add nsw i32 %110, %112
  %114 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 0
  store i32 %113, ptr %114, align 4, !tbaa !11
  %115 = getelementptr inbounds %struct.node, ptr %15, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %116 = getelementptr inbounds %struct.node, ptr %15, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 1
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = add nsw i32 %117, %119
  store i32 %120, ptr %17, align 4, !tbaa !5
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %115, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 1
  store i32 %122, ptr %123, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %124 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %125 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 0
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = getelementptr inbounds %struct.node, ptr %15, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !13
  %129 = add nsw i32 %126, %128
  store i32 %129, ptr %18, align 4, !tbaa !5
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %124, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 2
  store i32 %131, ptr %132, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %133 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 1
  %134 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 2
  %135 = getelementptr inbounds %struct.node, ptr %15, i32 0, i32 3
  %136 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %137 = getelementptr inbounds %struct.node, ptr %15, i32 0, i32 2
  %138 = load i32, ptr %137, align 4, !tbaa !13
  %139 = getelementptr inbounds %struct.node, ptr %16, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = add nsw i32 %138, %140
  store i32 %141, ptr %19, align 4, !tbaa !5
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %136, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %135, ptr noundef nonnull align 4 dereferenceable(4) %142)
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %134, ptr noundef nonnull align 4 dereferenceable(4) %143)
  %145 = 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) %144)
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = getelementptr inbounds %struct.node, ptr %12, i32 0, i32 3
  store i32 %146, ptr %147, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %12, i64 16, i1 false), !tbaa.struct !14
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  br label %148

148:                                              ; preds = %83, %70, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %149

149:                                              ; preds = %148, %40, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  %150 = load { i64, i64 }, ptr %6, align 4
  ret { i64, i64 } %150
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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


; 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 local_unnamed_addr global [200040 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 { i64, i64 } @_Z5queryiiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca %struct.node, align 16
  %7 = alloca %struct.node, align 8
  %8 = alloca %struct.node, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  %12 = getelementptr inbounds i8, ptr %6, i64 4
  %13 = getelementptr inbounds i8, ptr %6, i64 12
  %14 = getelementptr inbounds i8, ptr %6, i64 8
  store <4 x i32> <i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648>, ptr %6, align 16, !tbaa !5
  %15 = icmp slt i32 %4, %1
  %16 = icmp slt i32 %2, %3
  %or.cond = or i1 %16, %15
  br i1 %or.cond, label %17, label %18

17:                                               ; preds = %5
  %.sroa.0.0.copyload = load i64, ptr %6, align 16
  %.sroa.6.0.copyload = load i64, ptr %14, align 8
  br label %77

18:                                               ; preds = %5
  %.not = icmp sgt i32 %3, %1
  %.not45 = icmp sgt i32 %2, %4
  %or.cond47 = or i1 %.not, %.not45
  br i1 %or.cond47, label %22, label %19

19:                                               ; preds = %18
  %20 = sext i32 %0 to i64
  %21 = getelementptr inbounds [200040 x %struct.node], ptr @tree, i64 0, i64 %20
  %.sroa.0.0.copyload35 = load i64, ptr %21, align 16
  %.sroa.6.0..sroa_idx37 = getelementptr inbounds i8, ptr %21, i64 8
  %.sroa.6.0.copyload38 = load i64, ptr %.sroa.6.0..sroa_idx37, align 8
  br label %77

22:                                               ; preds = %18
  %23 = add nsw i32 %2, %1
  %24 = sdiv i32 %23, 2
  %25 = icmp slt i32 %24, %3
  br i1 %25, label %26, label %33

26:                                               ; preds = %22
  %27 = shl nsw i32 %0, 1
  %28 = add nsw i32 %27, 2
  %29 = add nsw i32 %24, 1
  %30 = tail call { i64, i64 } @_Z5queryiiiii(i32 noundef %28, i32 noundef %29, i32 noundef %2, i32 noundef %3, i32 noundef %4)
  %31 = extractvalue { i64, i64 } %30, 0
  %32 = extractvalue { i64, i64 } %30, 1
  br label %77

33:                                               ; preds = %22
  %.not46 = icmp slt i32 %24, %4
  br i1 %.not46, label %40, label %34

34:                                               ; preds = %33
  %35 = shl nsw i32 %0, 1
  %36 = or disjoint i32 %35, 1
  %37 = tail call { i64, i64 } @_Z5queryiiiii(i32 noundef %36, i32 noundef %1, i32 noundef %24, i32 noundef %3, i32 noundef %4)
  %38 = extractvalue { i64, i64 } %37, 0
  %39 = extractvalue { i64, i64 } %37, 1
  br label %77

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  %41 = shl nsw i32 %0, 1
  %42 = or disjoint i32 %41, 1
  %43 = tail call { i64, i64 } @_Z5queryiiiii(i32 noundef %42, i32 noundef %1, i32 noundef %24, i32 noundef %3, i32 noundef %4)
  %44 = extractvalue { i64, i64 } %43, 0
  store i64 %44, ptr %7, align 8
  %45 = getelementptr inbounds i8, ptr %7, i64 8
  %46 = extractvalue { i64, i64 } %43, 1
  store i64 %46, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %47 = add nsw i32 %41, 2
  %48 = add nsw i32 %24, 1
  %49 = tail call { i64, i64 } @_Z5queryiiiii(i32 noundef %47, i32 noundef %48, i32 noundef %2, i32 noundef %3, i32 noundef %4)
  %50 = extractvalue { i64, i64 } %49, 0
  store i64 %50, ptr %8, align 8
  %51 = getelementptr inbounds i8, ptr %8, i64 8
  %52 = extractvalue { i64, i64 } %49, 1
  store i64 %52, ptr %51, align 8
  %53 = trunc i64 %44 to i32
  %54 = trunc i64 %50 to i32
  %55 = add nsw i32 %54, %53
  store i32 %55, ptr %6, align 16, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %7, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  %57 = getelementptr inbounds i8, ptr %8, i64 4
  %58 = lshr i64 %50, 32
  %59 = trunc nuw i64 %58 to i32
  %60 = add nsw i32 %59, %53
  store i32 %60, ptr %9, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  %63 = load i32, ptr %45, align 8, !tbaa !12
  %64 = add nsw i32 %63, %54
  store i32 %64, ptr %10, align 4, !tbaa !5
  %65 = 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) %10)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  %67 = getelementptr inbounds i8, ptr %7, i64 12
  %68 = getelementptr inbounds i8, ptr %8, i64 12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  %69 = load i32, ptr %45, align 8, !tbaa !12
  %70 = load i32, ptr %57, align 4, !tbaa !11
  %71 = add nsw i32 %70, %69
  store i32 %71, ptr %11, align 4, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %72)
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %76 = load i32, ptr %75, align 4, !tbaa !5
  store i32 %76, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  %.sroa.0.0.copyload36 = load i64, ptr %6, align 16
  %.sroa.6.0.copyload40 = load i64, ptr %14, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  br label %77

77:                                               ; preds = %26, %34, %40, %19, %17
  %.sroa.0.1 = phi i64 [ %.sroa.0.0.copyload, %17 ], [ %.sroa.0.0.copyload35, %19 ], [ %31, %26 ], [ %38, %34 ], [ %.sroa.0.0.copyload36, %40 ]
  %.sroa.6.1 = phi i64 [ %.sroa.6.0.copyload, %17 ], [ %.sroa.6.0.copyload38, %19 ], [ %32, %26 ], [ %39, %34 ], [ %.sroa.6.0.copyload40, %40 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.sroa.0.1, 0
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.sroa.6.1, 1
  ret { i64, i64 } %.fca.1.insert
}

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: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass