; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (arrays)

; 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"

@.str.47 = external hidden unnamed_addr constant [32 x i8], align 1
@__func__.array_smooth = external hidden unnamed_addr constant [13 x i8], align 1

; 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
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @array_smooth(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %21 = load i32, ptr %10, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = mul i64 %22, 8
  %24 = call noalias ptr @malloc(i64 noundef %23) #5
  store ptr %24, ptr %14, align 8, !tbaa !5
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %6
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %28, ptr noundef @.str.47, ptr noundef @__func__.array_smooth, i32 noundef 3066) #4
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %127

30:                                               ; preds = %6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %100, %30
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %103

35:                                               ; preds = %31
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = load i32, ptr %15, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  store double 0.000000e+00, ptr %39, align 8, !tbaa !11
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = sub nsw i32 %40, %41
  %43 = icmp slt i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %35
  br label %49

45:                                               ; preds = %35
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = sub nsw i32 %46, %47
  br label %49

49:                                               ; preds = %45, %44
  %50 = phi i32 [ 0, %44 ], [ %48, %45 ]
  store i32 %50, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = sub nsw i32 %54, 1
  %56 = icmp slt i32 %53, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %49
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = add nsw i32 %58, %59
  br label %64

61:                                               ; preds = %49
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  br label %64

64:                                               ; preds = %61, %57
  %65 = phi i32 [ %60, %57 ], [ %63, %61 ]
  store i32 %65, ptr %18, align 4, !tbaa !9
  %66 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %66, ptr %16, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %89, %64
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = icmp sle i32 %68, %69
  br i1 %70, label %71, label %92

71:                                               ; preds = %67
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = mul nsw i32 %73, %74
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = add nsw i32 %75, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %72, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds double, ptr %81, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = fadd double %85, %80
  store double %86, ptr %84, align 8, !tbaa !11
  %87 = load double, ptr %19, align 8, !tbaa !11
  %88 = fadd double %87, 1.000000e+00
  store double %88, ptr %19, align 8, !tbaa !11
  br label %89

89:                                               ; preds = %71
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %16, align 4, !tbaa !9
  br label %67, !llvm.loop !13

92:                                               ; preds = %67
  %93 = load double, ptr %19, align 8, !tbaa !11
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = fdiv double %98, %93
  store double %99, ptr %97, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %92
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %15, align 4, !tbaa !9
  br label %31, !llvm.loop !15

103:                                              ; preds = %31
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %122, %103
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %125

108:                                              ; preds = %104
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = mul nsw i32 %115, %116
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = add nsw i32 %117, %118
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %114, i64 %120
  store double %113, ptr %121, align 8, !tbaa !11
  br label %122

122:                                              ; preds = %108
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %15, align 4, !tbaa !9
  br label %104, !llvm.loop !16

125:                                              ; preds = %104
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %126) #4
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %127

127:                                              ; preds = %125, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  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 8, ptr %14) #4
  %128 = load i32, ptr %7, align 4
  ret i32 %128
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 = { 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 #3 = { 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 }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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"

@.str.47 = external hidden unnamed_addr constant [32 x i8], align 1
@__func__.array_smooth = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @array_smooth(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #3 {
  %7 = sext i32 %2 to i64
  %8 = shl nsw i64 %7, 3
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %16, label %.preheader50

.preheader50:                                     ; preds = %6
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %.lr.ph55, label %._crit_edge58

.lr.ph55:                                         ; preds = %.preheader50
  %12 = add nsw i32 %2, -1
  %13 = sub i32 0, %4
  %14 = sext i32 %1 to i64
  %15 = sext i32 %3 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  %invariant.gep = getelementptr double, ptr %0, i64 %15
  br label %30

16:                                               ; preds = %6
  %17 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.47, ptr noundef nonnull @__func__.array_smooth, i32 noundef 3066) #6
  br label %60

.preheader:                                       ; preds = %46
  br i1 %11, label %.lr.ph57.preheader, label %._crit_edge58

.lr.ph57.preheader:                               ; preds = %.preheader
  %18 = sext i32 %1 to i64
  %19 = sext i32 %3 to i64
  %wide.trip.count69 = zext nneg i32 %2 to i64
  %invariant.gep72 = getelementptr double, ptr %0, i64 %19
  %min.iters.check = icmp ugt i32 %2, 3
  %ident.check.not = icmp eq i32 %1, 1
  %or.cond = and i1 %min.iters.check, %ident.check.not
  br i1 %or.cond, label %vector.ph, label %.lr.ph57.preheader76

.lr.ph57.preheader76:                             ; preds = %middle.block, %.lr.ph57.preheader
  %indvars.iv66.ph = phi i64 [ 0, %.lr.ph57.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph57.prol.loopexit, label %.lr.ph57.prol

.lr.ph57.prol:                                    ; preds = %.lr.ph57.preheader76, %.lr.ph57.prol
  %indvars.iv66.prol = phi i64 [ %indvars.iv.next67.prol, %.lr.ph57.prol ], [ %indvars.iv66.ph, %.lr.ph57.preheader76 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph57.prol ], [ 0, %.lr.ph57.preheader76 ]
  %20 = getelementptr inbounds double, ptr %9, i64 %indvars.iv66.prol
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = mul nsw i64 %indvars.iv66.prol, %18
  %gep73.prol = getelementptr double, ptr %invariant.gep72, i64 %22
  store double %21, ptr %gep73.prol, align 8, !tbaa !5
  %indvars.iv.next67.prol = add nuw nsw i64 %indvars.iv66.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph57.prol.loopexit, label %.lr.ph57.prol, !llvm.loop !9

.lr.ph57.prol.loopexit:                           ; preds = %.lr.ph57.prol, %.lr.ph57.preheader76
  %indvars.iv66.unr = phi i64 [ %indvars.iv66.ph, %.lr.ph57.preheader76 ], [ %indvars.iv.next67.prol, %.lr.ph57.prol ]
  %23 = sub nsw i64 %indvars.iv66.ph, %wide.trip.count
  %24 = icmp ugt i64 %23, -4
  br i1 %24, label %._crit_edge58, label %.lr.ph57

vector.ph:                                        ; preds = %.lr.ph57.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %25 = getelementptr inbounds double, ptr %9, i64 %index
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %wide.load = load <2 x double>, ptr %25, align 8, !tbaa !5
  %wide.load75 = load <2 x double>, ptr %26, align 8, !tbaa !5
  %27 = getelementptr double, ptr %invariant.gep72, i64 %index
  %28 = getelementptr i8, ptr %27, i64 16
  store <2 x double> %wide.load, ptr %27, align 8, !tbaa !5
  store <2 x double> %wide.load75, ptr %28, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge58, label %.lr.ph57.preheader76

30:                                               ; preds = %.lr.ph55, %46
  %indvars.iv63 = phi i64 [ 0, %.lr.ph55 ], [ %indvars.iv.next64, %46 ]
  %indvars.iv = phi i32 [ %13, %.lr.ph55 ], [ %indvars.iv.next, %46 ]
  %31 = getelementptr inbounds double, ptr %9, i64 %indvars.iv63
  %32 = trunc i64 %indvars.iv63 to i32
  %33 = sub i32 %32, %4
  %34 = tail call i32 @llvm.smax.i32(i32 %33, i32 0)
  %35 = trunc i64 %indvars.iv63 to i32
  %36 = add i32 %35, %4
  %. = tail call i32 @llvm.smin.i32(i32 %36, i32 %12)
  %.not51 = icmp sgt i32 %34, %.
  br i1 %.not51, label %46, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %smax = tail call i32 @llvm.smax.i32(i32 %indvars.iv, i32 0)
  %37 = zext nneg i32 %smax to i64
  %38 = zext nneg i32 %. to i64
  br label %39

39:                                               ; preds = %.lr.ph, %39
  %indvars.iv60 = phi i64 [ %37, %.lr.ph ], [ %indvars.iv.next61, %39 ]
  %40 = phi double [ 0.000000e+00, %.lr.ph ], [ %43, %39 ]
  %.053 = phi double [ 0.000000e+00, %.lr.ph ], [ %44, %39 ]
  %41 = mul nsw i64 %indvars.iv60, %14
  %gep = getelementptr double, ptr %invariant.gep, i64 %41
  %42 = load double, ptr %gep, align 8, !tbaa !5
  %43 = fadd double %42, %40
  %44 = fadd double %.053, 1.000000e+00
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %.not.not = icmp ult i64 %indvars.iv60, %38
  br i1 %.not.not, label %39, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %39
  %45 = fdiv double %43, %44
  br label %46

46:                                               ; preds = %._crit_edge, %30
  %47 = phi double [ %45, %._crit_edge ], [ 0x7FF8000000000000, %30 ]
  store double %47, ptr %31, align 8, !tbaa !5
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %indvars.iv.next = add i32 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next64, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %30, !llvm.loop !16

.lr.ph57:                                         ; preds = %.lr.ph57.prol.loopexit, %.lr.ph57
  %indvars.iv66 = phi i64 [ %indvars.iv.next67.3, %.lr.ph57 ], [ %indvars.iv66.unr, %.lr.ph57.prol.loopexit ]
  %48 = getelementptr inbounds double, ptr %9, i64 %indvars.iv66
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = mul nsw i64 %indvars.iv66, %18
  %gep73 = getelementptr double, ptr %invariant.gep72, i64 %50
  store double %49, ptr %gep73, align 8, !tbaa !5
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %51 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next67
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = mul nsw i64 %indvars.iv.next67, %18
  %gep73.1 = getelementptr double, ptr %invariant.gep72, i64 %53
  store double %52, ptr %gep73.1, align 8, !tbaa !5
  %indvars.iv.next67.1 = add nuw nsw i64 %indvars.iv66, 2
  %54 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next67.1
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = mul nsw i64 %indvars.iv.next67.1, %18
  %gep73.2 = getelementptr double, ptr %invariant.gep72, i64 %56
  store double %55, ptr %gep73.2, align 8, !tbaa !5
  %indvars.iv.next67.2 = add nuw nsw i64 %indvars.iv66, 3
  %57 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next67.2
  %58 = load double, ptr %57, align 8, !tbaa !5
  %59 = mul nsw i64 %indvars.iv.next67.2, %18
  %gep73.3 = getelementptr double, ptr %invariant.gep72, i64 %59
  store double %58, ptr %gep73.3, align 8, !tbaa !5
  %indvars.iv.next67.3 = add nuw nsw i64 %indvars.iv66, 4
  %exitcond70.not.3 = icmp eq i64 %indvars.iv.next67.3, %wide.trip.count69
  br i1 %exitcond70.not.3, label %._crit_edge58, label %.lr.ph57, !llvm.loop !17

._crit_edge58:                                    ; preds = %.lr.ph57.prol.loopexit, %.lr.ph57, %middle.block, %.preheader50, %.preheader
  tail call void @free(ptr noundef nonnull %9) #6
  br label %60

60:                                               ; preds = %._crit_edge58, %16
  %.042 = phi i32 [ 1, %16 ], [ 0, %._crit_edge58 ]
  ret i32 %.042
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4

attributes #0 = { nofree nounwind "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 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 #2 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12, !13}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass