; 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] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.primordial_inflation_potential = external hidden unnamed_addr constant [31 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 @sqrt(double noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @primordial_inflation_potential(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  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
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.primordial, ptr %27, i32 0, i32 51
  %29 = load i32, ptr %28, align 8, !tbaa !11
  switch i32 %29, label %316 [
    i32 0, label %30
    i32 1, label %100
    i32 2, label %149
  ]

30:                                               ; preds = %5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.primordial, ptr %31, i32 0, i32 52
  %33 = load double, ptr %32, align 8, !tbaa !15
  %34 = load double, ptr %8, align 8, !tbaa !9
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.primordial, ptr %35, i32 0, i32 53
  %37 = load double, ptr %36, align 8, !tbaa !16
  %38 = call double @llvm.fmuladd.f64(double %34, double %37, double %33)
  %39 = load double, ptr %8, align 8, !tbaa !9
  %40 = call double @pow(double noundef %39, double noundef 2.000000e+00) #5
  %41 = fdiv double %40, 2.000000e+00
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.primordial, ptr %42, i32 0, i32 54
  %44 = load double, ptr %43, align 8, !tbaa !17
  %45 = call double @llvm.fmuladd.f64(double %41, double %44, double %38)
  %46 = load double, ptr %8, align 8, !tbaa !9
  %47 = call double @pow(double noundef %46, double noundef 3.000000e+00) #5
  %48 = fdiv double %47, 6.000000e+00
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.primordial, ptr %49, i32 0, i32 55
  %51 = load double, ptr %50, align 8, !tbaa !18
  %52 = call double @llvm.fmuladd.f64(double %48, double %51, double %45)
  %53 = load double, ptr %8, align 8, !tbaa !9
  %54 = call double @pow(double noundef %53, double noundef 4.000000e+00) #5
  %55 = fdiv double %54, 2.400000e+01
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.primordial, ptr %56, i32 0, i32 56
  %58 = load double, ptr %57, align 8, !tbaa !19
  %59 = call double @llvm.fmuladd.f64(double %55, double %58, double %52)
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  store double %59, ptr %60, align 8, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.primordial, ptr %61, i32 0, i32 53
  %63 = load double, ptr %62, align 8, !tbaa !16
  %64 = load double, ptr %8, align 8, !tbaa !9
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.primordial, ptr %65, i32 0, i32 54
  %67 = load double, ptr %66, align 8, !tbaa !17
  %68 = call double @llvm.fmuladd.f64(double %64, double %67, double %63)
  %69 = load double, ptr %8, align 8, !tbaa !9
  %70 = call double @pow(double noundef %69, double noundef 2.000000e+00) #5
  %71 = fdiv double %70, 2.000000e+00
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.primordial, ptr %72, i32 0, i32 55
  %74 = load double, ptr %73, align 8, !tbaa !18
  %75 = call double @llvm.fmuladd.f64(double %71, double %74, double %68)
  %76 = load double, ptr %8, align 8, !tbaa !9
  %77 = call double @pow(double noundef %76, double noundef 3.000000e+00) #5
  %78 = fdiv double %77, 6.000000e+00
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.primordial, ptr %79, i32 0, i32 56
  %81 = load double, ptr %80, align 8, !tbaa !19
  %82 = call double @llvm.fmuladd.f64(double %78, double %81, double %75)
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  store double %82, ptr %83, align 8, !tbaa !9
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.primordial, ptr %84, i32 0, i32 54
  %86 = load double, ptr %85, align 8, !tbaa !17
  %87 = load double, ptr %8, align 8, !tbaa !9
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.primordial, ptr %88, i32 0, i32 55
  %90 = load double, ptr %89, align 8, !tbaa !18
  %91 = call double @llvm.fmuladd.f64(double %87, double %90, double %86)
  %92 = load double, ptr %8, align 8, !tbaa !9
  %93 = call double @pow(double noundef %92, double noundef 2.000000e+00) #5
  %94 = fdiv double %93, 2.000000e+00
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.primordial, ptr %95, i32 0, i32 56
  %97 = load double, ptr %96, align 8, !tbaa !19
  %98 = call double @llvm.fmuladd.f64(double %94, double %97, double %91)
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  store double %98, ptr %99, align 8, !tbaa !9
  br label %327

100:                                              ; preds = %5
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.primordial, ptr %101, i32 0, i32 52
  %103 = load double, ptr %102, align 8, !tbaa !15
  %104 = load double, ptr %8, align 8, !tbaa !9
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.primordial, ptr %105, i32 0, i32 53
  %107 = load double, ptr %106, align 8, !tbaa !16
  %108 = fdiv double %104, %107
  %109 = call double @cos(double noundef %108) #5
  %110 = fadd double 1.000000e+00, %109
  %111 = fmul double %103, %110
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  store double %111, ptr %112, align 8, !tbaa !9
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.primordial, ptr %113, i32 0, i32 52
  %115 = load double, ptr %114, align 8, !tbaa !15
  %116 = fneg double %115
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.primordial, ptr %117, i32 0, i32 53
  %119 = load double, ptr %118, align 8, !tbaa !16
  %120 = fdiv double %116, %119
  %121 = load double, ptr %8, align 8, !tbaa !9
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.primordial, ptr %122, i32 0, i32 53
  %124 = load double, ptr %123, align 8, !tbaa !16
  %125 = fdiv double %121, %124
  %126 = call double @sin(double noundef %125) #5
  %127 = fmul double %120, %126
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  store double %127, ptr %128, align 8, !tbaa !9
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.primordial, ptr %129, i32 0, i32 52
  %131 = load double, ptr %130, align 8, !tbaa !15
  %132 = fneg double %131
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.primordial, ptr %133, i32 0, i32 53
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = fdiv double %132, %135
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.primordial, ptr %137, i32 0, i32 53
  %139 = load double, ptr %138, align 8, !tbaa !16
  %140 = fdiv double %136, %139
  %141 = load double, ptr %8, align 8, !tbaa !9
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.primordial, ptr %142, i32 0, i32 53
  %144 = load double, ptr %143, align 8, !tbaa !16
  %145 = fdiv double %141, %144
  %146 = call double @cos(double noundef %145) #5
  %147 = fmul double %140, %146
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  store double %147, ptr %148, align 8, !tbaa !9
  br label %327

149:                                              ; preds = %5
  %150 = call double @sqrt(double noundef 6.000000e+00) #5
  %151 = fdiv double 2.000000e+00, %150
  %152 = call double @sqrt(double noundef 0x403921FB54442D18) #5
  %153 = fmul double %151, %152
  %154 = load double, ptr %8, align 8, !tbaa !9
  %155 = fmul double %153, %154
  %156 = call double @exp(double noundef %155) #5
  store double %156, ptr %12, align 8, !tbaa !9
  %157 = call double @sqrt(double noundef 6.000000e+00) #5
  %158 = fdiv double 2.000000e+00, %157
  %159 = call double @sqrt(double noundef 0x403921FB54442D18) #5
  %160 = fmul double %158, %159
  %161 = load double, ptr %12, align 8, !tbaa !9
  %162 = fmul double %160, %161
  store double %162, ptr %13, align 8, !tbaa !9
  %163 = load double, ptr %12, align 8, !tbaa !9
  %164 = fmul double 0x4030C152382D7365, %163
  store double %164, ptr %14, align 8, !tbaa !9
  %165 = load double, ptr %12, align 8, !tbaa !9
  %166 = fsub double 1.000000e+00, %165
  %167 = call double @pow(double noundef %166, double noundef 5.000000e-01) #5
  store double %167, ptr %15, align 8, !tbaa !9
  %168 = load double, ptr %13, align 8, !tbaa !9
  %169 = fmul double -5.000000e-01, %168
  %170 = load double, ptr %12, align 8, !tbaa !9
  %171 = fsub double 1.000000e+00, %170
  %172 = call double @pow(double noundef %171, double noundef -5.000000e-01) #5
  %173 = fmul double %169, %172
  store double %173, ptr %16, align 8, !tbaa !9
  %174 = load double, ptr %14, align 8, !tbaa !9
  %175 = fmul double -5.000000e-01, %174
  %176 = load double, ptr %12, align 8, !tbaa !9
  %177 = fsub double 1.000000e+00, %176
  %178 = call double @pow(double noundef %177, double noundef -5.000000e-01) #5
  %179 = load double, ptr %13, align 8, !tbaa !9
  %180 = fmul double 2.500000e-01, %179
  %181 = load double, ptr %13, align 8, !tbaa !9
  %182 = fmul double %180, %181
  %183 = load double, ptr %12, align 8, !tbaa !9
  %184 = fsub double 1.000000e+00, %183
  %185 = call double @pow(double noundef %184, double noundef -1.500000e+00) #5
  %186 = fmul double %182, %185
  %187 = fneg double %186
  %188 = call double @llvm.fmuladd.f64(double %175, double %178, double %187)
  store double %188, ptr %17, align 8, !tbaa !9
  %189 = load double, ptr %15, align 8, !tbaa !9
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.primordial, ptr %190, i32 0, i32 54
  %192 = load double, ptr %191, align 8, !tbaa !17
  %193 = fdiv double %189, %192
  %194 = call double @log(double noundef %193) #5
  store double %194, ptr %18, align 8, !tbaa !9
  %195 = load double, ptr %16, align 8, !tbaa !9
  %196 = load double, ptr %15, align 8, !tbaa !9
  %197 = fdiv double %195, %196
  store double %197, ptr %19, align 8, !tbaa !9
  %198 = load double, ptr %17, align 8, !tbaa !9
  %199 = load double, ptr %15, align 8, !tbaa !9
  %200 = fdiv double %198, %199
  %201 = load double, ptr %19, align 8, !tbaa !9
  %202 = load double, ptr %19, align 8, !tbaa !9
  %203 = fneg double %201
  %204 = call double @llvm.fmuladd.f64(double %203, double %202, double %200)
  store double %204, ptr %20, align 8, !tbaa !9
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.primordial, ptr %205, i32 0, i32 55
  %207 = load double, ptr %206, align 8, !tbaa !18
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.primordial, ptr %208, i32 0, i32 52
  %210 = load double, ptr %209, align 8, !tbaa !15
  %211 = fdiv double %207, %210
  %212 = fadd double 6.250000e-02, %211
  %213 = load double, ptr %18, align 8, !tbaa !9
  %214 = load double, ptr %18, align 8, !tbaa !9
  %215 = call double @llvm.fmuladd.f64(double %213, double %214, double %212)
  store double %215, ptr %21, align 8, !tbaa !9
  %216 = load double, ptr %19, align 8, !tbaa !9
  %217 = fmul double 2.000000e+00, %216
  %218 = load double, ptr %18, align 8, !tbaa !9
  %219 = fmul double %217, %218
  store double %219, ptr %22, align 8, !tbaa !9
  %220 = load double, ptr %20, align 8, !tbaa !9
  %221 = fmul double 2.000000e+00, %220
  %222 = load double, ptr %18, align 8, !tbaa !9
  %223 = load double, ptr %19, align 8, !tbaa !9
  %224 = fmul double 2.000000e+00, %223
  %225 = load double, ptr %19, align 8, !tbaa !9
  %226 = fmul double %224, %225
  %227 = call double @llvm.fmuladd.f64(double %221, double %222, double %226)
  store double %227, ptr %23, align 8, !tbaa !9
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.primordial, ptr %228, i32 0, i32 52
  %230 = load double, ptr %229, align 8, !tbaa !15
  %231 = fdiv double %230, 4.000000e+00
  %232 = call double @pow(double noundef 0x403921FB54442D18, double noundef 2.000000e+00) #5
  %233 = fdiv double %231, %232
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.primordial, ptr %234, i32 0, i32 53
  %236 = load double, ptr %235, align 8, !tbaa !16
  %237 = fdiv double %233, %236
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.primordial, ptr %238, i32 0, i32 53
  %240 = load double, ptr %239, align 8, !tbaa !16
  %241 = fdiv double %237, %240
  %242 = load double, ptr %21, align 8, !tbaa !9
  %243 = fmul double %241, %242
  %244 = load double, ptr %15, align 8, !tbaa !9
  %245 = call double @pow(double noundef %244, double noundef 4.000000e+00) #5
  %246 = fmul double %243, %245
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  store double %246, ptr %247, align 8, !tbaa !9
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.primordial, ptr %248, i32 0, i32 52
  %250 = load double, ptr %249, align 8, !tbaa !15
  %251 = fdiv double %250, 4.000000e+00
  %252 = call double @pow(double noundef 0x403921FB54442D18, double noundef 2.000000e+00) #5
  %253 = fdiv double %251, %252
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.primordial, ptr %254, i32 0, i32 53
  %256 = load double, ptr %255, align 8, !tbaa !16
  %257 = fdiv double %253, %256
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.primordial, ptr %258, i32 0, i32 53
  %260 = load double, ptr %259, align 8, !tbaa !16
  %261 = fdiv double %257, %260
  %262 = load double, ptr %22, align 8, !tbaa !9
  %263 = load double, ptr %15, align 8, !tbaa !9
  %264 = call double @pow(double noundef %263, double noundef 4.000000e+00) #5
  %265 = load double, ptr %21, align 8, !tbaa !9
  %266 = fmul double 4.000000e+00, %265
  %267 = load double, ptr %16, align 8, !tbaa !9
  %268 = fmul double %266, %267
  %269 = load double, ptr %15, align 8, !tbaa !9
  %270 = call double @pow(double noundef %269, double noundef 3.000000e+00) #5
  %271 = fmul double %268, %270
  %272 = call double @llvm.fmuladd.f64(double %262, double %264, double %271)
  %273 = fmul double %261, %272
  %274 = load ptr, ptr %10, align 8, !tbaa !5
  store double %273, ptr %274, align 8, !tbaa !9
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.primordial, ptr %275, i32 0, i32 52
  %277 = load double, ptr %276, align 8, !tbaa !15
  %278 = fdiv double %277, 4.000000e+00
  %279 = call double @pow(double noundef 0x403921FB54442D18, double noundef 2.000000e+00) #5
  %280 = fdiv double %278, %279
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.primordial, ptr %281, i32 0, i32 53
  %283 = load double, ptr %282, align 8, !tbaa !16
  %284 = fdiv double %280, %283
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.primordial, ptr %285, i32 0, i32 53
  %287 = load double, ptr %286, align 8, !tbaa !16
  %288 = fdiv double %284, %287
  %289 = load double, ptr %23, align 8, !tbaa !9
  %290 = load double, ptr %15, align 8, !tbaa !9
  %291 = call double @pow(double noundef %290, double noundef 4.000000e+00) #5
  %292 = load double, ptr %22, align 8, !tbaa !9
  %293 = fmul double 8.000000e+00, %292
  %294 = load double, ptr %16, align 8, !tbaa !9
  %295 = fmul double %293, %294
  %296 = load double, ptr %15, align 8, !tbaa !9
  %297 = call double @pow(double noundef %296, double noundef 3.000000e+00) #5
  %298 = fmul double %295, %297
  %299 = call double @llvm.fmuladd.f64(double %289, double %291, double %298)
  %300 = load double, ptr %21, align 8, !tbaa !9
  %301 = fmul double 4.000000e+00, %300
  %302 = load double, ptr %17, align 8, !tbaa !9
  %303 = fmul double %301, %302
  %304 = load double, ptr %15, align 8, !tbaa !9
  %305 = call double @pow(double noundef %304, double noundef 3.000000e+00) #5
  %306 = call double @llvm.fmuladd.f64(double %303, double %305, double %299)
  %307 = load double, ptr %21, align 8, !tbaa !9
  %308 = fmul double 1.200000e+01, %307
  %309 = load double, ptr %16, align 8, !tbaa !9
  %310 = load double, ptr %15, align 8, !tbaa !9
  %311 = fmul double %309, %310
  %312 = call double @pow(double noundef %311, double noundef 2.000000e+00) #5
  %313 = call double @llvm.fmuladd.f64(double %308, double %312, double %306)
  %314 = fmul double %288, %313
  %315 = load ptr, ptr %11, align 8, !tbaa !5
  store double %314, ptr %315, align 8, !tbaa !9
  br label %327

316:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %317 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %318 = load ptr, ptr %7, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.primordial, ptr %318, i32 0, i32 51
  %320 = load i32, ptr %319, align 8, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %317, ptr noundef @.str.74, i32 noundef %320)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %321 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %322 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %321, ptr noundef @.str.75, ptr noundef %322)
  %323 = load ptr, ptr %7, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.primordial, ptr %323, i32 0, i32 106
  %325 = getelementptr inbounds [2048 x i8], ptr %324, i64 0, i64 0
  %326 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %325, ptr noundef @.str.3, ptr noundef @__func__.primordial_inflation_potential, i32 noundef 1029, ptr noundef %326)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  br label %328

327:                                              ; preds = %149, %100, %30
  store i32 0, ptr %6, align 4
  store i32 1, ptr %26, align 4
  br label %328

328:                                              ; preds = %327, %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  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 8, ptr %12) #5
  %329 = load i32, ptr %6, align 4
  ret i32 %329
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 408}
!12 = !{!"primordial", !10, i64 0, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !13, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !13, i64 504, !10, i64 512, !13, i64 520, !6, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !13, i64 616, !6, i64 624, !6, i64 632, !13, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !13, i64 704, !13, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !13, i64 724, !13, i64 728, !13, i64 732, !13, i64 736, !13, i64 740, !13, i64 744, !13, i64 748, !13, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !14, i64 792, !7, i64 794}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 416}
!16 = !{!12, !10, i64 424}
!17 = !{!12, !10, i64 432}
!18 = !{!12, !10, i64 440}
!19 = !{!12, !10, i64 448}


; 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.74 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.primordial_inflation_potential = external hidden unnamed_addr constant [31 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @primordial_inflation_potential(ptr noundef %0, double noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #4 {
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = getelementptr inbounds i8, ptr %0, i64 408
  %9 = load i32, ptr %8, align 8, !tbaa !5
  switch i32 %9, label %146 [
    i32 0, label %10
    i32 1, label %44
    i32 2, label %68
  ]

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 416
  %12 = load double, ptr %11, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %0, i64 424
  %14 = load double, ptr %13, align 8, !tbaa !14
  %15 = tail call double @llvm.fmuladd.f64(double %1, double %14, double %12)
  %square101 = fmul double %1, %1
  %16 = fmul double %square101, 5.000000e-01
  %17 = getelementptr inbounds i8, ptr %0, i64 432
  %18 = load double, ptr %17, align 8, !tbaa !15
  %19 = tail call double @llvm.fmuladd.f64(double %16, double %18, double %15)
  %20 = tail call double @pow(double noundef %1, double noundef 3.000000e+00) #5
  %21 = fdiv double %20, 6.000000e+00
  %22 = getelementptr inbounds i8, ptr %0, i64 440
  %23 = load double, ptr %22, align 8, !tbaa !16
  %24 = tail call double @llvm.fmuladd.f64(double %21, double %23, double %19)
  %25 = tail call double @pow(double noundef %1, double noundef 4.000000e+00) #5
  %26 = fdiv double %25, 2.400000e+01
  %27 = getelementptr inbounds i8, ptr %0, i64 448
  %28 = load double, ptr %27, align 8, !tbaa !17
  %29 = tail call double @llvm.fmuladd.f64(double %26, double %28, double %24)
  store double %29, ptr %2, align 8, !tbaa !18
  %30 = load double, ptr %13, align 8, !tbaa !14
  %31 = load double, ptr %17, align 8, !tbaa !15
  %32 = tail call double @llvm.fmuladd.f64(double %1, double %31, double %30)
  %33 = load double, ptr %22, align 8, !tbaa !16
  %34 = tail call double @llvm.fmuladd.f64(double %16, double %33, double %32)
  %35 = tail call double @pow(double noundef %1, double noundef 3.000000e+00) #5
  %36 = fdiv double %35, 6.000000e+00
  %37 = load double, ptr %27, align 8, !tbaa !17
  %38 = tail call double @llvm.fmuladd.f64(double %36, double %37, double %34)
  store double %38, ptr %3, align 8, !tbaa !18
  %39 = load double, ptr %17, align 8, !tbaa !15
  %40 = load double, ptr %22, align 8, !tbaa !16
  %41 = tail call double @llvm.fmuladd.f64(double %1, double %40, double %39)
  %42 = load double, ptr %27, align 8, !tbaa !17
  %43 = tail call double @llvm.fmuladd.f64(double %16, double %42, double %41)
  store double %43, ptr %4, align 8, !tbaa !18
  br label %148

44:                                               ; preds = %5
  %45 = getelementptr inbounds i8, ptr %0, i64 416
  %46 = load double, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds i8, ptr %0, i64 424
  %48 = load double, ptr %47, align 8, !tbaa !14
  %49 = fdiv double %1, %48
  %50 = tail call double @cos(double noundef %49) #5
  %51 = fadd double %50, 1.000000e+00
  %52 = fmul double %46, %51
  store double %52, ptr %2, align 8, !tbaa !18
  %53 = load double, ptr %45, align 8, !tbaa !13
  %54 = fneg double %53
  %55 = load double, ptr %47, align 8, !tbaa !14
  %56 = fdiv double %54, %55
  %57 = fdiv double %1, %55
  %58 = tail call double @sin(double noundef %57) #5
  %59 = fmul double %56, %58
  store double %59, ptr %3, align 8, !tbaa !18
  %60 = load double, ptr %45, align 8, !tbaa !13
  %61 = fneg double %60
  %62 = load double, ptr %47, align 8, !tbaa !14
  %63 = fdiv double %61, %62
  %64 = fdiv double %63, %62
  %65 = fdiv double %1, %62
  %66 = tail call double @cos(double noundef %65) #5
  %67 = fmul double %66, %64
  store double %67, ptr %4, align 8, !tbaa !18
  br label %148

68:                                               ; preds = %5
  %69 = fmul double %1, 0x40105F8BD37C0E62
  %70 = tail call double @exp(double noundef %69) #5
  %71 = fmul double %70, 0x40105F8BD37C0E62
  %72 = fmul double %70, 0x4030C152382D7365
  %73 = fsub double 1.000000e+00, %70
  %74 = tail call double @pow(double noundef %73, double noundef 5.000000e-01) #5
  %75 = fmul double %71, -5.000000e-01
  %76 = tail call double @pow(double noundef %73, double noundef -5.000000e-01) #5
  %77 = fmul double %75, %76
  %78 = fmul double %72, -5.000000e-01
  %79 = tail call double @pow(double noundef %73, double noundef -5.000000e-01) #5
  %80 = tail call double @pow(double noundef %73, double noundef -1.500000e+00) #5
  %81 = fmul double %71, -2.500000e-01
  %82 = fmul double %71, %81
  %83 = fmul double %82, %80
  %84 = tail call double @llvm.fmuladd.f64(double %78, double %79, double %83)
  %85 = getelementptr inbounds i8, ptr %0, i64 432
  %86 = load double, ptr %85, align 8, !tbaa !15
  %87 = fdiv double %74, %86
  %88 = tail call double @log(double noundef %87) #5
  %89 = fdiv double %77, %74
  %90 = fdiv double %84, %74
  %91 = fneg double %89
  %92 = tail call double @llvm.fmuladd.f64(double %91, double %89, double %90)
  %93 = getelementptr inbounds i8, ptr %0, i64 440
  %94 = load double, ptr %93, align 8, !tbaa !16
  %95 = getelementptr inbounds i8, ptr %0, i64 416
  %96 = load double, ptr %95, align 8, !tbaa !13
  %97 = fdiv double %94, %96
  %98 = fadd double %97, 6.250000e-02
  %99 = tail call double @llvm.fmuladd.f64(double %88, double %88, double %98)
  %100 = fmul double %89, 2.000000e+00
  %101 = fmul double %100, %88
  %102 = fmul double %92, 2.000000e+00
  %103 = fmul double %89, %100
  %104 = tail call double @llvm.fmuladd.f64(double %102, double %88, double %103)
  %105 = fmul double %96, 2.500000e-01
  %106 = fdiv double %105, 0x4083BD3CC9BE45DE
  %107 = getelementptr inbounds i8, ptr %0, i64 424
  %108 = load double, ptr %107, align 8, !tbaa !14
  %109 = fdiv double %106, %108
  %110 = fdiv double %109, %108
  %111 = fmul double %99, %110
  %112 = tail call double @pow(double noundef %74, double noundef 4.000000e+00) #5
  %113 = fmul double %112, %111
  store double %113, ptr %2, align 8, !tbaa !18
  %114 = load double, ptr %95, align 8, !tbaa !13
  %115 = fmul double %114, 2.500000e-01
  %116 = fdiv double %115, 0x4083BD3CC9BE45DE
  %117 = load double, ptr %107, align 8, !tbaa !14
  %118 = fdiv double %116, %117
  %119 = fdiv double %118, %117
  %120 = tail call double @pow(double noundef %74, double noundef 4.000000e+00) #5
  %121 = fmul double %99, 4.000000e+00
  %122 = fmul double %77, %121
  %123 = tail call double @pow(double noundef %74, double noundef 3.000000e+00) #5
  %124 = fmul double %122, %123
  %125 = tail call double @llvm.fmuladd.f64(double %101, double %120, double %124)
  %126 = fmul double %119, %125
  store double %126, ptr %3, align 8, !tbaa !18
  %127 = load double, ptr %95, align 8, !tbaa !13
  %128 = fmul double %127, 2.500000e-01
  %129 = fdiv double %128, 0x4083BD3CC9BE45DE
  %130 = load double, ptr %107, align 8, !tbaa !14
  %131 = fdiv double %129, %130
  %132 = fdiv double %131, %130
  %133 = tail call double @pow(double noundef %74, double noundef 4.000000e+00) #5
  %134 = fmul double %101, 8.000000e+00
  %135 = fmul double %77, %134
  %136 = tail call double @pow(double noundef %74, double noundef 3.000000e+00) #5
  %137 = fmul double %135, %136
  %138 = tail call double @llvm.fmuladd.f64(double %104, double %133, double %137)
  %139 = fmul double %84, %121
  %140 = tail call double @pow(double noundef %74, double noundef 3.000000e+00) #5
  %141 = tail call double @llvm.fmuladd.f64(double %139, double %140, double %138)
  %142 = fmul double %99, 1.200000e+01
  %143 = fmul double %74, %77
  %square = fmul double %143, %143
  %144 = tail call double @llvm.fmuladd.f64(double %142, double %square, double %141)
  %145 = fmul double %132, %144
  store double %145, ptr %4, align 8, !tbaa !18
  br label %148

146:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.74, i32 noundef %9) #5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.75, ptr noundef nonnull %6) #5
  %147 = getelementptr inbounds i8, ptr %0, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %147, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_inflation_potential, i32 noundef 1029, ptr noundef nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  br label %148

148:                                              ; preds = %10, %44, %68, %146
  %.0 = phi i32 [ 1, %146 ], [ 0, %68 ], [ 0, %44 ], [ 0, %10 ]
  ret i32 %.0
}

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

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

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

!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 408}
!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, !7, i64 416}
!14 = !{!6, !7, i64 424}
!15 = !{!6, !7, i64 432}
!16 = !{!6, !7, i64 440}
!17 = !{!6, !7, i64 448}
!18 = !{!7, !7, i64 0}


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