; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (nonlinear)

; 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.nonlinear = type { i32, i32, i32, double, double, double, i16, i32, i32, i32, ptr, i16, i16, i32, i32, i32, i32, i32, i16, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i16, [2048 x i8] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [120 x i8], align 1
@__func__.nonlinear_halofit_integrate = external hidden unnamed_addr constant [28 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [136 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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

; 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 double @exp(double noundef) #2

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

declare i32 @array_spline(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef signext, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @nonlinear_halofit_integrate(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8, i32 noundef %9, ptr noundef %10) #3 {
  %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 i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  %30 = alloca [2048 x i8], align 16
  %31 = alloca i32, align 4
  %32 = alloca [2048 x i8], align 16
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store i32 %2, ptr %15, align 4, !tbaa !9
  store i32 %3, ptr %16, align 4, !tbaa !9
  store i32 %4, ptr %17, align 4, !tbaa !9
  store i32 %5, ptr %18, align 4, !tbaa !9
  store i32 %6, ptr %19, align 4, !tbaa !9
  store i32 %7, ptr %20, align 4, !tbaa !9
  store double %8, ptr %21, align 8, !tbaa !11
  store i32 %9, ptr %22, align 4, !tbaa !9
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %33 = call double @pow(double noundef 0x400921FB54442D18, double noundef 2.000000e+00) #4
  %34 = fmul double 2.000000e+00, %33
  %35 = fdiv double 1.000000e+00, %34
  store double %35, ptr %29, align 8, !tbaa !11
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %105, %11
  %37 = load i32, ptr %28, align 4, !tbaa !9
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %40, label %108

40:                                               ; preds = %36
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = load i32, ptr %28, align 4, !tbaa !9
  %43 = load i32, ptr %16, align 4, !tbaa !9
  %44 = mul nsw i32 %42, %43
  %45 = load i32, ptr %17, align 4, !tbaa !9
  %46 = add nsw i32 %44, %45
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %41, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !11
  store double %49, ptr %24, align 8, !tbaa !11
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = load i32, ptr %28, align 4, !tbaa !9
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = mul nsw i32 %51, %52
  %54 = load i32, ptr %18, align 4, !tbaa !9
  %55 = add nsw i32 %53, %54
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %50, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  store double %58, ptr %25, align 8, !tbaa !11
  %59 = load double, ptr %24, align 8, !tbaa !11
  %60 = load double, ptr %24, align 8, !tbaa !11
  %61 = fmul double %59, %60
  %62 = load double, ptr %21, align 8, !tbaa !11
  %63 = fmul double %61, %62
  %64 = load double, ptr %21, align 8, !tbaa !11
  %65 = fmul double %63, %64
  store double %65, ptr %26, align 8, !tbaa !11
  %66 = load double, ptr %25, align 8, !tbaa !11
  %67 = load double, ptr %24, align 8, !tbaa !11
  %68 = fmul double %66, %67
  %69 = load double, ptr %24, align 8, !tbaa !11
  %70 = fmul double %68, %69
  %71 = load double, ptr %29, align 8, !tbaa !11
  %72 = fmul double %70, %71
  %73 = load double, ptr %26, align 8, !tbaa !11
  %74 = fneg double %73
  %75 = call double @exp(double noundef %74) #4
  %76 = fmul double %72, %75
  store double %76, ptr %27, align 8, !tbaa !11
  %77 = load i32, ptr %22, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %79, label %84

79:                                               ; preds = %40
  %80 = load double, ptr %26, align 8, !tbaa !11
  %81 = fmul double 2.000000e+00, %80
  %82 = load double, ptr %27, align 8, !tbaa !11
  %83 = fmul double %82, %81
  store double %83, ptr %27, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %79, %40
  %85 = load i32, ptr %22, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 2
  br i1 %86, label %87, label %95

87:                                               ; preds = %84
  %88 = load double, ptr %26, align 8, !tbaa !11
  %89 = fmul double 4.000000e+00, %88
  %90 = load double, ptr %26, align 8, !tbaa !11
  %91 = fsub double 1.000000e+00, %90
  %92 = fmul double %89, %91
  %93 = load double, ptr %27, align 8, !tbaa !11
  %94 = fmul double %93, %92
  store double %94, ptr %27, align 8, !tbaa !11
  br label %95

95:                                               ; preds = %87, %84
  %96 = load double, ptr %27, align 8, !tbaa !11
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load i32, ptr %28, align 4, !tbaa !9
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = mul nsw i32 %98, %99
  %101 = load i32, ptr %19, align 4, !tbaa !9
  %102 = add nsw i32 %100, %101
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %97, i64 %103
  store double %96, ptr %104, align 8, !tbaa !11
  br label %105

105:                                              ; preds = %95
  %106 = load i32, ptr %28, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %28, align 4, !tbaa !9
  br label %36, !llvm.loop !13

108:                                              ; preds = %36
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = load i32, ptr %19, align 4, !tbaa !9
  %114 = load i32, ptr %20, align 4, !tbaa !9
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.nonlinear, ptr %115, i32 0, i32 45
  %117 = getelementptr inbounds [2048 x i8], ptr %116, i64 0, i64 0
  %118 = call i32 @array_spline(ptr noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef %113, i32 noundef %114, i16 noundef signext 0, ptr noundef %117)
  %119 = icmp eq i32 %118, 1
  br i1 %119, label %120, label %129

120:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #4
  %121 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.nonlinear, ptr %122, i32 0, i32 45
  %124 = getelementptr inbounds [2048 x i8], ptr %123, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %121, ptr noundef @.str.4, ptr noundef @.str.138, ptr noundef %124)
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.nonlinear, ptr %125, i32 0, i32 45
  %127 = getelementptr inbounds [2048 x i8], ptr %126, i64 0, i64 0
  %128 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %127, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_halofit_integrate, i32 noundef 3077, ptr noundef %128)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #4
  store i32 1, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %152

129:                                              ; preds = %108
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = load i32, ptr %19, align 4, !tbaa !9
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = load ptr, ptr %23, align 8, !tbaa !5
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.nonlinear, ptr %137, i32 0, i32 45
  %139 = getelementptr inbounds [2048 x i8], ptr %138, i64 0, i64 0
  %140 = call i32 @array_integrate_all_spline(ptr noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef %135, ptr noundef %136, ptr noundef %139)
  %141 = icmp eq i32 %140, 1
  br i1 %141, label %142, label %151

142:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #4
  %143 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.nonlinear, ptr %144, i32 0, i32 45
  %146 = getelementptr inbounds [2048 x i8], ptr %145, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %143, ptr noundef @.str.4, ptr noundef @.str.139, ptr noundef %146)
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.nonlinear, ptr %147, i32 0, i32 45
  %149 = getelementptr inbounds [2048 x i8], ptr %148, i64 0, i64 0
  %150 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %149, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_halofit_integrate, i32 noundef 3089, ptr noundef %150)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #4
  store i32 1, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %152

