; LLVM IR from ChenyangZhang-cs/iMLBench :: LR/co-run/src (linear_iterative)

; 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.sum_t = type { float, float, float, float }
%struct.linear_param_t = type { ptr, i64, i64, i64 }
%struct.data_t = type { float, float }
%struct.result_t = type { float, float, i32, double }

@start = external global i64, align 8
@end = external global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local void @iterative_regression(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.sum_t, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %10 = call i64 @clock() #5
  store i64 %10, ptr @start, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 4 %7, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %11

11:                                               ; preds = %66, %3
  %12 = load i32, ptr %8, align 4, !tbaa !11
  %13 = sext i32 %12 to i64
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.linear_param_t, ptr %14, i32 0, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !13
  %17 = icmp ult i64 %13, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %69

19:                                               ; preds = %11
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load i32, ptr %8, align 4, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds %struct.data_t, ptr %20, i64 %22
  %24 = getelementptr inbounds %struct.data_t, ptr %23, i32 0, i32 0
  %25 = load float, ptr %24, align 4, !tbaa !15
  %26 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !18
  %28 = fadd float %27, %25
  store float %28, ptr %26, align 4, !tbaa !18
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !11
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds %struct.data_t, ptr %29, i64 %31
  %33 = getelementptr inbounds %struct.data_t, ptr %32, i32 0, i32 1
  %34 = load float, ptr %33, align 4, !tbaa !20
  %35 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 1
  %36 = load float, ptr %35, align 4, !tbaa !21
  %37 = fadd float %36, %34
  store float %37, ptr %35, align 4, !tbaa !21
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load i32, ptr %8, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.data_t, ptr %38, i64 %40
  %42 = getelementptr inbounds %struct.data_t, ptr %41, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !15
  %44 = fpext float %43 to double
  %45 = call double @pow(double noundef %44, double noundef 2.000000e+00) #5
  %46 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 3
  %47 = load float, ptr %46, align 4, !tbaa !22
  %48 = fpext float %47 to double
  %49 = fadd double %48, %45
  %50 = fptrunc double %49 to float
  store float %50, ptr %46, align 4, !tbaa !22
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !11
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.data_t, ptr %51, i64 %53
  %55 = getelementptr inbounds %struct.data_t, ptr %54, i32 0, i32 0
  %56 = load float, ptr %55, align 4, !tbaa !15
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.data_t, ptr %57, i64 %59
  %61 = getelementptr inbounds %struct.data_t, ptr %60, i32 0, i32 1
  %62 = load float, ptr %61, align 4, !tbaa !20
  %63 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 2
  %64 = load float, ptr %63, align 4, !tbaa !23
  %65 = call float @llvm.fmuladd.f32(float %56, float %62, float %64)
  store float %65, ptr %63, align 4, !tbaa !23
  br label %66

66:                                               ; preds = %19
  %67 = load i32, ptr %8, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %8, align 4, !tbaa !11
  br label %11, !llvm.loop !24

69:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.linear_param_t, ptr %70, i32 0, i32 1
  %72 = load i64, ptr %71, align 8, !tbaa !13
  %73 = uitofp i64 %72 to float
  %74 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 3
  %75 = load float, ptr %74, align 4, !tbaa !22
  %76 = fmul float %73, %75
  %77 = fpext float %76 to double
  %78 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !18
  %80 = fpext float %79 to double
  %81 = call double @pow(double noundef %80, double noundef 2.000000e+00) #5
  %82 = fsub double %77, %81
  store double %82, ptr %9, align 8, !tbaa !26
  %83 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !21
  %85 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 3
  %86 = load float, ptr %85, align 4, !tbaa !22
  %87 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 0
  %88 = load float, ptr %87, align 4, !tbaa !18
  %89 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 2
  %90 = load float, ptr %89, align 4, !tbaa !23
  %91 = fmul float %88, %90
  %92 = fneg float %91
  %93 = call float @llvm.fmuladd.f32(float %84, float %86, float %92)
  %94 = fpext float %93 to double
  %95 = load double, ptr %9, align 8, !tbaa !26
  %96 = fdiv double %94, %95
  %97 = fptrunc double %96 to float
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.result_t, ptr %98, i32 0, i32 0
  store float %97, ptr %99, align 8, !tbaa !28
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.linear_param_t, ptr %100, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !13
  %103 = uitofp i64 %102 to float
  %104 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 2
  %105 = load float, ptr %104, align 4, !tbaa !23
  %106 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 0
  %107 = load float, ptr %106, align 4, !tbaa !18
  %108 = getelementptr inbounds %struct.sum_t, ptr %7, i32 0, i32 1
  %109 = load float, ptr %108, align 4, !tbaa !21
  %110 = fmul float %107, %109
  %111 = fneg float %110
  %112 = call float @llvm.fmuladd.f32(float %103, float %105, float %111)
  %113 = fpext float %112 to double
  %114 = load double, ptr %9, align 8, !tbaa !26
  %115 = fdiv double %113, %114
  %116 = fptrunc double %115 to float
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.result_t, ptr %117, i32 0, i32 1
  store float %116, ptr %118, align 4, !tbaa !30
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  call void @r_squared(ptr noundef %119, ptr noundef %120, ptr noundef %7, ptr noundef %121)
  %122 = call i64 @clock() #5
  store i64 %122, ptr @end, align 8, !tbaa !9
  %123 = load i64, ptr @end, align 8, !tbaa !9
  %124 = load i64, ptr @start, align 8, !tbaa !9
  %125 = sub nsw i64 %123, %124
  %126 = sitofp i64 %125 to double
  %127 = fdiv double %126, 1.000000e+06
  %128 = fmul double %127, 1.000000e+03
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.result_t, ptr %129, i32 0, i32 3
  store double %128, ptr %130, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  ret void
}

; Function Attrs: nounwind
declare i64 @clock() #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden void @r_squared(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!15 = !{!16, !17, i64 0}
!16 = !{!"", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !17, i64 0}
!19 = !{!"", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!20 = !{!16, !17, i64 4}
!21 = !{!19, !17, i64 4}
!22 = !{!19, !17, i64 12}
!23 = !{!19, !17, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = !{!29, !17, i64 0}
!29 = !{!"", !17, i64 0, !17, i64 4, !12, i64 8, !27, i64 16}
!30 = !{!29, !17, i64 4}
!31 = !{!29, !27, i64 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.sum_t = type { float, float, float, float }
%struct.data_t = type { float, float }

@start = external local_unnamed_addr global i64, align 8
@end = external local_unnamed_addr global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local void @iterative_regression(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.sum_t, align 4
  %5 = tail call i64 @clock() #6
  store i64 %5, ptr @start, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %6 = getelementptr inbounds i8, ptr %4, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %6, i8 0, i64 12, i1 false)
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !9
  %.not = icmp eq i64 %8, 0
  br i1 %.not, label %27, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %9 = getelementptr inbounds i8, ptr %4, i64 4
  %10 = getelementptr inbounds i8, ptr %4, i64 12
  %11 = getelementptr inbounds i8, ptr %4, i64 8
  %xtraiter = and i64 %8, 1
  %12 = icmp eq i64 %8, 1
  br i1 %12, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %8, -2
  br label %57

._crit_edge.unr-lcssa.loopexit:                   ; preds = %57
  %13 = fpext float %78 to double
  br label %._crit_edge.unr-lcssa

._crit_edge.unr-lcssa:                            ; preds = %._crit_edge.unr-lcssa.loopexit, %.lr.ph
  %.lcssa45.ph = phi <2 x float> [ poison, %.lr.ph ], [ %73, %._crit_edge.unr-lcssa.loopexit ]
  %.lcssa44.ph = phi float [ poison, %.lr.ph ], [ %78, %._crit_edge.unr-lcssa.loopexit ]
  %.lcssa.ph = phi float [ poison, %.lr.ph ], [ %80, %._crit_edge.unr-lcssa.loopexit ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %._crit_edge.unr-lcssa.loopexit ]
  %.unr = phi float [ 0.000000e+00, %.lr.ph ], [ %80, %._crit_edge.unr-lcssa.loopexit ]
  %.unr46 = phi double [ 0.000000e+00, %.lr.ph ], [ %13, %._crit_edge.unr-lcssa.loopexit ]
  %.unr47 = phi <2 x float> [ zeroinitializer, %.lr.ph ], [ %73, %._crit_edge.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %14 = getelementptr inbounds %struct.data_t, ptr %1, i64 %indvars.iv.unr
  %15 = load <2 x float>, ptr %14, align 4, !tbaa !12
  %16 = fadd <2 x float> %15, %.unr47
  %17 = extractelement <2 x float> %15, i64 0
  %18 = fpext float %17 to double
  %square24.epil = fmul double %18, %18
  %19 = fadd double %square24.epil, %.unr46
  %20 = fptrunc double %19 to float
  %21 = extractelement <2 x float> %15, i64 1
  %22 = tail call float @llvm.fmuladd.f32(float %17, float %21, float %.unr)
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.lcssa45 = phi <2 x float> [ %.lcssa45.ph, %._crit_edge.unr-lcssa ], [ %16, %._crit_edge.epilog-lcssa ]
  %.lcssa44 = phi float [ %.lcssa44.ph, %._crit_edge.unr-lcssa ], [ %20, %._crit_edge.epilog-lcssa ]
  %.lcssa = phi float [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %22, %._crit_edge.epilog-lcssa ]
  %23 = extractelement <2 x float> %.lcssa45, i64 1
  store float %23, ptr %9, align 4, !tbaa !14
  store float %.lcssa44, ptr %10, align 4, !tbaa !16
  store float %.lcssa, ptr %11, align 4, !tbaa !17
  %24 = insertelement <2 x float> poison, float %.lcssa44, i64 0
  %25 = insertelement <2 x float> %24, float %.lcssa, i64 1
  %26 = extractelement <2 x float> %.lcssa45, i64 0
  br label %27

27:                                               ; preds = %._crit_edge, %3
  %28 = phi float [ %23, %._crit_edge ], [ 0.000000e+00, %3 ]
  %.lcssa25 = phi float [ %26, %._crit_edge ], [ 0.000000e+00, %3 ]
  %29 = phi <2 x float> [ %25, %._crit_edge ], [ zeroinitializer, %3 ]
  store float %.lcssa25, ptr %4, align 4, !tbaa !18
  %30 = uitofp nneg i64 %8 to float
  %31 = extractelement <2 x float> %29, i64 0
  %32 = fmul float %31, %30
  %33 = fpext float %32 to double
  %34 = fpext float %.lcssa25 to double
  %square = fmul double %34, %34
  %35 = fsub double %33, %square
  %36 = fneg float %.lcssa25
  %37 = shufflevector <2 x float> %29, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %38 = insertelement <2 x float> %37, float %28, i64 1
  %39 = insertelement <2 x float> poison, float %36, i64 0
  %40 = shufflevector <2 x float> %39, <2 x float> poison, <2 x i32> zeroinitializer
  %41 = fmul <2 x float> %38, %40
  %42 = insertelement <2 x float> poison, float %28, i64 0
  %43 = insertelement <2 x float> %42, float %30, i64 1
  %44 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %43, <2 x float> %29, <2 x float> %41)
  %45 = fpext <2 x float> %44 to <2 x double>
  %46 = insertelement <2 x double> poison, double %35, i64 0
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
  %48 = fdiv <2 x double> %45, %47
  %49 = fptrunc <2 x double> %48 to <2 x float>
  store <2 x float> %49, ptr %2, align 8, !tbaa !12
  call void @r_squared(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %4, ptr noundef nonnull %2)
  %50 = call i64 @clock() #6
  store i64 %50, ptr @end, align 8, !tbaa !5
  %51 = load i64, ptr @start, align 8, !tbaa !5
  %52 = sub nsw i64 %50, %51
  %53 = sitofp i64 %52 to double
  %54 = fdiv double %53, 1.000000e+06
  %55 = fmul double %54, 1.000000e+03
  %56 = getelementptr inbounds i8, ptr %2, i64 16
  store double %55, ptr %56, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  ret void

57:                                               ; preds = %57, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %57 ]
  %58 = phi float [ 0.000000e+00, %.lr.ph.new ], [ %80, %57 ]
  %59 = phi float [ 0.000000e+00, %.lr.ph.new ], [ %78, %57 ]
  %60 = phi <2 x float> [ zeroinitializer, %.lr.ph.new ], [ %73, %57 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %57 ]
  %61 = getelementptr inbounds %struct.data_t, ptr %1, i64 %indvars.iv
  %62 = load <2 x float>, ptr %61, align 4, !tbaa !12
  %63 = fadd <2 x float> %62, %60
  %64 = extractelement <2 x float> %62, i64 0
  %65 = fpext float %64 to double
  %square24 = fmul double %65, %65
  %66 = fpext float %59 to double
  %67 = fadd double %square24, %66
  %68 = fptrunc double %67 to float
  %69 = extractelement <2 x float> %62, i64 1
  %70 = tail call float @llvm.fmuladd.f32(float %64, float %69, float %58)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %71 = getelementptr inbounds %struct.data_t, ptr %1, i64 %indvars.iv.next
  %72 = load <2 x float>, ptr %71, align 4, !tbaa !12
  %73 = fadd <2 x float> %72, %63
  %74 = extractelement <2 x float> %72, i64 0
  %75 = fpext float %74 to double
  %square24.1 = fmul double %75, %75
  %76 = fpext float %68 to double
  %77 = fadd double %square24.1, %76
  %78 = fptrunc double %77 to float
  %79 = extractelement <2 x float> %72, i64 1
  %80 = tail call float @llvm.fmuladd.f32(float %74, float %79, float %70)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 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.unr-lcssa.loopexit, label %57, !llvm.loop !23
}

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

; Function Attrs: nounwind uwtable
declare hidden void @r_squared(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 4}
!15 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!16 = !{!15, !13, i64 12}
!17 = !{!15, !13, i64 8}
!18 = !{!15, !13, i64 0}
!19 = !{!20, !22, i64 16}
!20 = !{!"", !13, i64 0, !13, i64 4, !21, i64 8, !22, i64 16}
!21 = !{!"int", !7, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass