; 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_parameters_for_distributions = type { ptr, i32, i32, ptr, ptr, ptr, i32 }
%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.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__.background_ncdm_init = external hidden unnamed_addr constant [21 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [211 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [223 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [217 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [50 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 @pow(double noundef, double noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @background_ncdm_distribution(ptr noundef, double noundef, ptr noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @background_ncdm_test_function(ptr noundef, double noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @background_ncdm_init(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca %struct.background_parameters_for_distributions, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca [2048 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca [2048 x i8], align 16
  %29 = alloca i32, align 4
  %30 = alloca [2048 x i8], align 16
  %31 = alloca i32, align 4
  %32 = alloca [2048 x i8], align 16
  %33 = alloca i32, align 4
  %34 = alloca [2048 x i8], align 16
  %35 = alloca i32, align 4
  %36 = alloca [2048 x i8], align 16
  %37 = alloca i32, align 4
  %38 = alloca [2048 x i8], align 16
  %39 = alloca i32, align 4
  %40 = alloca [2048 x i8], align 16
  %41 = alloca [2048 x i8], align 16
  %42 = alloca [2048 x i8], align 16
  %43 = alloca i32, align 4
  %44 = alloca [2048 x i8], align 16
  %45 = alloca i32, align 4
  %46 = alloca [2048 x i8], align 16
  %47 = alloca i32, align 4
  %48 = alloca [2048 x i8], align 16
  %49 = alloca [2048 x i8], align 16
  %50 = alloca i32, align 4
  %51 = alloca [2048 x i8], align 16
  %52 = alloca i32, align 4
  %53 = alloca [2048 x i8], align 16
  %54 = alloca [2048 x i8], align 16
  %55 = alloca i32, align 4
  %56 = alloca [2048 x i8], align 16
  %57 = alloca i32, align 4
  %58 = alloca [2048 x i8], align 16
  %59 = alloca [2048 x i8], align 16
  %60 = alloca i32, align 4
  %61 = alloca [2048 x i8], align 16
  %62 = alloca i32, align 4
  %63 = alloca [2048 x i8], align 16
  %64 = alloca i32, align 4
  %65 = alloca [2048 x i8], align 16
  %66 = alloca i32, align 4
  %67 = alloca [2048 x i8], align 16
  %68 = alloca [2048 x i8], align 16
  %69 = alloca i32, align 4
  %70 = alloca [2048 x i8], align 16
  %71 = alloca [2048 x i8], align 16
  %72 = alloca [2048 x i8], align 16
  %73 = alloca [2048 x i8], align 16
  %74 = alloca [2048 x i8], align 16
  %75 = alloca [2048 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 0
  store ptr %76, ptr %77, align 8, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.background, ptr %78, i32 0, i32 29
  %80 = load i32, ptr %79, align 8, !tbaa !12
  %81 = sext i32 %80 to i64
  %82 = mul i64 8, %81
  %83 = call noalias ptr @malloc(i64 noundef %82) #8
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.background, ptr %84, i32 0, i32 135
  store ptr %83, ptr %85, align 8, !tbaa !16
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.background, ptr %86, i32 0, i32 135
  %88 = load ptr, ptr %87, align 8, !tbaa !16
  %89 = icmp eq ptr %88, null
  br i1 %89, label %90, label %103

90:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.background, ptr %91, i32 0, i32 29
  %93 = load i32, ptr %92, align 8, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = mul i64 8, %94
  %96 = trunc i64 %95 to i32
  store i32 %96, ptr %24, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #7
  %97 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %98 = load i32, ptr %24, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %97, ptr noundef @.str.47, ptr noundef @.str.48, i32 noundef %98)
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.background, ptr %99, i32 0, i32 149
  %101 = getelementptr inbounds [2048 x i8], ptr %100, i64 0, i64 0
  %102 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %101, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1285, ptr noundef %102)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %1502

103:                                              ; preds = %2
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.background, ptr %104, i32 0, i32 29
  %106 = load i32, ptr %105, align 8, !tbaa !12
  %107 = sext i32 %106 to i64
  %108 = mul i64 8, %107
  %109 = call noalias ptr @malloc(i64 noundef %108) #8
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.background, ptr %110, i32 0, i32 136
  store ptr %109, ptr %111, align 8, !tbaa !18
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.background, ptr %112, i32 0, i32 136
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = icmp eq ptr %114, null
  br i1 %115, label %116, label %129

116:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.background, ptr %117, i32 0, i32 29
  %119 = load i32, ptr %118, align 8, !tbaa !12
  %120 = sext i32 %119 to i64
  %121 = mul i64 8, %120
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr %27, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #7
  %123 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %124 = load i32, ptr %27, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %123, ptr noundef @.str.47, ptr noundef @.str.49, i32 noundef %124)
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.background, ptr %125, i32 0, i32 149
  %127 = getelementptr inbounds [2048 x i8], ptr %126, i64 0, i64 0
  %128 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %127, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1286, ptr noundef %128)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %1502

129:                                              ; preds = %103
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.background, ptr %130, i32 0, i32 29
  %132 = load i32, ptr %131, align 8, !tbaa !12
  %133 = sext i32 %132 to i64
  %134 = mul i64 8, %133
  %135 = call noalias ptr @malloc(i64 noundef %134) #8
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.background, ptr %136, i32 0, i32 133
  store ptr %135, ptr %137, align 8, !tbaa !19
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.background, ptr %138, i32 0, i32 133
  %140 = load ptr, ptr %139, align 8, !tbaa !19
  %141 = icmp eq ptr %140, null
  br i1 %141, label %142, label %155

142:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.background, ptr %143, i32 0, i32 29
  %145 = load i32, ptr %144, align 8, !tbaa !12
  %146 = sext i32 %145 to i64
  %147 = mul i64 8, %146
  %148 = trunc i64 %147 to i32
  store i32 %148, ptr %29, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #7
  %149 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %150 = load i32, ptr %29, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %149, ptr noundef @.str.47, ptr noundef @.str.50, i32 noundef %150)
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.background, ptr %151, i32 0, i32 149
  %153 = getelementptr inbounds [2048 x i8], ptr %152, i64 0, i64 0
  %154 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %153, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1287, ptr noundef %154)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %1502

155:                                              ; preds = %129
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.background, ptr %156, i32 0, i32 29
  %158 = load i32, ptr %157, align 8, !tbaa !12
  %159 = sext i32 %158 to i64
  %160 = mul i64 8, %159
  %161 = call noalias ptr @malloc(i64 noundef %160) #8
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.background, ptr %162, i32 0, i32 134
  store ptr %161, ptr %163, align 8, !tbaa !20
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.background, ptr %164, i32 0, i32 134
  %166 = load ptr, ptr %165, align 8, !tbaa !20
  %167 = icmp eq ptr %166, null
  br i1 %167, label %168, label %181

168:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.background, ptr %169, i32 0, i32 29
  %171 = load i32, ptr %170, align 8, !tbaa !12
  %172 = sext i32 %171 to i64
  %173 = mul i64 8, %172
  %174 = trunc i64 %173 to i32
  store i32 %174, ptr %31, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #7
  %175 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %176 = load i32, ptr %31, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %175, ptr noundef @.str.47, ptr noundef @.str.51, i32 noundef %176)
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.background, ptr %177, i32 0, i32 149
  %179 = getelementptr inbounds [2048 x i8], ptr %178, i64 0, i64 0
  %180 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %179, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1288, ptr noundef %180)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %1502

181:                                              ; preds = %155
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.background, ptr %182, i32 0, i32 29
  %184 = load i32, ptr %183, align 8, !tbaa !12
  %185 = sext i32 %184 to i64
  %186 = mul i64 8, %185
  %187 = call noalias ptr @malloc(i64 noundef %186) #8
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.background, ptr %188, i32 0, i32 137
  store ptr %187, ptr %189, align 8, !tbaa !21
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.background, ptr %190, i32 0, i32 137
  %192 = load ptr, ptr %191, align 8, !tbaa !21
  %193 = icmp eq ptr %192, null
  br i1 %193, label %194, label %207

194:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.background, ptr %195, i32 0, i32 29
  %197 = load i32, ptr %196, align 8, !tbaa !12
  %198 = sext i32 %197 to i64
  %199 = mul i64 8, %198
  %200 = trunc i64 %199 to i32
  store i32 %200, ptr %33, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #7
  %201 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %202 = load i32, ptr %33, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %201, ptr noundef @.str.47, ptr noundef @.str.52, i32 noundef %202)
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.background, ptr %203, i32 0, i32 149
  %205 = getelementptr inbounds [2048 x i8], ptr %204, i64 0, i64 0
  %206 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %205, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1289, ptr noundef %206)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %1502

207:                                              ; preds = %181
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.background, ptr %208, i32 0, i32 29
  %210 = load i32, ptr %209, align 8, !tbaa !12
  %211 = sext i32 %210 to i64
  %212 = mul i64 4, %211
  %213 = call noalias ptr @malloc(i64 noundef %212) #8
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.background, ptr %214, i32 0, i32 139
  store ptr %213, ptr %215, align 8, !tbaa !22
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.background, ptr %216, i32 0, i32 139
  %218 = load ptr, ptr %217, align 8, !tbaa !22
  %219 = icmp eq ptr %218, null
  br i1 %219, label %220, label %233

220:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.background, ptr %221, i32 0, i32 29
  %223 = load i32, ptr %222, align 8, !tbaa !12
  %224 = sext i32 %223 to i64
  %225 = mul i64 4, %224
  %226 = trunc i64 %225 to i32
  store i32 %226, ptr %35, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #7
  %227 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %228 = load i32, ptr %35, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %227, ptr noundef @.str.47, ptr noundef @.str.53, i32 noundef %228)
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.background, ptr %229, i32 0, i32 149
  %231 = getelementptr inbounds [2048 x i8], ptr %230, i64 0, i64 0
  %232 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %231, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1292, ptr noundef %232)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %1502

233:                                              ; preds = %207
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.background, ptr %234, i32 0, i32 29
  %236 = load i32, ptr %235, align 8, !tbaa !12
  %237 = sext i32 %236 to i64
  %238 = mul i64 4, %237
  %239 = call noalias ptr @malloc(i64 noundef %238) #8
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.background, ptr %240, i32 0, i32 138
  store ptr %239, ptr %241, align 8, !tbaa !23
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.background, ptr %242, i32 0, i32 138
  %244 = load ptr, ptr %243, align 8, !tbaa !23
  %245 = icmp eq ptr %244, null
  br i1 %245, label %246, label %259

246:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.background, ptr %247, i32 0, i32 29
  %249 = load i32, ptr %248, align 8, !tbaa !12
  %250 = sext i32 %249 to i64
  %251 = mul i64 4, %250
  %252 = trunc i64 %251 to i32
  store i32 %252, ptr %37, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #7
  %253 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  %254 = load i32, ptr %37, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %253, ptr noundef @.str.47, ptr noundef @.str.54, i32 noundef %254)
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.background, ptr %255, i32 0, i32 149
  %257 = getelementptr inbounds [2048 x i8], ptr %256, i64 0, i64 0
  %258 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %257, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1293, ptr noundef %258)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %1502

259:                                              ; preds = %233
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.background, ptr %260, i32 0, i32 29
  %262 = load i32, ptr %261, align 8, !tbaa !12
  %263 = sext i32 %262 to i64
  %264 = mul i64 8, %263
  %265 = call noalias ptr @malloc(i64 noundef %264) #8
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.background, ptr %266, i32 0, i32 140
  store ptr %265, ptr %267, align 8, !tbaa !24
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.background, ptr %268, i32 0, i32 140
  %270 = load ptr, ptr %269, align 8, !tbaa !24
  %271 = icmp eq ptr %270, null
  br i1 %271, label %272, label %285

272:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.background, ptr %273, i32 0, i32 29
  %275 = load i32, ptr %274, align 8, !tbaa !12
  %276 = sext i32 %275 to i64
  %277 = mul i64 8, %276
  %278 = trunc i64 %277 to i32
  store i32 %278, ptr %39, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %40) #7
  %279 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  %280 = load i32, ptr %39, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %279, ptr noundef @.str.47, ptr noundef @.str.55, i32 noundef %280)
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.background, ptr %281, i32 0, i32 149
  %283 = getelementptr inbounds [2048 x i8], ptr %282, i64 0, i64 0
  %284 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %283, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1294, ptr noundef %284)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %40) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %1502

285:                                              ; preds = %259
  store i32 0, ptr %7, align 4, !tbaa !17
  store i32 0, ptr %11, align 4, !tbaa !17
  br label %286

286:                                              ; preds = %1498, %285
  %287 = load i32, ptr %7, align 4, !tbaa !17
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.background, ptr %288, i32 0, i32 29
  %290 = load i32, ptr %289, align 8, !tbaa !12
  %291 = icmp slt i32 %287, %290
  br i1 %291, label %292, label %1501

292:                                              ; preds = %286
  %293 = load i32, ptr %7, align 4, !tbaa !17
  %294 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 1
  store i32 %293, ptr %294, align 8, !tbaa !25
  %295 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  store ptr null, ptr %295, align 8, !tbaa !26
  %296 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  store i32 0, ptr %296, align 4, !tbaa !27
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.background, ptr %297, i32 0, i32 40
  %299 = load ptr, ptr %298, align 8, !tbaa !28
  %300 = icmp ne ptr %299, null
  br i1 %300, label %301, label %466

301:                                              ; preds = %292
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.background, ptr %302, i32 0, i32 40
  %304 = load ptr, ptr %303, align 8, !tbaa !28
  %305 = load i32, ptr %7, align 4, !tbaa !17
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds i32, ptr %304, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !17
  %309 = icmp eq i32 %308, 1
  br i1 %309, label %310, label %466

310:                                              ; preds = %301
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.background, ptr %311, i32 0, i32 41
  %313 = load ptr, ptr %312, align 8, !tbaa !29
  %314 = load i32, ptr %11, align 4, !tbaa !17
  %315 = mul nsw i32 %314, 1024
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds i8, ptr %313, i64 %316
  %318 = call noalias ptr @fopen(ptr noundef %317, ptr noundef @.str.56)
  store ptr %318, ptr %23, align 8, !tbaa !5
  %319 = load ptr, ptr %23, align 8, !tbaa !5
  %320 = icmp eq ptr %319, null
  br i1 %320, label %321, label %336

321:                                              ; preds = %310
  call void @llvm.lifetime.start.p0(i64 2048, ptr %41) #7
  %322 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.background, ptr %323, i32 0, i32 41
  %325 = load ptr, ptr %324, align 8, !tbaa !29
  %326 = load i32, ptr %11, align 4, !tbaa !17
  %327 = mul nsw i32 %326, 1024
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds i8, ptr %325, i64 %328
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %322, ptr noundef @.str.57, ptr noundef %329)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %42) #7
  %330 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  %331 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %330, ptr noundef @.str.1, ptr noundef @.str.58, ptr noundef %331)
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.background, ptr %332, i32 0, i32 149
  %334 = getelementptr inbounds [2048 x i8], ptr %333, i64 0, i64 0
  %335 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %334, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1304, ptr noundef %335)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr %41) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

336:                                              ; preds = %310
  store i32 0, ptr %9, align 4, !tbaa !17
  store i32 2, ptr %10, align 4, !tbaa !17
  br label %337

337:                                              ; preds = %343, %336
  %338 = load i32, ptr %10, align 4, !tbaa !17
  %339 = icmp eq i32 %338, 2
  br i1 %339, label %340, label %346

340:                                              ; preds = %337
  %341 = load ptr, ptr %23, align 8, !tbaa !5
  %342 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %341, ptr noundef @.str.59, ptr noundef %20, ptr noundef %21)
  store i32 %342, ptr %10, align 4, !tbaa !17
  br label %343

343:                                              ; preds = %340
  %344 = load i32, ptr %9, align 4, !tbaa !17
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %9, align 4, !tbaa !17
  br label %337, !llvm.loop !30

346:                                              ; preds = %337
  %347 = load ptr, ptr %23, align 8, !tbaa !5
  call void @rewind(ptr noundef %347)
  %348 = load i32, ptr %9, align 4, !tbaa !17
  %349 = sub nsw i32 %348, 1
  %350 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  store i32 %349, ptr %350, align 4, !tbaa !27
  %351 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %352 = load i32, ptr %351, align 4, !tbaa !27
  %353 = sext i32 %352 to i64
  %354 = mul i64 8, %353
  %355 = call noalias ptr @malloc(i64 noundef %354) #8
  %356 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  store ptr %355, ptr %356, align 8, !tbaa !26
  %357 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %358 = load ptr, ptr %357, align 8, !tbaa !26
  %359 = icmp eq ptr %358, null
  br i1 %359, label %360, label %372

360:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %361 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %362 = load i32, ptr %361, align 4, !tbaa !27
  %363 = sext i32 %362 to i64
  %364 = mul i64 8, %363
  %365 = trunc i64 %364 to i32
  store i32 %365, ptr %43, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %44) #7
  %366 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  %367 = load i32, ptr %43, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %366, ptr noundef @.str.47, ptr noundef @.str.60, i32 noundef %367)
  %368 = load ptr, ptr %5, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.background, ptr %368, i32 0, i32 149
  %370 = getelementptr inbounds [2048 x i8], ptr %369, i64 0, i64 0
  %371 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %370, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1313, ptr noundef %371)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %44) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %1502

372:                                              ; preds = %346
  %373 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %374 = load i32, ptr %373, align 4, !tbaa !27
  %375 = sext i32 %374 to i64
  %376 = mul i64 8, %375
  %377 = call noalias ptr @malloc(i64 noundef %376) #8
  %378 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 4
  store ptr %377, ptr %378, align 8, !tbaa !32
  %379 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 4
  %380 = load ptr, ptr %379, align 8, !tbaa !32
  %381 = icmp eq ptr %380, null
  br i1 %381, label %382, label %394

382:                                              ; preds = %372
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  %383 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %384 = load i32, ptr %383, align 4, !tbaa !27
  %385 = sext i32 %384 to i64
  %386 = mul i64 8, %385
  %387 = trunc i64 %386 to i32
  store i32 %387, ptr %45, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %46) #7
  %388 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  %389 = load i32, ptr %45, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %388, ptr noundef @.str.47, ptr noundef @.str.61, i32 noundef %389)
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.background, ptr %390, i32 0, i32 149
  %392 = getelementptr inbounds [2048 x i8], ptr %391, i64 0, i64 0
  %393 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %392, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1314, ptr noundef %393)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %46) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %1502

394:                                              ; preds = %372
  %395 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %396 = load i32, ptr %395, align 4, !tbaa !27
  %397 = sext i32 %396 to i64
  %398 = mul i64 8, %397
  %399 = call noalias ptr @malloc(i64 noundef %398) #8
  %400 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 5
  store ptr %399, ptr %400, align 8, !tbaa !33
  %401 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 5
  %402 = load ptr, ptr %401, align 8, !tbaa !33
  %403 = icmp eq ptr %402, null
  br i1 %403, label %404, label %416

404:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %405 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %406 = load i32, ptr %405, align 4, !tbaa !27
  %407 = sext i32 %406 to i64
  %408 = mul i64 8, %407
  %409 = trunc i64 %408 to i32
  store i32 %409, ptr %47, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %48) #7
  %410 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  %411 = load i32, ptr %47, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %410, ptr noundef @.str.47, ptr noundef @.str.62, i32 noundef %411)
  %412 = load ptr, ptr %5, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.background, ptr %412, i32 0, i32 149
  %414 = getelementptr inbounds [2048 x i8], ptr %413, i64 0, i64 0
  %415 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %414, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1315, ptr noundef %415)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %48) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %1502

416:                                              ; preds = %394
  store i32 0, ptr %9, align 4, !tbaa !17
  br label %417

417:                                              ; preds = %435, %416
  %418 = load i32, ptr %9, align 4, !tbaa !17
  %419 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %420 = load i32, ptr %419, align 4, !tbaa !27
  %421 = icmp slt i32 %418, %420
  br i1 %421, label %422, label %438

422:                                              ; preds = %417
  %423 = load ptr, ptr %23, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %425 = load ptr, ptr %424, align 8, !tbaa !26
  %426 = load i32, ptr %9, align 4, !tbaa !17
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds double, ptr %425, i64 %427
  %429 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 4
  %430 = load ptr, ptr %429, align 8, !tbaa !32
  %431 = load i32, ptr %9, align 4, !tbaa !17
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds double, ptr %430, i64 %432
  %434 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %423, ptr noundef @.str.59, ptr noundef %428, ptr noundef %433)
  store i32 %434, ptr %10, align 4, !tbaa !17
  br label %435

435:                                              ; preds = %422
  %436 = load i32, ptr %9, align 4, !tbaa !17
  %437 = add nsw i32 %436, 1
  store i32 %437, ptr %9, align 4, !tbaa !17
  br label %417, !llvm.loop !34

438:                                              ; preds = %417
  %439 = load ptr, ptr %23, align 8, !tbaa !5
  %440 = call i32 @fclose(ptr noundef %439)
  %441 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %442 = load ptr, ptr %441, align 8, !tbaa !26
  %443 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %444 = load i32, ptr %443, align 4, !tbaa !27
  %445 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !32
  %447 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 5
  %448 = load ptr, ptr %447, align 8, !tbaa !33
  %449 = load ptr, ptr %5, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.background, ptr %449, i32 0, i32 149
  %451 = getelementptr inbounds [2048 x i8], ptr %450, i64 0, i64 0
  %452 = call i32 @array_spline_table_lines(ptr noundef %442, i32 noundef %444, ptr noundef %446, i32 noundef 1, ptr noundef %448, i16 noundef signext 1, ptr noundef %451)
  %453 = icmp eq i32 %452, 1
  br i1 %453, label %454, label %463

454:                                              ; preds = %438
  call void @llvm.lifetime.start.p0(i64 2048, ptr %49) #7
  %455 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  %456 = load ptr, ptr %5, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.background, ptr %456, i32 0, i32 149
  %458 = getelementptr inbounds [2048 x i8], ptr %457, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %455, ptr noundef @.str.6, ptr noundef @.str.63, ptr noundef %458)
  %459 = load ptr, ptr %5, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.background, ptr %459, i32 0, i32 149
  %461 = getelementptr inbounds [2048 x i8], ptr %460, i64 0, i64 0
  %462 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %461, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1331, ptr noundef %462)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %49) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

463:                                              ; preds = %438
  %464 = load i32, ptr %11, align 4, !tbaa !17
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %11, align 4, !tbaa !17
  br label %466

466:                                              ; preds = %463, %301, %292
  %467 = load ptr, ptr %5, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.background, ptr %467, i32 0, i32 130
  %469 = load ptr, ptr %468, align 8, !tbaa !35
  %470 = load i32, ptr %7, align 4, !tbaa !17
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds i32, ptr %469, i64 %471
  %473 = load i32, ptr %472, align 4, !tbaa !17
  %474 = icmp eq i32 %473, 0
  br i1 %474, label %475, label %778

475:                                              ; preds = %466
  %476 = call noalias ptr @malloc(i64 noundef 2000) #8
  %477 = load ptr, ptr %5, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.background, ptr %477, i32 0, i32 135
  %479 = load ptr, ptr %478, align 8, !tbaa !16
  %480 = load i32, ptr %7, align 4, !tbaa !17
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds ptr, ptr %479, i64 %481
  store ptr %476, ptr %482, align 8, !tbaa !5
  %483 = load ptr, ptr %5, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.background, ptr %483, i32 0, i32 135
  %485 = load ptr, ptr %484, align 8, !tbaa !16
  %486 = load i32, ptr %7, align 4, !tbaa !17
  %487 = sext i32 %486 to i64
  %488 = getelementptr inbounds ptr, ptr %485, i64 %487
  %489 = load ptr, ptr %488, align 8, !tbaa !5
  %490 = icmp eq ptr %489, null
  br i1 %490, label %491, label %498

491:                                              ; preds = %475
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  store i32 2000, ptr %50, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %51) #7
  %492 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %493 = load i32, ptr %50, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %492, ptr noundef @.str.47, ptr noundef @.str.64, i32 noundef %493)
  %494 = load ptr, ptr %5, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.background, ptr %494, i32 0, i32 149
  %496 = getelementptr inbounds [2048 x i8], ptr %495, i64 0, i64 0
  %497 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %496, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1338, ptr noundef %497)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %51) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %1502

498:                                              ; preds = %475
  %499 = call noalias ptr @malloc(i64 noundef 2000) #8
  %500 = load ptr, ptr %5, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.background, ptr %500, i32 0, i32 136
  %502 = load ptr, ptr %501, align 8, !tbaa !18
  %503 = load i32, ptr %7, align 4, !tbaa !17
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds ptr, ptr %502, i64 %504
  store ptr %499, ptr %505, align 8, !tbaa !5
  %506 = load ptr, ptr %5, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.background, ptr %506, i32 0, i32 136
  %508 = load ptr, ptr %507, align 8, !tbaa !18
  %509 = load i32, ptr %7, align 4, !tbaa !17
  %510 = sext i32 %509 to i64
  %511 = getelementptr inbounds ptr, ptr %508, i64 %510
  %512 = load ptr, ptr %511, align 8, !tbaa !5
  %513 = icmp eq ptr %512, null
  br i1 %513, label %514, label %521

514:                                              ; preds = %498
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  store i32 2000, ptr %52, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %53) #7
  %515 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  %516 = load i32, ptr %52, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %515, ptr noundef @.str.47, ptr noundef @.str.65, i32 noundef %516)
  %517 = load ptr, ptr %5, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.background, ptr %517, i32 0, i32 149
  %519 = getelementptr inbounds [2048 x i8], ptr %518, i64 0, i64 0
  %520 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %519, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1339, ptr noundef %520)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %53) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  br label %1502

521:                                              ; preds = %498
  %522 = load ptr, ptr %5, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.background, ptr %522, i32 0, i32 135
  %524 = load ptr, ptr %523, align 8, !tbaa !16
  %525 = load i32, ptr %7, align 4, !tbaa !17
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds ptr, ptr %524, i64 %526
  %528 = load ptr, ptr %527, align 8, !tbaa !5
  %529 = load ptr, ptr %5, align 8, !tbaa !5
  %530 = getelementptr inbounds %struct.background, ptr %529, i32 0, i32 136
  %531 = load ptr, ptr %530, align 8, !tbaa !18
  %532 = load i32, ptr %7, align 4, !tbaa !17
  %533 = sext i32 %532 to i64
  %534 = getelementptr inbounds ptr, ptr %531, i64 %533
  %535 = load ptr, ptr %534, align 8, !tbaa !5
  %536 = load ptr, ptr %5, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.background, ptr %536, i32 0, i32 139
  %538 = load ptr, ptr %537, align 8, !tbaa !22
  %539 = load i32, ptr %7, align 4, !tbaa !17
  %540 = sext i32 %539 to i64
  %541 = getelementptr inbounds i32, ptr %538, i64 %540
  %542 = load ptr, ptr %4, align 8, !tbaa !5
  %543 = getelementptr inbounds %struct.precision, ptr %542, i32 0, i32 6
  %544 = load double, ptr %543, align 8, !tbaa !36
  %545 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %546 = load ptr, ptr %545, align 8, !tbaa !26
  %547 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %548 = load i32, ptr %547, align 4, !tbaa !27
  %549 = load ptr, ptr %5, align 8, !tbaa !5
  %550 = getelementptr inbounds %struct.background, ptr %549, i32 0, i32 149
  %551 = getelementptr inbounds [2048 x i8], ptr %550, i64 0, i64 0
  %552 = call i32 @get_qsampling(ptr noundef %528, ptr noundef %535, ptr noundef %541, i32 noundef 250, double noundef %544, ptr noundef %546, i32 noundef %548, ptr noundef @background_ncdm_test_function, ptr noundef @background_ncdm_distribution, ptr noundef %22, ptr noundef %551)
  %553 = icmp eq i32 %552, 1
  br i1 %553, label %554, label %563

554:                                              ; preds = %521
  call void @llvm.lifetime.start.p0(i64 2048, ptr %54) #7
  %555 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  %556 = load ptr, ptr %5, align 8, !tbaa !5
  %557 = getelementptr inbounds %struct.background, ptr %556, i32 0, i32 149
  %558 = getelementptr inbounds [2048 x i8], ptr %557, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %555, ptr noundef @.str.6, ptr noundef @.str.66, ptr noundef %558)
  %559 = load ptr, ptr %5, align 8, !tbaa !5
  %560 = getelementptr inbounds %struct.background, ptr %559, i32 0, i32 149
  %561 = getelementptr inbounds [2048 x i8], ptr %560, i64 0, i64 0
  %562 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %561, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1353, ptr noundef %562)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %54) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

563:                                              ; preds = %521
  %564 = load ptr, ptr %5, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.background, ptr %564, i32 0, i32 135
  %566 = load ptr, ptr %565, align 8, !tbaa !16
  %567 = load i32, ptr %7, align 4, !tbaa !17
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds ptr, ptr %566, i64 %568
  %570 = load ptr, ptr %569, align 8, !tbaa !5
  %571 = load ptr, ptr %5, align 8, !tbaa !5
  %572 = getelementptr inbounds %struct.background, ptr %571, i32 0, i32 139
  %573 = load ptr, ptr %572, align 8, !tbaa !22
  %574 = load i32, ptr %7, align 4, !tbaa !17
  %575 = sext i32 %574 to i64
  %576 = getelementptr inbounds i32, ptr %573, i64 %575
  %577 = load i32, ptr %576, align 4, !tbaa !17
  %578 = sext i32 %577 to i64
  %579 = mul i64 %578, 8
  %580 = call ptr @realloc(ptr noundef %570, i64 noundef %579) #9
  %581 = load ptr, ptr %5, align 8, !tbaa !5
  %582 = getelementptr inbounds %struct.background, ptr %581, i32 0, i32 135
  %583 = load ptr, ptr %582, align 8, !tbaa !16
  %584 = load i32, ptr %7, align 4, !tbaa !17
  %585 = sext i32 %584 to i64
  %586 = getelementptr inbounds ptr, ptr %583, i64 %585
  store ptr %580, ptr %586, align 8, !tbaa !5
  %587 = load ptr, ptr %5, align 8, !tbaa !5
  %588 = getelementptr inbounds %struct.background, ptr %587, i32 0, i32 136
  %589 = load ptr, ptr %588, align 8, !tbaa !18
  %590 = load i32, ptr %7, align 4, !tbaa !17
  %591 = sext i32 %590 to i64
  %592 = getelementptr inbounds ptr, ptr %589, i64 %591
  %593 = load ptr, ptr %592, align 8, !tbaa !5
  %594 = load ptr, ptr %5, align 8, !tbaa !5
  %595 = getelementptr inbounds %struct.background, ptr %594, i32 0, i32 139
  %596 = load ptr, ptr %595, align 8, !tbaa !22
  %597 = load i32, ptr %7, align 4, !tbaa !17
  %598 = sext i32 %597 to i64
  %599 = getelementptr inbounds i32, ptr %596, i64 %598
  %600 = load i32, ptr %599, align 4, !tbaa !17
  %601 = sext i32 %600 to i64
  %602 = mul i64 %601, 8
  %603 = call ptr @realloc(ptr noundef %593, i64 noundef %602) #9
  %604 = load ptr, ptr %5, align 8, !tbaa !5
  %605 = getelementptr inbounds %struct.background, ptr %604, i32 0, i32 136
  %606 = load ptr, ptr %605, align 8, !tbaa !18
  %607 = load i32, ptr %7, align 4, !tbaa !17
  %608 = sext i32 %607 to i64
  %609 = getelementptr inbounds ptr, ptr %606, i64 %608
  store ptr %603, ptr %609, align 8, !tbaa !5
  %610 = load ptr, ptr %5, align 8, !tbaa !5
  %611 = getelementptr inbounds %struct.background, ptr %610, i32 0, i32 148
  %612 = load i16, ptr %611, align 4, !tbaa !38
  %613 = sext i16 %612 to i32
  %614 = icmp sgt i32 %613, 0
  br i1 %614, label %615, label %626

615:                                              ; preds = %563
  %616 = load i32, ptr %7, align 4, !tbaa !17
  %617 = add nsw i32 %616, 1
  %618 = load ptr, ptr %5, align 8, !tbaa !5
  %619 = getelementptr inbounds %struct.background, ptr %618, i32 0, i32 139
  %620 = load ptr, ptr %619, align 8, !tbaa !22
  %621 = load i32, ptr %7, align 4, !tbaa !17
  %622 = sext i32 %621 to i64
  %623 = getelementptr inbounds i32, ptr %620, i64 %622
  %624 = load i32, ptr %623, align 4, !tbaa !17
  %625 = call i32 (ptr, ...) @printf(ptr noundef @.str.67, i32 noundef %617, i32 noundef %624)
  br label %626

626:                                              ; preds = %615, %563
  %627 = call noalias ptr @malloc(i64 noundef 6400) #8
  %628 = load ptr, ptr %5, align 8, !tbaa !5
  %629 = getelementptr inbounds %struct.background, ptr %628, i32 0, i32 133
  %630 = load ptr, ptr %629, align 8, !tbaa !19
  %631 = load i32, ptr %7, align 4, !tbaa !17
  %632 = sext i32 %631 to i64
  %633 = getelementptr inbounds ptr, ptr %630, i64 %632
  store ptr %627, ptr %633, align 8, !tbaa !5
  %634 = load ptr, ptr %5, align 8, !tbaa !5
  %635 = getelementptr inbounds %struct.background, ptr %634, i32 0, i32 133
  %636 = load ptr, ptr %635, align 8, !tbaa !19
  %637 = load i32, ptr %7, align 4, !tbaa !17
  %638 = sext i32 %637 to i64
  %639 = getelementptr inbounds ptr, ptr %636, i64 %638
  %640 = load ptr, ptr %639, align 8, !tbaa !5
  %641 = icmp eq ptr %640, null
  br i1 %641, label %642, label %649

642:                                              ; preds = %626
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #7
  store i32 6400, ptr %55, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %56) #7
  %643 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %644 = load i32, ptr %55, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %643, ptr noundef @.str.47, ptr noundef @.str.68, i32 noundef %644)
  %645 = load ptr, ptr %5, align 8, !tbaa !5
  %646 = getelementptr inbounds %struct.background, ptr %645, i32 0, i32 149
  %647 = getelementptr inbounds [2048 x i8], ptr %646, i64 0, i64 0
  %648 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %647, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1364, ptr noundef %648)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %56) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #7
  br label %1502

649:                                              ; preds = %626
  %650 = call noalias ptr @malloc(i64 noundef 6400) #8
  %651 = load ptr, ptr %5, align 8, !tbaa !5
  %652 = getelementptr inbounds %struct.background, ptr %651, i32 0, i32 134
  %653 = load ptr, ptr %652, align 8, !tbaa !20
  %654 = load i32, ptr %7, align 4, !tbaa !17
  %655 = sext i32 %654 to i64
  %656 = getelementptr inbounds ptr, ptr %653, i64 %655
  store ptr %650, ptr %656, align 8, !tbaa !5
  %657 = load ptr, ptr %5, align 8, !tbaa !5
  %658 = getelementptr inbounds %struct.background, ptr %657, i32 0, i32 134
  %659 = load ptr, ptr %658, align 8, !tbaa !20
  %660 = load i32, ptr %7, align 4, !tbaa !17
  %661 = sext i32 %660 to i64
  %662 = getelementptr inbounds ptr, ptr %659, i64 %661
  %663 = load ptr, ptr %662, align 8, !tbaa !5
  %664 = icmp eq ptr %663, null
  br i1 %664, label %665, label %672

665:                                              ; preds = %649
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  store i32 6400, ptr %57, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %58) #7
  %666 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  %667 = load i32, ptr %57, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %666, ptr noundef @.str.47, ptr noundef @.str.69, i32 noundef %667)
  %668 = load ptr, ptr %5, align 8, !tbaa !5
  %669 = getelementptr inbounds %struct.background, ptr %668, i32 0, i32 149
  %670 = getelementptr inbounds [2048 x i8], ptr %669, i64 0, i64 0
  %671 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %670, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1365, ptr noundef %671)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %58) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  br label %1502

672:                                              ; preds = %649
  %673 = load ptr, ptr %5, align 8, !tbaa !5
  %674 = getelementptr inbounds %struct.background, ptr %673, i32 0, i32 133
  %675 = load ptr, ptr %674, align 8, !tbaa !19
  %676 = load i32, ptr %7, align 4, !tbaa !17
  %677 = sext i32 %676 to i64
  %678 = getelementptr inbounds ptr, ptr %675, i64 %677
  %679 = load ptr, ptr %678, align 8, !tbaa !5
  %680 = load ptr, ptr %5, align 8, !tbaa !5
  %681 = getelementptr inbounds %struct.background, ptr %680, i32 0, i32 134
  %682 = load ptr, ptr %681, align 8, !tbaa !20
  %683 = load i32, ptr %7, align 4, !tbaa !17
  %684 = sext i32 %683 to i64
  %685 = getelementptr inbounds ptr, ptr %682, i64 %684
  %686 = load ptr, ptr %685, align 8, !tbaa !5
  %687 = load ptr, ptr %5, align 8, !tbaa !5
  %688 = getelementptr inbounds %struct.background, ptr %687, i32 0, i32 138
  %689 = load ptr, ptr %688, align 8, !tbaa !23
  %690 = load i32, ptr %7, align 4, !tbaa !17
  %691 = sext i32 %690 to i64
  %692 = getelementptr inbounds i32, ptr %689, i64 %691
  %693 = load ptr, ptr %4, align 8, !tbaa !5
  %694 = getelementptr inbounds %struct.precision, ptr %693, i32 0, i32 9
  %695 = load double, ptr %694, align 8, !tbaa !39
  %696 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %697 = load ptr, ptr %696, align 8, !tbaa !26
  %698 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %699 = load i32, ptr %698, align 4, !tbaa !27
  %700 = load ptr, ptr %5, align 8, !tbaa !5
  %701 = getelementptr inbounds %struct.background, ptr %700, i32 0, i32 149
  %702 = getelementptr inbounds [2048 x i8], ptr %701, i64 0, i64 0
  %703 = call i32 @get_qsampling(ptr noundef %679, ptr noundef %686, ptr noundef %692, i32 noundef 800, double noundef %695, ptr noundef %697, i32 noundef %699, ptr noundef @background_ncdm_test_function, ptr noundef @background_ncdm_distribution, ptr noundef %22, ptr noundef %702)
  %704 = icmp eq i32 %703, 1
  br i1 %704, label %705, label %714

705:                                              ; preds = %672
  call void @llvm.lifetime.start.p0(i64 2048, ptr %59) #7
  %706 = getelementptr inbounds [2048 x i8], ptr %59, i64 0, i64 0
  %707 = load ptr, ptr %5, align 8, !tbaa !5
  %708 = getelementptr inbounds %struct.background, ptr %707, i32 0, i32 149
  %709 = getelementptr inbounds [2048 x i8], ptr %708, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %706, ptr noundef @.str.6, ptr noundef @.str.70, ptr noundef %709)
  %710 = load ptr, ptr %5, align 8, !tbaa !5
  %711 = getelementptr inbounds %struct.background, ptr %710, i32 0, i32 149
  %712 = getelementptr inbounds [2048 x i8], ptr %711, i64 0, i64 0
  %713 = getelementptr inbounds [2048 x i8], ptr %59, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %712, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1379, ptr noundef %713)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %59) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

714:                                              ; preds = %672
  %715 = load ptr, ptr %5, align 8, !tbaa !5
  %716 = getelementptr inbounds %struct.background, ptr %715, i32 0, i32 133
  %717 = load ptr, ptr %716, align 8, !tbaa !19
  %718 = load i32, ptr %7, align 4, !tbaa !17
  %719 = sext i32 %718 to i64
  %720 = getelementptr inbounds ptr, ptr %717, i64 %719
  %721 = load ptr, ptr %720, align 8, !tbaa !5
  %722 = load ptr, ptr %5, align 8, !tbaa !5
  %723 = getelementptr inbounds %struct.background, ptr %722, i32 0, i32 138
  %724 = load ptr, ptr %723, align 8, !tbaa !23
  %725 = load i32, ptr %7, align 4, !tbaa !17
  %726 = sext i32 %725 to i64
  %727 = getelementptr inbounds i32, ptr %724, i64 %726
  %728 = load i32, ptr %727, align 4, !tbaa !17
  %729 = sext i32 %728 to i64
  %730 = mul i64 %729, 8
  %731 = call ptr @realloc(ptr noundef %721, i64 noundef %730) #9
  %732 = load ptr, ptr %5, align 8, !tbaa !5
  %733 = getelementptr inbounds %struct.background, ptr %732, i32 0, i32 133
  %734 = load ptr, ptr %733, align 8, !tbaa !19
  %735 = load i32, ptr %7, align 4, !tbaa !17
  %736 = sext i32 %735 to i64
  %737 = getelementptr inbounds ptr, ptr %734, i64 %736
  store ptr %731, ptr %737, align 8, !tbaa !5
  %738 = load ptr, ptr %5, align 8, !tbaa !5
  %739 = getelementptr inbounds %struct.background, ptr %738, i32 0, i32 134
  %740 = load ptr, ptr %739, align 8, !tbaa !20
  %741 = load i32, ptr %7, align 4, !tbaa !17
  %742 = sext i32 %741 to i64
  %743 = getelementptr inbounds ptr, ptr %740, i64 %742
  %744 = load ptr, ptr %743, align 8, !tbaa !5
  %745 = load ptr, ptr %5, align 8, !tbaa !5
  %746 = getelementptr inbounds %struct.background, ptr %745, i32 0, i32 138
  %747 = load ptr, ptr %746, align 8, !tbaa !23
  %748 = load i32, ptr %7, align 4, !tbaa !17
  %749 = sext i32 %748 to i64
  %750 = getelementptr inbounds i32, ptr %747, i64 %749
  %751 = load i32, ptr %750, align 4, !tbaa !17
  %752 = sext i32 %751 to i64
  %753 = mul i64 %752, 8
  %754 = call ptr @realloc(ptr noundef %744, i64 noundef %753) #9
  %755 = load ptr, ptr %5, align 8, !tbaa !5
  %756 = getelementptr inbounds %struct.background, ptr %755, i32 0, i32 134
  %757 = load ptr, ptr %756, align 8, !tbaa !20
  %758 = load i32, ptr %7, align 4, !tbaa !17
  %759 = sext i32 %758 to i64
  %760 = getelementptr inbounds ptr, ptr %757, i64 %759
  store ptr %754, ptr %760, align 8, !tbaa !5
  %761 = load ptr, ptr %5, align 8, !tbaa !5
  %762 = getelementptr inbounds %struct.background, ptr %761, i32 0, i32 148
  %763 = load i16, ptr %762, align 4, !tbaa !38
  %764 = sext i16 %763 to i32
  %765 = icmp sgt i32 %764, 0
  br i1 %765, label %766, label %777

766:                                              ; preds = %714
  %767 = load i32, ptr %7, align 4, !tbaa !17
  %768 = add nsw i32 %767, 1
  %769 = load ptr, ptr %5, align 8, !tbaa !5
  %770 = getelementptr inbounds %struct.background, ptr %769, i32 0, i32 138
  %771 = load ptr, ptr %770, align 8, !tbaa !23
  %772 = load i32, ptr %7, align 4, !tbaa !17
  %773 = sext i32 %772 to i64
  %774 = getelementptr inbounds i32, ptr %771, i64 %773
  %775 = load i32, ptr %774, align 4, !tbaa !17
  %776 = call i32 (ptr, ...) @printf(ptr noundef @.str.71, i32 noundef %768, i32 noundef %775)
  br label %777

777:                                              ; preds = %766, %714
  br label %1101

778:                                              ; preds = %466
  %779 = load ptr, ptr %5, align 8, !tbaa !5
  %780 = getelementptr inbounds %struct.background, ptr %779, i32 0, i32 131
  %781 = load ptr, ptr %780, align 8, !tbaa !40
  %782 = load i32, ptr %7, align 4, !tbaa !17
  %783 = sext i32 %782 to i64
  %784 = getelementptr inbounds i32, ptr %781, i64 %783
  %785 = load i32, ptr %784, align 4, !tbaa !17
  %786 = load ptr, ptr %5, align 8, !tbaa !5
  %787 = getelementptr inbounds %struct.background, ptr %786, i32 0, i32 138
  %788 = load ptr, ptr %787, align 8, !tbaa !23
  %789 = load i32, ptr %7, align 4, !tbaa !17
  %790 = sext i32 %789 to i64
  %791 = getelementptr inbounds i32, ptr %788, i64 %790
  store i32 %785, ptr %791, align 4, !tbaa !17
  %792 = load ptr, ptr %5, align 8, !tbaa !5
  %793 = getelementptr inbounds %struct.background, ptr %792, i32 0, i32 131
  %794 = load ptr, ptr %793, align 8, !tbaa !40
  %795 = load i32, ptr %7, align 4, !tbaa !17
  %796 = sext i32 %795 to i64
  %797 = getelementptr inbounds i32, ptr %794, i64 %796
  %798 = load i32, ptr %797, align 4, !tbaa !17
  %799 = load ptr, ptr %5, align 8, !tbaa !5
  %800 = getelementptr inbounds %struct.background, ptr %799, i32 0, i32 139
  %801 = load ptr, ptr %800, align 8, !tbaa !22
  %802 = load i32, ptr %7, align 4, !tbaa !17
  %803 = sext i32 %802 to i64
  %804 = getelementptr inbounds i32, ptr %801, i64 %803
  store i32 %798, ptr %804, align 4, !tbaa !17
  %805 = load ptr, ptr %5, align 8, !tbaa !5
  %806 = getelementptr inbounds %struct.background, ptr %805, i32 0, i32 138
  %807 = load ptr, ptr %806, align 8, !tbaa !23
  %808 = load i32, ptr %7, align 4, !tbaa !17
  %809 = sext i32 %808 to i64
  %810 = getelementptr inbounds i32, ptr %807, i64 %809
  %811 = load i32, ptr %810, align 4, !tbaa !17
  %812 = sext i32 %811 to i64
  %813 = mul i64 %812, 8
  %814 = call noalias ptr @malloc(i64 noundef %813) #8
  %815 = load ptr, ptr %5, align 8, !tbaa !5
  %816 = getelementptr inbounds %struct.background, ptr %815, i32 0, i32 133
  %817 = load ptr, ptr %816, align 8, !tbaa !19
  %818 = load i32, ptr %7, align 4, !tbaa !17
  %819 = sext i32 %818 to i64
  %820 = getelementptr inbounds ptr, ptr %817, i64 %819
  store ptr %814, ptr %820, align 8, !tbaa !5
  %821 = load ptr, ptr %5, align 8, !tbaa !5
  %822 = getelementptr inbounds %struct.background, ptr %821, i32 0, i32 133
  %823 = load ptr, ptr %822, align 8, !tbaa !19
  %824 = load i32, ptr %7, align 4, !tbaa !17
  %825 = sext i32 %824 to i64
  %826 = getelementptr inbounds ptr, ptr %823, i64 %825
  %827 = load ptr, ptr %826, align 8, !tbaa !5
  %828 = icmp eq ptr %827, null
  br i1 %828, label %829, label %846

829:                                              ; preds = %778
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  %830 = load ptr, ptr %5, align 8, !tbaa !5
  %831 = getelementptr inbounds %struct.background, ptr %830, i32 0, i32 138
  %832 = load ptr, ptr %831, align 8, !tbaa !23
  %833 = load i32, ptr %7, align 4, !tbaa !17
  %834 = sext i32 %833 to i64
  %835 = getelementptr inbounds i32, ptr %832, i64 %834
  %836 = load i32, ptr %835, align 4, !tbaa !17
  %837 = sext i32 %836 to i64
  %838 = mul i64 %837, 8
  %839 = trunc i64 %838 to i32
  store i32 %839, ptr %60, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %61) #7
  %840 = getelementptr inbounds [2048 x i8], ptr %61, i64 0, i64 0
  %841 = load i32, ptr %60, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %840, ptr noundef @.str.47, ptr noundef @.str.68, i32 noundef %841)
  %842 = load ptr, ptr %5, align 8, !tbaa !5
  %843 = getelementptr inbounds %struct.background, ptr %842, i32 0, i32 149
  %844 = getelementptr inbounds [2048 x i8], ptr %843, i64 0, i64 0
  %845 = getelementptr inbounds [2048 x i8], ptr %61, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %844, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1396, ptr noundef %845)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %61) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  br label %1502

846:                                              ; preds = %778
  %847 = load ptr, ptr %5, align 8, !tbaa !5
  %848 = getelementptr inbounds %struct.background, ptr %847, i32 0, i32 138
  %849 = load ptr, ptr %848, align 8, !tbaa !23
  %850 = load i32, ptr %7, align 4, !tbaa !17
  %851 = sext i32 %850 to i64
  %852 = getelementptr inbounds i32, ptr %849, i64 %851
  %853 = load i32, ptr %852, align 4, !tbaa !17
  %854 = sext i32 %853 to i64
  %855 = mul i64 %854, 8
  %856 = call noalias ptr @malloc(i64 noundef %855) #8
  %857 = load ptr, ptr %5, align 8, !tbaa !5
  %858 = getelementptr inbounds %struct.background, ptr %857, i32 0, i32 134
  %859 = load ptr, ptr %858, align 8, !tbaa !20
  %860 = load i32, ptr %7, align 4, !tbaa !17
  %861 = sext i32 %860 to i64
  %862 = getelementptr inbounds ptr, ptr %859, i64 %861
  store ptr %856, ptr %862, align 8, !tbaa !5
  %863 = load ptr, ptr %5, align 8, !tbaa !5
  %864 = getelementptr inbounds %struct.background, ptr %863, i32 0, i32 134
  %865 = load ptr, ptr %864, align 8, !tbaa !20
  %866 = load i32, ptr %7, align 4, !tbaa !17
  %867 = sext i32 %866 to i64
  %868 = getelementptr inbounds ptr, ptr %865, i64 %867
  %869 = load ptr, ptr %868, align 8, !tbaa !5
  %870 = icmp eq ptr %869, null
  br i1 %870, label %871, label %888

871:                                              ; preds = %846
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #7
  %872 = load ptr, ptr %5, align 8, !tbaa !5
  %873 = getelementptr inbounds %struct.background, ptr %872, i32 0, i32 138
  %874 = load ptr, ptr %873, align 8, !tbaa !23
  %875 = load i32, ptr %7, align 4, !tbaa !17
  %876 = sext i32 %875 to i64
  %877 = getelementptr inbounds i32, ptr %874, i64 %876
  %878 = load i32, ptr %877, align 4, !tbaa !17
  %879 = sext i32 %878 to i64
  %880 = mul i64 %879, 8
  %881 = trunc i64 %880 to i32
  store i32 %881, ptr %62, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %63) #7
  %882 = getelementptr inbounds [2048 x i8], ptr %63, i64 0, i64 0
  %883 = load i32, ptr %62, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %882, ptr noundef @.str.47, ptr noundef @.str.69, i32 noundef %883)
  %884 = load ptr, ptr %5, align 8, !tbaa !5
  %885 = getelementptr inbounds %struct.background, ptr %884, i32 0, i32 149
  %886 = getelementptr inbounds [2048 x i8], ptr %885, i64 0, i64 0
  %887 = getelementptr inbounds [2048 x i8], ptr %63, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %886, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1397, ptr noundef %887)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %63) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #7
  br label %1502

888:                                              ; preds = %846
  %889 = load ptr, ptr %5, align 8, !tbaa !5
  %890 = getelementptr inbounds %struct.background, ptr %889, i32 0, i32 139
  %891 = load ptr, ptr %890, align 8, !tbaa !22
  %892 = load i32, ptr %7, align 4, !tbaa !17
  %893 = sext i32 %892 to i64
  %894 = getelementptr inbounds i32, ptr %891, i64 %893
  %895 = load i32, ptr %894, align 4, !tbaa !17
  %896 = sext i32 %895 to i64
  %897 = mul i64 %896, 8
  %898 = call noalias ptr @malloc(i64 noundef %897) #8
  %899 = load ptr, ptr %5, align 8, !tbaa !5
  %900 = getelementptr inbounds %struct.background, ptr %899, i32 0, i32 135
  %901 = load ptr, ptr %900, align 8, !tbaa !16
  %902 = load i32, ptr %7, align 4, !tbaa !17
  %903 = sext i32 %902 to i64
  %904 = getelementptr inbounds ptr, ptr %901, i64 %903
  store ptr %898, ptr %904, align 8, !tbaa !5
  %905 = load ptr, ptr %5, align 8, !tbaa !5
  %906 = getelementptr inbounds %struct.background, ptr %905, i32 0, i32 135
  %907 = load ptr, ptr %906, align 8, !tbaa !16
  %908 = load i32, ptr %7, align 4, !tbaa !17
  %909 = sext i32 %908 to i64
  %910 = getelementptr inbounds ptr, ptr %907, i64 %909
  %911 = load ptr, ptr %910, align 8, !tbaa !5
  %912 = icmp eq ptr %911, null
  br i1 %912, label %913, label %930

913:                                              ; preds = %888
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #7
  %914 = load ptr, ptr %5, align 8, !tbaa !5
  %915 = getelementptr inbounds %struct.background, ptr %914, i32 0, i32 139
  %916 = load ptr, ptr %915, align 8, !tbaa !22
  %917 = load i32, ptr %7, align 4, !tbaa !17
  %918 = sext i32 %917 to i64
  %919 = getelementptr inbounds i32, ptr %916, i64 %918
  %920 = load i32, ptr %919, align 4, !tbaa !17
  %921 = sext i32 %920 to i64
  %922 = mul i64 %921, 8
  %923 = trunc i64 %922 to i32
  store i32 %923, ptr %64, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %65) #7
  %924 = getelementptr inbounds [2048 x i8], ptr %65, i64 0, i64 0
  %925 = load i32, ptr %64, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %924, ptr noundef @.str.47, ptr noundef @.str.64, i32 noundef %925)
  %926 = load ptr, ptr %5, align 8, !tbaa !5
  %927 = getelementptr inbounds %struct.background, ptr %926, i32 0, i32 149
  %928 = getelementptr inbounds [2048 x i8], ptr %927, i64 0, i64 0
  %929 = getelementptr inbounds [2048 x i8], ptr %65, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %928, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1398, ptr noundef %929)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %65) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #7
  br label %1502

930:                                              ; preds = %888
  %931 = load ptr, ptr %5, align 8, !tbaa !5
  %932 = getelementptr inbounds %struct.background, ptr %931, i32 0, i32 139
  %933 = load ptr, ptr %932, align 8, !tbaa !22
  %934 = load i32, ptr %7, align 4, !tbaa !17
  %935 = sext i32 %934 to i64
  %936 = getelementptr inbounds i32, ptr %933, i64 %935
  %937 = load i32, ptr %936, align 4, !tbaa !17
  %938 = sext i32 %937 to i64
  %939 = mul i64 %938, 8
  %940 = call noalias ptr @malloc(i64 noundef %939) #8
  %941 = load ptr, ptr %5, align 8, !tbaa !5
  %942 = getelementptr inbounds %struct.background, ptr %941, i32 0, i32 136
  %943 = load ptr, ptr %942, align 8, !tbaa !18
  %944 = load i32, ptr %7, align 4, !tbaa !17
  %945 = sext i32 %944 to i64
  %946 = getelementptr inbounds ptr, ptr %943, i64 %945
  store ptr %940, ptr %946, align 8, !tbaa !5
  %947 = load ptr, ptr %5, align 8, !tbaa !5
  %948 = getelementptr inbounds %struct.background, ptr %947, i32 0, i32 136
  %949 = load ptr, ptr %948, align 8, !tbaa !18
  %950 = load i32, ptr %7, align 4, !tbaa !17
  %951 = sext i32 %950 to i64
  %952 = getelementptr inbounds ptr, ptr %949, i64 %951
  %953 = load ptr, ptr %952, align 8, !tbaa !5
  %954 = icmp eq ptr %953, null
  br i1 %954, label %955, label %972

955:                                              ; preds = %930
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #7
  %956 = load ptr, ptr %5, align 8, !tbaa !5
  %957 = getelementptr inbounds %struct.background, ptr %956, i32 0, i32 139
  %958 = load ptr, ptr %957, align 8, !tbaa !22
  %959 = load i32, ptr %7, align 4, !tbaa !17
  %960 = sext i32 %959 to i64
  %961 = getelementptr inbounds i32, ptr %958, i64 %960
  %962 = load i32, ptr %961, align 4, !tbaa !17
  %963 = sext i32 %962 to i64
  %964 = mul i64 %963, 8
  %965 = trunc i64 %964 to i32
  store i32 %965, ptr %66, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %67) #7
  %966 = getelementptr inbounds [2048 x i8], ptr %67, i64 0, i64 0
  %967 = load i32, ptr %66, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %966, ptr noundef @.str.47, ptr noundef @.str.65, i32 noundef %967)
  %968 = load ptr, ptr %5, align 8, !tbaa !5
  %969 = getelementptr inbounds %struct.background, ptr %968, i32 0, i32 149
  %970 = getelementptr inbounds [2048 x i8], ptr %969, i64 0, i64 0
  %971 = getelementptr inbounds [2048 x i8], ptr %67, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %970, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1399, ptr noundef %971)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %67) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #7
  br label %1502

972:                                              ; preds = %930
  %973 = load ptr, ptr %5, align 8, !tbaa !5
  %974 = getelementptr inbounds %struct.background, ptr %973, i32 0, i32 135
  %975 = load ptr, ptr %974, align 8, !tbaa !16
  %976 = load i32, ptr %7, align 4, !tbaa !17
  %977 = sext i32 %976 to i64
  %978 = getelementptr inbounds ptr, ptr %975, i64 %977
  %979 = load ptr, ptr %978, align 8, !tbaa !5
  %980 = load ptr, ptr %5, align 8, !tbaa !5
  %981 = getelementptr inbounds %struct.background, ptr %980, i32 0, i32 136
  %982 = load ptr, ptr %981, align 8, !tbaa !18
  %983 = load i32, ptr %7, align 4, !tbaa !17
  %984 = sext i32 %983 to i64
  %985 = getelementptr inbounds ptr, ptr %982, i64 %984
  %986 = load ptr, ptr %985, align 8, !tbaa !5
  %987 = load ptr, ptr %5, align 8, !tbaa !5
  %988 = getelementptr inbounds %struct.background, ptr %987, i32 0, i32 139
  %989 = load ptr, ptr %988, align 8, !tbaa !22
  %990 = load i32, ptr %7, align 4, !tbaa !17
  %991 = sext i32 %990 to i64
  %992 = getelementptr inbounds i32, ptr %989, i64 %991
  %993 = load i32, ptr %992, align 4, !tbaa !17
  %994 = load ptr, ptr %5, align 8, !tbaa !5
  %995 = getelementptr inbounds %struct.background, ptr %994, i32 0, i32 132
  %996 = load ptr, ptr %995, align 8, !tbaa !41
  %997 = load i32, ptr %7, align 4, !tbaa !17
  %998 = sext i32 %997 to i64
  %999 = getelementptr inbounds double, ptr %996, i64 %998
  %1000 = load double, ptr %999, align 8, !tbaa !42
  %1001 = load ptr, ptr %5, align 8, !tbaa !5
  %1002 = getelementptr inbounds %struct.background, ptr %1001, i32 0, i32 130
  %1003 = load ptr, ptr %1002, align 8, !tbaa !35
  %1004 = load i32, ptr %7, align 4, !tbaa !17
  %1005 = sext i32 %1004 to i64
  %1006 = getelementptr inbounds i32, ptr %1003, i64 %1005
  %1007 = load i32, ptr %1006, align 4, !tbaa !17
  %1008 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %1009 = load ptr, ptr %1008, align 8, !tbaa !26
  %1010 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 2
  %1011 = load i32, ptr %1010, align 4, !tbaa !27
  %1012 = load ptr, ptr %5, align 8, !tbaa !5
  %1013 = getelementptr inbounds %struct.background, ptr %1012, i32 0, i32 149
  %1014 = getelementptr inbounds [2048 x i8], ptr %1013, i64 0, i64 0
  %1015 = call i32 @get_qsampling_manual(ptr noundef %979, ptr noundef %986, i32 noundef %993, double noundef %1000, i32 noundef %1007, ptr noundef %1009, i32 noundef %1011, ptr noundef @background_ncdm_distribution, ptr noundef %22, ptr noundef %1014)
  %1016 = icmp eq i32 %1015, 1
  br i1 %1016, label %1017, label %1026

1017:                                             ; preds = %972
  call void @llvm.lifetime.start.p0(i64 2048, ptr %68) #7
  %1018 = getelementptr inbounds [2048 x i8], ptr %68, i64 0, i64 0
  %1019 = load ptr, ptr %5, align 8, !tbaa !5
  %1020 = getelementptr inbounds %struct.background, ptr %1019, i32 0, i32 149
  %1021 = getelementptr inbounds [2048 x i8], ptr %1020, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1018, ptr noundef @.str.6, ptr noundef @.str.72, ptr noundef %1021)
  %1022 = load ptr, ptr %5, align 8, !tbaa !5
  %1023 = getelementptr inbounds %struct.background, ptr %1022, i32 0, i32 149
  %1024 = getelementptr inbounds [2048 x i8], ptr %1023, i64 0, i64 0
  %1025 = getelementptr inbounds [2048 x i8], ptr %68, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1024, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1411, ptr noundef %1025)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %68) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1026:                                             ; preds = %972
  store i32 0, ptr %6, align 4, !tbaa !17
  br label %1027

1027:                                             ; preds = %1080, %1026
  %1028 = load i32, ptr %6, align 4, !tbaa !17
  %1029 = load ptr, ptr %5, align 8, !tbaa !5
  %1030 = getelementptr inbounds %struct.background, ptr %1029, i32 0, i32 139
  %1031 = load ptr, ptr %1030, align 8, !tbaa !22
  %1032 = load i32, ptr %7, align 4, !tbaa !17
  %1033 = sext i32 %1032 to i64
  %1034 = getelementptr inbounds i32, ptr %1031, i64 %1033
  %1035 = load i32, ptr %1034, align 4, !tbaa !17
  %1036 = icmp slt i32 %1028, %1035
  br i1 %1036, label %1037, label %1083

1037:                                             ; preds = %1027
  %1038 = load ptr, ptr %5, align 8, !tbaa !5
  %1039 = getelementptr inbounds %struct.background, ptr %1038, i32 0, i32 135
  %1040 = load ptr, ptr %1039, align 8, !tbaa !16
  %1041 = load i32, ptr %7, align 4, !tbaa !17
  %1042 = sext i32 %1041 to i64
  %1043 = getelementptr inbounds ptr, ptr %1040, i64 %1042
  %1044 = load ptr, ptr %1043, align 8, !tbaa !5
  %1045 = load i32, ptr %6, align 4, !tbaa !17
  %1046 = sext i32 %1045 to i64
  %1047 = getelementptr inbounds double, ptr %1044, i64 %1046
  %1048 = load double, ptr %1047, align 8, !tbaa !42
  %1049 = load ptr, ptr %5, align 8, !tbaa !5
  %1050 = getelementptr inbounds %struct.background, ptr %1049, i32 0, i32 133
  %1051 = load ptr, ptr %1050, align 8, !tbaa !19
  %1052 = load i32, ptr %7, align 4, !tbaa !17
  %1053 = sext i32 %1052 to i64
  %1054 = getelementptr inbounds ptr, ptr %1051, i64 %1053
  %1055 = load ptr, ptr %1054, align 8, !tbaa !5
  %1056 = load i32, ptr %6, align 4, !tbaa !17
  %1057 = sext i32 %1056 to i64
  %1058 = getelementptr inbounds double, ptr %1055, i64 %1057
  store double %1048, ptr %1058, align 8, !tbaa !42
  %1059 = load ptr, ptr %5, align 8, !tbaa !5
  %1060 = getelementptr inbounds %struct.background, ptr %1059, i32 0, i32 136
  %1061 = load ptr, ptr %1060, align 8, !tbaa !18
  %1062 = load i32, ptr %7, align 4, !tbaa !17
  %1063 = sext i32 %1062 to i64
  %1064 = getelementptr inbounds ptr, ptr %1061, i64 %1063
  %1065 = load ptr, ptr %1064, align 8, !tbaa !5
  %1066 = load i32, ptr %6, align 4, !tbaa !17
  %1067 = sext i32 %1066 to i64
  %1068 = getelementptr inbounds double, ptr %1065, i64 %1067
  %1069 = load double, ptr %1068, align 8, !tbaa !42
  %1070 = load ptr, ptr %5, align 8, !tbaa !5
  %1071 = getelementptr inbounds %struct.background, ptr %1070, i32 0, i32 134
  %1072 = load ptr, ptr %1071, align 8, !tbaa !20
  %1073 = load i32, ptr %7, align 4, !tbaa !17
  %1074 = sext i32 %1073 to i64
  %1075 = getelementptr inbounds ptr, ptr %1072, i64 %1074
  %1076 = load ptr, ptr %1075, align 8, !tbaa !5
  %1077 = load i32, ptr %6, align 4, !tbaa !17
  %1078 = sext i32 %1077 to i64
  %1079 = getelementptr inbounds double, ptr %1076, i64 %1078
  store double %1069, ptr %1079, align 8, !tbaa !42
  br label %1080

1080:                                             ; preds = %1037
  %1081 = load i32, ptr %6, align 4, !tbaa !17
  %1082 = add nsw i32 %1081, 1
  store i32 %1082, ptr %6, align 4, !tbaa !17
  br label %1027, !llvm.loop !43

1083:                                             ; preds = %1027
  %1084 = load ptr, ptr %5, align 8, !tbaa !5
  %1085 = getelementptr inbounds %struct.background, ptr %1084, i32 0, i32 148
  %1086 = load i16, ptr %1085, align 4, !tbaa !38
  %1087 = sext i16 %1086 to i32
  %1088 = icmp sgt i32 %1087, 0
  br i1 %1088, label %1089, label %1100

1089:                                             ; preds = %1083
  %1090 = load i32, ptr %7, align 4, !tbaa !17
  %1091 = add nsw i32 %1090, 1
  %1092 = load ptr, ptr %5, align 8, !tbaa !5
  %1093 = getelementptr inbounds %struct.background, ptr %1092, i32 0, i32 139
  %1094 = load ptr, ptr %1093, align 8, !tbaa !22
  %1095 = load i32, ptr %7, align 4, !tbaa !17
  %1096 = sext i32 %1095 to i64
  %1097 = getelementptr inbounds i32, ptr %1094, i64 %1096
  %1098 = load i32, ptr %1097, align 4, !tbaa !17
  %1099 = call i32 (ptr, ...) @printf(ptr noundef @.str.73, i32 noundef %1091, i32 noundef %1098)
  br label %1100

1100:                                             ; preds = %1089, %1083
  br label %1101

1101:                                             ; preds = %1100, %777
  %1102 = load ptr, ptr %5, align 8, !tbaa !5
  %1103 = getelementptr inbounds %struct.background, ptr %1102, i32 0, i32 139
  %1104 = load ptr, ptr %1103, align 8, !tbaa !22
  %1105 = load i32, ptr %7, align 4, !tbaa !17
  %1106 = sext i32 %1105 to i64
  %1107 = getelementptr inbounds i32, ptr %1104, i64 %1106
  %1108 = load i32, ptr %1107, align 4, !tbaa !17
  %1109 = sext i32 %1108 to i64
  %1110 = mul i64 %1109, 8
  %1111 = call noalias ptr @malloc(i64 noundef %1110) #8
  %1112 = load ptr, ptr %5, align 8, !tbaa !5
  %1113 = getelementptr inbounds %struct.background, ptr %1112, i32 0, i32 137
  %1114 = load ptr, ptr %1113, align 8, !tbaa !21
  %1115 = load i32, ptr %7, align 4, !tbaa !17
  %1116 = sext i32 %1115 to i64
  %1117 = getelementptr inbounds ptr, ptr %1114, i64 %1116
  store ptr %1111, ptr %1117, align 8, !tbaa !5
  %1118 = load ptr, ptr %5, align 8, !tbaa !5
  %1119 = getelementptr inbounds %struct.background, ptr %1118, i32 0, i32 137
  %1120 = load ptr, ptr %1119, align 8, !tbaa !21
  %1121 = load i32, ptr %7, align 4, !tbaa !17
  %1122 = sext i32 %1121 to i64
  %1123 = getelementptr inbounds ptr, ptr %1120, i64 %1122
  %1124 = load ptr, ptr %1123, align 8, !tbaa !5
  %1125 = icmp eq ptr %1124, null
  br i1 %1125, label %1126, label %1143

1126:                                             ; preds = %1101
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #7
  %1127 = load ptr, ptr %5, align 8, !tbaa !5
  %1128 = getelementptr inbounds %struct.background, ptr %1127, i32 0, i32 139
  %1129 = load ptr, ptr %1128, align 8, !tbaa !22
  %1130 = load i32, ptr %7, align 4, !tbaa !17
  %1131 = sext i32 %1130 to i64
  %1132 = getelementptr inbounds i32, ptr %1129, i64 %1131
  %1133 = load i32, ptr %1132, align 4, !tbaa !17
  %1134 = sext i32 %1133 to i64
  %1135 = mul i64 %1134, 8
  %1136 = trunc i64 %1135 to i32
  store i32 %1136, ptr %69, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %70) #7
  %1137 = getelementptr inbounds [2048 x i8], ptr %70, i64 0, i64 0
  %1138 = load i32, ptr %69, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1137, ptr noundef @.str.47, ptr noundef @.str.74, i32 noundef %1138)
  %1139 = load ptr, ptr %5, align 8, !tbaa !5
  %1140 = getelementptr inbounds %struct.background, ptr %1139, i32 0, i32 149
  %1141 = getelementptr inbounds [2048 x i8], ptr %1140, i64 0, i64 0
  %1142 = getelementptr inbounds [2048 x i8], ptr %70, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1141, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1426, ptr noundef %1142)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %70) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #7
  br label %1502

1143:                                             ; preds = %1101
  store i32 0, ptr %6, align 4, !tbaa !17
  br label %1144

1144:                                             ; preds = %1434, %1143
  %1145 = load i32, ptr %6, align 4, !tbaa !17
  %1146 = load ptr, ptr %5, align 8, !tbaa !5
  %1147 = getelementptr inbounds %struct.background, ptr %1146, i32 0, i32 139
  %1148 = load ptr, ptr %1147, align 8, !tbaa !22
  %1149 = load i32, ptr %7, align 4, !tbaa !17
  %1150 = sext i32 %1149 to i64
  %1151 = getelementptr inbounds i32, ptr %1148, i64 %1150
  %1152 = load i32, ptr %1151, align 4, !tbaa !17
  %1153 = icmp slt i32 %1145, %1152
  br i1 %1153, label %1154, label %1437

1154:                                             ; preds = %1144
  %1155 = load ptr, ptr %5, align 8, !tbaa !5
  %1156 = getelementptr inbounds %struct.background, ptr %1155, i32 0, i32 135
  %1157 = load ptr, ptr %1156, align 8, !tbaa !16
  %1158 = load i32, ptr %7, align 4, !tbaa !17
  %1159 = sext i32 %1158 to i64
  %1160 = getelementptr inbounds ptr, ptr %1157, i64 %1159
  %1161 = load ptr, ptr %1160, align 8, !tbaa !5
  %1162 = load i32, ptr %6, align 4, !tbaa !17
  %1163 = sext i32 %1162 to i64
  %1164 = getelementptr inbounds double, ptr %1161, i64 %1163
  %1165 = load double, ptr %1164, align 8, !tbaa !42
  store double %1165, ptr %18, align 8, !tbaa !42
  %1166 = load double, ptr %18, align 8, !tbaa !42
  %1167 = call i32 @background_ncdm_distribution(ptr noundef %22, double noundef %1166, ptr noundef %14)
  %1168 = icmp eq i32 %1167, 1
  br i1 %1168, label %1169, label %1178

1169:                                             ; preds = %1154
  call void @llvm.lifetime.start.p0(i64 2048, ptr %71) #7
  %1170 = getelementptr inbounds [2048 x i8], ptr %71, i64 0, i64 0
  %1171 = load ptr, ptr %5, align 8, !tbaa !5
  %1172 = getelementptr inbounds %struct.background, ptr %1171, i32 0, i32 149
  %1173 = getelementptr inbounds [2048 x i8], ptr %1172, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1170, ptr noundef @.str.6, ptr noundef @.str.75, ptr noundef %1173)
  %1174 = load ptr, ptr %5, align 8, !tbaa !5
  %1175 = getelementptr inbounds %struct.background, ptr %1174, i32 0, i32 149
  %1176 = getelementptr inbounds [2048 x i8], ptr %1175, i64 0, i64 0
  %1177 = getelementptr inbounds [2048 x i8], ptr %71, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1176, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1432, ptr noundef %1177)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %71) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1178:                                             ; preds = %1154
  store i32 -30, ptr %8, align 4, !tbaa !17
  br label %1179

1179:                                             ; preds = %1357, %1178
  %1180 = load i32, ptr %8, align 4, !tbaa !17
  %1181 = icmp slt i32 %1180, 2
  br i1 %1181, label %1182, label %1360

1182:                                             ; preds = %1179
  %1183 = load i32, ptr %6, align 4, !tbaa !17
  %1184 = icmp eq i32 %1183, 0
  br i1 %1184, label %1185, label %1241

1185:                                             ; preds = %1182
  %1186 = load ptr, ptr %4, align 8, !tbaa !5
  %1187 = getelementptr inbounds %struct.precision, ptr %1186, i32 0, i32 175
  %1188 = load double, ptr %1187, align 8, !tbaa !44
  %1189 = fsub double 5.000000e-01, %1188
  %1190 = load double, ptr %18, align 8, !tbaa !42
  %1191 = fmul double %1189, %1190
  %1192 = load i32, ptr %8, align 4, !tbaa !17
  %1193 = sitofp i32 %1192 to double
  %1194 = call double @exp(double noundef %1193) #7
  %1195 = fmul double 2.000000e+00, %1194
  %1196 = load ptr, ptr %5, align 8, !tbaa !5
  %1197 = getelementptr inbounds %struct.background, ptr %1196, i32 0, i32 135
  %1198 = load ptr, ptr %1197, align 8, !tbaa !16
  %1199 = load i32, ptr %7, align 4, !tbaa !17
  %1200 = sext i32 %1199 to i64
  %1201 = getelementptr inbounds ptr, ptr %1198, i64 %1200
  %1202 = load ptr, ptr %1201, align 8, !tbaa !5
  %1203 = load i32, ptr %6, align 4, !tbaa !17
  %1204 = add nsw i32 %1203, 1
  %1205 = sext i32 %1204 to i64
  %1206 = getelementptr inbounds double, ptr %1202, i64 %1205
  %1207 = load double, ptr %1206, align 8, !tbaa !42
  %1208 = load double, ptr %18, align 8, !tbaa !42
  %1209 = fsub double %1207, %1208
  %1210 = fmul double %1195, %1209
  %1211 = fcmp olt double %1191, %1210
  br i1 %1211, label %1212, label %1219

1212:                                             ; preds = %1185
  %1213 = load ptr, ptr %4, align 8, !tbaa !5
  %1214 = getelementptr inbounds %struct.precision, ptr %1213, i32 0, i32 175
  %1215 = load double, ptr %1214, align 8, !tbaa !44
  %1216 = fsub double 5.000000e-01, %1215
  %1217 = load double, ptr %18, align 8, !tbaa !42
  %1218 = fmul double %1216, %1217
  br label %1239

1219:                                             ; preds = %1185
  %1220 = load i32, ptr %8, align 4, !tbaa !17
  %1221 = sitofp i32 %1220 to double
  %1222 = call double @exp(double noundef %1221) #7
  %1223 = fmul double 2.000000e+00, %1222
  %1224 = load ptr, ptr %5, align 8, !tbaa !5
  %1225 = getelementptr inbounds %struct.background, ptr %1224, i32 0, i32 135
  %1226 = load ptr, ptr %1225, align 8, !tbaa !16
  %1227 = load i32, ptr %7, align 4, !tbaa !17
  %1228 = sext i32 %1227 to i64
  %1229 = getelementptr inbounds ptr, ptr %1226, i64 %1228
  %1230 = load ptr, ptr %1229, align 8, !tbaa !5
  %1231 = load i32, ptr %6, align 4, !tbaa !17
  %1232 = add nsw i32 %1231, 1
  %1233 = sext i32 %1232 to i64
  %1234 = getelementptr inbounds double, ptr %1230, i64 %1233
  %1235 = load double, ptr %1234, align 8, !tbaa !42
  %1236 = load double, ptr %18, align 8, !tbaa !42
  %1237 = fsub double %1235, %1236
  %1238 = fmul double %1223, %1237
  br label %1239

1239:                                             ; preds = %1219, %1212
  %1240 = phi double [ %1218, %1212 ], [ %1238, %1219 ]
  store double %1240, ptr %17, align 8, !tbaa !42
  br label %1313

1241:                                             ; preds = %1182
  %1242 = load i32, ptr %6, align 4, !tbaa !17
  %1243 = load ptr, ptr %5, align 8, !tbaa !5
  %1244 = getelementptr inbounds %struct.background, ptr %1243, i32 0, i32 139
  %1245 = load ptr, ptr %1244, align 8, !tbaa !22
  %1246 = load i32, ptr %7, align 4, !tbaa !17
  %1247 = sext i32 %1246 to i64
  %1248 = getelementptr inbounds i32, ptr %1245, i64 %1247
  %1249 = load i32, ptr %1248, align 4, !tbaa !17
  %1250 = sub nsw i32 %1249, 1
  %1251 = icmp eq i32 %1242, %1250
  br i1 %1251, label %1252, label %1282

1252:                                             ; preds = %1241
  %1253 = load i32, ptr %8, align 4, !tbaa !17
  %1254 = sitofp i32 %1253 to double
  %1255 = call double @exp(double noundef %1254) #7
  %1256 = fmul double %1255, 2.000000e+00
  %1257 = load ptr, ptr %5, align 8, !tbaa !5
  %1258 = getelementptr inbounds %struct.background, ptr %1257, i32 0, i32 135
  %1259 = load ptr, ptr %1258, align 8, !tbaa !16
  %1260 = load i32, ptr %7, align 4, !tbaa !17
  %1261 = sext i32 %1260 to i64
  %1262 = getelementptr inbounds ptr, ptr %1259, i64 %1261
  %1263 = load ptr, ptr %1262, align 8, !tbaa !5
  %1264 = load i32, ptr %6, align 4, !tbaa !17
  %1265 = sext i32 %1264 to i64
  %1266 = getelementptr inbounds double, ptr %1263, i64 %1265
  %1267 = load double, ptr %1266, align 8, !tbaa !42
  %1268 = load ptr, ptr %5, align 8, !tbaa !5
  %1269 = getelementptr inbounds %struct.background, ptr %1268, i32 0, i32 135
  %1270 = load ptr, ptr %1269, align 8, !tbaa !16
  %1271 = load i32, ptr %7, align 4, !tbaa !17
  %1272 = sext i32 %1271 to i64
  %1273 = getelementptr inbounds ptr, ptr %1270, i64 %1272
  %1274 = load ptr, ptr %1273, align 8, !tbaa !5
  %1275 = load i32, ptr %6, align 4, !tbaa !17
  %1276 = sub nsw i32 %1275, 1
  %1277 = sext i32 %1276 to i64
  %1278 = getelementptr inbounds double, ptr %1274, i64 %1277
  %1279 = load double, ptr %1278, align 8, !tbaa !42
  %1280 = fsub double %1267, %1279
  %1281 = fmul double %1256, %1280
  store double %1281, ptr %17, align 8, !tbaa !42
  br label %1312

1282:                                             ; preds = %1241
  %1283 = load i32, ptr %8, align 4, !tbaa !17
  %1284 = sitofp i32 %1283 to double
  %1285 = call double @exp(double noundef %1284) #7
  %1286 = load ptr, ptr %5, align 8, !tbaa !5
  %1287 = getelementptr inbounds %struct.background, ptr %1286, i32 0, i32 135
  %1288 = load ptr, ptr %1287, align 8, !tbaa !16
  %1289 = load i32, ptr %7, align 4, !tbaa !17
  %1290 = sext i32 %1289 to i64
  %1291 = getelementptr inbounds ptr, ptr %1288, i64 %1290
  %1292 = load ptr, ptr %1291, align 8, !tbaa !5
  %1293 = load i32, ptr %6, align 4, !tbaa !17
  %1294 = add nsw i32 %1293, 1
  %1295 = sext i32 %1294 to i64
  %1296 = getelementptr inbounds double, ptr %1292, i64 %1295
  %1297 = load double, ptr %1296, align 8, !tbaa !42
  %1298 = load ptr, ptr %5, align 8, !tbaa !5
  %1299 = getelementptr inbounds %struct.background, ptr %1298, i32 0, i32 135
  %1300 = load ptr, ptr %1299, align 8, !tbaa !16
  %1301 = load i32, ptr %7, align 4, !tbaa !17
  %1302 = sext i32 %1301 to i64
  %1303 = getelementptr inbounds ptr, ptr %1300, i64 %1302
  %1304 = load ptr, ptr %1303, align 8, !tbaa !5
  %1305 = load i32, ptr %6, align 4, !tbaa !17
  %1306 = sub nsw i32 %1305, 1
  %1307 = sext i32 %1306 to i64
  %1308 = getelementptr inbounds double, ptr %1304, i64 %1307
  %1309 = load double, ptr %1308, align 8, !tbaa !42
  %1310 = fsub double %1297, %1309
  %1311 = fmul double %1285, %1310
  store double %1311, ptr %17, align 8, !tbaa !42
  br label %1312

1312:                                             ; preds = %1282, %1252
  br label %1313

1313:                                             ; preds = %1312, %1239
  %1314 = load double, ptr %18, align 8, !tbaa !42
  %1315 = load double, ptr %17, align 8, !tbaa !42
  %1316 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %1315, double %1314)
  %1317 = call i32 @background_ncdm_distribution(ptr noundef %22, double noundef %1316, ptr noundef %12)
  %1318 = icmp eq i32 %1317, 1
  br i1 %1318, label %1319, label %1328

1319:                                             ; preds = %1313
  call void @llvm.lifetime.start.p0(i64 2048, ptr %72) #7
  %1320 = getelementptr inbounds [2048 x i8], ptr %72, i64 0, i64 0
  %1321 = load ptr, ptr %5, align 8, !tbaa !5
  %1322 = getelementptr inbounds %struct.background, ptr %1321, i32 0, i32 149
  %1323 = getelementptr inbounds [2048 x i8], ptr %1322, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1320, ptr noundef @.str.6, ptr noundef @.str.76, ptr noundef %1323)
  %1324 = load ptr, ptr %5, align 8, !tbaa !5
  %1325 = getelementptr inbounds %struct.background, ptr %1324, i32 0, i32 149
  %1326 = getelementptr inbounds [2048 x i8], ptr %1325, i64 0, i64 0
  %1327 = getelementptr inbounds [2048 x i8], ptr %72, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1326, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1448, ptr noundef %1327)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %72) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1328:                                             ; preds = %1313
  %1329 = load double, ptr %18, align 8, !tbaa !42
  %1330 = load double, ptr %17, align 8, !tbaa !42
  %1331 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %1330, double %1329)
  %1332 = call i32 @background_ncdm_distribution(ptr noundef %22, double noundef %1331, ptr noundef %16)
  %1333 = icmp eq i32 %1332, 1
  br i1 %1333, label %1334, label %1343

1334:                                             ; preds = %1328
  call void @llvm.lifetime.start.p0(i64 2048, ptr %73) #7
  %1335 = getelementptr inbounds [2048 x i8], ptr %73, i64 0, i64 0
  %1336 = load ptr, ptr %5, align 8, !tbaa !5
  %1337 = getelementptr inbounds %struct.background, ptr %1336, i32 0, i32 149
  %1338 = getelementptr inbounds [2048 x i8], ptr %1337, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1335, ptr noundef @.str.6, ptr noundef @.str.77, ptr noundef %1338)
  %1339 = load ptr, ptr %5, align 8, !tbaa !5
  %1340 = getelementptr inbounds %struct.background, ptr %1339, i32 0, i32 149
  %1341 = getelementptr inbounds [2048 x i8], ptr %1340, i64 0, i64 0
  %1342 = getelementptr inbounds [2048 x i8], ptr %73, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1341, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1450, ptr noundef %1342)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %73) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1343:                                             ; preds = %1328
  %1344 = load double, ptr %16, align 8, !tbaa !42
  %1345 = load double, ptr %12, align 8, !tbaa !42
  %1346 = fsub double %1344, %1345
  %1347 = load double, ptr %14, align 8, !tbaa !42
  %1348 = fdiv double %1346, %1347
  %1349 = call double @llvm.fabs.f64(double %1348)
  %1350 = load ptr, ptr %4, align 8, !tbaa !5
  %1351 = getelementptr inbounds %struct.precision, ptr %1350, i32 0, i32 175
  %1352 = load double, ptr %1351, align 8, !tbaa !44
  %1353 = call double @sqrt(double noundef %1352) #7
  %1354 = fcmp ogt double %1349, %1353
  br i1 %1354, label %1355, label %1356

1355:                                             ; preds = %1343
  br label %1360

1356:                                             ; preds = %1343
  br label %1357

1357:                                             ; preds = %1356
  %1358 = load i32, ptr %8, align 4, !tbaa !17
  %1359 = add nsw i32 %1358, 1
  store i32 %1359, ptr %8, align 4, !tbaa !17
  br label %1179, !llvm.loop !45

1360:                                             ; preds = %1355, %1179
  %1361 = load double, ptr %18, align 8, !tbaa !42
  %1362 = load double, ptr %17, align 8, !tbaa !42
  %1363 = fsub double %1361, %1362
  %1364 = call i32 @background_ncdm_distribution(ptr noundef %22, double noundef %1363, ptr noundef %13)
  %1365 = icmp eq i32 %1364, 1
  br i1 %1365, label %1366, label %1375

1366:                                             ; preds = %1360
  call void @llvm.lifetime.start.p0(i64 2048, ptr %74) #7
  %1367 = getelementptr inbounds [2048 x i8], ptr %74, i64 0, i64 0
  %1368 = load ptr, ptr %5, align 8, !tbaa !5
  %1369 = getelementptr inbounds %struct.background, ptr %1368, i32 0, i32 149
  %1370 = getelementptr inbounds [2048 x i8], ptr %1369, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1367, ptr noundef @.str.6, ptr noundef @.str.78, ptr noundef %1370)
  %1371 = load ptr, ptr %5, align 8, !tbaa !5
  %1372 = getelementptr inbounds %struct.background, ptr %1371, i32 0, i32 149
  %1373 = getelementptr inbounds [2048 x i8], ptr %1372, i64 0, i64 0
  %1374 = getelementptr inbounds [2048 x i8], ptr %74, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1373, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1456, ptr noundef %1374)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %74) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1375:                                             ; preds = %1360
  %1376 = load double, ptr %18, align 8, !tbaa !42
  %1377 = load double, ptr %17, align 8, !tbaa !42
  %1378 = fadd double %1376, %1377
  %1379 = call i32 @background_ncdm_distribution(ptr noundef %22, double noundef %1378, ptr noundef %15)
  %1380 = icmp eq i32 %1379, 1
  br i1 %1380, label %1381, label %1390

1381:                                             ; preds = %1375
  call void @llvm.lifetime.start.p0(i64 2048, ptr %75) #7
  %1382 = getelementptr inbounds [2048 x i8], ptr %75, i64 0, i64 0
  %1383 = load ptr, ptr %5, align 8, !tbaa !5
  %1384 = getelementptr inbounds %struct.background, ptr %1383, i32 0, i32 149
  %1385 = getelementptr inbounds [2048 x i8], ptr %1384, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1382, ptr noundef @.str.6, ptr noundef @.str.79, ptr noundef %1385)
  %1386 = load ptr, ptr %5, align 8, !tbaa !5
  %1387 = getelementptr inbounds %struct.background, ptr %1386, i32 0, i32 149
  %1388 = getelementptr inbounds [2048 x i8], ptr %1387, i64 0, i64 0
  %1389 = getelementptr inbounds [2048 x i8], ptr %75, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %1388, ptr noundef @.str.3, ptr noundef @__func__.background_ncdm_init, i32 noundef 1458, ptr noundef %1389)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %75) #7
  store i32 1, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1390:                                             ; preds = %1375
  %1391 = load double, ptr %12, align 8, !tbaa !42
  %1392 = load double, ptr %13, align 8, !tbaa !42
  %1393 = call double @llvm.fmuladd.f64(double -8.000000e+00, double %1392, double %1391)
  %1394 = load double, ptr %15, align 8, !tbaa !42
  %1395 = call double @llvm.fmuladd.f64(double 8.000000e+00, double %1394, double %1393)
  %1396 = load double, ptr %16, align 8, !tbaa !42
  %1397 = fsub double %1395, %1396
  %1398 = fdiv double %1397, 1.200000e+01
  %1399 = load double, ptr %17, align 8, !tbaa !42
  %1400 = fdiv double %1398, %1399
  store double %1400, ptr %19, align 8, !tbaa !42
  %1401 = load double, ptr %14, align 8, !tbaa !42
  %1402 = call double @llvm.fabs.f64(double %1401)
  %1403 = fcmp oeq double %1402, 0.000000e+00
  br i1 %1403, label %1404, label %1417

1404:                                             ; preds = %1390
  %1405 = load double, ptr %18, align 8, !tbaa !42
  %1406 = fneg double %1405
  %1407 = load ptr, ptr %5, align 8, !tbaa !5
  %1408 = getelementptr inbounds %struct.background, ptr %1407, i32 0, i32 137
  %1409 = load ptr, ptr %1408, align 8, !tbaa !21
  %1410 = load i32, ptr %7, align 4, !tbaa !17
  %1411 = sext i32 %1410 to i64
  %1412 = getelementptr inbounds ptr, ptr %1409, i64 %1411
  %1413 = load ptr, ptr %1412, align 8, !tbaa !5
  %1414 = load i32, ptr %6, align 4, !tbaa !17
  %1415 = sext i32 %1414 to i64
  %1416 = getelementptr inbounds double, ptr %1413, i64 %1415
  store double %1406, ptr %1416, align 8, !tbaa !42
  br label %1433

1417:                                             ; preds = %1390
  %1418 = load double, ptr %18, align 8, !tbaa !42
  %1419 = load double, ptr %14, align 8, !tbaa !42
  %1420 = fdiv double %1418, %1419
  %1421 = load double, ptr %19, align 8, !tbaa !42
  %1422 = fmul double %1420, %1421
  %1423 = load ptr, ptr %5, align 8, !tbaa !5
  %1424 = getelementptr inbounds %struct.background, ptr %1423, i32 0, i32 137
  %1425 = load ptr, ptr %1424, align 8, !tbaa !21
  %1426 = load i32, ptr %7, align 4, !tbaa !17
  %1427 = sext i32 %1426 to i64
  %1428 = getelementptr inbounds ptr, ptr %1425, i64 %1427
  %1429 = load ptr, ptr %1428, align 8, !tbaa !5
  %1430 = load i32, ptr %6, align 4, !tbaa !17
  %1431 = sext i32 %1430 to i64
  %1432 = getelementptr inbounds double, ptr %1429, i64 %1431
  store double %1422, ptr %1432, align 8, !tbaa !42
  br label %1433

1433:                                             ; preds = %1417, %1404
  br label %1434

1434:                                             ; preds = %1433
  %1435 = load i32, ptr %6, align 4, !tbaa !17
  %1436 = add nsw i32 %1435, 1
  store i32 %1436, ptr %6, align 4, !tbaa !17
  br label %1144, !llvm.loop !46

1437:                                             ; preds = %1144
  %1438 = load ptr, ptr %5, align 8, !tbaa !5
  %1439 = getelementptr inbounds %struct.background, ptr %1438, i32 0, i32 33
  %1440 = load ptr, ptr %1439, align 8, !tbaa !47
  %1441 = load i32, ptr %7, align 4, !tbaa !17
  %1442 = sext i32 %1441 to i64
  %1443 = getelementptr inbounds double, ptr %1440, i64 %1442
  %1444 = load double, ptr %1443, align 8, !tbaa !42
  %1445 = fmul double %1444, 4.000000e+00
  %1446 = fmul double %1445, 0x400921FB54442D18
  %1447 = load ptr, ptr %5, align 8, !tbaa !5
  %1448 = getelementptr inbounds %struct.background, ptr %1447, i32 0, i32 2
  %1449 = load double, ptr %1448, align 8, !tbaa !48
  %1450 = load ptr, ptr %5, align 8, !tbaa !5
  %1451 = getelementptr inbounds %struct.background, ptr %1450, i32 0, i32 35
  %1452 = load ptr, ptr %1451, align 8, !tbaa !49
  %1453 = load i32, ptr %7, align 4, !tbaa !17
  %1454 = sext i32 %1453 to i64
  %1455 = getelementptr inbounds double, ptr %1452, i64 %1454
  %1456 = load double, ptr %1455, align 8, !tbaa !42
  %1457 = fmul double %1449, %1456
  %1458 = fmul double %1457, 0x3B30B0E7F1528C6D
  %1459 = call double @pow(double noundef %1458, double noundef 4.000000e+00) #7
  %1460 = fmul double %1446, %1459
  %1461 = fmul double %1460, 8.000000e+00
  %1462 = fmul double %1461, 0x400921FB54442D18
  %1463 = fmul double %1462, 6.674280e-11
  %1464 = fdiv double %1463, 3.000000e+00
  %1465 = call double @pow(double noundef 0x38E185A6D0B0C68D, double noundef 3.000000e+00) #7
  %1466 = fdiv double %1464, %1465
  %1467 = call double @pow(double noundef 0x41B1DE784A000000, double noundef 7.000000e+00) #7
  %1468 = fdiv double %1466, %1467
  %1469 = fmul double %1468, 0x449A22FF260E3826
  %1470 = fmul double %1469, 0x449A22FF260E3826
  %1471 = load ptr, ptr %5, align 8, !tbaa !5
  %1472 = getelementptr inbounds %struct.background, ptr %1471, i32 0, i32 140
  %1473 = load ptr, ptr %1472, align 8, !tbaa !24
  %1474 = load i32, ptr %7, align 4, !tbaa !17
  %1475 = sext i32 %1474 to i64
  %1476 = getelementptr inbounds double, ptr %1473, i64 %1475
  store double %1470, ptr %1476, align 8, !tbaa !42
  %1477 = load ptr, ptr %5, align 8, !tbaa !5
  %1478 = getelementptr inbounds %struct.background, ptr %1477, i32 0, i32 40
  %1479 = load ptr, ptr %1478, align 8, !tbaa !28
  %1480 = icmp ne ptr %1479, null
  br i1 %1480, label %1481, label %1497

1481:                                             ; preds = %1437
  %1482 = load ptr, ptr %5, align 8, !tbaa !5
  %1483 = getelementptr inbounds %struct.background, ptr %1482, i32 0, i32 40
  %1484 = load ptr, ptr %1483, align 8, !tbaa !28
  %1485 = load i32, ptr %7, align 4, !tbaa !17
  %1486 = sext i32 %1485 to i64
  %1487 = getelementptr inbounds i32, ptr %1484, i64 %1486
  %1488 = load i32, ptr %1487, align 4, !tbaa !17
  %1489 = icmp eq i32 %1488, 1
  br i1 %1489, label %1490, label %1497

