; LLVM IR from UtkarshPathrabe/Competitive-Coding :: SPOJ Solutions/GSS3.ll (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.no = type { i32, i32, i32, i32 }

@tree = external dso_local global [400001 x %struct.no], 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: 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) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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)) #2

; 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) #3 {
  %6 = alloca %struct.no, 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.no, align 4
  %13 = alloca %struct.no, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = 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
  %17 = load i32, ptr %10, align 4, !tbaa !5
  %18 = load i32, ptr %8, align 4, !tbaa !5
  %19 = icmp eq i32 %17, %18
  br i1 %19, label %20, label %28

20:                                               ; preds = %5
  %21 = load i32, ptr %11, align 4, !tbaa !5
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %24, label %28

24:                                               ; preds = %20
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [400001 x %struct.no], ptr @tree, i64 0, i64 %26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !9
  br label %147

28:                                               ; preds = %20, %5
  %29 = load i32, ptr %11, align 4, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = add nsw i32 %30, %31
  %33 = sdiv i32 %32, 2
  %34 = icmp sle i32 %29, %33
  br i1 %34, label %35, label %50

35:                                               ; preds = %28
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = mul nsw i32 %36, 2
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = add nsw i32 %39, %40
  %42 = sdiv i32 %41, 2
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = load i32, ptr %11, align 4, !tbaa !5
  %45 = call { i64, i64 } @_Z5queryiiiii(i32 noundef %37, i32 noundef %38, i32 noundef %42, i32 noundef %43, i32 noundef %44)
  %46 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
  %47 = extractvalue { i64, i64 } %45, 0
  store i64 %47, ptr %46, align 4
  %48 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
  %49 = extractvalue { i64, i64 } %45, 1
  store i64 %49, ptr %48, align 4
  br label %147

50:                                               ; preds = %28
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !5
  %54 = add nsw i32 %52, %53
  %55 = sdiv i32 %54, 2
  %56 = icmp sgt i32 %51, %55
  br i1 %56, label %57, label %74

57:                                               ; preds = %50
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = mul nsw i32 %58, 2
  %60 = add nsw i32 %59, 1
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = add nsw i32 %61, %62
  %64 = sdiv i32 %63, 2
  %65 = add nsw i32 %64, 1
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = call { i64, i64 } @_Z5queryiiiii(i32 noundef %60, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  %70 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
  %71 = extractvalue { i64, i64 } %69, 0
  store i64 %71, ptr %70, align 4
  %72 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
  %73 = extractvalue { i64, i64 } %69, 1
  store i64 %73, ptr %72, align 4
  br label %147

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

147:                                              ; preds = %74, %57, %35, %24
  %148 = load { i64, i64 }, ptr %6, align 4
  ret { i64, i64 } %148
}

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

@tree = external dso_local local_unnamed_addr global [400001 x %struct.no], 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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 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.no, align 8
  %7 = alloca %struct.no, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = icmp eq i32 %3, %1
  %12 = icmp eq i32 %4, %2
  %or.cond = and i1 %11, %12
  br i1 %or.cond, label %13, label %16

13:                                               ; preds = %5
  %14 = sext i32 %0 to i64
  %15 = getelementptr inbounds [400001 x %struct.no], ptr @tree, i64 0, i64 %14
  %.sroa.0.0.copyload = load i64, ptr %15, align 16
  %.sroa.0.sroa.0.0.extract.trunc38 = trunc i64 %.sroa.0.0.copyload to i32
  %.sroa.0.sroa.5.0.extract.shift41 = lshr i64 %.sroa.0.0.copyload, 32
  %.sroa.0.sroa.5.0.extract.trunc42 = trunc nuw i64 %.sroa.0.sroa.5.0.extract.shift41 to i32
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.6.0.copyload = load i64, ptr %.sroa.6.0..sroa_idx, align 8
  br label %70

16:                                               ; preds = %5
  %17 = add nsw i32 %2, %1
  %18 = sdiv i32 %17, 2
  %.not = icmp slt i32 %18, %4
  br i1 %.not, label %24, label %19

19:                                               ; preds = %16
  %20 = shl nsw i32 %0, 1
  %21 = tail call { i64, i64 } @_Z5queryiiiii(i32 noundef %20, i32 noundef %1, i32 noundef %18, i32 noundef %3, i32 noundef %4)
  %22 = extractvalue { i64, i64 } %21, 0
  %.sroa.0.sroa.0.0.extract.trunc = trunc i64 %22 to i32
  %.sroa.0.sroa.5.0.extract.shift = lshr i64 %22, 32
  %.sroa.0.sroa.5.0.extract.trunc = trunc nuw i64 %.sroa.0.sroa.5.0.extract.shift to i32
  %23 = extractvalue { i64, i64 } %21, 1
  br label %70

24:                                               ; preds = %16
  %25 = icmp slt i32 %18, %3
  br i1 %25, label %26, label %33

26:                                               ; preds = %24
  %27 = shl nsw i32 %0, 1
  %28 = or disjoint i32 %27, 1
  %29 = add nsw i32 %18, 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
  %.sroa.0.sroa.0.0.extract.trunc37 = trunc i64 %31 to i32
  %.sroa.0.sroa.5.0.extract.shift39 = lshr i64 %31, 32
  %.sroa.0.sroa.5.0.extract.trunc40 = trunc nuw i64 %.sroa.0.sroa.5.0.extract.shift39 to i32
  %32 = extractvalue { i64, i64 } %30, 1
  br label %70

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

70:                                               ; preds = %33, %26, %19, %13
  %.sroa.6.0 = phi i64 [ %.sroa.6.0.copyload, %13 ], [ %23, %19 ], [ %32, %26 ], [ %.sroa.6.12.insert.insert, %33 ]
  %.sroa.0.sroa.0.0 = phi i32 [ %.sroa.0.sroa.0.0.extract.trunc38, %13 ], [ %.sroa.0.sroa.0.0.extract.trunc, %19 ], [ %.sroa.0.sroa.0.0.extract.trunc37, %26 ], [ %51, %33 ]
  %.sroa.0.sroa.5.0 = phi i32 [ %.sroa.0.sroa.5.0.extract.trunc42, %13 ], [ %.sroa.0.sroa.5.0.extract.trunc, %19 ], [ %.sroa.0.sroa.5.0.extract.trunc40, %26 ], [ %60, %33 ]
  %.sroa.0.sroa.5.0.insert.ext = zext i32 %.sroa.0.sroa.5.0 to i64
  %.sroa.0.sroa.5.0.insert.shift = shl nuw i64 %.sroa.0.sroa.5.0.insert.ext, 32
  %.sroa.0.sroa.0.0.insert.ext = zext i32 %.sroa.0.sroa.0.0 to i64
  %.sroa.0.sroa.0.0.insert.insert = or disjoint i64 %.sroa.0.sroa.5.0.insert.shift, %.sroa.0.sroa.0.0.insert.ext
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.sroa.0.sroa.0.0.insert.insert, 0
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.sroa.6.0, 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 4}
!10 = !{!"_ZTS2no", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 0}
!12 = !{!10, !6, i64 12}


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