; LLVM IR from softmin/ReHLine-SVM :: liblinear (train)

; 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.problem = type { i32, i32, ptr, ptr, double }
%struct.parameter = type { i32, double, double, i32, ptr, ptr, double, double, ptr, i32 }

@prob = external dso_local global %struct.problem, align 8
@param = external dso_local global %struct.parameter, align 8
@nr_fold = external dso_local global i32, align 4
@.str.7 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @do_cross_validation() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %12 = load i32, ptr @prob, align 8, !tbaa !11
  %13 = sext i32 %12 to i64
  %14 = mul i64 %13, 8
  %15 = call noalias ptr @malloc(i64 noundef %14) #7
  store ptr %15, ptr %9, align 8, !tbaa !14
  %16 = load i32, ptr @nr_fold, align 4, !tbaa !5
  %17 = load ptr, ptr %9, align 8, !tbaa !14
  call void @cross_validation(ptr noundef @prob, ptr noundef @param, i32 noundef %16, ptr noundef %17)
  %18 = load i32, ptr @param, align 8, !tbaa !15
  %19 = icmp eq i32 %18, 11
  br i1 %19, label %26, label %20

20:                                               ; preds = %0
  %21 = load i32, ptr @param, align 8, !tbaa !15
  %22 = icmp eq i32 %21, 13
  br i1 %22, label %26, label %23

23:                                               ; preds = %20
  %24 = load i32, ptr @param, align 8, !tbaa !15
  %25 = icmp eq i32 %24, 12
  br i1 %25, label %26, label %113

26:                                               ; preds = %23, %20, %0
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %68, %26
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = load i32, ptr @prob, align 8, !tbaa !11
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %31, label %71

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %32 = load ptr, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 2), align 8, !tbaa !17
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds double, ptr %32, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !9
  store double %36, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %37 = load ptr, ptr %9, align 8, !tbaa !14
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %37, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !9
  store double %41, ptr %11, align 8, !tbaa !9
  %42 = load double, ptr %11, align 8, !tbaa !9
  %43 = load double, ptr %10, align 8, !tbaa !9
  %44 = fsub double %42, %43
  %45 = load double, ptr %11, align 8, !tbaa !9
  %46 = load double, ptr %10, align 8, !tbaa !9
  %47 = fsub double %45, %46
  %48 = load double, ptr %3, align 8, !tbaa !9
  %49 = call double @llvm.fmuladd.f64(double %44, double %47, double %48)
  store double %49, ptr %3, align 8, !tbaa !9
  %50 = load double, ptr %11, align 8, !tbaa !9
  %51 = load double, ptr %4, align 8, !tbaa !9
  %52 = fadd double %51, %50
  store double %52, ptr %4, align 8, !tbaa !9
  %53 = load double, ptr %10, align 8, !tbaa !9
  %54 = load double, ptr %5, align 8, !tbaa !9
  %55 = fadd double %54, %53
  store double %55, ptr %5, align 8, !tbaa !9
  %56 = load double, ptr %11, align 8, !tbaa !9
  %57 = load double, ptr %11, align 8, !tbaa !9
  %58 = load double, ptr %6, align 8, !tbaa !9
  %59 = call double @llvm.fmuladd.f64(double %56, double %57, double %58)
  store double %59, ptr %6, align 8, !tbaa !9
  %60 = load double, ptr %10, align 8, !tbaa !9
  %61 = load double, ptr %10, align 8, !tbaa !9
  %62 = load double, ptr %7, align 8, !tbaa !9
  %63 = call double @llvm.fmuladd.f64(double %60, double %61, double %62)
  store double %63, ptr %7, align 8, !tbaa !9
  %64 = load double, ptr %11, align 8, !tbaa !9
  %65 = load double, ptr %10, align 8, !tbaa !9
  %66 = load double, ptr %8, align 8, !tbaa !9
  %67 = call double @llvm.fmuladd.f64(double %64, double %65, double %66)
  store double %67, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %68

68:                                               ; preds = %31
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %1, align 4, !tbaa !5
  br label %27, !llvm.loop !18

71:                                               ; preds = %27
  %72 = load double, ptr %3, align 8, !tbaa !9
  %73 = load i32, ptr @prob, align 8, !tbaa !11
  %74 = sitofp i32 %73 to double
  %75 = fdiv double %72, %74
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %75)
  %77 = load i32, ptr @prob, align 8, !tbaa !11
  %78 = sitofp i32 %77 to double
  %79 = load double, ptr %8, align 8, !tbaa !9
  %80 = load double, ptr %4, align 8, !tbaa !9
  %81 = load double, ptr %5, align 8, !tbaa !9
  %82 = fmul double %80, %81
  %83 = fneg double %82
  %84 = call double @llvm.fmuladd.f64(double %78, double %79, double %83)
  %85 = load i32, ptr @prob, align 8, !tbaa !11
  %86 = sitofp i32 %85 to double
  %87 = load double, ptr %8, align 8, !tbaa !9
  %88 = load double, ptr %4, align 8, !tbaa !9
  %89 = load double, ptr %5, align 8, !tbaa !9
  %90 = fmul double %88, %89
  %91 = fneg double %90
  %92 = call double @llvm.fmuladd.f64(double %86, double %87, double %91)
  %93 = fmul double %84, %92
  %94 = load i32, ptr @prob, align 8, !tbaa !11
  %95 = sitofp i32 %94 to double
  %96 = load double, ptr %6, align 8, !tbaa !9
  %97 = load double, ptr %4, align 8, !tbaa !9
  %98 = load double, ptr %4, align 8, !tbaa !9
  %99 = fmul double %97, %98
  %100 = fneg double %99
  %101 = call double @llvm.fmuladd.f64(double %95, double %96, double %100)
  %102 = load i32, ptr @prob, align 8, !tbaa !11
  %103 = sitofp i32 %102 to double
  %104 = load double, ptr %7, align 8, !tbaa !9
  %105 = load double, ptr %5, align 8, !tbaa !9
  %106 = load double, ptr %5, align 8, !tbaa !9
  %107 = fmul double %105, %106
  %108 = fneg double %107
  %109 = call double @llvm.fmuladd.f64(double %103, double %104, double %108)
  %110 = fmul double %101, %109
  %111 = fdiv double %93, %110
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %111)
  br label %145

113:                                              ; preds = %23
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %134, %113
  %115 = load i32, ptr %1, align 4, !tbaa !5
  %116 = load i32, ptr @prob, align 8, !tbaa !11
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %137

118:                                              ; preds = %114
  %119 = load ptr, ptr %9, align 8, !tbaa !14
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !9
  %124 = load ptr, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 2), align 8, !tbaa !17
  %125 = load i32, ptr %1, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %124, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = fcmp oeq double %123, %128
  br i1 %129, label %130, label %133

130:                                              ; preds = %118
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %2, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %130, %118
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %1, align 4, !tbaa !5
  br label %114, !llvm.loop !20

137:                                              ; preds = %114
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = sitofp i32 %138 to double
  %140 = fmul double 1.000000e+02, %139
  %141 = load i32, ptr @prob, align 8, !tbaa !11
  %142 = sitofp i32 %141 to double
  %143 = fdiv double %140, %142
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %143)
  br label %145

145:                                              ; preds = %137, %71
  %146 = load ptr, ptr %9, align 8, !tbaa !14
  call void @free(ptr noundef %146) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

declare void @cross_validation(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

attributes #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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, !6, i64 0}
!12 = !{!"problem", !6, i64 0, !6, i64 4, !13, i64 8, !13, i64 16, !10, i64 24}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"parameter", !6, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !13, i64 32, !13, i64 40, !10, i64 48, !10, i64 56, !13, i64 64, !6, i64 72}
!17 = !{!12, !13, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.problem = type { i32, i32, ptr, ptr, double }
%struct.parameter = type { i32, double, double, i32, ptr, ptr, double, double, ptr, i32 }

@prob = external dso_local global %struct.problem, align 8
@param = external dso_local global %struct.parameter, align 8
@nr_fold = external dso_local local_unnamed_addr global i32, align 4
@.str.7 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @do_cross_validation() local_unnamed_addr #2 {
  %1 = load i32, ptr @prob, align 8, !tbaa !5
  %2 = sext i32 %1 to i64
  %3 = shl nsw i64 %2, 3
  %4 = tail call noalias ptr @malloc(i64 noundef %3) #7
  %5 = load i32, ptr @nr_fold, align 4, !tbaa !12
  tail call void @cross_validation(ptr noundef nonnull @prob, ptr noundef nonnull @param, i32 noundef %5, ptr noundef %4) #8
  %6 = load i32, ptr @param, align 8
  %7 = add i32 %6, -11
  %or.cond3 = icmp ult i32 %7, 3
  %8 = load i32, ptr @prob, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %or.cond3, label %.preheader, label %.preheader57

.preheader57:                                     ; preds = %0
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader57
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @prob, i64 8), align 8, !tbaa !13
  %wide.trip.count = zext nneg i32 %8 to i64
  %min.iters.check = icmp ult i32 %8, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.04759.ph = phi i32 [ 0, %.lr.ph ], [ %22, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %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 ]
  %vec.phi = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ]
  %vec.phi99 = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %20, %vector.body ]
  %11 = getelementptr inbounds double, ptr %4, i64 %index
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  %wide.load = load <2 x double>, ptr %11, align 8, !tbaa !14
  %wide.load100 = load <2 x double>, ptr %12, align 8, !tbaa !14
  %13 = getelementptr inbounds double, ptr %10, i64 %index
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %wide.load101 = load <2 x double>, ptr %13, align 8, !tbaa !14
  %wide.load102 = load <2 x double>, ptr %14, align 8, !tbaa !14
  %15 = fcmp oeq <2 x double> %wide.load, %wide.load101
  %16 = fcmp oeq <2 x double> %wide.load100, %wide.load102
  %17 = zext <2 x i1> %15 to <2 x i32>
  %18 = zext <2 x i1> %16 to <2 x i32>
  %19 = add <2 x i32> %vec.phi, %17
  %20 = add <2 x i32> %vec.phi99, %18
  %index.next = add nuw i64 %index, 4
  %21 = icmp eq i64 %index.next, %n.vec
  br i1 %21, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i32> %20, %19
  %22 = tail call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.loopexit, label %scalar.ph.preheader

.preheader:                                       ; preds = %0
  br i1 %9, label %.lr.ph69, label %._crit_edge70

.lr.ph69:                                         ; preds = %.preheader
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @prob, i64 8), align 8, !tbaa !13
  %wide.trip.count87 = zext nneg i32 %8 to i64
  br label %24

24:                                               ; preds = %.lr.ph69, %24
  %indvars.iv84 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next85, %24 ]
  %25 = phi <4 x double> [ zeroinitializer, %.lr.ph69 ], [ %40, %24 ]
  %26 = phi <2 x double> [ zeroinitializer, %.lr.ph69 ], [ %34, %24 ]
  %27 = getelementptr inbounds double, ptr %23, i64 %indvars.iv84
  %28 = load double, ptr %27, align 8, !tbaa !14
  %29 = getelementptr inbounds double, ptr %4, i64 %indvars.iv84
  %30 = load double, ptr %29, align 8, !tbaa !14
  %31 = fsub double %30, %28
  %32 = insertelement <2 x double> poison, double %30, i64 0
  %33 = insertelement <2 x double> %32, double %28, i64 1
  %34 = fadd <2 x double> %26, %33
  %35 = insertelement <4 x double> poison, double %30, i64 0
  %36 = insertelement <4 x double> %35, double %28, i64 1
  %37 = insertelement <4 x double> %36, double %31, i64 3
  %38 = shufflevector <4 x double> %37, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 3>
  %39 = shufflevector <4 x double> %37, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 1, i32 3>
  %40 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %38, <4 x double> %39, <4 x double> %25)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count87
  br i1 %exitcond88.not, label %._crit_edge70, label %24, !llvm.loop !19

._crit_edge70:                                    ; preds = %24, %.preheader
  %41 = phi <4 x double> [ zeroinitializer, %.preheader ], [ %40, %24 ]
  %42 = phi <2 x double> [ zeroinitializer, %.preheader ], [ %34, %24 ]
  %43 = sitofp i32 %8 to double
  %44 = extractelement <4 x double> %41, i64 3
  %45 = fdiv double %44, %43
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %45)
  %47 = load i32, ptr @prob, align 8, !tbaa !5
  %48 = sitofp i32 %47 to double
  %49 = extractelement <2 x double> %42, i64 0
  %50 = fneg double %49
  %51 = extractelement <2 x double> %42, i64 1
  %52 = fneg double %51
  %53 = fmul double %51, %52
  %54 = extractelement <4 x double> %41, i64 1
  %55 = tail call double @llvm.fmuladd.f64(double %48, double %54, double %53)
  %56 = insertelement <2 x double> poison, double %50, i64 0
  %57 = shufflevector <2 x double> %56, <2 x double> poison, <2 x i32> zeroinitializer
  %58 = fmul <2 x double> %42, %57
  %59 = insertelement <2 x double> poison, double %48, i64 0
  %60 = shufflevector <2 x double> %59, <2 x double> poison, <2 x i32> zeroinitializer
  %61 = shufflevector <4 x double> %41, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %62 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %60, <2 x double> %61, <2 x double> %58)
  %63 = insertelement <2 x double> %62, double %55, i64 0
  %64 = fmul <2 x double> %62, %63
  %65 = extractelement <2 x double> %64, i64 0
  %66 = extractelement <2 x double> %64, i64 1
  %67 = fdiv double %66, %65
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %67)
  br label %80

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.04759 = phi i32 [ %.148, %scalar.ph ], [ %.04759.ph, %scalar.ph.preheader ]
  %69 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  %72 = load double, ptr %71, align 8, !tbaa !14
  %73 = fcmp oeq double %70, %72
  %74 = zext i1 %73 to i32
  %.148 = add nuw nsw i32 %.04759, %74
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %scalar.ph, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %scalar.ph, %middle.block
  %.148.lcssa = phi i32 [ %22, %middle.block ], [ %.148, %scalar.ph ]
  %75 = uitofp nneg i32 %.148.lcssa to double
  %76 = fmul double %75, 1.000000e+02
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader57
  %.047.lcssa = phi double [ 0.000000e+00, %.preheader57 ], [ %76, %._crit_edge.loopexit ]
  %77 = sitofp i32 %8 to double
  %78 = fdiv double %.047.lcssa, %77
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %78)
  br label %80

80:                                               ; preds = %._crit_edge, %._crit_edge70
  tail call void @free(ptr noundef %4) #8
  ret void
}

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

declare void @cross_validation(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.fmuladd.v4f64(<4 x double>, <4 x double>, <4 x double>) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #6

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


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