; LLVM IR from jermp/2i_bench :: external/CRoaring/benchmarks (add_benchmark)

; 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.pcg_state_setseq_64 = type { i64, i64 }

@pcg32_global = external hidden global %struct.pcg_state_setseq_64, align 8

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @make_data(i32 noundef %0, i32 noundef %1, double noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !11
  store ptr %5, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %23 = load i32, ptr %7, align 4, !tbaa !5
  %24 = uitofp i32 %23 to double
  %25 = load double, ptr %9, align 8, !tbaa !9
  %26 = fmul double %24, %25
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = uitofp i32 %27 to double
  %29 = fdiv double %26, %28
  %30 = call double @llvm.floor.f64(double %29)
  %31 = fptoui double %30 to i32
  store i32 %31, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %32 = load i32, ptr %13, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = mul i64 %33, 4
  %35 = call noalias ptr @malloc(i64 noundef %34) #6
  store ptr %35, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %55, %6
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = load i32, ptr %13, align 4, !tbaa !5
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %58

41:                                               ; preds = %36
  %42 = call i32 @pcg32_random_r(ptr noundef @pcg32_global)
  %43 = load ptr, ptr %14, align 8, !tbaa !11
  %44 = load i32, ptr %16, align 4, !tbaa !5
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  store i32 %42, ptr %46, align 4, !tbaa !5
  %47 = load ptr, ptr %14, align 8, !tbaa !11
  %48 = load i32, ptr %16, align 4, !tbaa !5
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %47, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = load i64, ptr %15, align 8, !tbaa !13
  %54 = add i64 %53, %52
  store i64 %54, ptr %15, align 8, !tbaa !13
  br label %55

55:                                               ; preds = %41
  %56 = load i32, ptr %16, align 4, !tbaa !5
  %57 = add i32 %56, 1
  store i32 %57, ptr %16, align 4, !tbaa !5
  br label %36, !llvm.loop !15

58:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %113, %58
  %60 = load i32, ptr %17, align 4, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %116

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %65 = load ptr, ptr %14, align 8, !tbaa !11
  %66 = load i32, ptr %17, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %65, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = uitofp i32 %69 to double
  store double %70, ptr %18, align 8, !tbaa !9
  %71 = load i64, ptr %15, align 8, !tbaa !13
  %72 = uitofp i64 %71 to double
  %73 = load double, ptr %18, align 8, !tbaa !9
  %74 = fdiv double %73, %72
  store double %74, ptr %18, align 8, !tbaa !9
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = load i32, ptr %13, align 4, !tbaa !5
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = mul i32 %76, %77
  %79 = sub i32 %75, %78
  %80 = uitofp i32 %79 to double
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = uitofp i32 %81 to double
  %83 = fdiv double %80, %82
  %84 = load double, ptr %18, align 8, !tbaa !9
  %85 = fmul double %84, %83
  store double %85, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %86 = load double, ptr %18, align 8, !tbaa !9
  %87 = call double @llvm.floor.f64(double %86)
  %88 = fptoui double %87 to i32
  store i32 %88, ptr %19, align 4, !tbaa !5
  %89 = load i32, ptr %17, align 4, !tbaa !5
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %97

91:                                               ; preds = %64
  %92 = load i32, ptr %19, align 4, !tbaa !5
  %93 = load ptr, ptr %14, align 8, !tbaa !11
  %94 = load i32, ptr %17, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  store i32 %92, ptr %96, align 4, !tbaa !5
  br label %112

97:                                               ; preds = %64
  %98 = load ptr, ptr %14, align 8, !tbaa !11
  %99 = load i32, ptr %17, align 4, !tbaa !5
  %100 = sub i32 %99, 1
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %98, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = add i32 %103, %104
  %106 = load i32, ptr %19, align 4, !tbaa !5
  %107 = add i32 %105, %106
  %108 = load ptr, ptr %14, align 8, !tbaa !11
  %109 = load i32, ptr %17, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  store i32 %107, ptr %111, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %97, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %17, align 4, !tbaa !5
  br label %59, !llvm.loop !17

116:                                              ; preds = %63
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = icmp eq i32 %117, 2
  br i1 %118, label %119, label %122

119:                                              ; preds = %116
  %120 = load ptr, ptr %14, align 8, !tbaa !11
  %121 = load i32, ptr %13, align 4, !tbaa !5
  call void @shuffle_uint32(ptr noundef %120, i32 noundef %121)
  br label %161

122:                                              ; preds = %116
  %123 = load i32, ptr %10, align 4, !tbaa !5
  %124 = icmp eq i32 %123, 1
  br i1 %124, label %125, label %160

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = sub i32 %126, 1
  store i32 %127, ptr %21, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %154, %125
  %129 = load i32, ptr %20, align 4, !tbaa !5
  %130 = load i32, ptr %13, align 4, !tbaa !5
  %131 = udiv i32 %130, 2
  %132 = icmp ult i32 %129, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %159

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %135 = load ptr, ptr %14, align 8, !tbaa !11
  %136 = load i32, ptr %20, align 4, !tbaa !5
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %135, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  store i32 %139, ptr %22, align 4, !tbaa !5
  %140 = load ptr, ptr %14, align 8, !tbaa !11
  %141 = load i32, ptr %21, align 4, !tbaa !5
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %140, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load ptr, ptr %14, align 8, !tbaa !11
  %146 = load i32, ptr %20, align 4, !tbaa !5
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %145, i64 %147
  store i32 %144, ptr %148, align 4, !tbaa !5
  %149 = load i32, ptr %22, align 4, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !11
  %151 = load i32, ptr %21, align 4, !tbaa !5
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %150, i64 %152
  store i32 %149, ptr %153, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %154

154:                                              ; preds = %134
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %20, align 4, !tbaa !5
  %157 = load i32, ptr %21, align 4, !tbaa !5
  %158 = add i32 %157, -1
  store i32 %158, ptr %21, align 4, !tbaa !5
  br label %128, !llvm.loop !18

159:                                              ; preds = %133
  br label %160

160:                                              ; preds = %159, %122
  br label %161

161:                                              ; preds = %160, %119
  %162 = load ptr, ptr %14, align 8, !tbaa !11
  %163 = load ptr, ptr %11, align 8, !tbaa !11
  store ptr %162, ptr %163, align 8, !tbaa !11
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = load ptr, ptr %12, align 8, !tbaa !11
  store i32 %164, ptr %165, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @pcg32_random_r(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @shuffle_uint32(ptr noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind allocsize(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 = { inlinehint 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; 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.pcg_state_setseq_64 = type { i64, i64 }

@pcg32_global = external hidden global %struct.pcg_state_setseq_64, align 8

; Function Attrs: nounwind uwtable
define dso_local void @make_data(i32 noundef %0, i32 noundef %1, double noundef %2, i32 noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = uitofp i32 %0 to double
  %8 = fmul double %7, %2
  %9 = uitofp i32 %1 to double
  %10 = fdiv double %8, %9
  %11 = tail call double @llvm.floor.f64(double %10)
  %12 = fptoui double %11 to i32
  %13 = zext i32 %12 to i64
  %14 = shl nuw nsw i64 %13, 2
  %15 = tail call noalias ptr @malloc(i64 noundef %14) #4
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.preheader62:                                     ; preds = %.lr.ph
  %16 = uitofp i64 %37 to double
  br i1 %.not, label %._crit_edge, label %17

17:                                               ; preds = %.preheader62
  %18 = mul i32 %12, %1
  %19 = sub i32 %0, %18
  %20 = load i32, ptr %15, align 4, !tbaa !5
  %21 = insertelement <2 x i32> poison, i32 %19, i64 0
  %22 = insertelement <2 x i32> %21, i32 %20, i64 1
  %23 = uitofp <2 x i32> %22 to <2 x double>
  %24 = insertelement <2 x double> poison, double %9, i64 0
  %25 = insertelement <2 x double> %24, double %16, i64 1
  %26 = fdiv <2 x double> %23, %25
  %27 = extractelement <2 x double> %26, i64 0
  %shift = shufflevector <2 x double> %26, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %28 = fmul <2 x double> %26, %shift
  %29 = extractelement <2 x double> %28, i64 0
  %30 = tail call double @llvm.floor.f64(double %29)
  %31 = fptoui double %30 to i32
  store i32 %31, ptr %15, align 4, !tbaa !5
  %exitcond77.peel.not = icmp eq i32 %12, 1
  br i1 %exitcond77.peel.not, label %._crit_edge, label %.peel.next.preheader

.peel.next.preheader:                             ; preds = %17
  %32 = add nsw i64 %13, -1
  %xtraiter = and i64 %32, 1
  %33 = icmp eq i32 %12, 2
  br i1 %33, label %._crit_edge.loopexit.unr-lcssa, label %.peel.next.preheader.new

.peel.next.preheader.new:                         ; preds = %.peel.next.preheader
  %unroll_iter = and i64 %32, -2
  %invariant.gep = getelementptr inbounds i8, ptr %15, i64 4
  br label %.peel.next

.lr.ph:                                           ; preds = %6, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %6 ]
  %.064 = phi i64 [ %37, %.lr.ph ], [ 0, %6 ]
  %34 = tail call i32 @pcg32_random_r(ptr noundef nonnull @pcg32_global)
  %35 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv
  store i32 %34, ptr %35, align 4, !tbaa !5
  %36 = zext i32 %34 to i64
  %37 = add i64 %.064, %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %13
  br i1 %exitcond.not, label %.preheader62, label %.lr.ph, !llvm.loop !9

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.peel.next, %.peel.next.preheader
  %.unr = phi i32 [ %31, %.peel.next.preheader ], [ %66, %.peel.next ]
  %indvars.iv73.unr = phi i64 [ 1, %.peel.next.preheader ], [ %indvars.iv.next74.1, %.peel.next ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.peel.next.epil

.peel.next.epil:                                  ; preds = %._crit_edge.loopexit.unr-lcssa
  %38 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv73.unr
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = uitofp i32 %39 to double
  %41 = fdiv double %40, %16
  %42 = fmul double %27, %41
  %43 = tail call double @llvm.floor.f64(double %42)
  %44 = fptoui double %43 to i32
  %45 = add i32 %44, %1
  %46 = add i32 %45, %.unr
  store i32 %46, ptr %38, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.peel.next.epil, %._crit_edge.loopexit.unr-lcssa, %6, %17, %.preheader62
  switch i32 %3, label %.loopexit [
    i32 2, label %67
    i32 1, label %.preheader
  ]

.preheader:                                       ; preds = %._crit_edge
  %.not71 = icmp ult i32 %12, 2
  br i1 %.not71, label %.loopexit, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %.preheader
  %47 = lshr i32 %12, 1
  %wide.trip.count82 = zext nneg i32 %47 to i64
  %xtraiter86 = and i64 %wide.trip.count82, 1
  %48 = icmp eq i32 %47, 1
  br i1 %48, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph69.preheader.new

.lr.ph69.preheader.new:                           ; preds = %.lr.ph69.preheader
  %unroll_iter88 = and i64 %wide.trip.count82, 2147483646
  br label %.lr.ph69

.peel.next:                                       ; preds = %.peel.next, %.peel.next.preheader.new
  %49 = phi i32 [ %31, %.peel.next.preheader.new ], [ %66, %.peel.next ]
  %indvars.iv73 = phi i64 [ 1, %.peel.next.preheader.new ], [ %indvars.iv.next74.1, %.peel.next ]
  %niter = phi i64 [ 0, %.peel.next.preheader.new ], [ %niter.next.1, %.peel.next ]
  %50 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv73
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = uitofp i32 %51 to double
  %53 = fdiv double %52, %16
  %54 = fmul double %27, %53
  %55 = tail call double @llvm.floor.f64(double %54)
  %56 = fptoui double %55 to i32
  %57 = add i32 %56, %1
  %58 = add i32 %57, %49
  store i32 %58, ptr %50, align 4, !tbaa !5
  %gep = getelementptr inbounds i32, ptr %invariant.gep, i64 %indvars.iv73
  %59 = load i32, ptr %gep, align 4, !tbaa !5
  %60 = uitofp i32 %59 to double
  %61 = fdiv double %60, %16
  %62 = fmul double %27, %61
  %63 = tail call double @llvm.floor.f64(double %62)
  %64 = fptoui double %63 to i32
  %65 = add i32 %64, %1
  %66 = add i32 %65, %58
  store i32 %66, ptr %gep, align 4, !tbaa !5
  %indvars.iv.next74.1 = add nuw nsw i64 %indvars.iv73, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.peel.next, !llvm.loop !11

67:                                               ; preds = %._crit_edge
  tail call void @shuffle_uint32(ptr noundef %15, i32 noundef %12)
  br label %.loopexit

.lr.ph69:                                         ; preds = %.lr.ph69, %.lr.ph69.preheader.new
  %indvars.iv79 = phi i64 [ 0, %.lr.ph69.preheader.new ], [ %indvars.iv.next80.1, %.lr.ph69 ]
  %.056.in68 = phi i32 [ %12, %.lr.ph69.preheader.new ], [ %.056.1, %.lr.ph69 ]
  %niter89 = phi i64 [ 0, %.lr.ph69.preheader.new ], [ %niter89.next.1, %.lr.ph69 ]
  %.056 = add i32 %.056.in68, -1
  %68 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv79
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = zext i32 %.056 to i64
  %71 = getelementptr inbounds i32, ptr %15, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %68, align 4, !tbaa !5
  store i32 %69, ptr %71, align 4, !tbaa !5
  %indvars.iv.next80 = or disjoint i64 %indvars.iv79, 1
  %.056.1 = add i32 %.056.in68, -2
  %73 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv.next80
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = zext i32 %.056.1 to i64
  %76 = getelementptr inbounds i32, ptr %15, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  store i32 %77, ptr %73, align 4, !tbaa !5
  store i32 %74, ptr %76, align 4, !tbaa !5
  %indvars.iv.next80.1 = add nuw nsw i64 %indvars.iv79, 2
  %niter89.next.1 = add i64 %niter89, 2
  %niter89.ncmp.1 = icmp eq i64 %niter89.next.1, %unroll_iter88
  br i1 %niter89.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph69, !llvm.loop !13

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph69, %.lr.ph69.preheader
  %indvars.iv79.unr = phi i64 [ 0, %.lr.ph69.preheader ], [ %indvars.iv.next80.1, %.lr.ph69 ]
  %.056.in68.unr = phi i32 [ %12, %.lr.ph69.preheader ], [ %.056.1, %.lr.ph69 ]
  %lcmp.mod87.not = icmp eq i64 %xtraiter86, 0
  br i1 %lcmp.mod87.not, label %.loopexit, label %.lr.ph69.epil

.lr.ph69.epil:                                    ; preds = %.loopexit.loopexit.unr-lcssa
  %.056.epil = add i32 %.056.in68.unr, -1
  %78 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv79.unr
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = zext i32 %.056.epil to i64
  %81 = getelementptr inbounds i32, ptr %15, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  store i32 %82, ptr %78, align 4, !tbaa !5
  store i32 %79, ptr %81, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph69.epil, %.loopexit.loopexit.unr-lcssa, %.preheader, %._crit_edge, %67
  store ptr %15, ptr %4, align 8, !tbaa !14
  store i32 %12, ptr %5, align 4, !tbaa !5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @pcg32_random_r(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @shuffle_uint32(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { inlinehint 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 #4 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass