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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.background_parameters_and_workspace = type { ptr, ptr }
%struct.background = type { double, double, double, double, double, double, double, i32, double, double, double, double, i16, double, double, double, double, double, double, double, double, double, i16, double, double, ptr, i32, i32, double, i32, ptr, ptr, double, ptr, double, ptr, double, ptr, double, ptr, ptr, ptr, double, double, double, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i16, i16, i16, i16, i16, [2048 x i8], i16, [2048 x i8] }

@.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.178 = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.background_derivs = external hidden unnamed_addr constant [18 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @background_functions(ptr noundef, ptr noundef, i16 noundef signext, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local double @dV_scf(ptr noundef, double noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @background_derivs(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca [2048 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  store double %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !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
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %22 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %22, ptr %12, align 8, !tbaa !9
  %23 = load ptr, ptr %12, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.background_parameters_and_workspace, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  store ptr %25, ptr %13, align 8, !tbaa !9
  %26 = load ptr, ptr %12, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.background_parameters_and_workspace, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  store ptr %28, ptr %14, align 8, !tbaa !9
  %29 = load ptr, ptr %13, align 8, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  %31 = load ptr, ptr %13, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.background, ptr %31, i32 0, i32 142
  %33 = load i16, ptr %32, align 2, !tbaa !14
  %34 = load ptr, ptr %14, align 8, !tbaa !9
  %35 = call i32 @background_functions(ptr noundef %29, ptr noundef %30, i16 noundef signext %33, ptr noundef %34)
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %44

37:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #5
  %38 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %39 = load ptr, ptr %13, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.background, ptr %39, i32 0, i32 149
  %41 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %38, ptr noundef @.str.6, ptr noundef @.str.178, ptr noundef %41)
  %42 = load ptr, ptr %11, align 8, !tbaa !9
  %43 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %42, ptr noundef @.str.3, ptr noundef @__func__.background_derivs, i32 noundef 2399, ptr noundef %43)
  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
  br label %487

44:                                               ; preds = %5
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  %46 = load ptr, ptr %13, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.background, ptr %46, i32 0, i32 106
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %45, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !5
  store double %51, ptr %15, align 8, !tbaa !5
  %52 = load ptr, ptr %14, align 8, !tbaa !9
  %53 = load ptr, ptr %13, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.background, ptr %53, i32 0, i32 60
  %55 = load i32, ptr %54, align 4, !tbaa !19
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %52, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !5
  store double %58, ptr %16, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !9
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.background, ptr %60, i32 0, i32 106
  %62 = load i32, ptr %61, align 8, !tbaa !18
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %59, i64 %63
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.background, ptr %67, i32 0, i32 106
  %69 = load i32, ptr %68, align 8, !tbaa !18
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %66, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = fmul double %65, %72
  %74 = load ptr, ptr %14, align 8, !tbaa !9
  %75 = load ptr, ptr %13, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.background, ptr %75, i32 0, i32 60
  %77 = load i32, ptr %76, align 4, !tbaa !19
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds double, ptr %74, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = fmul double %73, %80
  %82 = load ptr, ptr %9, align 8, !tbaa !9
  %83 = load ptr, ptr %13, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.background, ptr %83, i32 0, i32 106
  %85 = load i32, ptr %84, align 8, !tbaa !18
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %82, i64 %86
  store double %81, ptr %87, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !9
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.background, ptr %89, i32 0, i32 106
  %91 = load i32, ptr %90, align 8, !tbaa !18
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %88, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !9
  %96 = load ptr, ptr %13, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.background, ptr %96, i32 0, i32 112
  %98 = load i32, ptr %97, align 8, !tbaa !20
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %95, i64 %99
  store double %94, ptr %100, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  %102 = load ptr, ptr %13, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.background, ptr %102, i32 0, i32 62
  %104 = load i32, ptr %103, align 4, !tbaa !21
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %101, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fcmp ole double %107, 0.000000e+00
  br i1 %108, label %109, label %122

109:                                              ; preds = %44
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %110 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %111 = load ptr, ptr %14, align 8, !tbaa !9
  %112 = load ptr, ptr %13, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.background, ptr %112, i32 0, i32 62
  %114 = load i32, ptr %113, align 4, !tbaa !21
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %111, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %110, ptr noundef @.str.179, double noundef %117)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %118 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %119 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %118, ptr noundef @.str.1, ptr noundef @.str.180, ptr noundef %119)
  %120 = load ptr, ptr %11, align 8, !tbaa !9
  %121 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %120, ptr noundef @.str.3, ptr noundef @__func__.background_derivs, i32 noundef 2413, ptr noundef %121)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #5
  store i32 1, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %487

122:                                              ; preds = %44
  %123 = load ptr, ptr %14, align 8, !tbaa !9
  %124 = load ptr, ptr %13, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.background, ptr %124, i32 0, i32 63
  %126 = load i32, ptr %125, align 8, !tbaa !22
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %123, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = fmul double 3.000000e+00, %129
  %131 = fdiv double %130, 4.000000e+00
  %132 = load ptr, ptr %14, align 8, !tbaa !9
  %133 = load ptr, ptr %13, align 8, !tbaa !9
  %134 = getelementptr inbounds %struct.background, ptr %133, i32 0, i32 62
  %135 = load i32, ptr %134, align 4, !tbaa !21
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %132, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = fdiv double %131, %138
  %140 = fadd double 1.000000e+00, %139
  %141 = fmul double 3.000000e+00, %140
  %142 = call double @sqrt(double noundef %141) #5
  %143 = fdiv double 1.000000e+00, %142
  %144 = load ptr, ptr %13, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.background, ptr %144, i32 0, i32 45
  %146 = load double, ptr %145, align 8, !tbaa !23
  %147 = load ptr, ptr %8, align 8, !tbaa !9
  %148 = load ptr, ptr %13, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.background, ptr %148, i32 0, i32 113
  %150 = load i32, ptr %149, align 4, !tbaa !24
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %147, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !5
  %154 = fmul double %146, %153
  %155 = load ptr, ptr %8, align 8, !tbaa !9
  %156 = load ptr, ptr %13, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.background, ptr %156, i32 0, i32 113
  %158 = load i32, ptr %157, align 4, !tbaa !24
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds double, ptr %155, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !5
  %162 = fneg double %154
  %163 = call double @llvm.fmuladd.f64(double %162, double %161, double 1.000000e+00)
  %164 = call double @sqrt(double noundef %163) #5
  %165 = fmul double %143, %164
  %166 = load ptr, ptr %9, align 8, !tbaa !9
  %167 = load ptr, ptr %13, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.background, ptr %167, i32 0, i32 113
  %169 = load i32, ptr %168, align 4, !tbaa !24
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %166, i64 %170
  store double %165, ptr %171, align 8, !tbaa !5
  %172 = load ptr, ptr %14, align 8, !tbaa !9
  %173 = load ptr, ptr %13, align 8, !tbaa !9
  %174 = getelementptr inbounds %struct.background, ptr %173, i32 0, i32 63
  %175 = load i32, ptr %174, align 8, !tbaa !22
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %172, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !5
  store double %178, ptr %17, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.background, ptr %179, i32 0, i32 119
  %181 = load i16, ptr %180, align 4, !tbaa !25
  %182 = icmp ne i16 %181, 0
  br i1 %182, label %183, label %193

183:                                              ; preds = %122
  %184 = load ptr, ptr %14, align 8, !tbaa !9
  %185 = load ptr, ptr %13, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.background, ptr %185, i32 0, i32 64
  %187 = load i32, ptr %186, align 4, !tbaa !26
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %184, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !5
  %191 = load double, ptr %17, align 8, !tbaa !5
  %192 = fadd double %191, %190
  store double %192, ptr %17, align 8, !tbaa !5
  br label %193

193:                                              ; preds = %183, %122
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.background, ptr %194, i32 0, i32 128
  %196 = load i16, ptr %195, align 2, !tbaa !27
  %197 = icmp ne i16 %196, 0
  br i1 %197, label %198, label %208

198:                                              ; preds = %193
  %199 = load ptr, ptr %14, align 8, !tbaa !9
  %200 = load ptr, ptr %13, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.background, ptr %200, i32 0, i32 69
  %202 = load i32, ptr %201, align 8, !tbaa !28
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %199, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !5
  %206 = load double, ptr %17, align 8, !tbaa !5
  %207 = fadd double %206, %205
  store double %207, ptr %17, align 8, !tbaa !5
  br label %208

208:                                              ; preds = %198, %193
  %209 = load ptr, ptr %8, align 8, !tbaa !9
  %210 = load ptr, ptr %13, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.background, ptr %210, i32 0, i32 116
  %212 = load i32, ptr %211, align 8, !tbaa !29
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %209, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !5
  %216 = load ptr, ptr %9, align 8, !tbaa !9
  %217 = load ptr, ptr %13, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.background, ptr %217, i32 0, i32 115
  %219 = load i32, ptr %218, align 4, !tbaa !30
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %216, i64 %220
  store double %215, ptr %221, align 8, !tbaa !5
  %222 = load double, ptr %15, align 8, !tbaa !5
  %223 = fneg double %222
  %224 = load double, ptr %16, align 8, !tbaa !5
  %225 = fmul double %223, %224
  %226 = load ptr, ptr %8, align 8, !tbaa !9
  %227 = load ptr, ptr %13, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.background, ptr %227, i32 0, i32 116
  %229 = load i32, ptr %228, align 8, !tbaa !29
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %226, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !5
  %233 = load double, ptr %15, align 8, !tbaa !5
  %234 = fmul double 1.500000e+00, %233
  %235 = load double, ptr %15, align 8, !tbaa !5
  %236 = fmul double %234, %235
  %237 = load double, ptr %17, align 8, !tbaa !5
  %238 = fmul double %236, %237
  %239 = load ptr, ptr %8, align 8, !tbaa !9
  %240 = load ptr, ptr %13, align 8, !tbaa !9
  %241 = getelementptr inbounds %struct.background, ptr %240, i32 0, i32 115
  %242 = load i32, ptr %241, align 4, !tbaa !30
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %239, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !5
  %246 = fmul double %238, %245
  %247 = call double @llvm.fmuladd.f64(double %225, double %232, double %246)
  %248 = load ptr, ptr %9, align 8, !tbaa !9
  %249 = load ptr, ptr %13, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.background, ptr %249, i32 0, i32 116
  %251 = load i32, ptr %250, align 8, !tbaa !29
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %248, i64 %252
  store double %247, ptr %253, align 8, !tbaa !5
  %254 = load ptr, ptr %13, align 8, !tbaa !9
  %255 = getelementptr inbounds %struct.background, ptr %254, i32 0, i32 120
  %256 = load i16, ptr %255, align 2, !tbaa !31
  %257 = sext i16 %256 to i32
  %258 = icmp eq i32 %257, 1
  br i1 %258, label %259, label %310

259:                                              ; preds = %208
  %260 = load ptr, ptr %8, align 8, !tbaa !9
  %261 = load ptr, ptr %13, align 8, !tbaa !9
  %262 = getelementptr inbounds %struct.background, ptr %261, i32 0, i32 106
  %263 = load i32, ptr %262, align 8, !tbaa !18
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds double, ptr %260, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !5
  %267 = fmul double -3.000000e+00, %266
  %268 = load ptr, ptr %14, align 8, !tbaa !9
  %269 = load ptr, ptr %13, align 8, !tbaa !9
  %270 = getelementptr inbounds %struct.background, ptr %269, i32 0, i32 60
  %271 = load i32, ptr %270, align 4, !tbaa !19
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds double, ptr %268, i64 %272
  %274 = load double, ptr %273, align 8, !tbaa !5
  %275 = fmul double %267, %274
  %276 = load ptr, ptr %8, align 8, !tbaa !9
  %277 = load ptr, ptr %13, align 8, !tbaa !9
  %278 = getelementptr inbounds %struct.background, ptr %277, i32 0, i32 107
  %279 = load i32, ptr %278, align 4, !tbaa !32
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds double, ptr %276, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !5
  %283 = load ptr, ptr %8, align 8, !tbaa !9
  %284 = load ptr, ptr %13, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.background, ptr %284, i32 0, i32 106
  %286 = load i32, ptr %285, align 8, !tbaa !18
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %283, i64 %287
  %289 = load double, ptr %288, align 8, !tbaa !5
  %290 = load ptr, ptr %13, align 8, !tbaa !9
  %291 = getelementptr inbounds %struct.background, ptr %290, i32 0, i32 19
  %292 = load double, ptr %291, align 8, !tbaa !33
  %293 = fmul double %289, %292
  %294 = load ptr, ptr %8, align 8, !tbaa !9
  %295 = load ptr, ptr %13, align 8, !tbaa !9
  %296 = getelementptr inbounds %struct.background, ptr %295, i32 0, i32 107
  %297 = load i32, ptr %296, align 4, !tbaa !32
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds double, ptr %294, i64 %298
  %300 = load double, ptr %299, align 8, !tbaa !5
  %301 = fmul double %293, %300
  %302 = fneg double %301
  %303 = call double @llvm.fmuladd.f64(double %275, double %282, double %302)
  %304 = load ptr, ptr %9, align 8, !tbaa !9
  %305 = load ptr, ptr %13, align 8, !tbaa !9
  %306 = getelementptr inbounds %struct.background, ptr %305, i32 0, i32 107
  %307 = load i32, ptr %306, align 4, !tbaa !32
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds double, ptr %304, i64 %308
  store double %303, ptr %309, align 8, !tbaa !5
  br label %310

310:                                              ; preds = %259, %208
  %311 = load ptr, ptr %13, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.background, ptr %311, i32 0, i32 120
  %313 = load i16, ptr %312, align 2, !tbaa !31
  %314 = sext i16 %313 to i32
  %315 = icmp eq i32 %314, 1
  br i1 %315, label %316, label %372

316:                                              ; preds = %310
  %317 = load ptr, ptr %13, align 8, !tbaa !9
  %318 = getelementptr inbounds %struct.background, ptr %317, i32 0, i32 121
  %319 = load i16, ptr %318, align 8, !tbaa !34
  %320 = sext i16 %319 to i32
  %321 = icmp eq i32 %320, 1
  br i1 %321, label %322, label %372

322:                                              ; preds = %316
  %323 = load ptr, ptr %8, align 8, !tbaa !9
  %324 = load ptr, ptr %13, align 8, !tbaa !9
  %325 = getelementptr inbounds %struct.background, ptr %324, i32 0, i32 106
  %326 = load i32, ptr %325, align 8, !tbaa !18
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds double, ptr %323, i64 %327
  %329 = load double, ptr %328, align 8, !tbaa !5
  %330 = fmul double -4.000000e+00, %329
  %331 = load ptr, ptr %14, align 8, !tbaa !9
  %332 = load ptr, ptr %13, align 8, !tbaa !9
  %333 = getelementptr inbounds %struct.background, ptr %332, i32 0, i32 60
  %334 = load i32, ptr %333, align 4, !tbaa !19
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds double, ptr %331, i64 %335
  %337 = load double, ptr %336, align 8, !tbaa !5
  %338 = fmul double %330, %337
  %339 = load ptr, ptr %8, align 8, !tbaa !9
  %340 = load ptr, ptr %13, align 8, !tbaa !9
  %341 = getelementptr inbounds %struct.background, ptr %340, i32 0, i32 108
  %342 = load i32, ptr %341, align 8, !tbaa !35
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds double, ptr %339, i64 %343
  %345 = load double, ptr %344, align 8, !tbaa !5
  %346 = load ptr, ptr %8, align 8, !tbaa !9
  %347 = load ptr, ptr %13, align 8, !tbaa !9
  %348 = getelementptr inbounds %struct.background, ptr %347, i32 0, i32 106
  %349 = load i32, ptr %348, align 8, !tbaa !18
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds double, ptr %346, i64 %350
  %352 = load double, ptr %351, align 8, !tbaa !5
  %353 = load ptr, ptr %13, align 8, !tbaa !9
  %354 = getelementptr inbounds %struct.background, ptr %353, i32 0, i32 19
  %355 = load double, ptr %354, align 8, !tbaa !33
  %356 = fmul double %352, %355
  %357 = load ptr, ptr %8, align 8, !tbaa !9
  %358 = load ptr, ptr %13, align 8, !tbaa !9
  %359 = getelementptr inbounds %struct.background, ptr %358, i32 0, i32 107
  %360 = load i32, ptr %359, align 4, !tbaa !32
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds double, ptr %357, i64 %361
  %363 = load double, ptr %362, align 8, !tbaa !5
  %364 = fmul double %356, %363
  %365 = call double @llvm.fmuladd.f64(double %338, double %345, double %364)
  %366 = load ptr, ptr %9, align 8, !tbaa !9
  %367 = load ptr, ptr %13, align 8, !tbaa !9
  %368 = getelementptr inbounds %struct.background, ptr %367, i32 0, i32 108
  %369 = load i32, ptr %368, align 8, !tbaa !35
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds double, ptr %366, i64 %370
  store double %365, ptr %371, align 8, !tbaa !5
  br label %372

372:                                              ; preds = %322, %316, %310
  %373 = load ptr, ptr %13, align 8, !tbaa !9
  %374 = getelementptr inbounds %struct.background, ptr %373, i32 0, i32 125
  %375 = load i16, ptr %374, align 8, !tbaa !36
  %376 = sext i16 %375 to i32
  %377 = icmp eq i32 %376, 1
  br i1 %377, label %378, label %418

378:                                              ; preds = %372
  %379 = load ptr, ptr %8, align 8, !tbaa !9
  %380 = load ptr, ptr %13, align 8, !tbaa !9
  %381 = getelementptr inbounds %struct.background, ptr %380, i32 0, i32 106
  %382 = load i32, ptr %381, align 8, !tbaa !18
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds double, ptr %379, i64 %383
  %385 = load double, ptr %384, align 8, !tbaa !5
  %386 = fmul double -3.000000e+00, %385
  %387 = load ptr, ptr %14, align 8, !tbaa !9
  %388 = load ptr, ptr %13, align 8, !tbaa !9
  %389 = getelementptr inbounds %struct.background, ptr %388, i32 0, i32 60
  %390 = load i32, ptr %389, align 4, !tbaa !19
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds double, ptr %387, i64 %391
  %393 = load double, ptr %392, align 8, !tbaa !5
  %394 = fmul double %386, %393
  %395 = load ptr, ptr %14, align 8, !tbaa !9
  %396 = load ptr, ptr %13, align 8, !tbaa !9
  %397 = getelementptr inbounds %struct.background, ptr %396, i32 0, i32 67
  %398 = load i32, ptr %397, align 8, !tbaa !37
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds double, ptr %395, i64 %399
  %401 = load double, ptr %400, align 8, !tbaa !5
  %402 = fadd double 1.000000e+00, %401
  %403 = fmul double %394, %402
  %404 = load ptr, ptr %8, align 8, !tbaa !9
  %405 = load ptr, ptr %13, align 8, !tbaa !9
  %406 = getelementptr inbounds %struct.background, ptr %405, i32 0, i32 109
  %407 = load i32, ptr %406, align 4, !tbaa !38
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds double, ptr %404, i64 %408
  %410 = load double, ptr %409, align 8, !tbaa !5
  %411 = fmul double %403, %410
  %412 = load ptr, ptr %9, align 8, !tbaa !9
  %413 = load ptr, ptr %13, align 8, !tbaa !9
  %414 = getelementptr inbounds %struct.background, ptr %413, i32 0, i32 109
  %415 = load i32, ptr %414, align 4, !tbaa !38
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds double, ptr %412, i64 %416
  store double %411, ptr %417, align 8, !tbaa !5
  br label %418

418:                                              ; preds = %378, %372
  %419 = load ptr, ptr %13, align 8, !tbaa !9
  %420 = getelementptr inbounds %struct.background, ptr %419, i32 0, i32 122
  %421 = load i16, ptr %420, align 2, !tbaa !39
  %422 = sext i16 %421 to i32
  %423 = icmp eq i32 %422, 1
  br i1 %423, label %424, label %486

424:                                              ; preds = %418
  %425 = load ptr, ptr %8, align 8, !tbaa !9
  %426 = load ptr, ptr %13, align 8, !tbaa !9
  %427 = getelementptr inbounds %struct.background, ptr %426, i32 0, i32 111
  %428 = load i32, ptr %427, align 4, !tbaa !40
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds double, ptr %425, i64 %429
  %431 = load double, ptr %430, align 8, !tbaa !5
  %432 = load ptr, ptr %9, align 8, !tbaa !9
  %433 = load ptr, ptr %13, align 8, !tbaa !9
  %434 = getelementptr inbounds %struct.background, ptr %433, i32 0, i32 110
  %435 = load i32, ptr %434, align 8, !tbaa !41
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds double, ptr %432, i64 %436
  store double %431, ptr %437, align 8, !tbaa !5
  %438 = load ptr, ptr %8, align 8, !tbaa !9
  %439 = load ptr, ptr %13, align 8, !tbaa !9
  %440 = getelementptr inbounds %struct.background, ptr %439, i32 0, i32 106
  %441 = load i32, ptr %440, align 8, !tbaa !18
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds double, ptr %438, i64 %442
  %444 = load double, ptr %443, align 8, !tbaa !5
  %445 = fneg double %444
  %446 = load ptr, ptr %14, align 8, !tbaa !9
  %447 = load ptr, ptr %13, align 8, !tbaa !9
  %448 = getelementptr inbounds %struct.background, ptr %447, i32 0, i32 60
  %449 = load i32, ptr %448, align 4, !tbaa !19
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds double, ptr %446, i64 %450
  %452 = load double, ptr %451, align 8, !tbaa !5
  %453 = fmul double 2.000000e+00, %452
  %454 = load ptr, ptr %8, align 8, !tbaa !9
  %455 = load ptr, ptr %13, align 8, !tbaa !9
  %456 = getelementptr inbounds %struct.background, ptr %455, i32 0, i32 111
  %457 = load i32, ptr %456, align 4, !tbaa !40
  %458 = sext i32 %457 to i64
  %459 = getelementptr inbounds double, ptr %454, i64 %458
  %460 = load double, ptr %459, align 8, !tbaa !5
  %461 = load ptr, ptr %8, align 8, !tbaa !9
  %462 = load ptr, ptr %13, align 8, !tbaa !9
  %463 = getelementptr inbounds %struct.background, ptr %462, i32 0, i32 106
  %464 = load i32, ptr %463, align 8, !tbaa !18
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds double, ptr %461, i64 %465
  %467 = load double, ptr %466, align 8, !tbaa !5
  %468 = load ptr, ptr %13, align 8, !tbaa !9
  %469 = load ptr, ptr %8, align 8, !tbaa !9
  %470 = load ptr, ptr %13, align 8, !tbaa !9
  %471 = getelementptr inbounds %struct.background, ptr %470, i32 0, i32 110
  %472 = load i32, ptr %471, align 8, !tbaa !41
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds double, ptr %469, i64 %473
  %475 = load double, ptr %474, align 8, !tbaa !5
  %476 = call double @dV_scf(ptr noundef %468, double noundef %475)
  %477 = fmul double %467, %476
  %478 = call double @llvm.fmuladd.f64(double %453, double %460, double %477)
  %479 = fmul double %445, %478
  %480 = load ptr, ptr %9, align 8, !tbaa !9
  %481 = load ptr, ptr %13, align 8, !tbaa !9
  %482 = getelementptr inbounds %struct.background, ptr %481, i32 0, i32 111
  %483 = load i32, ptr %482, align 4, !tbaa !40
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds double, ptr %480, i64 %484
  store double %479, ptr %485, align 8, !tbaa !5
  br label %486

486:                                              ; preds = %424, %418
  store i32 0, ptr %6, align 4
  store i32 1, ptr %19, align 4
  br label %487

487:                                              ; preds = %486, %109, %37
  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
  %488 = load i32, ptr %6, align 4
  ret i32 %488
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"background_parameters_and_workspace", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !17, i64 842}
!15 = !{!"background", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !16, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !17, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !17, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !16, i64 208, !16, i64 212, !6, i64 216, !16, i64 224, !10, i64 232, !10, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !16, i64 360, !10, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !16, i64 464, !16, i64 468, !16, i64 472, !16, i64 476, !16, i64 480, !16, i64 484, !16, i64 488, !16, i64 492, !16, i64 496, !16, i64 500, !16, i64 504, !16, i64 508, !16, i64 512, !16, i64 516, !16, i64 520, !16, i64 524, !16, i64 528, !16, i64 532, !16, i64 536, !16, i64 540, !16, i64 544, !16, i64 548, !16, i64 552, !16, i64 556, !16, i64 560, !16, i64 564, !16, i64 568, !16, i64 572, !16, i64 576, !16, i64 580, !16, i64 584, !16, i64 588, !16, i64 592, !16, i64 596, !16, i64 600, !16, i64 604, !16, i64 608, !16, i64 612, !16, i64 616, !16, i64 620, !16, i64 624, !16, i64 628, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !16, i64 672, !16, i64 676, !16, i64 680, !16, i64 684, !16, i64 688, !16, i64 692, !16, i64 696, !16, i64 700, !16, i64 704, !16, i64 708, !16, i64 712, !16, i64 716, !16, i64 720, !17, i64 724, !17, i64 726, !17, i64 728, !17, i64 730, !17, i64 732, !17, i64 734, !17, i64 736, !17, i64 738, !17, i64 740, !17, i64 742, !17, i64 744, !10, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !10, i64 792, !10, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !10, i64 832, !17, i64 840, !17, i64 842, !17, i64 844, !17, i64 846, !17, i64 848, !17, i64 850, !7, i64 852, !17, i64 2900, !7, i64 2902}
!16 = !{!"int", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!15, !16, i64 672}
!19 = !{!15, !16, i64 468}
!20 = !{!15, !16, i64 696}
!21 = !{!15, !16, i64 476}
!22 = !{!15, !16, i64 480}
!23 = !{!15, !6, i64 352}
!24 = !{!15, !16, i64 700}
!25 = !{!15, !17, i64 724}
!26 = !{!15, !16, i64 484}
!27 = !{!15, !17, i64 742}
!28 = !{!15, !16, i64 504}
!29 = !{!15, !16, i64 712}
!30 = !{!15, !16, i64 708}
!31 = !{!15, !17, i64 726}
!32 = !{!15, !16, i64 676}
!33 = !{!15, !6, i64 152}
!34 = !{!15, !17, i64 728}
!35 = !{!15, !16, i64 680}
!36 = !{!15, !17, i64 736}
!37 = !{!15, !16, i64 496}
!38 = !{!15, !16, i64 684}
!39 = !{!15, !17, i64 730}
!40 = !{!15, !16, i64 692}
!41 = !{!15, !16, i64 688}


; 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.178 = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.background_derivs = external hidden unnamed_addr constant [18 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @background_functions(ptr noundef, ptr noundef, i16 noundef signext, ptr 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: nounwind uwtable
declare dso_local double @dV_scf(ptr noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @background_derivs(double noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readonly %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %9, i64 842
  %13 = load i16, ptr %12, align 2, !tbaa !11
  %14 = tail call i32 @background_functions(ptr noundef %9, ptr noundef %1, i16 noundef signext %13, ptr noundef %11)
  %15 = icmp eq i32 %14, 1
  br i1 %15, label %16, label %18

16:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  %17 = getelementptr inbounds i8, ptr %9, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.178, ptr noundef nonnull %17) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %4, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_derivs, i32 noundef 2399, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  br label %222

18:                                               ; preds = %5
  %19 = getelementptr inbounds i8, ptr %9, i64 672
  %20 = load i32, ptr %19, align 8, !tbaa !16
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds double, ptr %1, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %9, i64 468
  %25 = load i32, ptr %24, align 4, !tbaa !18
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds double, ptr %11, i64 %26
  %28 = load double, ptr %27, align 8, !tbaa !17
  %29 = fmul double %23, %23
  %30 = fmul double %29, %28
  %31 = getelementptr inbounds double, ptr %2, i64 %21
  store double %30, ptr %31, align 8, !tbaa !17
  %32 = load double, ptr %22, align 8, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %9, i64 696
  %34 = load i32, ptr %33, align 8, !tbaa !19
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds double, ptr %2, i64 %35
  store double %32, ptr %36, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %9, i64 476
  %38 = load i32, ptr %37, align 4, !tbaa !20
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %11, i64 %39
  %41 = load double, ptr %40, align 8, !tbaa !17
  %42 = fcmp ugt double %41, 0.000000e+00
  br i1 %42, label %44, label %43

43:                                               ; preds = %18
  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.179, double noundef %41) #5
  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.1, ptr noundef nonnull @.str.180, ptr noundef nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %4, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.background_derivs, i32 noundef 2413, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %222

44:                                               ; preds = %18
  %45 = getelementptr inbounds i8, ptr %9, i64 480
  %46 = load i32, ptr %45, align 8, !tbaa !21
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds double, ptr %11, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !17
  %50 = fmul double %49, 3.000000e+00
  %51 = fmul double %50, 2.500000e-01
  %52 = fdiv double %51, %41
  %53 = fadd double %52, 1.000000e+00
  %54 = fmul double %53, 3.000000e+00
  %55 = tail call double @sqrt(double noundef %54) #5
  %56 = fdiv double 1.000000e+00, %55
  %57 = getelementptr inbounds i8, ptr %9, i64 352
  %58 = load double, ptr %57, align 8, !tbaa !22
  %59 = getelementptr inbounds i8, ptr %9, i64 700
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %1, i64 %61
  %63 = load double, ptr %62, align 8, !tbaa !17
  %64 = fneg double %58
  %65 = fmul double %63, %64
  %66 = tail call double @llvm.fmuladd.f64(double %65, double %63, double 1.000000e+00)
  %67 = tail call double @sqrt(double noundef %66) #5
  %68 = fmul double %56, %67
  %69 = load i32, ptr %59, align 4, !tbaa !23
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %2, i64 %70
  store double %68, ptr %71, align 8, !tbaa !17
  %72 = load i32, ptr %45, align 8, !tbaa !21
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds double, ptr %11, i64 %73
  %75 = load double, ptr %74, align 8, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %9, i64 724
  %77 = load i16, ptr %76, align 4, !tbaa !24
  %.not = icmp eq i16 %77, 0
  br i1 %.not, label %85, label %78

78:                                               ; preds = %44
  %79 = getelementptr inbounds i8, ptr %9, i64 484
  %80 = load i32, ptr %79, align 4, !tbaa !25
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %11, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !17
  %84 = fadd double %75, %83
  br label %85

85:                                               ; preds = %78, %44
  %.0 = phi double [ %84, %78 ], [ %75, %44 ]
  %86 = getelementptr inbounds i8, ptr %9, i64 742
  %87 = load i16, ptr %86, align 2, !tbaa !26
  %.not126 = icmp eq i16 %87, 0
  br i1 %.not126, label %95, label %88

88:                                               ; preds = %85
  %89 = getelementptr inbounds i8, ptr %9, i64 504
  %90 = load i32, ptr %89, align 8, !tbaa !27
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %11, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !17
  %94 = fadd double %.0, %93
  br label %95

95:                                               ; preds = %88, %85
  %.1 = phi double [ %94, %88 ], [ %.0, %85 ]
  %96 = getelementptr inbounds i8, ptr %9, i64 712
  %97 = load i32, ptr %96, align 8, !tbaa !28
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %1, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !17
  %101 = getelementptr inbounds i8, ptr %9, i64 708
  %102 = load i32, ptr %101, align 4, !tbaa !29
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %2, i64 %103
  store double %100, ptr %104, align 8, !tbaa !17
  %105 = fneg double %23
  %106 = fmul double %28, %105
  %107 = fmul double %23, 1.500000e+00
  %108 = fmul double %23, %107
  %109 = fmul double %108, %.1
  %110 = getelementptr inbounds double, ptr %1, i64 %103
  %111 = load double, ptr %110, align 8, !tbaa !17
  %112 = fmul double %109, %111
  %113 = tail call double @llvm.fmuladd.f64(double %106, double %100, double %112)
  %114 = getelementptr inbounds double, ptr %2, i64 %98
  store double %113, ptr %114, align 8, !tbaa !17
  %115 = getelementptr inbounds i8, ptr %9, i64 726
  %116 = load i16, ptr %115, align 2, !tbaa !30
  %117 = icmp eq i16 %116, 1
  br i1 %117, label %118, label %160

118:                                              ; preds = %95
  %119 = load i32, ptr %19, align 8, !tbaa !16
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %1, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !17
  %123 = fmul double %122, -3.000000e+00
  %124 = load i32, ptr %24, align 4, !tbaa !18
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %11, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !17
  %128 = fmul double %123, %127
  %129 = getelementptr inbounds i8, ptr %9, i64 676
  %130 = load i32, ptr %129, align 4, !tbaa !31
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %1, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !17
  %134 = getelementptr inbounds i8, ptr %9, i64 152
  %135 = load double, ptr %134, align 8, !tbaa !32
  %136 = fneg double %122
  %137 = fmul double %135, %136
  %138 = fmul double %133, %137
  %139 = tail call double @llvm.fmuladd.f64(double %128, double %133, double %138)
  %140 = getelementptr inbounds double, ptr %2, i64 %131
  store double %139, ptr %140, align 8, !tbaa !17
  %141 = getelementptr inbounds i8, ptr %9, i64 728
  %142 = load i16, ptr %141, align 8, !tbaa !33
  %143 = icmp eq i16 %142, 1
  br i1 %143, label %144, label %160

144:                                              ; preds = %118
  %145 = load double, ptr %121, align 8, !tbaa !17
  %146 = fmul double %145, -4.000000e+00
  %147 = load double, ptr %126, align 8, !tbaa !17
  %148 = fmul double %146, %147
  %149 = getelementptr inbounds i8, ptr %9, i64 680
  %150 = load i32, ptr %149, align 8, !tbaa !34
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %1, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !17
  %154 = load double, ptr %134, align 8, !tbaa !32
  %155 = fmul double %145, %154
  %156 = load double, ptr %132, align 8, !tbaa !17
  %157 = fmul double %155, %156
  %158 = tail call double @llvm.fmuladd.f64(double %148, double %153, double %157)
  %159 = getelementptr inbounds double, ptr %2, i64 %151
  store double %158, ptr %159, align 8, !tbaa !17
  br label %160

160:                                              ; preds = %95, %144, %118
  %161 = getelementptr inbounds i8, ptr %9, i64 736
  %162 = load i16, ptr %161, align 8, !tbaa !35
  %163 = icmp eq i16 %162, 1
  br i1 %163, label %164, label %189

164:                                              ; preds = %160
  %165 = load i32, ptr %19, align 8, !tbaa !16
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %1, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !17
  %169 = fmul double %168, -3.000000e+00
  %170 = load i32, ptr %24, align 4, !tbaa !18
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds double, ptr %11, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !17
  %174 = fmul double %169, %173
  %175 = getelementptr inbounds i8, ptr %9, i64 496
  %176 = load i32, ptr %175, align 8, !tbaa !36
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds double, ptr %11, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !17
  %180 = fadd double %179, 1.000000e+00
  %181 = fmul double %174, %180
  %182 = getelementptr inbounds i8, ptr %9, i64 684
  %183 = load i32, ptr %182, align 4, !tbaa !37
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds double, ptr %1, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !17
  %187 = fmul double %181, %186
  %188 = getelementptr inbounds double, ptr %2, i64 %184
  store double %187, ptr %188, align 8, !tbaa !17
  br label %189

189:                                              ; preds = %164, %160
  %190 = getelementptr inbounds i8, ptr %9, i64 730
  %191 = load i16, ptr %190, align 2, !tbaa !38
  %192 = icmp eq i16 %191, 1
  br i1 %192, label %193, label %222

193:                                              ; preds = %189
  %194 = getelementptr inbounds i8, ptr %9, i64 692
  %195 = load i32, ptr %194, align 4, !tbaa !39
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds double, ptr %1, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !17
  %199 = getelementptr inbounds i8, ptr %9, i64 688
  %200 = load i32, ptr %199, align 8, !tbaa !40
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %2, i64 %201
  store double %198, ptr %202, align 8, !tbaa !17
  %203 = load i32, ptr %19, align 8, !tbaa !16
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %1, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !17
  %207 = fneg double %206
  %208 = load i32, ptr %24, align 4, !tbaa !18
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds double, ptr %11, i64 %209
  %211 = load double, ptr %210, align 8, !tbaa !17
  %212 = fmul double %211, 2.000000e+00
  %213 = getelementptr inbounds double, ptr %1, i64 %201
  %214 = load double, ptr %213, align 8, !tbaa !17
  %215 = tail call double @dV_scf(ptr noundef nonnull %9, double noundef %214)
  %216 = fmul double %206, %215
  %217 = tail call double @llvm.fmuladd.f64(double %212, double %198, double %216)
  %218 = fmul double %217, %207
  %219 = load i32, ptr %194, align 4, !tbaa !39
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %2, i64 %220
  store double %218, ptr %221, align 8, !tbaa !17
  br label %222

222:                                              ; preds = %189, %193, %43, %16
  %.0124 = phi i32 [ 1, %16 ], [ 1, %43 ], [ 0, %193 ], [ 0, %189 ]
  ret i32 %.0124
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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, !7, i64 0}
!6 = !{!"background_parameters_and_workspace", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !15, i64 842}
!12 = !{!"background", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !15, 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, !15, i64 176, !13, i64 184, !13, i64 192, !7, i64 200, !14, i64 208, !14, i64 212, !13, i64 216, !14, i64 224, !7, i64 232, !7, i64 240, !13, i64 248, !7, i64 256, !13, i64 264, !7, i64 272, !13, i64 280, !7, i64 288, !13, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !14, i64 360, !7, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !13, i64 408, !13, i64 416, !13, i64 424, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456, !14, i64 464, !14, i64 468, !14, i64 472, !14, i64 476, !14, i64 480, !14, i64 484, !14, i64 488, !14, i64 492, !14, i64 496, !14, i64 500, !14, i64 504, !14, i64 508, !14, i64 512, !14, i64 516, !14, i64 520, !14, i64 524, !14, i64 528, !14, i64 532, !14, i64 536, !14, i64 540, !14, i64 544, !14, i64 548, !14, i64 552, !14, i64 556, !14, i64 560, !14, i64 564, !14, i64 568, !14, i64 572, !14, i64 576, !14, i64 580, !14, i64 584, !14, i64 588, !14, i64 592, !14, i64 596, !14, i64 600, !14, i64 604, !14, i64 608, !14, i64 612, !14, i64 616, !14, i64 620, !14, i64 624, !14, i64 628, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !14, i64 672, !14, i64 676, !14, i64 680, !14, i64 684, !14, i64 688, !14, i64 692, !14, i64 696, !14, i64 700, !14, i64 704, !14, i64 708, !14, i64 712, !14, i64 716, !14, i64 720, !15, i64 724, !15, i64 726, !15, i64 728, !15, i64 730, !15, i64 732, !15, i64 734, !15, i64 736, !15, i64 738, !15, i64 740, !15, i64 742, !15, i64 744, !7, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !7, i64 792, !7, i64 800, !7, i64 808, !7, i64 816, !7, i64 824, !7, i64 832, !15, i64 840, !15, i64 842, !15, i64 844, !15, i64 846, !15, i64 848, !15, i64 850, !8, i64 852, !15, i64 2900, !8, i64 2902}
!13 = !{!"double", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!"short", !8, i64 0}
!16 = !{!12, !14, i64 672}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !14, i64 468}
!19 = !{!12, !14, i64 696}
!20 = !{!12, !14, i64 476}
!21 = !{!12, !14, i64 480}
!22 = !{!12, !13, i64 352}
!23 = !{!12, !14, i64 700}
!24 = !{!12, !15, i64 724}
!25 = !{!12, !14, i64 484}
!26 = !{!12, !15, i64 742}
!27 = !{!12, !14, i64 504}
!28 = !{!12, !14, i64 712}
!29 = !{!12, !14, i64 708}
!30 = !{!12, !15, i64 726}
!31 = !{!12, !14, i64 676}
!32 = !{!12, !13, i64 152}
!33 = !{!12, !15, i64 728}
!34 = !{!12, !14, i64 680}
!35 = !{!12, !15, i64 736}
!36 = !{!12, !14, i64 496}
!37 = !{!12, !14, i64 684}
!38 = !{!12, !15, i64 730}
!39 = !{!12, !14, i64 692}
!40 = !{!12, !14, i64 688}


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