1490:                                             ; preds = %1481
  %1491 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 3
  %1492 = load ptr, ptr %1491, align 8, !tbaa !26
  call void @free(ptr noundef %1492) #7
  %1493 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 4
  %1494 = load ptr, ptr %1493, align 8, !tbaa !32
  call void @free(ptr noundef %1494) #7
  %1495 = getelementptr inbounds %struct.background_parameters_for_distributions, ptr %22, i32 0, i32 5
  %1496 = load ptr, ptr %1495, align 8, !tbaa !33
  call void @free(ptr noundef %1496) #7
  br label %1497

1497:                                             ; preds = %1490, %1481, %1437
  br label %1498

1498:                                             ; preds = %1497
  %1499 = load i32, ptr %7, align 4, !tbaa !17
  %1500 = add nsw i32 %1499, 1
  store i32 %1500, ptr %7, align 4, !tbaa !17
  br label %286, !llvm.loop !50

1501:                                             ; preds = %286
  store i32 0, ptr %3, align 4
  store i32 1, ptr %26, align 4
  br label %1502

1502:                                             ; preds = %1501, %1381, %1366, %1334, %1319, %1169, %1126, %1017, %955, %913, %871, %829, %705, %665, %642, %554, %514, %491, %454, %404, %382, %360, %321, %272, %246, %220, %194, %168, %142, %116, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %1503 = load i32, ptr %3, align 4
  ret i32 %1503
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #1

declare void @rewind(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

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

declare i32 @get_qsampling(ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

declare i32 @get_qsampling_manual(ptr noundef, ptr noundef, i32 noundef, double noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind allocsize(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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind allocsize(1) }

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


; 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.background_parameters_for_distributions = type { ptr, i32, i32, ptr, ptr, ptr, i32 }

@.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.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__.background_ncdm_init = external hidden unnamed_addr constant [21 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [211 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [223 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [217 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [50 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 @pow(double noundef, double noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @background_ncdm_distribution(ptr noundef, double noundef, ptr noundef) #6

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @background_ncdm_test_function(ptr noundef, double noundef, ptr noundef) #6

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @background_ncdm_init(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #6 {
  %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 double, align 8
  %10 = alloca %struct.background_parameters_for_distributions, align 8
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [2048 x i8], align 16
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  %22 = alloca [2048 x i8], align 16
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  %29 = alloca [2048 x i8], align 16
  %30 = alloca [2048 x i8], align 16
  %31 = alloca [2048 x i8], align 16
  %32 = alloca [2048 x i8], align 16
  %33 = alloca [2048 x i8], align 16
  %34 = alloca [2048 x i8], align 16
  %35 = alloca [2048 x i8], align 16
  %36 = alloca [2048 x i8], align 16
  %37 = alloca [2048 x i8], align 16
  %38 = alloca [2048 x i8], align 16
  %39 = alloca [2048 x i8], align 16
  %40 = alloca [2048 x i8], align 16
  %41 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #9
  store ptr %1, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %1, i64 224
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = sext i32 %43 to i64
  %45 = shl nsw i64 %44, 3
  %46 = tail call noalias ptr @malloc(i64 noundef %45) #10
  %47 = getelementptr inbounds i8, ptr %1, i64 792
  store ptr %46, ptr %47, align 8, !tbaa !15
  %48 = icmp eq ptr %46, null
  br i1 %48, label %49, label %52

49:                                               ; preds = %2
  %50 = shl i32 %43, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.48, i32 noundef %50) #9
  %51 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %51, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1285, ptr noundef nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #9
  br label %.loopexit

52:                                               ; preds = %2
  %53 = tail call noalias ptr @malloc(i64 noundef %45) #10
  %54 = getelementptr inbounds i8, ptr %1, i64 800
  store ptr %53, ptr %54, align 8, !tbaa !16
  %55 = icmp eq ptr %53, null
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  %57 = shl i32 %43, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.49, i32 noundef %57) #9
  %58 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %58, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1286, ptr noundef nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #9
  br label %.loopexit

59:                                               ; preds = %52
  %60 = tail call noalias ptr @malloc(i64 noundef %45) #10
  %61 = getelementptr inbounds i8, ptr %1, i64 776
  store ptr %60, ptr %61, align 8, !tbaa !17
  %62 = icmp eq ptr %60, null
  br i1 %62, label %63, label %66

63:                                               ; preds = %59
  %64 = shl i32 %43, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.50, i32 noundef %64) #9
  %65 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %65, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1287, ptr noundef nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #9
  br label %.loopexit

66:                                               ; preds = %59
  %67 = tail call noalias ptr @malloc(i64 noundef %45) #10
  %68 = getelementptr inbounds i8, ptr %1, i64 784
  store ptr %67, ptr %68, align 8, !tbaa !18
  %69 = icmp eq ptr %67, null
  br i1 %69, label %70, label %73

70:                                               ; preds = %66
  %71 = shl i32 %43, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.51, i32 noundef %71) #9
  %72 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %72, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1288, ptr noundef nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #9
  br label %.loopexit

73:                                               ; preds = %66
  %74 = tail call noalias ptr @malloc(i64 noundef %45) #10
  %75 = getelementptr inbounds i8, ptr %1, i64 808
  store ptr %74, ptr %75, align 8, !tbaa !19
  %76 = icmp eq ptr %74, null
  br i1 %76, label %77, label %80

77:                                               ; preds = %73
  %78 = shl i32 %43, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.52, i32 noundef %78) #9
  %79 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %79, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1289, ptr noundef nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #9
  br label %.loopexit

80:                                               ; preds = %73
  %81 = shl nsw i64 %44, 2
  %82 = tail call noalias ptr @malloc(i64 noundef %81) #10
  %83 = getelementptr inbounds i8, ptr %1, i64 824
  store ptr %82, ptr %83, align 8, !tbaa !20
  %84 = icmp eq ptr %82, null
  br i1 %84, label %85, label %88

85:                                               ; preds = %80
  %86 = shl i32 %43, 2
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.53, i32 noundef %86) #9
  %87 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %87, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1292, ptr noundef nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #9
  br label %.loopexit

88:                                               ; preds = %80
  %89 = tail call noalias ptr @malloc(i64 noundef %81) #10
  %90 = getelementptr inbounds i8, ptr %1, i64 816
  store ptr %89, ptr %90, align 8, !tbaa !21
  %91 = icmp eq ptr %89, null
  br i1 %91, label %92, label %95

92:                                               ; preds = %88
  %93 = shl i32 %43, 2
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.54, i32 noundef %93) #9
  %94 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %94, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1293, ptr noundef nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #9
  br label %.loopexit

95:                                               ; preds = %88
  %96 = tail call noalias ptr @malloc(i64 noundef %45) #10
  %97 = getelementptr inbounds i8, ptr %1, i64 832
  store ptr %96, ptr %97, align 8, !tbaa !22
  %98 = icmp eq ptr %96, null
  br i1 %98, label %118, label %.preheader355

.preheader355:                                    ; preds = %95
  %99 = icmp sgt i32 %43, 0
  br i1 %99, label %.lr.ph416, label %.loopexit

.lr.ph416:                                        ; preds = %.preheader355
  %100 = getelementptr inbounds i8, ptr %10, i64 8
  %101 = getelementptr inbounds i8, ptr %10, i64 16
  %102 = getelementptr inbounds i8, ptr %10, i64 12
  %103 = getelementptr inbounds i8, ptr %1, i64 312
  %104 = getelementptr inbounds i8, ptr %1, i64 320
  %105 = getelementptr inbounds i8, ptr %10, i64 24
  %106 = getelementptr inbounds i8, ptr %10, i64 32
  %107 = getelementptr inbounds i8, ptr %1, i64 2902
  %108 = getelementptr inbounds i8, ptr %1, i64 752
  %109 = getelementptr inbounds i8, ptr %1, i64 760
  %110 = getelementptr inbounds i8, ptr %1, i64 768
  %111 = getelementptr inbounds i8, ptr %1, i64 2900
  %112 = getelementptr inbounds i8, ptr %0, i64 48
  %113 = getelementptr inbounds i8, ptr %0, i64 72
  %114 = getelementptr inbounds i8, ptr %0, i64 2344
  %115 = getelementptr inbounds i8, ptr %1, i64 256
  %116 = getelementptr inbounds i8, ptr %1, i64 16
  %117 = getelementptr inbounds i8, ptr %1, i64 272
  br label %121

118:                                              ; preds = %95
  %119 = shl i32 %43, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.55, i32 noundef %119) #9
  %120 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %120, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1294, ptr noundef nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #9
  br label %.loopexit

121:                                              ; preds = %.lr.ph416, %650
  %indvars.iv459 = phi i64 [ 0, %.lr.ph416 ], [ %indvars.iv.next460, %650 ]
  %.0339414 = phi i32 [ 0, %.lr.ph416 ], [ %.1340, %650 ]
  %122 = trunc nuw nsw i64 %indvars.iv459 to i32
  store i32 %122, ptr %100, align 8, !tbaa !23
  store ptr null, ptr %101, align 8, !tbaa !24
  store i32 0, ptr %102, align 4, !tbaa !25
  %123 = load ptr, ptr %103, align 8, !tbaa !26
  %.not = icmp eq ptr %123, null
  br i1 %.not, label %177, label %124

124:                                              ; preds = %121
  %125 = getelementptr inbounds i32, ptr %123, i64 %indvars.iv459
  %126 = load i32, ptr %125, align 4, !tbaa !27
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %177

128:                                              ; preds = %124
  %129 = load ptr, ptr %104, align 8, !tbaa !28
  %130 = shl nsw i32 %.0339414, 10
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  %133 = call noalias ptr @fopen(ptr noundef %132, ptr noundef nonnull @.str.56)
  %134 = icmp eq ptr %133, null
  br i1 %134, label %135, label %.preheader354

135:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %19) #9
  %136 = load ptr, ptr %104, align 8, !tbaa !28
  %137 = getelementptr inbounds i8, ptr %136, i64 %131
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str.57, ptr noundef %137) #9
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %20) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %20, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.58, ptr noundef nonnull %19) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1304, ptr noundef nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #9
  br label %.loopexit

.preheader354:                                    ; preds = %128, %.preheader354
  %138 = phi i32 [ %140, %.preheader354 ], [ 0, %128 ]
  %139 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %133, ptr noundef nonnull @.str.59, ptr noundef nonnull %8, ptr noundef nonnull %9) #9
  %140 = add nuw nsw i32 %138, 1
  %141 = icmp eq i32 %139, 2
  br i1 %141, label %.preheader354, label %142, !llvm.loop !29

142:                                              ; preds = %.preheader354
  call void @rewind(ptr noundef nonnull %133)
  store i32 %138, ptr %102, align 4, !tbaa !25
  %143 = zext nneg i32 %138 to i64
  %144 = shl nuw nsw i64 %143, 3
  %145 = call noalias ptr @malloc(i64 noundef %144) #10
  store ptr %145, ptr %101, align 8, !tbaa !24
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %149

147:                                              ; preds = %142
  %148 = shl i32 %138, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %21) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.60, i32 noundef %148) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1313, ptr noundef nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %21) #9
  br label %.loopexit

149:                                              ; preds = %142
  %150 = call noalias ptr @malloc(i64 noundef %144) #10
  store ptr %150, ptr %105, align 8, !tbaa !31
  %151 = icmp eq ptr %150, null
  br i1 %151, label %152, label %154

152:                                              ; preds = %149
  %153 = shl i32 %138, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %22) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.61, i32 noundef %153) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1314, ptr noundef nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %22) #9
  br label %.loopexit

154:                                              ; preds = %149
  %155 = call noalias ptr @malloc(i64 noundef %144) #10
  store ptr %155, ptr %106, align 8, !tbaa !32
  %156 = icmp eq ptr %155, null
  br i1 %156, label %157, label %.preheader353

.preheader353:                                    ; preds = %154
  %.not462 = icmp eq i32 %138, 0
  br i1 %.not462, label %._crit_edge, label %.lr.ph

157:                                              ; preds = %154
  %158 = shl i32 %138, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %23) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %23, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.62, i32 noundef %158) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1315, ptr noundef nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %23) #9
  br label %.loopexit

.lr.ph:                                           ; preds = %.preheader353, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader353 ]
  %159 = load ptr, ptr %101, align 8, !tbaa !24
  %160 = getelementptr inbounds double, ptr %159, i64 %indvars.iv
  %161 = load ptr, ptr %105, align 8, !tbaa !31
  %162 = getelementptr inbounds double, ptr %161, i64 %indvars.iv
  %163 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %133, ptr noundef nonnull @.str.59, ptr noundef %160, ptr noundef %162) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %164 = load i32, ptr %102, align 4, !tbaa !25
  %165 = sext i32 %164 to i64
  %166 = icmp slt i64 %indvars.iv.next, %165
  br i1 %166, label %.lr.ph, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %.lr.ph, %.preheader353
  %167 = call i32 @fclose(ptr noundef nonnull %133)
  %168 = load ptr, ptr %101, align 8, !tbaa !24
  %169 = load i32, ptr %102, align 4, !tbaa !25
  %170 = load ptr, ptr %105, align 8, !tbaa !31
  %171 = load ptr, ptr %106, align 8, !tbaa !32
  %172 = call i32 @array_spline_table_lines(ptr noundef %168, i32 noundef %169, ptr noundef %170, i32 noundef 1, ptr noundef %171, i16 noundef signext 1, ptr noundef nonnull %107) #9
  %173 = icmp eq i32 %172, 1
  br i1 %173, label %174, label %175

174:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %24) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %24, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.63, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1331, ptr noundef nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %24) #9
  br label %.loopexit

175:                                              ; preds = %._crit_edge
  %176 = add nsw i32 %.0339414, 1
  br label %177

177:                                              ; preds = %175, %124, %121
  %.1340 = phi i32 [ %176, %175 ], [ %.0339414, %124 ], [ %.0339414, %121 ]
  %178 = load ptr, ptr %108, align 8, !tbaa !34
  %179 = getelementptr inbounds i32, ptr %178, i64 %indvars.iv459
  %180 = load i32, ptr %179, align 4, !tbaa !27
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %306

182:                                              ; preds = %177
  %183 = call noalias dereferenceable_or_null(2000) ptr @malloc(i64 noundef 2000) #10
  %184 = load ptr, ptr %47, align 8, !tbaa !15
  %185 = getelementptr inbounds ptr, ptr %184, i64 %indvars.iv459
  store ptr %183, ptr %185, align 8, !tbaa !35
  %186 = load ptr, ptr %47, align 8, !tbaa !15
  %187 = getelementptr inbounds ptr, ptr %186, i64 %indvars.iv459
  %188 = load ptr, ptr %187, align 8, !tbaa !35
  %189 = icmp eq ptr %188, null
  br i1 %189, label %190, label %191

190:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %25) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %25, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.64, i32 noundef 2000) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1338, ptr noundef nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %25) #9
  br label %.loopexit

191:                                              ; preds = %182
  %192 = call noalias dereferenceable_or_null(2000) ptr @malloc(i64 noundef 2000) #10
  %193 = load ptr, ptr %54, align 8, !tbaa !16
  %194 = getelementptr inbounds ptr, ptr %193, i64 %indvars.iv459
  store ptr %192, ptr %194, align 8, !tbaa !35
  %195 = load ptr, ptr %54, align 8, !tbaa !16
  %196 = getelementptr inbounds ptr, ptr %195, i64 %indvars.iv459
  %197 = load ptr, ptr %196, align 8, !tbaa !35
  %198 = icmp eq ptr %197, null
  br i1 %198, label %199, label %200

199:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %26) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.65, i32 noundef 2000) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1339, ptr noundef nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %26) #9
  br label %.loopexit

200:                                              ; preds = %191
  %201 = load ptr, ptr %47, align 8, !tbaa !15
  %202 = getelementptr inbounds ptr, ptr %201, i64 %indvars.iv459
  %203 = load ptr, ptr %202, align 8, !tbaa !35
  %204 = load ptr, ptr %83, align 8, !tbaa !20
  %205 = getelementptr inbounds i32, ptr %204, i64 %indvars.iv459
  %206 = load double, ptr %112, align 8, !tbaa !36
  %207 = load ptr, ptr %101, align 8, !tbaa !24
  %208 = load i32, ptr %102, align 4, !tbaa !25
  %209 = call i32 @get_qsampling(ptr noundef %203, ptr noundef nonnull %197, ptr noundef %205, i32 noundef 250, double noundef %206, ptr noundef %207, i32 noundef %208, ptr noundef nonnull @background_ncdm_test_function, ptr noundef nonnull @background_ncdm_distribution, ptr noundef nonnull %10, ptr noundef nonnull %107) #9
  %210 = icmp eq i32 %209, 1
  br i1 %210, label %211, label %212

211:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %27) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %27, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.66, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1353, ptr noundef nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %27) #9
  br label %.loopexit

212:                                              ; preds = %200
  %213 = load ptr, ptr %47, align 8, !tbaa !15
  %214 = getelementptr inbounds ptr, ptr %213, i64 %indvars.iv459
  %215 = load ptr, ptr %214, align 8, !tbaa !35
  %216 = load ptr, ptr %83, align 8, !tbaa !20
  %217 = getelementptr inbounds i32, ptr %216, i64 %indvars.iv459
  %218 = load i32, ptr %217, align 4, !tbaa !27
  %219 = sext i32 %218 to i64
  %220 = shl nsw i64 %219, 3
  %221 = call ptr @realloc(ptr noundef %215, i64 noundef %220) #11
  %222 = load ptr, ptr %47, align 8, !tbaa !15
  %223 = getelementptr inbounds ptr, ptr %222, i64 %indvars.iv459
  store ptr %221, ptr %223, align 8, !tbaa !35
  %224 = load ptr, ptr %54, align 8, !tbaa !16
  %225 = getelementptr inbounds ptr, ptr %224, i64 %indvars.iv459
  %226 = load ptr, ptr %225, align 8, !tbaa !35
  %227 = load ptr, ptr %83, align 8, !tbaa !20
  %228 = getelementptr inbounds i32, ptr %227, i64 %indvars.iv459
  %229 = load i32, ptr %228, align 4, !tbaa !27
  %230 = sext i32 %229 to i64
  %231 = shl nsw i64 %230, 3
  %232 = call ptr @realloc(ptr noundef %226, i64 noundef %231) #11
  %233 = load ptr, ptr %54, align 8, !tbaa !16
  %234 = getelementptr inbounds ptr, ptr %233, i64 %indvars.iv459
  store ptr %232, ptr %234, align 8, !tbaa !35
  %235 = load i16, ptr %111, align 4, !tbaa !38
  %236 = icmp sgt i16 %235, 0
  br i1 %236, label %237, label %244

237:                                              ; preds = %212
  %238 = load ptr, ptr %83, align 8, !tbaa !20
  %239 = getelementptr inbounds i32, ptr %238, i64 %indvars.iv459
  %240 = load i32, ptr %239, align 4, !tbaa !27
  %241 = trunc i64 %indvars.iv459 to i32
  %242 = add i32 %241, 1
  %243 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.67, i32 noundef %242, i32 noundef %240)
  br label %244

244:                                              ; preds = %237, %212
  %245 = call noalias dereferenceable_or_null(6400) ptr @malloc(i64 noundef 6400) #10
  %246 = load ptr, ptr %61, align 8, !tbaa !17
  %247 = getelementptr inbounds ptr, ptr %246, i64 %indvars.iv459
  store ptr %245, ptr %247, align 8, !tbaa !35
  %248 = load ptr, ptr %61, align 8, !tbaa !17
  %249 = getelementptr inbounds ptr, ptr %248, i64 %indvars.iv459
  %250 = load ptr, ptr %249, align 8, !tbaa !35
  %251 = icmp eq ptr %250, null
  br i1 %251, label %252, label %253

252:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %28) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.68, i32 noundef 6400) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1364, ptr noundef nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %28) #9
  br label %.loopexit

253:                                              ; preds = %244
  %254 = call noalias dereferenceable_or_null(6400) ptr @malloc(i64 noundef 6400) #10
  %255 = load ptr, ptr %68, align 8, !tbaa !18
  %256 = getelementptr inbounds ptr, ptr %255, i64 %indvars.iv459
  store ptr %254, ptr %256, align 8, !tbaa !35
  %257 = load ptr, ptr %68, align 8, !tbaa !18
  %258 = getelementptr inbounds ptr, ptr %257, i64 %indvars.iv459
  %259 = load ptr, ptr %258, align 8, !tbaa !35
  %260 = icmp eq ptr %259, null
  br i1 %260, label %261, label %262

261:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %29) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.69, i32 noundef 6400) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1365, ptr noundef nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %29) #9
  br label %.loopexit

262:                                              ; preds = %253
  %263 = load ptr, ptr %61, align 8, !tbaa !17
  %264 = getelementptr inbounds ptr, ptr %263, i64 %indvars.iv459
  %265 = load ptr, ptr %264, align 8, !tbaa !35
  %266 = load ptr, ptr %90, align 8, !tbaa !21
  %267 = getelementptr inbounds i32, ptr %266, i64 %indvars.iv459
  %268 = load double, ptr %113, align 8, !tbaa !39
  %269 = load ptr, ptr %101, align 8, !tbaa !24
  %270 = load i32, ptr %102, align 4, !tbaa !25
  %271 = call i32 @get_qsampling(ptr noundef %265, ptr noundef nonnull %259, ptr noundef %267, i32 noundef 800, double noundef %268, ptr noundef %269, i32 noundef %270, ptr noundef nonnull @background_ncdm_test_function, ptr noundef nonnull @background_ncdm_distribution, ptr noundef nonnull %10, ptr noundef nonnull %107) #9
  %272 = icmp eq i32 %271, 1
  br i1 %272, label %273, label %274

273:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %30) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %30, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.70, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1379, ptr noundef nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %30) #9
  br label %.loopexit

274:                                              ; preds = %262
  %275 = load ptr, ptr %61, align 8, !tbaa !17
  %276 = getelementptr inbounds ptr, ptr %275, i64 %indvars.iv459
  %277 = load ptr, ptr %276, align 8, !tbaa !35
  %278 = load ptr, ptr %90, align 8, !tbaa !21
  %279 = getelementptr inbounds i32, ptr %278, i64 %indvars.iv459
  %280 = load i32, ptr %279, align 4, !tbaa !27
  %281 = sext i32 %280 to i64
  %282 = shl nsw i64 %281, 3
  %283 = call ptr @realloc(ptr noundef %277, i64 noundef %282) #11
  %284 = load ptr, ptr %61, align 8, !tbaa !17
  %285 = getelementptr inbounds ptr, ptr %284, i64 %indvars.iv459
  store ptr %283, ptr %285, align 8, !tbaa !35
  %286 = load ptr, ptr %68, align 8, !tbaa !18
  %287 = getelementptr inbounds ptr, ptr %286, i64 %indvars.iv459
  %288 = load ptr, ptr %287, align 8, !tbaa !35
  %289 = load ptr, ptr %90, align 8, !tbaa !21
  %290 = getelementptr inbounds i32, ptr %289, i64 %indvars.iv459
  %291 = load i32, ptr %290, align 4, !tbaa !27
  %292 = sext i32 %291 to i64
  %293 = shl nsw i64 %292, 3
  %294 = call ptr @realloc(ptr noundef %288, i64 noundef %293) #11
  %295 = load ptr, ptr %68, align 8, !tbaa !18
  %296 = getelementptr inbounds ptr, ptr %295, i64 %indvars.iv459
  store ptr %294, ptr %296, align 8, !tbaa !35
  %297 = load i16, ptr %111, align 4, !tbaa !38
  %298 = icmp sgt i16 %297, 0
  br i1 %298, label %299, label %455

299:                                              ; preds = %274
  %300 = load ptr, ptr %90, align 8, !tbaa !21
  %301 = getelementptr inbounds i32, ptr %300, i64 %indvars.iv459
  %302 = load i32, ptr %301, align 4, !tbaa !27
  %303 = trunc i64 %indvars.iv459 to i32
  %304 = add i32 %303, 1
  %305 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.71, i32 noundef %304, i32 noundef %302)
  br label %455

306:                                              ; preds = %177
  %307 = load ptr, ptr %109, align 8, !tbaa !40
  %308 = getelementptr inbounds i32, ptr %307, i64 %indvars.iv459
  %309 = load i32, ptr %308, align 4, !tbaa !27
  %310 = load ptr, ptr %90, align 8, !tbaa !21
  %311 = getelementptr inbounds i32, ptr %310, i64 %indvars.iv459
  store i32 %309, ptr %311, align 4, !tbaa !27
  %312 = load ptr, ptr %83, align 8, !tbaa !20
  %313 = getelementptr inbounds i32, ptr %312, i64 %indvars.iv459
  store i32 %309, ptr %313, align 4, !tbaa !27
  %314 = load i32, ptr %311, align 4, !tbaa !27
  %315 = sext i32 %314 to i64
  %316 = shl nsw i64 %315, 3
  %317 = call noalias ptr @malloc(i64 noundef %316) #10
  %318 = load ptr, ptr %61, align 8, !tbaa !17
  %319 = getelementptr inbounds ptr, ptr %318, i64 %indvars.iv459
  store ptr %317, ptr %319, align 8, !tbaa !35
  %320 = load ptr, ptr %61, align 8, !tbaa !17
  %321 = getelementptr inbounds ptr, ptr %320, i64 %indvars.iv459
  %322 = load ptr, ptr %321, align 8, !tbaa !35
  %323 = icmp eq ptr %322, null
  %324 = load ptr, ptr %90, align 8, !tbaa !21
  %325 = getelementptr inbounds i32, ptr %324, i64 %indvars.iv459
  %326 = load i32, ptr %325, align 4, !tbaa !27
  br i1 %323, label %327, label %329

327:                                              ; preds = %306
  %328 = shl i32 %326, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %31) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %31, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.68, i32 noundef %328) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1396, ptr noundef nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %31) #9
  br label %.loopexit

329:                                              ; preds = %306
  %330 = sext i32 %326 to i64
  %331 = shl nsw i64 %330, 3
  %332 = call noalias ptr @malloc(i64 noundef %331) #10
  %333 = load ptr, ptr %68, align 8, !tbaa !18
  %334 = getelementptr inbounds ptr, ptr %333, i64 %indvars.iv459
  store ptr %332, ptr %334, align 8, !tbaa !35
  %335 = load ptr, ptr %68, align 8, !tbaa !18
  %336 = getelementptr inbounds ptr, ptr %335, i64 %indvars.iv459
  %337 = load ptr, ptr %336, align 8, !tbaa !35
  %338 = icmp eq ptr %337, null
  br i1 %338, label %339, label %344

339:                                              ; preds = %329
  %340 = load ptr, ptr %90, align 8, !tbaa !21
  %341 = getelementptr inbounds i32, ptr %340, i64 %indvars.iv459
  %342 = load i32, ptr %341, align 4, !tbaa !27
  %343 = shl i32 %342, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %32) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %32, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.69, i32 noundef %343) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1397, ptr noundef nonnull %32) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %32) #9
  br label %.loopexit

344:                                              ; preds = %329
  %345 = load ptr, ptr %83, align 8, !tbaa !20
  %346 = getelementptr inbounds i32, ptr %345, i64 %indvars.iv459
  %347 = load i32, ptr %346, align 4, !tbaa !27
  %348 = sext i32 %347 to i64
  %349 = shl nsw i64 %348, 3
  %350 = call noalias ptr @malloc(i64 noundef %349) #10
  %351 = load ptr, ptr %47, align 8, !tbaa !15
  %352 = getelementptr inbounds ptr, ptr %351, i64 %indvars.iv459
  store ptr %350, ptr %352, align 8, !tbaa !35
  %353 = load ptr, ptr %47, align 8, !tbaa !15
  %354 = getelementptr inbounds ptr, ptr %353, i64 %indvars.iv459
  %355 = load ptr, ptr %354, align 8, !tbaa !35
  %356 = icmp eq ptr %355, null
  %357 = load ptr, ptr %83, align 8, !tbaa !20
  %358 = getelementptr inbounds i32, ptr %357, i64 %indvars.iv459
  %359 = load i32, ptr %358, align 4, !tbaa !27
  br i1 %356, label %360, label %362

360:                                              ; preds = %344
  %361 = shl i32 %359, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %33) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %33, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.64, i32 noundef %361) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1398, ptr noundef nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %33) #9
  br label %.loopexit

362:                                              ; preds = %344
  %363 = sext i32 %359 to i64
  %364 = shl nsw i64 %363, 3
  %365 = call noalias ptr @malloc(i64 noundef %364) #10
  %366 = load ptr, ptr %54, align 8, !tbaa !16
  %367 = getelementptr inbounds ptr, ptr %366, i64 %indvars.iv459
  store ptr %365, ptr %367, align 8, !tbaa !35
  %368 = load ptr, ptr %54, align 8, !tbaa !16
  %369 = getelementptr inbounds ptr, ptr %368, i64 %indvars.iv459
  %370 = load ptr, ptr %369, align 8, !tbaa !35
  %371 = icmp eq ptr %370, null
  br i1 %371, label %372, label %377

372:                                              ; preds = %362
  %373 = load ptr, ptr %83, align 8, !tbaa !20
  %374 = getelementptr inbounds i32, ptr %373, i64 %indvars.iv459
  %375 = load i32, ptr %374, align 4, !tbaa !27
  %376 = shl i32 %375, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %34) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %34, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.65, i32 noundef %376) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1399, ptr noundef nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %34) #9
  br label %.loopexit

377:                                              ; preds = %362
  %378 = load ptr, ptr %47, align 8, !tbaa !15
  %379 = getelementptr inbounds ptr, ptr %378, i64 %indvars.iv459
  %380 = load ptr, ptr %379, align 8, !tbaa !35
  %381 = load ptr, ptr %83, align 8, !tbaa !20
  %382 = getelementptr inbounds i32, ptr %381, i64 %indvars.iv459
  %383 = load i32, ptr %382, align 4, !tbaa !27
  %384 = load ptr, ptr %110, align 8, !tbaa !41
  %385 = getelementptr inbounds double, ptr %384, i64 %indvars.iv459
  %386 = load double, ptr %385, align 8, !tbaa !42
  %387 = load ptr, ptr %108, align 8, !tbaa !34
  %388 = getelementptr inbounds i32, ptr %387, i64 %indvars.iv459
  %389 = load i32, ptr %388, align 4, !tbaa !27
  %390 = load ptr, ptr %101, align 8, !tbaa !24
  %391 = load i32, ptr %102, align 4, !tbaa !25
  %392 = call i32 @get_qsampling_manual(ptr noundef %380, ptr noundef nonnull %370, i32 noundef %383, double noundef %386, i32 noundef %389, ptr noundef %390, i32 noundef %391, ptr noundef nonnull @background_ncdm_distribution, ptr noundef nonnull %10, ptr noundef nonnull %107) #9
  %393 = icmp eq i32 %392, 1
  br i1 %393, label %436, label %.preheader352

.preheader352:                                    ; preds = %377
  %394 = load ptr, ptr %83, align 8, !tbaa !20
  %395 = getelementptr inbounds i32, ptr %394, i64 %indvars.iv459
  %396 = load i32, ptr %395, align 4, !tbaa !27
  %397 = icmp sgt i32 %396, 0
  br i1 %397, label %.lr.ph401, label %._crit_edge402

.lr.ph401:                                        ; preds = %.preheader352
  %398 = load ptr, ptr %47, align 8, !tbaa !15
  %399 = getelementptr inbounds ptr, ptr %398, i64 %indvars.iv459
  %400 = load ptr, ptr %399, align 8, !tbaa !35
  %401 = load ptr, ptr %61, align 8, !tbaa !17
  %402 = getelementptr inbounds ptr, ptr %401, i64 %indvars.iv459
  %403 = load ptr, ptr %402, align 8, !tbaa !35
  %404 = load ptr, ptr %54, align 8, !tbaa !16
  %405 = getelementptr inbounds ptr, ptr %404, i64 %indvars.iv459
  %406 = load ptr, ptr %405, align 8, !tbaa !35
  %407 = load ptr, ptr %68, align 8, !tbaa !18
  %408 = getelementptr inbounds ptr, ptr %407, i64 %indvars.iv459
  %409 = load ptr, ptr %408, align 8, !tbaa !35
  %wide.trip.count = zext nneg i32 %396 to i64
  %min.iters.check = icmp ult i32 %396, 12
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph401
  %indvars.iv453.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph401 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %410 = getelementptr inbounds double, ptr %400, i64 %indvars.iv453.ph
  %411 = load double, ptr %410, align 8, !tbaa !42
  %412 = getelementptr inbounds double, ptr %403, i64 %indvars.iv453.ph
  store double %411, ptr %412, align 8, !tbaa !42
  %413 = getelementptr inbounds double, ptr %406, i64 %indvars.iv453.ph
  %414 = load double, ptr %413, align 8, !tbaa !42
  %415 = getelementptr inbounds double, ptr %409, i64 %indvars.iv453.ph
  store double %414, ptr %415, align 8, !tbaa !42
  %indvars.iv.next454.prol = or disjoint i64 %indvars.iv453.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv453.unr = phi i64 [ %indvars.iv453.ph, %scalar.ph.preheader ], [ %indvars.iv.next454.prol, %scalar.ph.prol ]
  %416 = add nsw i64 %wide.trip.count, -1
  %417 = icmp eq i64 %indvars.iv453.ph, %416
  br i1 %417, label %._crit_edge402, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph401
  %418 = ptrtoint ptr %409 to i64
  %419 = ptrtoint ptr %406 to i64
  %420 = ptrtoint ptr %403 to i64
  %421 = ptrtoint ptr %400 to i64
  %422 = sub i64 %418, %420
  %diff.check = icmp ult i64 %422, 32
  %423 = sub i64 %420, %421
  %diff.check553 = icmp ult i64 %423, 32
  %conflict.rdx = or i1 %diff.check, %diff.check553
  %424 = sub i64 %419, %420
  %diff.check554 = icmp ult i64 %424, 32
  %conflict.rdx555 = or i1 %conflict.rdx, %diff.check554
  %425 = sub i64 %418, %421
  %diff.check556 = icmp ult i64 %425, 32
  %conflict.rdx557 = or i1 %conflict.rdx555, %diff.check556
  %426 = sub i64 %418, %419
  %diff.check558 = icmp ult i64 %426, 32
  %conflict.rdx559 = or i1 %conflict.rdx557, %diff.check558
  br i1 %conflict.rdx559, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %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 ]
  %427 = getelementptr inbounds double, ptr %400, i64 %index
  %428 = getelementptr inbounds i8, ptr %427, i64 16
  %wide.load = load <2 x double>, ptr %427, align 8, !tbaa !42
  %wide.load560 = load <2 x double>, ptr %428, align 8, !tbaa !42
  %429 = getelementptr inbounds double, ptr %403, i64 %index
  %430 = getelementptr inbounds i8, ptr %429, i64 16
  store <2 x double> %wide.load, ptr %429, align 8, !tbaa !42
  store <2 x double> %wide.load560, ptr %430, align 8, !tbaa !42
  %431 = getelementptr inbounds double, ptr %406, i64 %index
  %432 = getelementptr inbounds i8, ptr %431, i64 16
  %wide.load561 = load <2 x double>, ptr %431, align 8, !tbaa !42
  %wide.load562 = load <2 x double>, ptr %432, align 8, !tbaa !42
  %433 = getelementptr inbounds double, ptr %409, i64 %index
  %434 = getelementptr inbounds i8, ptr %433, i64 16
  store <2 x double> %wide.load561, ptr %433, align 8, !tbaa !42
  store <2 x double> %wide.load562, ptr %434, align 8, !tbaa !42
  %index.next = add nuw i64 %index, 4
  %435 = icmp eq i64 %index.next, %n.vec
  br i1 %435, label %middle.block, label %vector.body, !llvm.loop !43

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge402, label %scalar.ph.preheader

436:                                              ; preds = %377
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %35) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %35, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.72, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1411, ptr noundef nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %35) #9
  br label %.loopexit

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv453 = phi i64 [ %indvars.iv.next454.1, %scalar.ph ], [ %indvars.iv453.unr, %scalar.ph.prol.loopexit ]
  %437 = getelementptr inbounds double, ptr %400, i64 %indvars.iv453
  %438 = load double, ptr %437, align 8, !tbaa !42
  %439 = getelementptr inbounds double, ptr %403, i64 %indvars.iv453
  store double %438, ptr %439, align 8, !tbaa !42
  %440 = getelementptr inbounds double, ptr %406, i64 %indvars.iv453
  %441 = load double, ptr %440, align 8, !tbaa !42
  %442 = getelementptr inbounds double, ptr %409, i64 %indvars.iv453
  store double %441, ptr %442, align 8, !tbaa !42
  %indvars.iv.next454 = add nuw nsw i64 %indvars.iv453, 1
  %443 = getelementptr inbounds double, ptr %400, i64 %indvars.iv.next454
  %444 = load double, ptr %443, align 8, !tbaa !42
  %445 = getelementptr inbounds double, ptr %403, i64 %indvars.iv.next454
  store double %444, ptr %445, align 8, !tbaa !42
  %446 = getelementptr inbounds double, ptr %406, i64 %indvars.iv.next454
  %447 = load double, ptr %446, align 8, !tbaa !42
  %448 = getelementptr inbounds double, ptr %409, i64 %indvars.iv.next454
  store double %447, ptr %448, align 8, !tbaa !42
  %indvars.iv.next454.1 = add nuw nsw i64 %indvars.iv453, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next454.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge402, label %scalar.ph, !llvm.loop !46

._crit_edge402:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader352
  %449 = load i16, ptr %111, align 4, !tbaa !38
  %450 = icmp sgt i16 %449, 0
  br i1 %450, label %451, label %455

451:                                              ; preds = %._crit_edge402
  %452 = trunc i64 %indvars.iv459 to i32
  %453 = add i32 %452, 1
  %454 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.73, i32 noundef %453, i32 noundef %396)
  br label %455

