; 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.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.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_analytic_spectra = external hidden unnamed_addr constant [38 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [60 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 double @pow(double noundef, double 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_analytic_spectra(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %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 i32, align 4
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.primordial, ptr %27, i32 0, i32 100
  %29 = load i32, ptr %28, align 8, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = mul i64 %30, 8
  %32 = call noalias ptr @malloc(i64 noundef %31) #6
  store ptr %32, ptr %10, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %48

35:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.primordial, ptr %36, i32 0, i32 100
  %38 = load i32, ptr %37, align 8, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = mul i64 %39, 8
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %20, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %42 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %43 = load i32, ptr %20, align 4, !tbaa !14
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %42, ptr noundef @.str.52, ptr noundef @.str.76, i32 noundef %43)
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.primordial, ptr %44, i32 0, i32 106
  %46 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  %47 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %46, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_analytic_spectra, i32 noundef 1527, ptr noundef %47)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %254

48:                                               ; preds = %4
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.primordial, ptr %49, i32 0, i32 100
  %51 = load i32, ptr %50, align 8, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 %52, 8
  %54 = call noalias ptr @malloc(i64 noundef %53) #6
  store ptr %54, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %70

57:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.primordial, ptr %58, i32 0, i32 100
  %60 = load i32, ptr %59, align 8, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = mul i64 %61, 8
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr %23, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %64 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %65 = load i32, ptr %23, align 4, !tbaa !14
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %64, ptr noundef @.str.52, ptr noundef @.str.78, i32 noundef %65)
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.primordial, ptr %66, i32 0, i32 106
  %68 = getelementptr inbounds [2048 x i8], ptr %67, i64 0, i64 0
  %69 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %68, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_analytic_spectra, i32 noundef 1528, ptr noundef %69)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %254

70:                                               ; preds = %48
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.primordial, ptr %72, i32 0, i32 88
  %74 = load i32, ptr %73, align 8, !tbaa !15
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %71, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !16
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.primordial, ptr %79, i32 0, i32 88
  %81 = load i32, ptr %80, align 8, !tbaa !15
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %78, i64 %82
  store double %77, ptr %83, align 8, !tbaa !16
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.primordial, ptr %85, i32 0, i32 89
  %87 = load i32, ptr %86, align 4, !tbaa !17
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %84, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !16
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.primordial, ptr %92, i32 0, i32 89
  %94 = load i32, ptr %93, align 4, !tbaa !17
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %91, i64 %95
  store double %90, ptr %96, align 8, !tbaa !16
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.primordial, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !18
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %106, label %101

101:                                              ; preds = %70
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.primordial, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !18
  %105 = icmp eq i32 %104, 4
  br i1 %105, label %106, label %120

106:                                              ; preds = %101, %70
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.primordial, ptr %108, i32 0, i32 90
  %110 = load i32, ptr %109, align 8, !tbaa !19
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %107, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !16
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.primordial, ptr %115, i32 0, i32 90
  %117 = load i32, ptr %116, align 8, !tbaa !19
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %114, i64 %118
  store double %113, ptr %119, align 8, !tbaa !16
  br label %120

120:                                              ; preds = %106, %101
  store i32 0, ptr %12, align 4, !tbaa !14
  br label %121

121:                                              ; preds = %222, %120
  %122 = load i32, ptr %12, align 4, !tbaa !14
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.primordial, ptr %123, i32 0, i32 80
  %125 = load i32, ptr %124, align 8, !tbaa !20
  %126 = icmp slt i32 %122, %125
  br i1 %126, label %127, label %225

127:                                              ; preds = %121
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.primordial, ptr %128, i32 0, i32 81
  %130 = load ptr, ptr %129, align 8, !tbaa !21
  %131 = load i32, ptr %12, align 4, !tbaa !14
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %130, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !16
  %135 = call double @exp(double noundef %134) #5
  store double %135, ptr %13, align 8, !tbaa !16
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load double, ptr %13, align 8, !tbaa !16
  %141 = call i32 @primordial_inflation_evolve_background(ptr noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139, i32 noundef 0, double noundef %140, i16 noundef signext 0, i32 noundef 1, i32 noundef 0)
  %142 = icmp eq i32 %141, 1
  br i1 %142, label %143, label %152

143:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %144 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.primordial, ptr %145, i32 0, i32 106
  %147 = getelementptr inbounds [2048 x i8], ptr %146, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %144, ptr noundef @.str.6, ptr noundef @.str.100, ptr noundef %147)
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.primordial, ptr %148, i32 0, i32 106
  %150 = getelementptr inbounds [2048 x i8], ptr %149, i64 0, i64 0
  %151 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %150, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_analytic_spectra, i32 noundef 1552, ptr noundef %151)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %254

152:                                              ; preds = %127
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.primordial, ptr %154, i32 0, i32 89
  %156 = load i32, ptr %155, align 4, !tbaa !17
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %153, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !16
  store double %159, ptr %14, align 8, !tbaa !16
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load double, ptr %14, align 8, !tbaa !16
  %162 = call i32 @primordial_inflation_check_potential(ptr noundef %160, double noundef %161, ptr noundef %17, ptr noundef %18, ptr noundef %19)
  %163 = icmp eq i32 %162, 1
  br i1 %163, label %164, label %173

164:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #5
  %165 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.primordial, ptr %166, i32 0, i32 106
  %168 = getelementptr inbounds [2048 x i8], ptr %167, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %165, ptr noundef @.str.6, ptr noundef @.str.101, ptr noundef %168)
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.primordial, ptr %169, i32 0, i32 106
  %171 = getelementptr inbounds [2048 x i8], ptr %170, i64 0, i64 0
  %172 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %171, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_analytic_spectra, i32 noundef 1560, ptr noundef %172)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #5
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %254

173:                                              ; preds = %152
  %174 = load double, ptr %17, align 8, !tbaa !16
  %175 = call double @pow(double noundef %174, double noundef 3.000000e+00) #5
  %176 = fmul double 0x4060C152382D7365, %175
  %177 = load double, ptr %18, align 8, !tbaa !16
  %178 = call double @pow(double noundef %177, double noundef 2.000000e+00) #5
  %179 = fdiv double %176, %178
  store double %179, ptr %15, align 8, !tbaa !16
  %180 = load double, ptr %18, align 8, !tbaa !16
  %181 = load double, ptr %17, align 8, !tbaa !16
  %182 = fdiv double %180, %181
  %183 = call double @pow(double noundef %182, double noundef 2.000000e+00) #5
  %184 = fdiv double %183, 0x400921FB54442D18
  %185 = fmul double %184, 1.280000e+02
  %186 = fmul double %185, 0x400921FB54442D18
  %187 = fdiv double %186, 3.000000e+00
  %188 = load double, ptr %17, align 8, !tbaa !16
  %189 = call double @pow(double noundef %188, double noundef 3.000000e+00) #5
  %190 = fmul double %187, %189
  %191 = load double, ptr %18, align 8, !tbaa !16
  %192 = call double @pow(double noundef %191, double noundef 2.000000e+00) #5
  %193 = fdiv double %190, %192
  store double %193, ptr %16, align 8, !tbaa !16
  %194 = load double, ptr %15, align 8, !tbaa !16
  %195 = call double @log(double noundef %194) #5
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.primordial, ptr %196, i32 0, i32 82
  %198 = load ptr, ptr %197, align 8, !tbaa !22
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.perturbs, ptr %199, i32 0, i32 56
  %201 = load i32, ptr %200, align 4, !tbaa !23
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds ptr, ptr %198, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = load i32, ptr %12, align 4, !tbaa !14
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %204, i64 %206
  store double %195, ptr %207, align 8, !tbaa !16
  %208 = load double, ptr %16, align 8, !tbaa !16
  %209 = call double @log(double noundef %208) #5
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.primordial, ptr %210, i32 0, i32 82
  %212 = load ptr, ptr %211, align 8, !tbaa !22
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.perturbs, ptr %213, i32 0, i32 57
  %215 = load i32, ptr %214, align 8, !tbaa !25
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds ptr, ptr %212, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = load i32, ptr %12, align 4, !tbaa !14
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %218, i64 %220
  store double %209, ptr %221, align 8, !tbaa !16
  br label %222

222:                                              ; preds = %173
  %223 = load i32, ptr %12, align 4, !tbaa !14
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %12, align 4, !tbaa !14
  br label %121, !llvm.loop !26

225:                                              ; preds = %121
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.primordial, ptr %226, i32 0, i32 84
  %228 = load ptr, ptr %227, align 8, !tbaa !28
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.perturbs, ptr %229, i32 0, i32 56
  %231 = load i32, ptr %230, align 4, !tbaa !23
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds ptr, ptr %228, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.perturbs, ptr %235, i32 0, i32 60
  %237 = load i32, ptr %236, align 4, !tbaa !29
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds i16, ptr %234, i64 %238
  store i16 1, ptr %239, align 2, !tbaa !30
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.primordial, ptr %240, i32 0, i32 84
  %242 = load ptr, ptr %241, align 8, !tbaa !28
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.perturbs, ptr %243, i32 0, i32 57
  %245 = load i32, ptr %244, align 8, !tbaa !25
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds ptr, ptr %242, i64 %246
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.perturbs, ptr %249, i32 0, i32 65
  %251 = load i32, ptr %250, align 8, !tbaa !31
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds i16, ptr %248, i64 %252
  store i16 1, ptr %253, align 2, !tbaa !30
  store i32 0, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %254

254:                                              ; preds = %225, %164, %143, %57, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  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 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %255 = load i32, ptr %5, align 4
  ret i32 %255
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @primordial_inflation_check_potential(ptr noundef, double 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, !12, i64 752}
!10 = !{!"primordial", !11, i64 0, !12, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !12, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !12, i64 504, !11, i64 512, !12, i64 520, !6, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !12, i64 616, !6, i64 624, !6, i64 632, !12, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !12, i64 704, !12, i64 708, !12, i64 712, !12, i64 716, !12, i64 720, !12, i64 724, !12, i64 728, !12, i64 732, !12, i64 736, !12, i64 740, !12, i64 744, !12, i64 748, !12, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !13, i64 792, !7, i64 794}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !12, i64 704}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !12, i64 708}
!18 = !{!10, !12, i64 8}
!19 = !{!10, !12, i64 712}
!20 = !{!10, !12, i64 640}
!21 = !{!10, !6, i64 648}
!22 = !{!10, !6, i64 656}
!23 = !{!24, !12, i64 2028}
!24 = !{!"perturbs", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !12, i64 24, !13, i64 28, !13, i64 30, !13, i64 32, !13, i64 34, !13, i64 36, !13, i64 38, !13, i64 40, !13, i64 42, !13, i64 44, !13, i64 46, !13, i64 48, !13, i64 50, !13, i64 52, !13, i64 54, !13, i64 56, !13, i64 58, !13, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !11, i64 80, !12, i64 88, !12, i64 92, !7, i64 96, !7, i64 896, !12, i64 1696, !12, i64 1700, !12, i64 1704, !12, i64 1708, !12, i64 1712, !11, i64 1720, !12, i64 1728, !12, i64 1732, !7, i64 1736, !11, i64 1976, !11, i64 1984, !11, i64 1992, !6, i64 2000, !6, i64 2008, !12, i64 2016, !13, i64 2020, !13, i64 2022, !12, i64 2024, !12, i64 2028, !12, i64 2032, !12, i64 2036, !12, i64 2040, !12, i64 2044, !12, i64 2048, !12, i64 2052, !12, i64 2056, !12, i64 2060, !12, i64 2064, !6, i64 2072, !13, i64 2080, !13, i64 2082, !13, i64 2084, !13, i64 2086, !13, i64 2088, !13, i64 2090, !13, i64 2092, !13, i64 2094, !13, i64 2096, !13, i64 2098, !13, i64 2100, !13, i64 2102, !13, i64 2104, !13, i64 2106, !13, i64 2108, !13, i64 2110, !13, i64 2112, !13, i64 2114, !13, i64 2116, !13, i64 2118, !13, i64 2120, !13, i64 2122, !13, i64 2124, !13, i64 2126, !13, i64 2128, !13, i64 2130, !13, i64 2132, !13, i64 2134, !13, i64 2136, !13, i64 2138, !13, i64 2140, !13, i64 2142, !13, i64 2144, !13, i64 2146, !13, i64 2148, !13, i64 2150, !13, i64 2152, !13, i64 2154, !13, i64 2156, !13, i64 2158, !12, i64 2160, !12, i64 2164, !12, i64 2168, !12, i64 2172, !12, i64 2176, !12, i64 2180, !12, i64 2184, !12, i64 2188, !12, i64 2192, !12, i64 2196, !12, i64 2200, !12, i64 2204, !12, i64 2208, !12, i64 2212, !12, i64 2216, !12, i64 2220, !12, i64 2224, !12, i64 2228, !12, i64 2232, !12, i64 2236, !12, i64 2240, !12, i64 2244, !12, i64 2248, !12, i64 2252, !12, i64 2256, !12, i64 2260, !12, i64 2264, !12, i64 2268, !12, i64 2272, !12, i64 2276, !12, i64 2280, !12, i64 2284, !12, i64 2288, !12, i64 2292, !12, i64 2296, !12, i64 2300, !12, i64 2304, !12, i64 2308, !12, i64 2312, !12, i64 2316, !12, i64 2320, !12, i64 2324, !12, i64 2328, !12, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !11, i64 2376, !11, i64 2384, !6, i64 2392, !12, i64 2400, !11, i64 2408, !11, i64 2416, !11, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !12, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !12, i64 26512, !12, i64 26516, !12, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !13, i64 27608, !7, i64 27610}
!25 = !{!24, !12, i64 2032}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !6, i64 672}
!29 = !{!24, !12, i64 2044}
!30 = !{!13, !13, i64 0}
!31 = !{!24, !12, i64 2064}


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

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.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_analytic_spectra = external hidden unnamed_addr constant [38 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [60 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 nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #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) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @primordial_inflation_analytic_spectra(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #4 {
  %5 = alloca double, align 8
  %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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %12 = getelementptr inbounds i8, ptr %1, i64 752
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = shl nsw i64 %14, 3
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #6
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %21

18:                                               ; preds = %4
  %19 = shl i32 %13, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.76, i32 noundef %19) #5
  %20 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %20, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_analytic_spectra, i32 noundef 1527, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  br label %125

21:                                               ; preds = %4
  %22 = tail call noalias ptr @malloc(i64 noundef %15) #6
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = shl i32 %13, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.78, i32 noundef %25) #5
  %26 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_analytic_spectra, i32 noundef 1528, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %125

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %1, i64 704
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds double, ptr %3, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds double, ptr %16, i64 %30
  store double %32, ptr %33, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %1, i64 708
  %35 = load i32, ptr %34, align 4, !tbaa !15
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %3, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = getelementptr inbounds double, ptr %16, i64 %36
  store double %38, ptr %39, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %1, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !16
  switch i32 %41, label %49 [
    i32 2, label %42
    i32 4, label %42
  ]

42:                                               ; preds = %27, %27
  %43 = getelementptr inbounds i8, ptr %1, i64 712
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds double, ptr %3, i64 %45
  %47 = load double, ptr %46, align 8, !tbaa !14
  %48 = getelementptr inbounds double, ptr %16, i64 %45
  store double %47, ptr %48, align 8, !tbaa !14
  br label %49

49:                                               ; preds = %27, %42
  %50 = getelementptr inbounds i8, ptr %1, i64 640
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %49
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 2032
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !19
  %.pre64 = sext i32 %.pre to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %49
  %53 = getelementptr inbounds i8, ptr %1, i64 648
  %54 = getelementptr inbounds i8, ptr %1, i64 656
  %55 = getelementptr inbounds i8, ptr %0, i64 2028
  %56 = getelementptr inbounds i8, ptr %0, i64 2032
  br label %57

57:                                               ; preds = %.lr.ph, %75
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %75 ]
  %58 = load ptr, ptr %53, align 8, !tbaa !21
  %59 = getelementptr inbounds double, ptr %58, i64 %indvars.iv
  %60 = load double, ptr %59, align 8, !tbaa !14
  %61 = call double @exp(double noundef %60) #5
  %62 = call i32 @primordial_inflation_evolve_background(ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull %22, i32 noundef 0, double noundef %61, i16 noundef signext 0, i32 noundef 1, i32 noundef 0)
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %66

64:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  %65 = 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.100, ptr noundef nonnull %65) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %65, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_analytic_spectra, i32 noundef 1552, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  br label %125

66:                                               ; preds = %57
  %67 = load i32, ptr %34, align 4, !tbaa !15
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %16, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = call i32 @primordial_inflation_check_potential(ptr noundef nonnull %1, double noundef %70, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %75

73:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #5
  %74 = 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.101, ptr noundef nonnull %74) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %74, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_analytic_spectra, i32 noundef 1560, ptr noundef nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #5
  br label %125

75:                                               ; preds = %66
  %76 = load double, ptr %5, align 8, !tbaa !14
  %77 = call double @pow(double noundef %76, double noundef 3.000000e+00) #5
  %78 = fmul double %77, 0x4060C152382D7365
  %79 = load double, ptr %6, align 8, !tbaa !14
  %square = fmul double %79, %79
  %80 = fdiv double %78, %square
  %81 = load double, ptr %5, align 8, !tbaa !14
  %82 = fdiv double %79, %81
  %square60 = fmul double %82, %82
  %83 = fdiv double %square60, 0x400921FB54442D18
  %84 = fmul double %83, 1.280000e+02
  %85 = fmul double %84, 0x400921FB54442D18
  %86 = fdiv double %85, 3.000000e+00
  %87 = call double @pow(double noundef %81, double noundef 3.000000e+00) #5
  %88 = fmul double %87, %86
  %89 = load double, ptr %6, align 8, !tbaa !14
  %square61 = fmul double %89, %89
  %90 = fdiv double %88, %square61
  %91 = call double @log(double noundef %80) #5
  %92 = load ptr, ptr %54, align 8, !tbaa !22
  %93 = load i32, ptr %55, align 4, !tbaa !23
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds ptr, ptr %92, i64 %94
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  %97 = getelementptr inbounds double, ptr %96, i64 %indvars.iv
  store double %91, ptr %97, align 8, !tbaa !14
  %98 = call double @log(double noundef %90) #5
  %99 = load ptr, ptr %54, align 8, !tbaa !22
  %100 = load i32, ptr %56, align 8, !tbaa !19
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %99, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !24
  %104 = getelementptr inbounds double, ptr %103, i64 %indvars.iv
  store double %98, ptr %104, align 8, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %105 = load i32, ptr %50, align 8, !tbaa !18
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next, %106
  br i1 %107, label %57, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %75, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre64, %.._crit_edge_crit_edge ], [ %101, %75 ]
  %108 = getelementptr inbounds i8, ptr %1, i64 672
  %109 = load ptr, ptr %108, align 8, !tbaa !27
  %110 = getelementptr inbounds i8, ptr %0, i64 2028
  %111 = load i32, ptr %110, align 4, !tbaa !23
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds ptr, ptr %109, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !24
  %115 = getelementptr inbounds i8, ptr %0, i64 2044
  %116 = load i32, ptr %115, align 4, !tbaa !28
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i16, ptr %114, i64 %117
  store i16 1, ptr %118, align 2, !tbaa !29
  %119 = getelementptr inbounds ptr, ptr %109, i64 %.pre-phi
  %120 = load ptr, ptr %119, align 8, !tbaa !24
  %121 = getelementptr inbounds i8, ptr %0, i64 2064
  %122 = load i32, ptr %121, align 8, !tbaa !30
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i16, ptr %120, i64 %123
  store i16 1, ptr %124, align 2, !tbaa !29
  br label %125

125:                                              ; preds = %._crit_edge, %73, %64, %24, %18
  %.0 = phi i32 [ 1, %18 ], [ 1, %24 ], [ 1, %64 ], [ 1, %73 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret i32 %.0
}

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

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 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 #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, !10, i64 752}
!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 = !{!6, !10, i64 704}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !10, i64 708}
!16 = !{!6, !10, i64 8}
!17 = !{!6, !10, i64 712}
!18 = !{!6, !10, i64 640}
!19 = !{!20, !10, i64 2032}
!20 = !{!"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}
!21 = !{!6, !11, i64 648}
!22 = !{!6, !11, i64 656}
!23 = !{!20, !10, i64 2028}
!24 = !{!11, !11, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !11, i64 672}
!28 = !{!20, !10, i64 2044}
!29 = !{!12, !12, i64 0}
!30 = !{!20, !10, i64 2064}


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