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

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

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [9 x i8], align 1
@__func__.background_ncdm_M_from_Omega = external hidden unnamed_addr constant [29 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 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 uwtable
declare dso_local i32 @background_ncdm_momenta(ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @background_ncdm_M_from_Omega(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca [2048 x i8], align 16
  %20 = alloca [2048 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 50, ptr %15, align 4, !tbaa !9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.background, ptr %21, i32 0, i32 0
  %23 = load double, ptr %22, align 8, !tbaa !11
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.background, ptr %24, i32 0, i32 0
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = fmul double %23, %26
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.background, ptr %28, i32 0, i32 31
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds double, ptr %30, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !16
  %35 = fmul double %27, %34
  store double %35, ptr %8, align 8, !tbaa !16
  store double 0.000000e+00, ptr %11, align 8, !tbaa !16
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.background, ptr %36, i32 0, i32 133
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds ptr, ptr %38, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.background, ptr %43, i32 0, i32 134
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %45, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.background, ptr %50, i32 0, i32 138
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i32, ptr %52, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = load double, ptr %11, align 8, !tbaa !16
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.background, ptr %58, i32 0, i32 140
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = call i32 @background_ncdm_momenta(ptr noundef %42, ptr noundef %49, i32 noundef %56, double noundef %57, double noundef %64, double noundef 0.000000e+00, ptr noundef %10, ptr noundef %9, ptr noundef null, ptr noundef null, ptr noundef null)
  %66 = load double, ptr %8, align 8, !tbaa !16
  %67 = load double, ptr %9, align 8, !tbaa !16
  %68 = fcmp olt double %66, %67
  br i1 %68, label %69, label %96

69:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #4
  %70 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.background, ptr %72, i32 0, i32 31
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !16
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.background, ptr %79, i32 0, i32 31
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = load i32, ptr %7, 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 !16
  %86 = load double, ptr %9, align 8, !tbaa !16
  %87 = fmul double %85, %86
  %88 = load double, ptr %8, align 8, !tbaa !16
  %89 = fdiv double %87, %88
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %70, ptr noundef @.str.80, i32 noundef %71, double noundef %78, double noundef %89)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #4
  %90 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %91 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %90, ptr noundef @.str.1, ptr noundef @.str.81, ptr noundef %91)
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.background, ptr %92, i32 0, i32 149
  %94 = getelementptr inbounds [2048 x i8], ptr %93, i64 0, i64 0
  %95 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %94, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_M_from_Omega, i32 noundef 1597, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %185

96:                                               ; preds = %3
  %97 = load double, ptr %8, align 8, !tbaa !16
  %98 = load double, ptr %10, align 8, !tbaa !16
  %99 = fdiv double %97, %98
  store double %99, ptr %11, align 8, !tbaa !16
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %169, %96
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = icmp sle i32 %101, %102
  br i1 %103, label %104, label %172

104:                                              ; preds = %100
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.background, ptr %105, i32 0, i32 133
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.background, ptr %112, i32 0, i32 134
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = load i32, ptr %7, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.background, ptr %119, i32 0, i32 138
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr %121, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load double, ptr %11, align 8, !tbaa !16
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.background, ptr %127, i32 0, i32 140
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = load i32, ptr %7, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %129, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !16
  %134 = call i32 @background_ncdm_momenta(ptr noundef %111, ptr noundef %118, i32 noundef %125, double noundef %126, double noundef %133, double noundef 0.000000e+00, ptr noundef null, ptr noundef %9, ptr noundef null, ptr noundef %13, ptr noundef null)
  %135 = load double, ptr %8, align 8, !tbaa !16
  %136 = load double, ptr %9, align 8, !tbaa !16
  %137 = fsub double %135, %136
  %138 = load double, ptr %13, align 8, !tbaa !16
  %139 = fdiv double %137, %138
  store double %139, ptr %12, align 8, !tbaa !16
  %140 = load double, ptr %11, align 8, !tbaa !16
  %141 = load double, ptr %12, align 8, !tbaa !16
  %142 = fadd double %140, %141
  %143 = fcmp olt double %142, 0.000000e+00
  br i1 %143, label %144, label %148

144:                                              ; preds = %104
  %145 = load double, ptr %11, align 8, !tbaa !16
  %146 = fneg double %145
  %147 = fdiv double %146, 2.000000e+00
  store double %147, ptr %12, align 8, !tbaa !16
  br label %148

148:                                              ; preds = %144, %104
  %149 = load double, ptr %12, align 8, !tbaa !16
  %150 = load double, ptr %11, align 8, !tbaa !16
  %151 = fadd double %150, %149
  store double %151, ptr %11, align 8, !tbaa !16
  %152 = load double, ptr %12, align 8, !tbaa !16
  %153 = load double, ptr %11, align 8, !tbaa !16
  %154 = fdiv double %152, %153
  %155 = call double @llvm.fabs.f64(double %154)
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.precision, ptr %156, i32 0, i32 5
  %158 = load double, ptr %157, align 8, !tbaa !21
  %159 = fcmp olt double %155, %158
  br i1 %159, label %160, label %168

160:                                              ; preds = %148
  %161 = load double, ptr %11, align 8, !tbaa !16
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.background, ptr %162, i32 0, i32 30
  %164 = load ptr, ptr %163, align 8, !tbaa !23
  %165 = load i32, ptr %7, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  store double %161, ptr %167, align 8, !tbaa !16
  br label %172

168:                                              ; preds = %148
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %14, align 4, !tbaa !9
  br label %100, !llvm.loop !24

172:                                              ; preds = %160, %100
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = icmp sge i32 %173, %174
  br i1 %175, label %176, label %184

176:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #4
  %177 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %177, ptr noundef @.str.82)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #4
  %178 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %179 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %178, ptr noundef @.str.1, ptr noundef @.str.83, ptr noundef %179)
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.background, ptr %180, i32 0, i32 149
  %182 = getelementptr inbounds [2048 x i8], ptr %181, i64 0, i64 0
  %183 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %182, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_M_from_Omega, i32 noundef 1626, ptr noundef %183)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #4
  store i32 1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %185

184:                                              ; preds = %172
  store i32 0, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %185

185:                                              ; preds = %184, %176, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %186 = load i32, ptr %4, align 4
  ret i32 %186
}

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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !13, i64 0}
!12 = !{!"background", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !10, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !14, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !14, i64 176, !13, i64 184, !13, i64 192, !6, i64 200, !10, i64 208, !10, i64 212, !13, i64 216, !10, i64 224, !6, i64 232, !6, i64 240, !13, i64 248, !6, i64 256, !13, i64 264, !6, i64 272, !13, i64 280, !6, i64 288, !13, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !10, i64 360, !6, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !13, i64 408, !13, i64 416, !13, i64 424, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !14, i64 724, !14, i64 726, !14, i64 728, !14, i64 730, !14, i64 732, !14, i64 734, !14, i64 736, !14, i64 738, !14, i64 740, !14, i64 742, !14, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !14, i64 840, !14, i64 842, !14, i64 844, !14, i64 846, !14, i64 848, !14, i64 850, !7, i64 852, !14, i64 2900, !7, i64 2902}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !6, i64 240}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 776}
!18 = !{!12, !6, i64 784}
!19 = !{!12, !6, i64 816}
!20 = !{!12, !6, i64 832}
!21 = !{!22, !13, i64 40}
!22 = !{!"precision", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !7, i64 104, !13, i64 360, !10, i64 368, !13, i64 376, !10, i64 384, !10, i64 388, !13, i64 392, !10, i64 400, !13, i64 408, !10, i64 416, !13, i64 424, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456, !13, i64 464, !13, i64 472, !13, i64 480, !13, i64 488, !13, i64 496, !13, i64 504, !13, i64 512, !13, i64 520, !13, i64 528, !13, i64 536, !13, i64 544, !13, i64 552, !13, i64 560, !13, i64 568, !13, i64 576, !13, i64 584, !13, i64 592, !13, i64 600, !13, i64 608, !13, i64 616, !10, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !13, i64 1400, !13, i64 1408, !13, i64 1416, !13, i64 1424, !13, i64 1432, !13, i64 1440, !13, i64 1448, !13, i64 1456, !13, i64 1464, !13, i64 1472, !13, i64 1480, !13, i64 1488, !13, i64 1496, !13, i64 1504, !13, i64 1512, !13, i64 1520, !10, i64 1528, !13, i64 1536, !13, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !13, i64 1584, !13, i64 1592, !13, i64 1600, !13, i64 1608, !13, i64 1616, !13, i64 1624, !13, i64 1632, !13, i64 1640, !10, i64 1648, !13, i64 1656, !13, i64 1664, !10, i64 1672, !13, i64 1680, !13, i64 1688, !10, i64 1696, !13, i64 1704, !10, i64 1712, !13, i64 1720, !13, i64 1728, !10, i64 1736, !13, i64 1744, !13, i64 1752, !13, i64 1760, !10, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !10, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !13, i64 1872, !10, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !13, i64 1912, !13, i64 1920, !13, i64 1928, !13, i64 1936, !13, i64 1944, !13, i64 1952, !13, i64 1960, !13, i64 1968, !13, i64 1976, !13, i64 1984, !13, i64 1992, !13, i64 2000, !13, i64 2008, !13, i64 2016, !13, i64 2024, !13, i64 2032, !13, i64 2040, !13, i64 2048, !13, i64 2056, !13, i64 2064, !13, i64 2072, !13, i64 2080, !13, i64 2088, !13, i64 2096, !13, i64 2104, !13, i64 2112, !13, i64 2120, !13, i64 2128, !13, i64 2136, !13, i64 2144, !13, i64 2152, !13, i64 2160, !13, i64 2168, !13, i64 2176, !13, i64 2184, !13, i64 2192, !13, i64 2200, !13, i64 2208, !13, i64 2216, !13, i64 2224, !13, i64 2232, !13, i64 2240, !13, i64 2248, !10, i64 2256, !13, i64 2264, !13, i64 2272, !13, i64 2280, !13, i64 2288, !10, i64 2296, !13, i64 2304, !13, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !13, i64 2336, !13, i64 2344, !7, i64 2352}
!23 = !{!12, !6, i64 232}
!24 = distinct !{!24, !25}
!25 = !{!"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.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [125 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [9 x i8], align 1
@__func__.background_ncdm_M_from_Omega = external hidden unnamed_addr constant [29 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [14 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: nounwind uwtable
declare dso_local i32 @background_ncdm_momenta(ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @background_ncdm_M_from_Omega(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %11 = load double, ptr %1, align 8, !tbaa !5
  %12 = fmul double %11, %11
  %13 = getelementptr inbounds i8, ptr %1, i64 240
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = sext i32 %2 to i64
  %16 = getelementptr inbounds double, ptr %14, i64 %15
  %17 = load double, ptr %16, align 8, !tbaa !14
  %18 = fmul double %12, %17
  %19 = getelementptr inbounds i8, ptr %1, i64 776
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds ptr, ptr %20, i64 %15
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %23 = getelementptr inbounds i8, ptr %1, i64 784
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds ptr, ptr %24, i64 %15
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %1, i64 816
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = getelementptr inbounds i32, ptr %28, i64 %15
  %30 = load i32, ptr %29, align 4, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %1, i64 832
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = getelementptr inbounds double, ptr %32, i64 %15
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = call i32 @background_ncdm_momenta(ptr noundef %22, ptr noundef %26, i32 noundef %30, double noundef 0.000000e+00, double noundef %34, double noundef 0.000000e+00, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef null, ptr noundef null, ptr noundef null)
  %36 = load double, ptr %4, align 8, !tbaa !14
  %37 = fcmp olt double %18, %36
  br i1 %37, label %38, label %45

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #4
  %39 = load ptr, ptr %13, align 8, !tbaa !13
  %40 = getelementptr inbounds double, ptr %39, i64 %15
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = fmul double %36, %41
  %43 = fdiv double %42, %18
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.80, i32 noundef %2, double noundef %41, double noundef %43) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.81, ptr noundef nonnull %7) #4
  %44 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %44, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_M_from_Omega, i32 noundef 1597, ptr noundef nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #4
  br label %83

45:                                               ; preds = %3
  %46 = load double, ptr %5, align 8, !tbaa !14
  %47 = fdiv double %18, %46
  %48 = getelementptr inbounds i8, ptr %0, i64 40
  br label %49

49:                                               ; preds = %45, %75
  %.04955 = phi i32 [ 1, %45 ], [ %76, %75 ]
  %.05154 = phi double [ %47, %45 ], [ %70, %75 ]
  %50 = load ptr, ptr %19, align 8, !tbaa !15
  %51 = getelementptr inbounds ptr, ptr %50, i64 %15
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = load ptr, ptr %23, align 8, !tbaa !17
  %54 = getelementptr inbounds ptr, ptr %53, i64 %15
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = load ptr, ptr %27, align 8, !tbaa !18
  %57 = getelementptr inbounds i32, ptr %56, i64 %15
  %58 = load i32, ptr %57, align 4, !tbaa !19
  %59 = load ptr, ptr %31, align 8, !tbaa !20
  %60 = getelementptr inbounds double, ptr %59, i64 %15
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = call i32 @background_ncdm_momenta(ptr noundef %52, ptr noundef %55, i32 noundef %58, double noundef %.05154, double noundef %61, double noundef 0.000000e+00, ptr noundef null, ptr noundef nonnull %4, ptr noundef null, ptr noundef nonnull %6, ptr noundef null)
  %63 = load double, ptr %4, align 8, !tbaa !14
  %64 = fsub double %18, %63
  %65 = load double, ptr %6, align 8, !tbaa !14
  %66 = fdiv double %64, %65
  %67 = fadd double %.05154, %66
  %68 = fcmp olt double %67, 0.000000e+00
  %69 = fmul double %.05154, -5.000000e-01
  %.050 = select i1 %68, double %69, double %66
  %70 = fadd double %.05154, %.050
  %71 = fdiv double %.050, %70
  %72 = call double @llvm.fabs.f64(double %71)
  %73 = load double, ptr %48, align 8, !tbaa !21
  %74 = fcmp olt double %72, %73
  br i1 %74, label %77, label %75

75:                                               ; preds = %49
  %76 = add nuw nsw i32 %.04955, 1
  %exitcond.not = icmp eq i32 %76, 51
  br i1 %exitcond.not, label %.thread, label %49, !llvm.loop !23

77:                                               ; preds = %49
  %78 = getelementptr inbounds i8, ptr %1, i64 232
  %79 = load ptr, ptr %78, align 8, !tbaa !25
  %80 = getelementptr inbounds double, ptr %79, i64 %15
  store double %70, ptr %80, align 8, !tbaa !14
  %81 = icmp eq i32 %.04955, 50
  br i1 %81, label %.thread, label %83

.thread:                                          ; preds = %75, %77
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.82) #4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.83, ptr noundef nonnull %9) #4
  %82 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %82, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_M_from_Omega, i32 noundef 1626, ptr noundef nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #4
  br label %83

83:                                               ; preds = %77, %.thread, %38
  %.0 = phi i32 [ 1, %38 ], [ 1, %.thread ], [ 0, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i32 %.0
}

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 = { 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"background", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !7, i64 184, !7, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !7, i64 216, !10, i64 224, !12, i64 232, !12, i64 240, !7, i64 248, !12, i64 256, !7, i64 264, !12, i64 272, !7, i64 280, !12, i64 288, !7, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !10, i64 360, !12, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !11, i64 724, !11, i64 726, !11, i64 728, !11, i64 730, !11, i64 732, !11, i64 734, !11, i64 736, !11, i64 738, !11, i64 740, !11, i64 742, !11, i64 744, !12, i64 752, !12, i64 760, !12, i64 768, !12, i64 776, !12, i64 784, !12, i64 792, !12, i64 800, !12, i64 808, !12, i64 816, !12, i64 824, !12, i64 832, !11, i64 840, !11, i64 842, !11, i64 844, !11, i64 846, !11, i64 848, !11, i64 850, !8, i64 852, !11, i64 2900, !8, i64 2902}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !12, i64 240}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !12, i64 776}
!16 = !{!12, !12, i64 0}
!17 = !{!6, !12, i64 784}
!18 = !{!6, !12, i64 816}
!19 = !{!10, !10, i64 0}
!20 = !{!6, !12, i64 832}
!21 = !{!22, !7, i64 40}
!22 = !{!"precision", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !8, i64 104, !7, i64 360, !10, i64 368, !7, i64 376, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !7, i64 408, !10, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !10, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !7, i64 1400, !7, i64 1408, !7, i64 1416, !7, i64 1424, !7, i64 1432, !7, i64 1440, !7, i64 1448, !7, i64 1456, !7, i64 1464, !7, i64 1472, !7, i64 1480, !7, i64 1488, !7, i64 1496, !7, i64 1504, !7, i64 1512, !7, i64 1520, !10, i64 1528, !7, i64 1536, !7, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !7, i64 1584, !7, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !7, i64 1624, !7, i64 1632, !7, i64 1640, !10, i64 1648, !7, i64 1656, !7, i64 1664, !10, i64 1672, !7, i64 1680, !7, i64 1688, !10, i64 1696, !7, i64 1704, !10, i64 1712, !7, i64 1720, !7, i64 1728, !10, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !10, i64 1768, !7, i64 1776, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !10, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !7, i64 1928, !7, i64 1936, !7, i64 1944, !7, i64 1952, !7, i64 1960, !7, i64 1968, !7, i64 1976, !7, i64 1984, !7, i64 1992, !7, i64 2000, !7, i64 2008, !7, i64 2016, !7, i64 2024, !7, i64 2032, !7, i64 2040, !7, i64 2048, !7, i64 2056, !7, i64 2064, !7, i64 2072, !7, i64 2080, !7, i64 2088, !7, i64 2096, !7, i64 2104, !7, i64 2112, !7, i64 2120, !7, i64 2128, !7, i64 2136, !7, i64 2144, !7, i64 2152, !7, i64 2160, !7, i64 2168, !7, i64 2176, !7, i64 2184, !7, i64 2192, !7, i64 2200, !7, i64 2208, !7, i64 2216, !7, i64 2224, !7, i64 2232, !7, i64 2240, !7, i64 2248, !10, i64 2256, !7, i64 2264, !7, i64 2272, !7, i64 2280, !7, i64 2288, !10, i64 2296, !7, i64 2304, !7, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !7, i64 2336, !7, i64 2344, !8, i64 2352}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!6, !12, i64 232}


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