151:                                              ; preds = %129
  store i32 0, ptr %12, align 4
  store i32 1, ptr %31, align 4
  br label %152

152:                                              ; preds = %151, %142, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  %153 = load i32, ptr %12, align 4
  ret i32 %153
}

declare i32 @array_integrate_all_spline(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 "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 }

!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"}


; 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.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [120 x i8], align 1
@__func__.nonlinear_halofit_integrate = external hidden unnamed_addr constant [28 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [136 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #2

declare i32 @array_spline(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef signext, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_halofit_integrate(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, double noundef %8, i32 noundef %9, ptr noundef %10) local_unnamed_addr #3 {
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = icmp sgt i32 %2, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11
  %15 = sext i32 %3 to i64
  %16 = sext i32 %4 to i64
  %17 = sext i32 %5 to i64
  %18 = sext i32 %6 to i64
  %wide.trip.count68 = zext nneg i32 %2 to i64
  %invariant.gep82 = getelementptr double, ptr %1, i64 %16
  %invariant.gep84 = getelementptr double, ptr %1, i64 %17
  %invariant.gep86 = getelementptr double, ptr %1, i64 %18
  switch i32 %9, label %.lr.ph.split.split [
    i32 1, label %.lr.ph.split.us.split.preheader
    i32 2, label %.lr.ph.split.split.us.preheader
  ]

.lr.ph.split.split.us.preheader:                  ; preds = %.lr.ph
  %19 = insertelement <2 x double> poison, double %8, i64 0
  br label %.lr.ph.split.split.us

.lr.ph.split.us.split.preheader:                  ; preds = %.lr.ph
  %20 = insertelement <2 x double> poison, double %8, i64 0
  br label %.lr.ph.split.us.split

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us.split.preheader, %.lr.ph.split.us.split
  %indvars.iv60 = phi i64 [ %indvars.iv.next61, %.lr.ph.split.us.split ], [ 0, %.lr.ph.split.us.split.preheader ]
  %21 = mul nsw i64 %indvars.iv60, %15
  %gep77 = getelementptr double, ptr %invariant.gep82, i64 %21
  %22 = load double, ptr %gep77, align 8, !tbaa !5
  %gep79 = getelementptr double, ptr %invariant.gep84, i64 %21
  %23 = load double, ptr %gep79, align 8, !tbaa !5
  %24 = fmul double %22, %22
  %25 = insertelement <2 x double> poison, double %24, i64 0
  %26 = insertelement <2 x double> %25, double %22, i64 1
  %27 = insertelement <2 x double> %20, double %23, i64 1
  %28 = fmul <2 x double> %26, %27
  %29 = insertelement <2 x double> %26, double %8, i64 0
  %30 = fmul <2 x double> %29, %28
  %31 = extractelement <2 x double> %30, i64 0
  %32 = fneg double %31
  %33 = tail call double @exp(double noundef %32) #4
  %34 = fmul <2 x double> %30, <double 2.000000e+00, double 0x3FA9F02F6222C720>
  %35 = extractelement <2 x double> %34, i64 1
  %36 = fmul double %33, %35
  %37 = extractelement <2 x double> %34, i64 0
  %38 = fmul double %37, %36
  %gep81 = getelementptr double, ptr %invariant.gep86, i64 %21
  store double %38, ptr %gep81, align 8, !tbaa !5
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %exitcond64.not = icmp eq i64 %indvars.iv.next61, %wide.trip.count68
  br i1 %exitcond64.not, label %._crit_edge, label %.lr.ph.split.us.split, !llvm.loop !9

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split.split.us.preheader, %.lr.ph.split.split.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split.split.us.preheader ]
  %39 = mul nsw i64 %indvars.iv, %15
  %gep = getelementptr double, ptr %invariant.gep82, i64 %39
  %40 = load double, ptr %gep, align 8, !tbaa !5
  %gep73 = getelementptr double, ptr %invariant.gep84, i64 %39
  %41 = load double, ptr %gep73, align 8, !tbaa !5
  %42 = fmul double %40, %40
  %43 = insertelement <2 x double> poison, double %42, i64 0
  %44 = insertelement <2 x double> %43, double %40, i64 1
  %45 = insertelement <2 x double> %19, double %41, i64 1
  %46 = fmul <2 x double> %44, %45
  %47 = insertelement <2 x double> %44, double %8, i64 0
  %48 = fmul <2 x double> %47, %46
  %49 = extractelement <2 x double> %48, i64 0
  %50 = fneg double %49
  %51 = tail call double @exp(double noundef %50) #4
  %52 = fmul <2 x double> %48, <double 4.000000e+00, double 0x3FA9F02F6222C720>
  %53 = fsub double 1.000000e+00, %49
  %54 = insertelement <2 x double> poison, double %53, i64 0
  %55 = insertelement <2 x double> %54, double %51, i64 1
  %56 = fmul <2 x double> %55, %52
  %shift = shufflevector <2 x double> %56, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %57 = fmul <2 x double> %56, %shift
  %58 = extractelement <2 x double> %57, i64 0
  %gep75 = getelementptr double, ptr %invariant.gep86, i64 %39
  store double %58, ptr %gep75, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count68
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split.split.us, !llvm.loop !9

.lr.ph.split.split:                               ; preds = %.lr.ph, %.lr.ph.split.split
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.lr.ph.split.split ], [ 0, %.lr.ph ]
  %59 = mul nsw i64 %indvars.iv65, %15
  %gep83 = getelementptr double, ptr %invariant.gep82, i64 %59
  %60 = load double, ptr %gep83, align 8, !tbaa !5
  %gep85 = getelementptr double, ptr %invariant.gep84, i64 %59
  %61 = load double, ptr %gep85, align 8, !tbaa !5
  %62 = fmul double %60, %61
  %63 = fmul double %60, %62
  %64 = fmul double %63, 0x3FA9F02F6222C720
  %65 = fneg double %60
  %66 = fmul double %60, %65
  %67 = fmul double %66, %8
  %68 = fmul double %67, %8
  %69 = tail call double @exp(double noundef %68) #4
  %70 = fmul double %69, %64
  %gep87 = getelementptr double, ptr %invariant.gep86, i64 %59
  store double %70, ptr %gep87, align 8, !tbaa !5
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count68
  br i1 %exitcond69.not, label %._crit_edge, label %.lr.ph.split.split, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph.split.split.us, %.lr.ph.split.us.split, %.lr.ph.split.split, %11
  %71 = getelementptr inbounds i8, ptr %0, i64 266
  %72 = tail call i32 @array_spline(ptr noundef %1, i32 noundef %3, i32 noundef %2, i32 noundef %4, i32 noundef %6, i32 noundef %7, i16 noundef signext 0, ptr noundef nonnull %71) #4
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.138, ptr noundef nonnull %71) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %71, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_halofit_integrate, i32 noundef 3077, ptr noundef nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #4
  br label %79

75:                                               ; preds = %._crit_edge
  %76 = tail call i32 @array_integrate_all_spline(ptr noundef %1, i32 noundef %3, i32 noundef %2, i32 noundef %4, i32 noundef %6, i32 noundef %7, ptr noundef %10, ptr noundef nonnull %71) #4
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.139, ptr noundef nonnull %71) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %71, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_halofit_integrate, i32 noundef 3089, ptr noundef nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #4
  br label %79

79:                                               ; preds = %75, %78, %74
  %.0 = phi i32 [ 1, %74 ], [ 1, %78 ], [ 0, %75 ]
  ret i32 %.0
}

declare i32 @array_integrate_all_spline(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 nofree nounwind willreturn memory(write) "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 }

!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.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass