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

; 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.primordial = type { 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, double, double, double, i32, double, double, double, double, double, double, double, double, double, double, double, i32, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, 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] }
%struct.perturbs = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, double, i32, i32, [100 x double], [100 x double], i32, i32, i32, i32, i32, double, i32, i32, [30 x double], double, double, double, ptr, ptr, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, 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, i32, i32, ptr, ptr, ptr, ptr, ptr, double, double, ptr, i32, double, double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, [8000 x i8], [8000 x i8], [8000 x i8], i32, i32, i32, [30 x ptr], [30 x ptr], [30 x ptr], [30 x i32], [30 x i32], [30 x i32], i16, [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.52 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__.primordial_inflation_one_wavenumber = external hidden unnamed_addr constant [36 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [12 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 @log(double noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @primordial_inflation_one_wavenumber(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #4 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca [2048 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.primordial, ptr %28, i32 0, i32 81
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds double, ptr %30, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !15
  %35 = call double @exp(double noundef %34) #5
  store double %35, ptr %12, align 8, !tbaa !15
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.primordial, ptr %36, i32 0, i32 100
  %38 = load i32, ptr %37, align 8, !tbaa !16
  %39 = sext i32 %38 to i64
  %40 = mul i64 %39, 8
  %41 = call noalias ptr @malloc(i64 noundef %40) #6
  store ptr %41, ptr %15, align 8, !tbaa !5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %57

44:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.primordial, ptr %45, i32 0, i32 100
  %47 = load i32, ptr %46, align 8, !tbaa !16
  %48 = sext i32 %47 to i64
  %49 = mul i64 %48, 8
  %50 = trunc i64 %49 to i32
  store i32 %50, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #5
  %51 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %52 = load i32, ptr %17, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %51, ptr noundef @.str.52, ptr noundef @.str.76, i32 noundef %52)
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.primordial, ptr %53, i32 0, i32 106
  %55 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  %56 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %55, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_one_wavenumber, i32 noundef 1701, ptr noundef %56)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %220

57:                                               ; preds = %5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.primordial, ptr %58, i32 0, i32 100
  %60 = load i32, ptr %59, align 8, !tbaa !16
  %61 = sext i32 %60 to i64
  %62 = mul i64 %61, 8
  %63 = call noalias ptr @malloc(i64 noundef %62) #6
  store ptr %63, ptr %16, align 8, !tbaa !5
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %79

66:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.primordial, ptr %67, i32 0, i32 100
  %69 = load i32, ptr %68, align 8, !tbaa !16
  %70 = sext i32 %69 to i64
  %71 = mul i64 %70, 8
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %73 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %74 = load i32, ptr %20, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %73, ptr noundef @.str.52, ptr noundef @.str.78, i32 noundef %74)
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.primordial, ptr %75, i32 0, i32 106
  %77 = getelementptr inbounds [2048 x i8], ptr %76, i64 0, i64 0
  %78 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %77, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_one_wavenumber, i32 noundef 1702, ptr noundef %78)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %220

79:                                               ; preds = %57
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.primordial, ptr %81, i32 0, i32 88
  %83 = load i32, ptr %82, align 8, !tbaa !17
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %80, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !15
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.primordial, ptr %88, i32 0, i32 88
  %90 = load i32, ptr %89, align 8, !tbaa !17
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %87, i64 %91
  store double %86, ptr %92, align 8, !tbaa !15
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.primordial, ptr %94, i32 0, i32 89
  %96 = load i32, ptr %95, align 4, !tbaa !18
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %93, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !15
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.primordial, ptr %101, i32 0, i32 89
  %103 = load i32, ptr %102, align 4, !tbaa !18
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds double, ptr %100, i64 %104
  store double %99, ptr %105, align 8, !tbaa !15
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.primordial, ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 8, !tbaa !19
  %109 = icmp eq i32 %108, 2
  br i1 %109, label %115, label %110

110:                                              ; preds = %79
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.primordial, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !19
  %114 = icmp eq i32 %113, 4
  br i1 %114, label %115, label %129

115:                                              ; preds = %110, %79
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.primordial, ptr %117, i32 0, i32 90
  %119 = load i32, ptr %118, align 8, !tbaa !20
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %116, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !15
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.primordial, ptr %124, i32 0, i32 90
  %126 = load i32, ptr %125, align 8, !tbaa !20
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %123, i64 %127
  store double %122, ptr %128, align 8, !tbaa !15
  br label %129

129:                                              ; preds = %115, %110
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load double, ptr %12, align 8, !tbaa !15
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.precision, ptr %135, i32 0, i32 100
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = fdiv double %134, %137
  %139 = call i32 @primordial_inflation_evolve_background(ptr noundef %130, ptr noundef %131, ptr noundef %132, ptr noundef %133, i32 noundef 0, double noundef %138, i16 noundef signext 0, i32 noundef 1, i32 noundef 0)
  %140 = icmp eq i32 %139, 1
  br i1 %140, label %141, label %150

141:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #5
  %142 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.primordial, ptr %143, i32 0, i32 106
  %145 = getelementptr inbounds [2048 x i8], ptr %144, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %142, ptr noundef @.str.6, ptr noundef @.str.103, ptr noundef %145)
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.primordial, ptr %146, i32 0, i32 106
  %148 = getelementptr inbounds [2048 x i8], ptr %147, i64 0, i64 0
  %149 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %148, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_one_wavenumber, i32 noundef 1722, ptr noundef %149)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %220

150:                                              ; preds = %129
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load double, ptr %12, align 8, !tbaa !15
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = call i32 @primordial_inflation_one_k(ptr noundef %151, ptr noundef %152, double noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %13, ptr noundef %14)
  %157 = icmp eq i32 %156, 1
  br i1 %157, label %158, label %167

158:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #5
  %159 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.primordial, ptr %160, i32 0, i32 106
  %162 = getelementptr inbounds [2048 x i8], ptr %161, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %159, ptr noundef @.str.6, ptr noundef @.str.104, ptr noundef %162)
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.primordial, ptr %163, i32 0, i32 106
  %165 = getelementptr inbounds [2048 x i8], ptr %164, i64 0, i64 0
  %166 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %165, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_one_wavenumber, i32 noundef 1734, ptr noundef %166)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %220

167:                                              ; preds = %150
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %168) #5
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %169) #5
  %170 = load double, ptr %13, align 8, !tbaa !15
  %171 = fcmp ole double %170, 0.000000e+00
  br i1 %171, label %172, label %180

172:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %173 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %173, ptr noundef @.str.105)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %174 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %175 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %174, ptr noundef @.str.1, ptr noundef @.str.106, ptr noundef %175)
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.primordial, ptr %176, i32 0, i32 106
  %178 = getelementptr inbounds [2048 x i8], ptr %177, i64 0, i64 0
  %179 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %178, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_one_wavenumber, i32 noundef 1741, ptr noundef %179)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %220

180:                                              ; preds = %167
  %181 = load double, ptr %14, align 8, !tbaa !15
  %182 = fcmp ole double %181, 0.000000e+00
  br i1 %182, label %183, label %191

183:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #5
  %184 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %184, ptr noundef @.str.107)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #5
  %185 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %186 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %185, ptr noundef @.str.1, ptr noundef @.str.108, ptr noundef %186)
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.primordial, ptr %187, i32 0, i32 106
  %189 = getelementptr inbounds [2048 x i8], ptr %188, i64 0, i64 0
  %190 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %189, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_one_wavenumber, i32 noundef 1745, ptr noundef %190)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %220

191:                                              ; preds = %180
  %192 = load double, ptr %13, align 8, !tbaa !15
  %193 = call double @log(double noundef %192) #5
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.primordial, ptr %194, i32 0, i32 82
  %196 = load ptr, ptr %195, align 8, !tbaa !23
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.perturbs, ptr %197, i32 0, i32 56
  %199 = load i32, ptr %198, align 4, !tbaa !24
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds ptr, ptr %196, i64 %200
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  store double %193, ptr %205, align 8, !tbaa !15
  %206 = load double, ptr %14, align 8, !tbaa !15
  %207 = call double @log(double noundef %206) #5
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.primordial, ptr %208, i32 0, i32 82
  %210 = load ptr, ptr %209, align 8, !tbaa !23
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.perturbs, ptr %211, i32 0, i32 57
  %213 = load i32, ptr %212, align 8, !tbaa !26
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds ptr, ptr %210, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  store double %207, ptr %219, align 8, !tbaa !15
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %220

220:                                              ; preds = %191, %183, %172, %158, %141, %66, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %221 = load i32, ptr %6, align 4
  ret i32 %221
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #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 }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 648}
!12 = !{!"primordial", !13, i64 0, !10, 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, !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, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !10, i64 408, !13, 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, !10, i64 504, !13, i64 512, !10, i64 520, !6, 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, !10, i64 616, !6, i64 624, !6, i64 632, !10, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !10, i64 724, !10, i64 728, !10, i64 732, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !10, i64 752, !13, i64 760, !13, i64 768, !13, i64 776, !13, i64 784, !14, i64 792, !7, i64 794}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !10, i64 752}
!17 = !{!12, !10, i64 704}
!18 = !{!12, !10, i64 708}
!19 = !{!12, !10, i64 8}
!20 = !{!12, !10, i64 712}
!21 = !{!22, !13, i64 1752}
!22 = !{!"precision", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !7, i64 104, !13, i64 360, !10, i64 368, !13, i64 376, !10, i64 384, !10, i64 388, !13, i64 392, !10, i64 400, !13, i64 408, !10, i64 416, !13, i64 424, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456, !13, i64 464, !13, i64 472, !13, i64 480, !13, i64 488, !13, i64 496, !13, i64 504, !13, i64 512, !13, i64 520, !13, i64 528, !13, i64 536, !13, i64 544, !13, i64 552, !13, i64 560, !13, i64 568, !13, i64 576, !13, i64 584, !13, i64 592, !13, i64 600, !13, i64 608, !13, i64 616, !10, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !13, i64 1400, !13, i64 1408, !13, i64 1416, !13, i64 1424, !13, i64 1432, !13, i64 1440, !13, i64 1448, !13, i64 1456, !13, i64 1464, !13, i64 1472, !13, i64 1480, !13, i64 1488, !13, i64 1496, !13, i64 1504, !13, i64 1512, !13, i64 1520, !10, i64 1528, !13, i64 1536, !13, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !13, i64 1584, !13, i64 1592, !13, i64 1600, !13, i64 1608, !13, i64 1616, !13, i64 1624, !13, i64 1632, !13, i64 1640, !10, i64 1648, !13, i64 1656, !13, i64 1664, !10, i64 1672, !13, i64 1680, !13, i64 1688, !10, i64 1696, !13, i64 1704, !10, i64 1712, !13, i64 1720, !13, i64 1728, !10, i64 1736, !13, i64 1744, !13, i64 1752, !13, i64 1760, !10, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !10, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !13, i64 1872, !10, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !13, i64 1912, !13, i64 1920, !13, i64 1928, !13, i64 1936, !13, i64 1944, !13, i64 1952, !13, i64 1960, !13, i64 1968, !13, i64 1976, !13, i64 1984, !13, i64 1992, !13, i64 2000, !13, i64 2008, !13, i64 2016, !13, i64 2024, !13, i64 2032, !13, i64 2040, !13, i64 2048, !13, i64 2056, !13, i64 2064, !13, i64 2072, !13, i64 2080, !13, i64 2088, !13, i64 2096, !13, i64 2104, !13, i64 2112, !13, i64 2120, !13, i64 2128, !13, i64 2136, !13, i64 2144, !13, i64 2152, !13, i64 2160, !13, i64 2168, !13, i64 2176, !13, i64 2184, !13, i64 2192, !13, i64 2200, !13, i64 2208, !13, i64 2216, !13, i64 2224, !13, i64 2232, !13, i64 2240, !13, i64 2248, !10, i64 2256, !13, i64 2264, !13, i64 2272, !13, i64 2280, !13, i64 2288, !10, i64 2296, !13, i64 2304, !13, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !13, i64 2336, !13, i64 2344, !7, i64 2352}
!23 = !{!12, !6, i64 656}
!24 = !{!25, !10, i64 2028}
!25 = !{!"perturbs", !14, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8, !14, i64 10, !14, i64 12, !14, i64 14, !14, i64 16, !14, i64 18, !14, i64 20, !10, i64 24, !14, i64 28, !14, i64 30, !14, i64 32, !14, i64 34, !14, i64 36, !14, i64 38, !14, i64 40, !14, i64 42, !14, i64 44, !14, i64 46, !14, i64 48, !14, i64 50, !14, i64 52, !14, i64 54, !14, i64 56, !14, i64 58, !14, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !13, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !13, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !13, i64 1976, !13, i64 1984, !13, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !14, i64 2020, !14, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !6, i64 2072, !14, i64 2080, !14, i64 2082, !14, i64 2084, !14, i64 2086, !14, i64 2088, !14, i64 2090, !14, i64 2092, !14, i64 2094, !14, i64 2096, !14, i64 2098, !14, i64 2100, !14, i64 2102, !14, i64 2104, !14, i64 2106, !14, i64 2108, !14, i64 2110, !14, i64 2112, !14, i64 2114, !14, i64 2116, !14, i64 2118, !14, i64 2120, !14, i64 2122, !14, i64 2124, !14, i64 2126, !14, i64 2128, !14, i64 2130, !14, i64 2132, !14, i64 2134, !14, i64 2136, !14, i64 2138, !14, i64 2140, !14, i64 2142, !14, i64 2144, !14, i64 2146, !14, i64 2148, !14, i64 2150, !14, i64 2152, !14, i64 2154, !14, i64 2156, !14, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !13, i64 2376, !13, i64 2384, !6, i64 2392, !10, i64 2400, !13, i64 2408, !13, i64 2416, !13, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !14, i64 27608, !7, i64 27610}
!26 = !{!25, !10, i64 2032}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [3 x i8], align 1
@__func__.primordial_inflation_one_wavenumber = external hidden unnamed_addr constant [36 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [12 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 @log(double noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @primordial_inflation_evolve_background(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, i16 noundef signext, i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @primordial_inflation_one_wavenumber(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) local_unnamed_addr #5 {
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %16 = getelementptr inbounds i8, ptr %1, i64 648
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = sext i32 %4 to i64
  %19 = getelementptr inbounds double, ptr %17, i64 %18
  %20 = load double, ptr %19, align 8, !tbaa !13
  %21 = tail call double @exp(double noundef %20) #6
  %22 = getelementptr inbounds i8, ptr %1, i64 752
  %23 = load i32, ptr %22, align 8, !tbaa !14
  %24 = sext i32 %23 to i64
  %25 = shl nsw i64 %24, 3
  %26 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %31

28:                                               ; preds = %5
  %29 = shl i32 %23, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.76, i32 noundef %29) #6
  %30 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %30, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_one_wavenumber, i32 noundef 1701, ptr noundef nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #6
  br label %101

31:                                               ; preds = %5
  %32 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  %35 = shl i32 %23, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.78, i32 noundef %35) #6
  %36 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %36, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_one_wavenumber, i32 noundef 1702, ptr noundef nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #6
  br label %101

37:                                               ; preds = %31
  %38 = getelementptr inbounds i8, ptr %1, i64 704
  %39 = load i32, ptr %38, align 8, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds double, ptr %3, i64 %40
  %42 = load double, ptr %41, align 8, !tbaa !13
  %43 = getelementptr inbounds double, ptr %26, i64 %40
  store double %42, ptr %43, align 8, !tbaa !13
  %44 = getelementptr inbounds i8, ptr %1, i64 708
  %45 = load i32, ptr %44, align 4, !tbaa !16
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds double, ptr %3, i64 %46
  %48 = load double, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds double, ptr %26, i64 %46
  store double %48, ptr %49, align 8, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %1, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !17
  switch i32 %51, label %59 [
    i32 2, label %52
    i32 4, label %52
  ]

52:                                               ; preds = %37, %37
  %53 = getelementptr inbounds i8, ptr %1, i64 712
  %54 = load i32, ptr %53, align 8, !tbaa !18
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %3, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !13
  %58 = getelementptr inbounds double, ptr %26, i64 %55
  store double %57, ptr %58, align 8, !tbaa !13
  br label %59

59:                                               ; preds = %37, %52
  %60 = getelementptr inbounds i8, ptr %2, i64 1752
  %61 = load double, ptr %60, align 8, !tbaa !19
  %62 = fdiv double %21, %61
  %63 = tail call i32 @primordial_inflation_evolve_background(ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %26, ptr noundef nonnull %32, i32 noundef 0, double noundef %62, i16 noundef signext 0, i32 noundef 1, i32 noundef 0)
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %65, label %67

65:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #6
  %66 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.103, ptr noundef nonnull %66) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %66, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_one_wavenumber, i32 noundef 1722, ptr noundef nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #6
  br label %101

67:                                               ; preds = %59
  %68 = call i32 @primordial_inflation_one_k(ptr noundef nonnull %1, ptr noundef nonnull %2, double noundef %21, ptr noundef nonnull %26, ptr noundef nonnull %32, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #6
  %71 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.104, ptr noundef nonnull %71) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %71, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_one_wavenumber, i32 noundef 1734, ptr noundef nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #6
  br label %101

72:                                               ; preds = %67
  call void @free(ptr noundef nonnull %26) #6
  call void @free(ptr noundef nonnull %32) #6
  %73 = load double, ptr %6, align 8, !tbaa !13
  %74 = fcmp ugt double %73, 0.000000e+00
  br i1 %74, label %77, label %75

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.105) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.106, ptr noundef nonnull %12) #6
  %76 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %76, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_one_wavenumber, i32 noundef 1741, ptr noundef nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #6
  br label %101