455:                                              ; preds = %._crit_edge402, %451, %274, %299
  %456 = load ptr, ptr %83, align 8, !tbaa !20
  %457 = getelementptr inbounds i32, ptr %456, i64 %indvars.iv459
  %458 = load i32, ptr %457, align 4, !tbaa !27
  %459 = sext i32 %458 to i64
  %460 = shl nsw i64 %459, 3
  %461 = call noalias ptr @malloc(i64 noundef %460) #10
  %462 = load ptr, ptr %75, align 8, !tbaa !19
  %463 = getelementptr inbounds ptr, ptr %462, i64 %indvars.iv459
  store ptr %461, ptr %463, align 8, !tbaa !35
  %464 = load ptr, ptr %75, align 8, !tbaa !19
  %465 = getelementptr inbounds ptr, ptr %464, i64 %indvars.iv459
  %466 = load ptr, ptr %465, align 8, !tbaa !35
  %467 = icmp eq ptr %466, null
  %468 = load ptr, ptr %83, align 8, !tbaa !20
  %469 = getelementptr inbounds i32, ptr %468, i64 %indvars.iv459
  %470 = load i32, ptr %469, align 4, !tbaa !27
  br i1 %467, label %472, label %.preheader351

.preheader351:                                    ; preds = %455
  %471 = icmp sgt i32 %470, 0
  br i1 %471, label %.lr.ph410, label %._crit_edge411

472:                                              ; preds = %455
  %473 = shl i32 %470, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %36) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %36, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.74, i32 noundef %473) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1426, ptr noundef nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %36) #9
  br label %.loopexit

.lr.ph410:                                        ; preds = %.preheader351, %608
  %indvars.iv456 = phi i64 [ %indvars.iv.next457, %608 ], [ 0, %.preheader351 ]
  %474 = load ptr, ptr %47, align 8, !tbaa !15
  %475 = getelementptr inbounds ptr, ptr %474, i64 %indvars.iv459
  %476 = load ptr, ptr %475, align 8, !tbaa !35
  %477 = getelementptr inbounds double, ptr %476, i64 %indvars.iv456
  %478 = load double, ptr %477, align 8, !tbaa !42
  %479 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %478, ptr noundef nonnull %5)
  %480 = icmp eq i32 %479, 1
  br i1 %480, label %530, label %.preheader

.preheader:                                       ; preds = %.lr.ph410
  %481 = icmp eq i64 %indvars.iv456, 0
  br i1 %481, label %.preheader.split.us, label %.preheader.split

.preheader.split.us:                              ; preds = %.preheader, %518
  %.0335403.us = phi i32 [ %528, %518 ], [ -30, %.preheader ]
  %482 = load double, ptr %114, align 8, !tbaa !47
  %483 = fsub double 5.000000e-01, %482
  %484 = fmul double %478, %483
  %485 = sitofp i32 %.0335403.us to double
  %486 = call double @exp(double noundef %485) #9
  %487 = fmul double %486, 2.000000e+00
  %488 = load ptr, ptr %47, align 8, !tbaa !15
  %489 = getelementptr inbounds ptr, ptr %488, i64 %indvars.iv459
  %490 = load ptr, ptr %489, align 8, !tbaa !35
  %491 = getelementptr inbounds i8, ptr %490, i64 8
  %492 = load double, ptr %491, align 8, !tbaa !42
  %493 = fsub double %492, %478
  %494 = fmul double %487, %493
  %495 = fcmp olt double %484, %494
  br i1 %495, label %506, label %496

496:                                              ; preds = %.preheader.split.us
  %497 = call double @exp(double noundef %485) #9
  %498 = fmul double %497, 2.000000e+00
  %499 = load ptr, ptr %47, align 8, !tbaa !15
  %500 = getelementptr inbounds ptr, ptr %499, i64 %indvars.iv459
  %501 = load ptr, ptr %500, align 8, !tbaa !35
  %502 = getelementptr inbounds i8, ptr %501, i64 8
  %503 = load double, ptr %502, align 8, !tbaa !42
  %504 = fsub double %503, %478
  %505 = fmul double %498, %504
  br label %510

506:                                              ; preds = %.preheader.split.us
  %507 = load double, ptr %114, align 8, !tbaa !47
  %508 = fsub double 5.000000e-01, %507
  %509 = fmul double %478, %508
  br label %510

510:                                              ; preds = %506, %496
  %.3.us = phi double [ %509, %506 ], [ %505, %496 ]
  %511 = call double @llvm.fmuladd.f64(double %.3.us, double -2.000000e+00, double %478)
  %512 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %511, ptr noundef nonnull %3)
  %513 = icmp eq i32 %512, 1
  br i1 %513, label %.split405.us, label %514

514:                                              ; preds = %510
  %515 = call double @llvm.fmuladd.f64(double %.3.us, double 2.000000e+00, double %478)
  %516 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %515, ptr noundef nonnull %7)
  %517 = icmp eq i32 %516, 1
  br i1 %517, label %.split407.us, label %518

518:                                              ; preds = %514
  %519 = load double, ptr %7, align 8, !tbaa !42
  %520 = load double, ptr %3, align 8, !tbaa !42
  %521 = fsub double %519, %520
  %522 = load double, ptr %5, align 8, !tbaa !42
  %523 = fdiv double %521, %522
  %524 = call double @llvm.fabs.f64(double %523)
  %525 = load double, ptr %114, align 8, !tbaa !47
  %526 = call double @sqrt(double noundef %525) #9
  %527 = fcmp ule double %524, %526
  %528 = add nsw i32 %.0335403.us, 1
  %529 = icmp slt i32 %.0335403.us, 1
  %or.cond = and i1 %527, %529
  br i1 %or.cond, label %.preheader.split.us, label %.split.us, !llvm.loop !48

530:                                              ; preds = %.lr.ph410
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %37) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %37, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.75, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1432, ptr noundef nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %37) #9
  br label %.loopexit

.preheader.split:                                 ; preds = %.preheader, %566
  %.0335403 = phi i32 [ %576, %566 ], [ -30, %.preheader ]
  %531 = load ptr, ptr %83, align 8, !tbaa !20
  %532 = getelementptr inbounds i32, ptr %531, i64 %indvars.iv459
  %533 = load i32, ptr %532, align 4, !tbaa !27
  %534 = add nsw i32 %533, -1
  %535 = zext i32 %534 to i64
  %536 = icmp eq i64 %indvars.iv456, %535
  %537 = sitofp i32 %.0335403 to double
  %538 = call double @exp(double noundef %537) #9
  br i1 %536, label %539, label %545

539:                                              ; preds = %.preheader.split
  %540 = fmul double %538, 2.000000e+00
  %541 = load ptr, ptr %47, align 8, !tbaa !15
  %542 = getelementptr inbounds ptr, ptr %541, i64 %indvars.iv459
  %543 = load ptr, ptr %542, align 8, !tbaa !35
  %544 = getelementptr inbounds double, ptr %543, i64 %indvars.iv456
  br label %551

545:                                              ; preds = %.preheader.split
  %546 = load ptr, ptr %47, align 8, !tbaa !15
  %547 = getelementptr inbounds ptr, ptr %546, i64 %indvars.iv459
  %548 = load ptr, ptr %547, align 8, !tbaa !35
  %549 = getelementptr inbounds double, ptr %548, i64 %indvars.iv456
  %550 = getelementptr inbounds i8, ptr %549, i64 8
  br label %551

551:                                              ; preds = %539, %545
  %.sink507 = phi ptr [ %544, %539 ], [ %550, %545 ]
  %552 = phi ptr [ %543, %539 ], [ %548, %545 ]
  %.sink = phi double [ %540, %539 ], [ %538, %545 ]
  %553 = getelementptr inbounds double, ptr %552, i64 %indvars.iv456
  %554 = load double, ptr %.sink507, align 8, !tbaa !42
  %555 = getelementptr i8, ptr %553, i64 -8
  %556 = load double, ptr %555, align 8, !tbaa !42
  %557 = fsub double %554, %556
  %558 = fmul double %.sink, %557
  %559 = call double @llvm.fmuladd.f64(double %558, double -2.000000e+00, double %478)
  %560 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %559, ptr noundef nonnull %3)
  %561 = icmp eq i32 %560, 1
  br i1 %561, label %.split405.us, label %562

.split405.us:                                     ; preds = %551, %510
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %38) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %38, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.76, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1448, ptr noundef nonnull %38) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %38) #9
  br label %.loopexit

562:                                              ; preds = %551
  %563 = call double @llvm.fmuladd.f64(double %558, double 2.000000e+00, double %478)
  %564 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %563, ptr noundef nonnull %7)
  %565 = icmp eq i32 %564, 1
  br i1 %565, label %.split407.us, label %566

.split407.us:                                     ; preds = %562, %514
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %39) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %39, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.77, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1450, ptr noundef nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %39) #9
  br label %.loopexit

566:                                              ; preds = %562
  %567 = load double, ptr %7, align 8, !tbaa !42
  %568 = load double, ptr %3, align 8, !tbaa !42
  %569 = fsub double %567, %568
  %570 = load double, ptr %5, align 8, !tbaa !42
  %571 = fdiv double %569, %570
  %572 = call double @llvm.fabs.f64(double %571)
  %573 = load double, ptr %114, align 8, !tbaa !47
  %574 = call double @sqrt(double noundef %573) #9
  %575 = fcmp ule double %572, %574
  %576 = add nsw i32 %.0335403, 1
  %577 = icmp slt i32 %.0335403, 1
  %or.cond417 = and i1 %575, %577
  br i1 %or.cond417, label %.preheader.split, label %.split.us, !llvm.loop !48

.split.us:                                        ; preds = %566, %518
  %.us-phi = phi double [ %.3.us, %518 ], [ %558, %566 ]
  %578 = fsub double %478, %.us-phi
  %579 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %578, ptr noundef nonnull %4)
  %580 = icmp eq i32 %579, 1
  br i1 %580, label %581, label %582

581:                                              ; preds = %.split.us
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %40) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %40, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.78, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1456, ptr noundef nonnull %40) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %40) #9
  br label %.loopexit

582:                                              ; preds = %.split.us
  %583 = fadd double %478, %.us-phi
  %584 = call i32 @background_ncdm_distribution(ptr noundef nonnull %10, double noundef %583, ptr noundef nonnull %6)
  %585 = icmp eq i32 %584, 1
  br i1 %585, label %586, label %587

586:                                              ; preds = %582
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %41) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %41, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.79, ptr noundef nonnull %107) #9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %107, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_ncdm_init, i32 noundef 1458, ptr noundef nonnull %41) #9
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %41) #9
  br label %.loopexit

587:                                              ; preds = %582
  %588 = load double, ptr %5, align 8, !tbaa !42
  %589 = fcmp oeq double %588, 0.000000e+00
  br i1 %589, label %590, label %592

590:                                              ; preds = %587
  %591 = fneg double %478
  br label %608

592:                                              ; preds = %587
  %593 = load double, ptr %6, align 8, !tbaa !42
  %594 = load double, ptr %4, align 8, !tbaa !42
  %595 = load double, ptr %3, align 8, !tbaa !42
  %596 = call double @llvm.fmuladd.f64(double %594, double -8.000000e+00, double %595)
  %597 = call double @llvm.fmuladd.f64(double %593, double 8.000000e+00, double %596)
  %598 = load double, ptr %7, align 8, !tbaa !42
  %599 = fsub double %597, %598
  %600 = fdiv double %599, 1.200000e+01
  %601 = insertelement <2 x double> poison, double %478, i64 0
  %602 = insertelement <2 x double> %601, double %600, i64 1
  %603 = insertelement <2 x double> poison, double %588, i64 0
  %604 = insertelement <2 x double> %603, double %.us-phi, i64 1
  %605 = fdiv <2 x double> %602, %604
  %shift = shufflevector <2 x double> %605, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %606 = fmul <2 x double> %605, %shift
  %607 = extractelement <2 x double> %606, i64 0
  br label %608

608:                                              ; preds = %590, %592
  %.sink508 = phi double [ %591, %590 ], [ %607, %592 ]
  %609 = load ptr, ptr %75, align 8, !tbaa !19
  %610 = getelementptr inbounds ptr, ptr %609, i64 %indvars.iv459
  %611 = load ptr, ptr %610, align 8, !tbaa !35
  %612 = getelementptr inbounds double, ptr %611, i64 %indvars.iv456
  store double %.sink508, ptr %612, align 8, !tbaa !42
  %indvars.iv.next457 = add nuw nsw i64 %indvars.iv456, 1
  %613 = load ptr, ptr %83, align 8, !tbaa !20
  %614 = getelementptr inbounds i32, ptr %613, i64 %indvars.iv459
  %615 = load i32, ptr %614, align 4, !tbaa !27
  %616 = sext i32 %615 to i64
  %617 = icmp slt i64 %indvars.iv.next457, %616
  br i1 %617, label %.lr.ph410, label %._crit_edge411, !llvm.loop !49

._crit_edge411:                                   ; preds = %608, %.preheader351
  %618 = load ptr, ptr %115, align 8, !tbaa !50
  %619 = getelementptr inbounds double, ptr %618, i64 %indvars.iv459
  %620 = load double, ptr %619, align 8, !tbaa !42
  %621 = fmul double %620, 4.000000e+00
  %622 = fmul double %621, 0x400921FB54442D18
  %623 = load double, ptr %116, align 8, !tbaa !51
  %624 = load ptr, ptr %117, align 8, !tbaa !52
  %625 = getelementptr inbounds double, ptr %624, i64 %indvars.iv459
  %626 = load double, ptr %625, align 8, !tbaa !42
  %627 = fmul double %623, %626
  %628 = fmul double %627, 0x3B30B0E7F1528C6D
  %629 = call double @pow(double noundef %628, double noundef 4.000000e+00) #9
  %630 = fmul double %622, %629
  %631 = fmul double %630, 8.000000e+00
  %632 = fmul double %631, 0x400921FB54442D18
  %633 = fmul double %632, 6.674280e-11
  %634 = fdiv double %633, 3.000000e+00
  %635 = fdiv double %634, 0x2AC503AEFB0FB15B
  %636 = fdiv double %635, 0x4C4156160A270ADC
  %637 = fmul double %636, 0x449A22FF260E3826
  %638 = fmul double %637, 0x449A22FF260E3826
  %639 = load ptr, ptr %97, align 8, !tbaa !22
  %640 = getelementptr inbounds double, ptr %639, i64 %indvars.iv459
  store double %638, ptr %640, align 8, !tbaa !42
  %641 = load ptr, ptr %103, align 8, !tbaa !26
  %.not350 = icmp eq ptr %641, null
  br i1 %.not350, label %650, label %642

642:                                              ; preds = %._crit_edge411
  %643 = getelementptr inbounds i32, ptr %641, i64 %indvars.iv459
  %644 = load i32, ptr %643, align 4, !tbaa !27
  %645 = icmp eq i32 %644, 1
  br i1 %645, label %646, label %650

646:                                              ; preds = %642
  %647 = load ptr, ptr %101, align 8, !tbaa !24
  call void @free(ptr noundef %647) #9
  %648 = load ptr, ptr %105, align 8, !tbaa !31
  call void @free(ptr noundef %648) #9
  %649 = load ptr, ptr %106, align 8, !tbaa !32
  call void @free(ptr noundef %649) #9
  br label %650

650:                                              ; preds = %._crit_edge411, %642, %646
  %indvars.iv.next460 = add nuw nsw i64 %indvars.iv459, 1
  %651 = load i32, ptr %42, align 8, !tbaa !11
  %652 = sext i32 %651 to i64
  %653 = icmp slt i64 %indvars.iv.next460, %652
  br i1 %653, label %121, label %.loopexit, !llvm.loop !53

.loopexit:                                        ; preds = %650, %.preheader355, %586, %581, %.split407.us, %.split405.us, %530, %472, %436, %372, %360, %339, %327, %273, %261, %252, %211, %199, %190, %174, %157, %152, %147, %135, %118, %92, %85, %77, %70, %63, %56, %49
  %.0 = phi i32 [ 1, %49 ], [ 1, %56 ], [ 1, %63 ], [ 1, %70 ], [ 1, %77 ], [ 1, %85 ], [ 1, %92 ], [ 1, %118 ], [ 1, %135 ], [ 1, %147 ], [ 1, %152 ], [ 1, %157 ], [ 1, %174 ], [ 1, %190 ], [ 1, %199 ], [ 1, %211 ], [ 1, %252 ], [ 1, %261 ], [ 1, %273 ], [ 1, %472 ], [ 1, %530 ], [ 1, %.split405.us ], [ 1, %.split407.us ], [ 1, %581 ], [ 1, %586 ], [ 1, %327 ], [ 1, %339 ], [ 1, %360 ], [ 1, %372 ], [ 1, %436 ], [ 0, %.preheader355 ], [ 0, %650 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  ret i32 %.0
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare void @rewind(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

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

declare i32 @get_qsampling(ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #8

declare i32 @get_qsampling_manual(ptr noundef, ptr noundef, i32 noundef, double noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind allocsize(1) }

!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_parameters_for_distributions", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 224}
!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, !7, i64 200, !10, i64 208, !10, i64 212, !13, i64 216, !10, i64 224, !7, i64 232, !7, i64 240, !13, i64 248, !7, i64 256, !13, i64 264, !7, i64 272, !13, i64 280, !7, i64 288, !13, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !10, i64 360, !7, 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, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, 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, !7, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !7, i64 792, !7, i64 800, !7, i64 808, !7, i64 816, !7, i64 824, !7, i64 832, !14, i64 840, !14, i64 842, !14, i64 844, !14, i64 846, !14, i64 848, !14, i64 850, !8, i64 852, !14, i64 2900, !8, i64 2902}
!13 = !{!"double", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!12, !7, i64 792}
!16 = !{!12, !7, i64 800}
!17 = !{!12, !7, i64 776}
!18 = !{!12, !7, i64 784}
!19 = !{!12, !7, i64 808}
!20 = !{!12, !7, i64 824}
!21 = !{!12, !7, i64 816}
!22 = !{!12, !7, i64 832}
!23 = !{!6, !10, i64 8}
!24 = !{!6, !7, i64 16}
!25 = !{!6, !10, i64 12}
!26 = !{!12, !7, i64 312}
!27 = !{!10, !10, i64 0}
!28 = !{!12, !7, i64 320}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!6, !7, i64 24}
!32 = !{!6, !7, i64 32}
!33 = distinct !{!33, !30}
!34 = !{!12, !7, i64 752}
!35 = !{!7, !7, i64 0}
!36 = !{!37, !13, i64 48}
!37 = !{!"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, !8, 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, !8, i64 628, !8, i64 884, !8, 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, !8, i64 2352}
!38 = !{!12, !14, i64 2900}
!39 = !{!37, !13, i64 72}
!40 = !{!12, !7, i64 760}
!41 = !{!12, !7, i64 768}
!42 = !{!13, !13, i64 0}
!43 = distinct !{!43, !30, !44, !45}
!44 = !{!"llvm.loop.isvectorized", i32 1}
!45 = !{!"llvm.loop.unroll.runtime.disable"}
!46 = distinct !{!46, !30, !44}
!47 = !{!37, !13, i64 2344}
!48 = distinct !{!48, !30}
!49 = distinct !{!49, !30}
!50 = !{!12, !7, i64 256}
!51 = !{!12, !13, i64 16}
!52 = !{!12, !7, i64 272}
!53 = distinct !{!53, !30}


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