77:                                               ; preds = %72
  %78 = load double, ptr %7, align 8, !tbaa !13
  %79 = fcmp ugt double %78, 0.000000e+00
  br i1 %79, label %82, label %80

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.107) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.108, ptr noundef nonnull %14) #6
  %81 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %81, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_one_wavenumber, i32 noundef 1745, ptr noundef nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #6
  br label %101

82:                                               ; preds = %77
  %83 = call double @log(double noundef %73) #6
  %84 = getelementptr inbounds i8, ptr %1, i64 656
  %85 = load ptr, ptr %84, align 8, !tbaa !21
  %86 = getelementptr inbounds i8, ptr %0, i64 2028
  %87 = load i32, ptr %86, align 4, !tbaa !22
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds ptr, ptr %85, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !24
  %91 = getelementptr inbounds double, ptr %90, i64 %18
  store double %83, ptr %91, align 8, !tbaa !13
  %92 = load double, ptr %7, align 8, !tbaa !13
  %93 = call double @log(double noundef %92) #6
  %94 = load ptr, ptr %84, align 8, !tbaa !21
  %95 = getelementptr inbounds i8, ptr %0, i64 2032
  %96 = load i32, ptr %95, align 8, !tbaa !25
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %94, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = getelementptr inbounds double, ptr %99, i64 %18
  store double %93, ptr %100, align 8, !tbaa !13
  br label %101

101:                                              ; preds = %82, %80, %75, %70, %65, %34, %28
  %.0 = phi i32 [ 1, %28 ], [ 1, %34 ], [ 1, %65 ], [ 1, %70 ], [ 1, %75 ], [ 1, %80 ], [ 0, %82 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @primordial_inflation_one_k(ptr noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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 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 #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 648}
!6 = !{!"primordial", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !10, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !10, i64 504, !7, i64 512, !10, i64 520, !11, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !10, i64 616, !11, i64 624, !11, i64 632, !10, i64 640, !11, i64 648, !11, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !10, i64 724, !10, i64 728, !10, i64 732, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !10, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !12, i64 792, !8, i64 794}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !10, i64 752}
!15 = !{!6, !10, i64 704}
!16 = !{!6, !10, i64 708}
!17 = !{!6, !10, i64 8}
!18 = !{!6, !10, i64 712}
!19 = !{!20, !7, i64 1752}
!20 = !{!"precision", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !8, i64 104, !7, i64 360, !10, i64 368, !7, i64 376, !10, i64 384, !10, i64 388, !7, i64 392, !10, i64 400, !7, i64 408, !10, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !7, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !10, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !7, i64 1400, !7, i64 1408, !7, i64 1416, !7, i64 1424, !7, i64 1432, !7, i64 1440, !7, i64 1448, !7, i64 1456, !7, i64 1464, !7, i64 1472, !7, i64 1480, !7, i64 1488, !7, i64 1496, !7, i64 1504, !7, i64 1512, !7, i64 1520, !10, i64 1528, !7, i64 1536, !7, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !7, i64 1584, !7, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !7, i64 1624, !7, i64 1632, !7, i64 1640, !10, i64 1648, !7, i64 1656, !7, i64 1664, !10, i64 1672, !7, i64 1680, !7, i64 1688, !10, i64 1696, !7, i64 1704, !10, i64 1712, !7, i64 1720, !7, i64 1728, !10, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !10, i64 1768, !7, i64 1776, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !10, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !7, i64 1928, !7, i64 1936, !7, i64 1944, !7, i64 1952, !7, i64 1960, !7, i64 1968, !7, i64 1976, !7, i64 1984, !7, i64 1992, !7, i64 2000, !7, i64 2008, !7, i64 2016, !7, i64 2024, !7, i64 2032, !7, i64 2040, !7, i64 2048, !7, i64 2056, !7, i64 2064, !7, i64 2072, !7, i64 2080, !7, i64 2088, !7, i64 2096, !7, i64 2104, !7, i64 2112, !7, i64 2120, !7, i64 2128, !7, i64 2136, !7, i64 2144, !7, i64 2152, !7, i64 2160, !7, i64 2168, !7, i64 2176, !7, i64 2184, !7, i64 2192, !7, i64 2200, !7, i64 2208, !7, i64 2216, !7, i64 2224, !7, i64 2232, !7, i64 2240, !7, i64 2248, !10, i64 2256, !7, i64 2264, !7, i64 2272, !7, i64 2280, !7, i64 2288, !10, i64 2296, !7, i64 2304, !7, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !7, i64 2336, !7, i64 2344, !8, i64 2352}
!21 = !{!6, !11, i64 656}
!22 = !{!23, !10, i64 2028}
!23 = !{!"perturbs", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !12, i64 8, !12, i64 10, !12, i64 12, !12, i64 14, !12, i64 16, !12, i64 18, !12, i64 20, !10, i64 24, !12, i64 28, !12, i64 30, !12, i64 32, !12, i64 34, !12, i64 36, !12, i64 38, !12, i64 40, !12, i64 42, !12, i64 44, !12, i64 46, !12, i64 48, !12, i64 50, !12, i64 52, !12, i64 54, !12, i64 56, !12, i64 58, !12, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !7, i64 80, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !7, i64 1720, !10, i64 1728, !10, i64 1732, !8, i64 1736, !7, i64 1976, !7, i64 1984, !7, i64 1992, !11, i64 2000, !11, i64 2008, !10, i64 2016, !12, i64 2020, !12, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !11, i64 2072, !12, i64 2080, !12, i64 2082, !12, i64 2084, !12, i64 2086, !12, i64 2088, !12, i64 2090, !12, i64 2092, !12, i64 2094, !12, i64 2096, !12, i64 2098, !12, i64 2100, !12, i64 2102, !12, i64 2104, !12, i64 2106, !12, i64 2108, !12, i64 2110, !12, i64 2112, !12, i64 2114, !12, i64 2116, !12, i64 2118, !12, i64 2120, !12, i64 2122, !12, i64 2124, !12, i64 2126, !12, i64 2128, !12, i64 2130, !12, i64 2132, !12, i64 2134, !12, i64 2136, !12, i64 2138, !12, i64 2140, !12, i64 2142, !12, i64 2144, !12, i64 2146, !12, i64 2148, !12, i64 2150, !12, i64 2152, !12, i64 2154, !12, i64 2156, !12, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !11, i64 2336, !11, i64 2344, !11, i64 2352, !11, i64 2360, !11, i64 2368, !7, i64 2376, !7, i64 2384, !11, i64 2392, !10, i64 2400, !7, i64 2408, !7, i64 2416, !7, i64 2424, !11, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !10, i64 2480, !11, i64 2488, !11, i64 2496, !11, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !12, i64 27608, !8, i64 27610}
!24 = !{!11, !11, i64 0}
!25 = !{!23, !10, i64 2032}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass