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

; 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.nonlinear = type { i32, i32, i32, double, double, double, i16, i32, i32, i32, ptr, i16, i16, i32, i32, i32, i32, i32, i16, i32, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i16, [2048 x i8] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__.nonlinear_sigmas = external hidden unnamed_addr constant [17 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [141 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

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

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

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

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

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

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

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

78:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %79 = load i32, ptr %26, align 4, !tbaa !11
  %80 = load i32, ptr %21, align 4, !tbaa !11
  %81 = mul nsw i32 %79, %80
  %82 = sext i32 %81 to i64
  %83 = mul i64 %82, 8
  %84 = trunc i64 %83 to i32
  store i32 %84, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #6
  %85 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %86 = load i32, ptr %33, align 4, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %85, ptr noundef @.str.15, ptr noundef @.str.119, i32 noundef %86)
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.nonlinear, ptr %87, i32 0, i32 45
  %89 = getelementptr inbounds [2048 x i8], ptr %88, i64 0, i64 0
  %90 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %89, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas, i32 noundef 2339, ptr noundef %90)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #6
  store i32 1, ptr %9, align 4
  store i32 1, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %436

91:                                               ; preds = %8
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %92

92:                                               ; preds = %369, %91
  %93 = load i32, ptr %25, align 4, !tbaa !11
  %94 = load i32, ptr %26, align 4, !tbaa !11
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %96, label %372

96:                                               ; preds = %92
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nonlinear, ptr %97, i32 0, i32 20
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = getelementptr inbounds double, ptr %99, i64 0
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = load i32, ptr %25, align 4, !tbaa !11
  %103 = sitofp i32 %102 to double
  %104 = load double, ptr %15, align 8, !tbaa !9
  %105 = fdiv double %103, %104
  %106 = call double @pow(double noundef 1.000000e+01, double noundef %105) #6
  %107 = fmul double %101, %106
  store double %107, ptr %28, align 8, !tbaa !9
  %108 = load i32, ptr %25, align 4, !tbaa !11
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %96
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 0
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = call double @exp(double noundef %113) #6
  store double %114, ptr %18, align 8, !tbaa !9
  br label %141

115:                                              ; preds = %96
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.nonlinear, ptr %116, i32 0, i32 21
  %118 = load ptr, ptr %117, align 8, !tbaa !16
  %119 = load i32, ptr %14, align 4, !tbaa !11
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load double, ptr %28, align 8, !tbaa !9
  %123 = call double @log(double noundef %122) #6
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.nonlinear, ptr %124, i32 0, i32 45
  %126 = getelementptr inbounds [2048 x i8], ptr %125, i64 0, i64 0
  %127 = call i32 @array_interpolate_spline(ptr noundef %118, i32 noundef %119, ptr noundef %120, ptr noundef %121, i32 noundef 1, double noundef %123, ptr noundef %27, ptr noundef %19, i32 noundef 1, ptr noundef %126)
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %129, label %138

129:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #6
  %130 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nonlinear, ptr %131, i32 0, i32 45
  %133 = getelementptr inbounds [2048 x i8], ptr %132, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %130, ptr noundef @.str.4, ptr noundef @.str.120, ptr noundef %133)
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.nonlinear, ptr %134, i32 0, i32 45
  %136 = getelementptr inbounds [2048 x i8], ptr %135, i64 0, i64 0
  %137 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %136, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas, i32 noundef 2363, ptr noundef %137)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #6
  store i32 1, ptr %9, align 4
  store i32 1, ptr %35, align 4
  br label %436

138:                                              ; preds = %115
  %139 = load double, ptr %19, align 8, !tbaa !9
  %140 = call double @exp(double noundef %139) #6
  store double %140, ptr %18, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %138, %110
  %142 = load double, ptr %28, align 8, !tbaa !9
  %143 = fadd double 1.000000e+00, %142
  %144 = fdiv double 1.000000e+00, %143
  store double %144, ptr %32, align 8, !tbaa !9
  %145 = load i32, ptr %25, align 4, !tbaa !11
  %146 = load i32, ptr %26, align 4, !tbaa !11
  %147 = sub nsw i32 %146, 1
  %148 = icmp eq i32 %145, %147
  br i1 %148, label %149, label %152

149:                                              ; preds = %141
  %150 = load double, ptr %28, align 8, !tbaa !9
  %151 = fmul double %150, 0x3FEFFFFFCA501ACB
  store double %151, ptr %28, align 8, !tbaa !9
  br label %152

152:                                              ; preds = %149, %141
  %153 = load double, ptr %28, align 8, !tbaa !9
  %154 = load double, ptr %11, align 8, !tbaa !9
  %155 = fmul double %153, %154
  store double %155, ptr %31, align 8, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !11
  switch i32 %156, label %368 [
    i32 0, label %157
    i32 1, label %221
    i32 2, label %314
  ]

157:                                              ; preds = %152
  %158 = load double, ptr %31, align 8, !tbaa !9
  %159 = fcmp olt double %158, 1.000000e-02
  br i1 %159, label %160, label %166

160:                                              ; preds = %157
  %161 = load double, ptr %31, align 8, !tbaa !9
  %162 = load double, ptr %31, align 8, !tbaa !9
  %163 = fmul double %161, %162
  %164 = fdiv double %163, 1.000000e+01
  %165 = fsub double 1.000000e+00, %164
  store double %165, ptr %29, align 8, !tbaa !9
  br label %181

166:                                              ; preds = %157
  %167 = load double, ptr %31, align 8, !tbaa !9
  %168 = fdiv double 3.000000e+00, %167
  %169 = load double, ptr %31, align 8, !tbaa !9
  %170 = fdiv double %168, %169
  %171 = load double, ptr %31, align 8, !tbaa !9
  %172 = fdiv double %170, %171
  %173 = load double, ptr %31, align 8, !tbaa !9
  %174 = call double @sin(double noundef %173) #6
  %175 = load double, ptr %31, align 8, !tbaa !9
  %176 = load double, ptr %31, align 8, !tbaa !9
  %177 = call double @cos(double noundef %176) #6
  %178 = fneg double %175
  %179 = call double @llvm.fmuladd.f64(double %178, double %177, double %174)
  %180 = fmul double %172, %179
  store double %180, ptr %29, align 8, !tbaa !9
  br label %181

181:                                              ; preds = %166, %160
  %182 = load double, ptr %32, align 8, !tbaa !9
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  %184 = load i32, ptr %26, align 4, !tbaa !11
  %185 = sub nsw i32 %184, 1
  %186 = load i32, ptr %25, align 4, !tbaa !11
  %187 = sub nsw i32 %185, %186
  %188 = load i32, ptr %21, align 4, !tbaa !11
  %189 = mul nsw i32 %187, %188
  %190 = load i32, ptr %22, align 4, !tbaa !11
  %191 = add nsw i32 %189, %190
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %183, i64 %192
  store double %182, ptr %193, align 8, !tbaa !9
  %194 = load double, ptr %28, align 8, !tbaa !9
  %195 = load double, ptr %28, align 8, !tbaa !9
  %196 = fmul double %194, %195
  %197 = load double, ptr %28, align 8, !tbaa !9
  %198 = fmul double %196, %197
  %199 = load double, ptr %18, align 8, !tbaa !9
  %200 = fmul double %198, %199
  %201 = load double, ptr %29, align 8, !tbaa !9
  %202 = fmul double %200, %201
  %203 = load double, ptr %29, align 8, !tbaa !9
  %204 = fmul double %202, %203
  %205 = load double, ptr %32, align 8, !tbaa !9
  %206 = load double, ptr %32, align 8, !tbaa !9
  %207 = fsub double 1.000000e+00, %206
  %208 = fmul double %205, %207
  %209 = fdiv double %204, %208
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = load i32, ptr %26, align 4, !tbaa !11
  %212 = sub nsw i32 %211, 1
  %213 = load i32, ptr %25, align 4, !tbaa !11
  %214 = sub nsw i32 %212, %213
  %215 = load i32, ptr %21, align 4, !tbaa !11
  %216 = mul nsw i32 %214, %215
  %217 = load i32, ptr %23, align 4, !tbaa !11
  %218 = add nsw i32 %216, %217
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %210, i64 %219
  store double %209, ptr %220, align 8, !tbaa !9
  br label %368

221:                                              ; preds = %152
  %222 = load double, ptr %31, align 8, !tbaa !9
  %223 = fcmp olt double %222, 1.000000e-02
  br i1 %223, label %224, label %232

224:                                              ; preds = %221
  %225 = load double, ptr %31, align 8, !tbaa !9
  %226 = load double, ptr %31, align 8, !tbaa !9
  %227 = fmul double %225, %226
  %228 = fdiv double %227, 1.000000e+01
  %229 = fsub double 1.000000e+00, %228
  store double %229, ptr %29, align 8, !tbaa !9
  %230 = load double, ptr %31, align 8, !tbaa !9
  %231 = fmul double -2.000000e-01, %230
  store double %231, ptr %30, align 8, !tbaa !9
  br label %271

232:                                              ; preds = %221
  %233 = load double, ptr %31, align 8, !tbaa !9
  %234 = fdiv double 3.000000e+00, %233
  %235 = load double, ptr %31, align 8, !tbaa !9
  %236 = fdiv double %234, %235
  %237 = load double, ptr %31, align 8, !tbaa !9
  %238 = fdiv double %236, %237
  %239 = load double, ptr %31, align 8, !tbaa !9
  %240 = call double @sin(double noundef %239) #6
  %241 = load double, ptr %31, align 8, !tbaa !9
  %242 = load double, ptr %31, align 8, !tbaa !9
  %243 = call double @cos(double noundef %242) #6
  %244 = fneg double %241
  %245 = call double @llvm.fmuladd.f64(double %244, double %243, double %240)
  %246 = fmul double %238, %245
  store double %246, ptr %29, align 8, !tbaa !9
  %247 = load double, ptr %31, align 8, !tbaa !9
  %248 = fdiv double 3.000000e+00, %247
  %249 = load double, ptr %31, align 8, !tbaa !9
  %250 = fdiv double %248, %249
  %251 = load double, ptr %31, align 8, !tbaa !9
  %252 = call double @sin(double noundef %251) #6
  %253 = load double, ptr %31, align 8, !tbaa !9
  %254 = fdiv double 9.000000e+00, %253
  %255 = load double, ptr %31, align 8, !tbaa !9
  %256 = fdiv double %254, %255
  %257 = load double, ptr %31, align 8, !tbaa !9
  %258 = fdiv double %256, %257
  %259 = load double, ptr %31, align 8, !tbaa !9
  %260 = fdiv double %258, %259
  %261 = load double, ptr %31, align 8, !tbaa !9
  %262 = call double @sin(double noundef %261) #6
  %263 = load double, ptr %31, align 8, !tbaa !9
  %264 = load double, ptr %31, align 8, !tbaa !9
  %265 = call double @cos(double noundef %264) #6
  %266 = fneg double %263
  %267 = call double @llvm.fmuladd.f64(double %266, double %265, double %262)
  %268 = fmul double %260, %267
  %269 = fneg double %268
  %270 = call double @llvm.fmuladd.f64(double %250, double %252, double %269)
  store double %270, ptr %30, align 8, !tbaa !9
  br label %271

271:                                              ; preds = %232, %224
  %272 = load double, ptr %32, align 8, !tbaa !9
  %273 = load ptr, ptr %20, align 8, !tbaa !5
  %274 = load i32, ptr %26, align 4, !tbaa !11
  %275 = sub nsw i32 %274, 1
  %276 = load i32, ptr %25, align 4, !tbaa !11
  %277 = sub nsw i32 %275, %276
  %278 = load i32, ptr %21, align 4, !tbaa !11
  %279 = mul nsw i32 %277, %278
  %280 = load i32, ptr %22, align 4, !tbaa !11
  %281 = add nsw i32 %279, %280
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds double, ptr %273, i64 %282
  store double %272, ptr %283, align 8, !tbaa !9
  %284 = load double, ptr %28, align 8, !tbaa !9
  %285 = load double, ptr %28, align 8, !tbaa !9
  %286 = fmul double %284, %285
  %287 = load double, ptr %28, align 8, !tbaa !9
  %288 = fmul double %286, %287
  %289 = load double, ptr %18, align 8, !tbaa !9
  %290 = fmul double %288, %289
  %291 = fmul double %290, 2.000000e+00
  %292 = load double, ptr %28, align 8, !tbaa !9
  %293 = fmul double %291, %292
  %294 = load double, ptr %29, align 8, !tbaa !9
  %295 = fmul double %293, %294
  %296 = load double, ptr %30, align 8, !tbaa !9
  %297 = fmul double %295, %296
  %298 = load double, ptr %32, align 8, !tbaa !9
  %299 = load double, ptr %32, align 8, !tbaa !9
  %300 = fsub double 1.000000e+00, %299
  %301 = fmul double %298, %300
  %302 = fdiv double %297, %301
  %303 = load ptr, ptr %20, align 8, !tbaa !5
  %304 = load i32, ptr %26, align 4, !tbaa !11
  %305 = sub nsw i32 %304, 1
  %306 = load i32, ptr %25, align 4, !tbaa !11
  %307 = sub nsw i32 %305, %306
  %308 = load i32, ptr %21, align 4, !tbaa !11
  %309 = mul nsw i32 %307, %308
  %310 = load i32, ptr %23, align 4, !tbaa !11
  %311 = add nsw i32 %309, %310
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds double, ptr %303, i64 %312
  store double %302, ptr %313, align 8, !tbaa !9
  br label %368

314:                                              ; preds = %152
  %315 = load double, ptr %31, align 8, !tbaa !9
  %316 = fcmp olt double %315, 1.000000e-02
  br i1 %316, label %317, label %323

317:                                              ; preds = %314
  %318 = load double, ptr %31, align 8, !tbaa !9
  %319 = load double, ptr %31, align 8, !tbaa !9
  %320 = fmul double %318, %319
  %321 = fdiv double %320, 1.000000e+01
  %322 = fsub double 1.000000e+00, %321
  store double %322, ptr %29, align 8, !tbaa !9
  br label %338

323:                                              ; preds = %314
  %324 = load double, ptr %31, align 8, !tbaa !9
  %325 = fdiv double 3.000000e+00, %324
  %326 = load double, ptr %31, align 8, !tbaa !9
  %327 = fdiv double %325, %326
  %328 = load double, ptr %31, align 8, !tbaa !9
  %329 = fdiv double %327, %328
  %330 = load double, ptr %31, align 8, !tbaa !9
  %331 = call double @sin(double noundef %330) #6
  %332 = load double, ptr %31, align 8, !tbaa !9
  %333 = load double, ptr %31, align 8, !tbaa !9
  %334 = call double @cos(double noundef %333) #6
  %335 = fneg double %332
  %336 = call double @llvm.fmuladd.f64(double %335, double %334, double %331)
  %337 = fmul double %329, %336
  store double %337, ptr %29, align 8, !tbaa !9
  br label %338

338:                                              ; preds = %323, %317
  %339 = load double, ptr %28, align 8, !tbaa !9
  %340 = load ptr, ptr %20, align 8, !tbaa !5
  %341 = load i32, ptr %26, align 4, !tbaa !11
  %342 = sub nsw i32 %341, 1
  %343 = load i32, ptr %25, align 4, !tbaa !11
  %344 = sub nsw i32 %342, %343
  %345 = load i32, ptr %21, align 4, !tbaa !11
  %346 = mul nsw i32 %344, %345
  %347 = load i32, ptr %22, align 4, !tbaa !11
  %348 = add nsw i32 %346, %347
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds double, ptr %340, i64 %349
  store double %339, ptr %350, align 8, !tbaa !9
  %351 = load double, ptr %18, align 8, !tbaa !9
  %352 = fneg double %351
  %353 = load double, ptr %29, align 8, !tbaa !9
  %354 = fmul double %352, %353
  %355 = load double, ptr %29, align 8, !tbaa !9
  %356 = fmul double %354, %355
  %357 = load ptr, ptr %20, align 8, !tbaa !5
  %358 = load i32, ptr %26, align 4, !tbaa !11
  %359 = sub nsw i32 %358, 1
  %360 = load i32, ptr %25, align 4, !tbaa !11
  %361 = sub nsw i32 %359, %360
  %362 = load i32, ptr %21, align 4, !tbaa !11
  %363 = mul nsw i32 %361, %362
  %364 = load i32, ptr %23, align 4, !tbaa !11
  %365 = add nsw i32 %363, %364
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds double, ptr %357, i64 %366
  store double %356, ptr %367, align 8, !tbaa !9
  br label %368

368:                                              ; preds = %338, %271, %181, %152
  br label %369

369:                                              ; preds = %368
  %370 = load i32, ptr %25, align 4, !tbaa !11
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %25, align 4, !tbaa !11
  br label %92, !llvm.loop !17

372:                                              ; preds = %92
  %373 = load ptr, ptr %20, align 8, !tbaa !5
  %374 = load i32, ptr %21, align 4, !tbaa !11
  %375 = load i32, ptr %26, align 4, !tbaa !11
  %376 = load i32, ptr %22, align 4, !tbaa !11
  %377 = load i32, ptr %23, align 4, !tbaa !11
  %378 = load i32, ptr %24, align 4, !tbaa !11
  %379 = load ptr, ptr %10, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.nonlinear, ptr %379, i32 0, i32 45
  %381 = getelementptr inbounds [2048 x i8], ptr %380, i64 0, i64 0
  %382 = call i32 @array_spline(ptr noundef %373, i32 noundef %374, i32 noundef %375, i32 noundef %376, i32 noundef %377, i32 noundef %378, i16 noundef signext 1, ptr noundef %381)
  %383 = icmp eq i32 %382, 1
  br i1 %383, label %384, label %393

384:                                              ; preds = %372
  call void @llvm.lifetime.start.p0(i64 2048, ptr %37) #6
  %385 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %386 = load ptr, ptr %10, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.nonlinear, ptr %386, i32 0, i32 45
  %388 = getelementptr inbounds [2048 x i8], ptr %387, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %385, ptr noundef @.str.4, ptr noundef @.str.121, ptr noundef %388)
  %389 = load ptr, ptr %10, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.nonlinear, ptr %389, i32 0, i32 45
  %391 = getelementptr inbounds [2048 x i8], ptr %390, i64 0, i64 0
  %392 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %391, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas, i32 noundef 2418, ptr noundef %392)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %37) #6
  store i32 1, ptr %9, align 4
  store i32 1, ptr %35, align 4
  br label %436

393:                                              ; preds = %372
  %394 = load ptr, ptr %20, align 8, !tbaa !5
  %395 = load i32, ptr %21, align 4, !tbaa !11
  %396 = load i32, ptr %26, align 4, !tbaa !11
  %397 = load i32, ptr %22, align 4, !tbaa !11
  %398 = load i32, ptr %23, align 4, !tbaa !11
  %399 = load i32, ptr %24, align 4, !tbaa !11
  %400 = load ptr, ptr %17, align 8, !tbaa !5
  %401 = load ptr, ptr %10, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.nonlinear, ptr %401, i32 0, i32 45
  %403 = getelementptr inbounds [2048 x i8], ptr %402, i64 0, i64 0
  %404 = call i32 @array_integrate_all_trapzd_or_spline(ptr noundef %394, i32 noundef %395, i32 noundef %396, i32 noundef 0, i32 noundef %397, i32 noundef %398, i32 noundef %399, ptr noundef %400, ptr noundef %403)
  %405 = icmp eq i32 %404, 1
  br i1 %405, label %406, label %415

406:                                              ; preds = %393
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #6
  %407 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  %408 = load ptr, ptr %10, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.nonlinear, ptr %408, i32 0, i32 45
  %410 = getelementptr inbounds [2048 x i8], ptr %409, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %407, ptr noundef @.str.4, ptr noundef @.str.122, ptr noundef %410)
  %411 = load ptr, ptr %10, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.nonlinear, ptr %411, i32 0, i32 45
  %413 = getelementptr inbounds [2048 x i8], ptr %412, i64 0, i64 0
  %414 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %413, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas, i32 noundef 2432, ptr noundef %414)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #6
  store i32 1, ptr %9, align 4
  store i32 1, ptr %35, align 4
  br label %436

415:                                              ; preds = %393
  %416 = load i32, ptr %16, align 4, !tbaa !11
  switch i32 %416, label %434 [
    i32 0, label %417
    i32 1, label %423
    i32 2, label %428
  ]

417:                                              ; preds = %415
  %418 = load ptr, ptr %17, align 8, !tbaa !5
  %419 = load double, ptr %418, align 8, !tbaa !9
  %420 = fdiv double %419, 0x4033BD3CC9BE45DE
  %421 = call double @sqrt(double noundef %420) #6
  %422 = load ptr, ptr %17, align 8, !tbaa !5
  store double %421, ptr %422, align 8, !tbaa !9
  br label %434

423:                                              ; preds = %415
  %424 = load ptr, ptr %17, align 8, !tbaa !5
  %425 = load double, ptr %424, align 8, !tbaa !9
  %426 = fdiv double %425, 0x4033BD3CC9BE45DE
  %427 = load ptr, ptr %17, align 8, !tbaa !5
  store double %426, ptr %427, align 8, !tbaa !9
  br label %434

428:                                              ; preds = %415
  %429 = load ptr, ptr %17, align 8, !tbaa !5
  %430 = load double, ptr %429, align 8, !tbaa !9
  %431 = fdiv double %430, 0x404D9BDB2E9D68CD
  %432 = call double @sqrt(double noundef %431) #6
  %433 = load ptr, ptr %17, align 8, !tbaa !5
  store double %432, ptr %433, align 8, !tbaa !9
  br label %434

434:                                              ; preds = %428, %423, %417, %415
  %435 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free(ptr noundef %435) #6
  store i32 0, ptr %9, align 4
  store i32 1, ptr %35, align 4
  br label %436

436:                                              ; preds = %434, %406, %384, %129, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %437 = load i32, ptr %9, align 4
  ret i32 %437
}

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

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

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

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

declare i32 @array_integrate_all_trapzd_or_spline(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 96}
!14 = !{!"nonlinear", !12, i64 0, !12, i64 4, !12, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !15, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !6, i64 56, !15, i64 64, !15, i64 66, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !15, i64 88, !12, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !12, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !15, i64 264, !7, i64 266}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !6, i64 104}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__.nonlinear_sigmas = external hidden unnamed_addr constant [17 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [141 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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_sigmas(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, i32 noundef %6, ptr noundef %7) local_unnamed_addr #6 {
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = sext i32 %4 to i64
  %18 = getelementptr double, ptr %16, i64 %17
  %19 = getelementptr i8, ptr %18, i64 -8
  %20 = load double, ptr %19, align 8, !tbaa !14
  %21 = load double, ptr %16, align 8, !tbaa !14
  %22 = fdiv double %20, %21
  %23 = tail call double @log(double noundef %22) #7
  %24 = fdiv double %23, 0x40026BB1BBB55516
  %25 = fmul double %24, %5
  %26 = fptosi double %25 to i32
  %27 = add i32 %26, 1
  %28 = mul nsw i32 %27, 3
  %29 = sext i32 %28 to i64
  %30 = shl nsw i64 %29, 3
  %31 = tail call noalias ptr @malloc(i64 noundef %30) #8
  %32 = icmp eq ptr %31, null
  br i1 %32, label %135, label %.preheader

.preheader:                                       ; preds = %8
  %.not169 = icmp slt i32 %26, 0
  br i1 %.not169, label %._crit_edge, label %33

33:                                               ; preds = %.preheader
  %34 = getelementptr inbounds i8, ptr %0, i64 104
  %35 = getelementptr inbounds i8, ptr %0, i64 266
  %36 = zext nneg i32 %26 to i64
  %37 = zext nneg i32 %26 to i64
  %wide.trip.count = zext i32 %27 to i64
  %38 = load ptr, ptr %15, align 8, !tbaa !9
  %39 = load double, ptr %38, align 8, !tbaa !14
  %40 = fdiv double 0.000000e+00, %5
  %41 = tail call double @pow(double noundef 1.000000e+01, double noundef %40) #7
  %42 = fmul double %39, %41
  %43 = load double, ptr %2, align 8, !tbaa !14
  %44 = tail call double @exp(double noundef %43) #7
  %45 = fadd double %42, 1.000000e+00
  %46 = fdiv double 1.000000e+00, %45
  %47 = icmp eq i32 %26, 0
  %48 = fmul double %42, 0x3FEFFFFFCA501ACB
  %.0163.peel = select i1 %47, double %48, double %42
  %49 = fmul double %.0163.peel, %1
  switch i32 %6, label %134 [
    i32 0, label %108
    i32 1, label %70
    i32 2, label %50
  ]

50:                                               ; preds = %33
  %51 = fcmp olt double %49, 1.000000e-02
  br i1 %51, label %61, label %52

52:                                               ; preds = %50
  %53 = fdiv double 3.000000e+00, %49
  %54 = fdiv double %53, %49
  %55 = fdiv double %54, %49
  %56 = tail call double @sin(double noundef %49) #7
  %57 = tail call double @cos(double noundef %49) #7
  %58 = fneg double %49
  %59 = tail call double @llvm.fmuladd.f64(double %58, double %57, double %56)
  %60 = fmul double %55, %59
  br label %65

61:                                               ; preds = %50
  %62 = fmul double %49, %49
  %63 = fdiv double %62, 1.000000e+01
  %64 = fsub double 1.000000e+00, %63
  br label %65

65:                                               ; preds = %61, %52
  %.2.peel = phi double [ %64, %61 ], [ %60, %52 ]
  %.idx = mul nuw nsw i64 %37, 24
  %66 = getelementptr inbounds i8, ptr %31, i64 %.idx
  store double %.0163.peel, ptr %66, align 8, !tbaa !14
  %67 = fneg double %44
  %68 = fmul double %.2.peel, %67
  %69 = fmul double %.2.peel, %68
  br label %.sink.split

70:                                               ; preds = %33
  %71 = fcmp olt double %49, 1.000000e-02
  br i1 %71, label %91, label %72

72:                                               ; preds = %70
  %73 = fdiv double 3.000000e+00, %49
  %74 = fdiv double %73, %49
  %75 = fdiv double %74, %49
  %76 = tail call double @sin(double noundef %49) #7
  %77 = tail call double @cos(double noundef %49) #7
  %78 = fneg double %49
  %79 = tail call double @llvm.fmuladd.f64(double %78, double %77, double %76)
  %80 = fmul double %75, %79
  %81 = tail call double @sin(double noundef %49) #7
  %82 = tail call double @sin(double noundef %49) #7
  %83 = tail call double @cos(double noundef %49) #7
  %84 = tail call double @llvm.fmuladd.f64(double %78, double %83, double %82)
  %85 = fdiv double -9.000000e+00, %49
  %86 = fdiv double %85, %49
  %87 = fdiv double %86, %49
  %88 = fdiv double %87, %49
  %89 = fmul double %88, %84
  %90 = tail call double @llvm.fmuladd.f64(double %74, double %81, double %89)
  br label %96

91:                                               ; preds = %70
  %92 = fmul double %49, %49
  %93 = fdiv double %92, 1.000000e+01
  %94 = fsub double 1.000000e+00, %93
  %95 = fmul double %49, -2.000000e-01
  br label %96

96:                                               ; preds = %91, %72
  %.1.peel = phi double [ %94, %91 ], [ %80, %72 ]
  %.0161.peel = phi double [ %95, %91 ], [ %90, %72 ]
  %.idx174 = mul nuw nsw i64 %37, 24
  %97 = getelementptr inbounds i8, ptr %31, i64 %.idx174
  store double %46, ptr %97, align 8, !tbaa !14
  %98 = fmul double %.0163.peel, %.0163.peel
  %99 = fmul double %.0163.peel, %98
  %100 = fmul double %99, %44
  %101 = fmul double %100, 2.000000e+00
  %102 = fmul double %.0163.peel, %101
  %103 = fmul double %102, %.1.peel
  %104 = fmul double %103, %.0161.peel
  %105 = fsub double 1.000000e+00, %46
  %106 = fmul double %46, %105
  %107 = fdiv double %104, %106
  br label %.sink.split

108:                                              ; preds = %33
  %109 = fcmp olt double %49, 1.000000e-02
  br i1 %109, label %119, label %110

110:                                              ; preds = %108
  %111 = fdiv double 3.000000e+00, %49
  %112 = fdiv double %111, %49
  %113 = fdiv double %112, %49
  %114 = tail call double @sin(double noundef %49) #7
  %115 = tail call double @cos(double noundef %49) #7
  %116 = fneg double %49
  %117 = tail call double @llvm.fmuladd.f64(double %116, double %115, double %114)
  %118 = fmul double %113, %117
  br label %123

119:                                              ; preds = %108
  %120 = fmul double %49, %49
  %121 = fdiv double %120, 1.000000e+01
  %122 = fsub double 1.000000e+00, %121
  br label %123

123:                                              ; preds = %119, %110
  %.0162.peel = phi double [ %122, %119 ], [ %118, %110 ]
  %.idx175 = mul nuw nsw i64 %37, 24
  %124 = getelementptr inbounds i8, ptr %31, i64 %.idx175
  store double %46, ptr %124, align 8, !tbaa !14
  %125 = fmul double %.0163.peel, %.0163.peel
  %126 = fmul double %.0163.peel, %125
  %127 = fmul double %126, %44
  %128 = fmul double %127, %.0162.peel
  %129 = fmul double %.0162.peel, %128
  %130 = fsub double 1.000000e+00, %46
  %131 = fmul double %46, %130
  %132 = fdiv double %129, %131
  br label %.sink.split

.sink.split:                                      ; preds = %65, %96, %123
  %.sink180 = phi ptr [ %124, %123 ], [ %97, %96 ], [ %66, %65 ]
  %.sink = phi double [ %132, %123 ], [ %107, %96 ], [ %69, %65 ]
  %133 = getelementptr i8, ptr %.sink180, i64 8
  store double %.sink, ptr %133, align 8, !tbaa !14
  br label %134

134:                                              ; preds = %.sink.split, %33
  %exitcond.peel.not = icmp eq i32 %26, 0
  br i1 %exitcond.peel.not, label %._crit_edge, label %.peel.next

135:                                              ; preds = %8
  %136 = trunc i64 %30 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.119, i32 noundef %136) #7
  %137 = getelementptr inbounds i8, ptr %0, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %137, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas, i32 noundef 2339, ptr noundef nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #7
  br label %266

.peel.next:                                       ; preds = %134, %244
  %indvars.iv = phi i64 [ %indvars.iv.next, %244 ], [ 1, %134 ]
  %138 = load ptr, ptr %15, align 8, !tbaa !9
  %139 = load double, ptr %138, align 8, !tbaa !14
  %140 = trunc nuw nsw i64 %indvars.iv to i32
  %141 = uitofp nneg i32 %140 to double
  %142 = fdiv double %141, %5
  %143 = call double @pow(double noundef 1.000000e+01, double noundef %142) #7
  %144 = fmul double %139, %143
  %145 = load ptr, ptr %34, align 8, !tbaa !15
  %146 = call double @log(double noundef %144) #7
  %147 = call i32 @array_interpolate_spline(ptr noundef %145, i32 noundef %4, ptr noundef nonnull %2, ptr noundef %3, i32 noundef 1, double noundef %146, ptr noundef nonnull %10, ptr noundef nonnull %9, i32 noundef 1, ptr noundef nonnull %35) #7
  %148 = icmp eq i32 %147, 1
  br i1 %148, label %.loopexit, label %149

.loopexit:                                        ; preds = %.peel.next
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.120, ptr noundef nonnull %35) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %35, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas, i32 noundef 2363, ptr noundef nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #7
  br label %266

149:                                              ; preds = %.peel.next
  %150 = load double, ptr %9, align 8, !tbaa !14
  %151 = call double @exp(double noundef %150) #7
  %152 = fadd double %144, 1.000000e+00
  %153 = fdiv double 1.000000e+00, %152
  %154 = icmp eq i64 %indvars.iv, %36
  %155 = fmul double %144, 0x3FEFFFFFCA501ACB
  %.0163 = select i1 %154, double %155, double %144
  %156 = fmul double %.0163, %1
  switch i32 %6, label %244 [
    i32 0, label %157
    i32 1, label %183
    i32 2, label %222
  ]

157:                                              ; preds = %149
  %158 = fcmp olt double %156, 1.000000e-02
  br i1 %158, label %159, label %163

159:                                              ; preds = %157
  %160 = fmul double %156, %156
  %161 = fdiv double %160, 1.000000e+01
  %162 = fsub double 1.000000e+00, %161
  br label %172

163:                                              ; preds = %157
  %164 = fdiv double 3.000000e+00, %156
  %165 = fdiv double %164, %156
  %166 = fdiv double %165, %156
  %167 = call double @sin(double noundef %156) #7
  %168 = call double @cos(double noundef %156) #7
  %169 = fneg double %156
  %170 = call double @llvm.fmuladd.f64(double %169, double %168, double %167)
  %171 = fmul double %166, %170
  br label %172

172:                                              ; preds = %163, %159
  %.0162 = phi double [ %162, %159 ], [ %171, %163 ]
  %173 = sub nsw i64 %37, %indvars.iv
  %.idx178 = mul i64 %173, 24
  %174 = getelementptr inbounds i8, ptr %31, i64 %.idx178
  store double %153, ptr %174, align 8, !tbaa !14
  %175 = fmul double %.0163, %.0163
  %176 = fmul double %.0163, %175
  %177 = fmul double %176, %151
  %178 = fmul double %177, %.0162
  %179 = fmul double %.0162, %178
  %180 = fsub double 1.000000e+00, %153
  %181 = fmul double %153, %180
  %182 = fdiv double %179, %181
  br label %.sink.split181

183:                                              ; preds = %149
  %184 = fcmp olt double %156, 1.000000e-02
  br i1 %184, label %185, label %190

185:                                              ; preds = %183
  %186 = fmul double %156, %156
  %187 = fdiv double %186, 1.000000e+01
  %188 = fsub double 1.000000e+00, %187
  %189 = fmul double %156, -2.000000e-01
  br label %209

190:                                              ; preds = %183
  %191 = fdiv double 3.000000e+00, %156
  %192 = fdiv double %191, %156
  %193 = fdiv double %192, %156
  %194 = call double @sin(double noundef %156) #7
  %195 = call double @cos(double noundef %156) #7
  %196 = fneg double %156
  %197 = call double @llvm.fmuladd.f64(double %196, double %195, double %194)
  %198 = fmul double %193, %197
  %199 = call double @sin(double noundef %156) #7
  %200 = call double @sin(double noundef %156) #7
  %201 = call double @cos(double noundef %156) #7
  %202 = call double @llvm.fmuladd.f64(double %196, double %201, double %200)
  %203 = fdiv double -9.000000e+00, %156
  %204 = fdiv double %203, %156
  %205 = fdiv double %204, %156
  %206 = fdiv double %205, %156
  %207 = fmul double %206, %202
  %208 = call double @llvm.fmuladd.f64(double %192, double %199, double %207)
  br label %209

209:                                              ; preds = %190, %185
  %.1 = phi double [ %188, %185 ], [ %198, %190 ]
  %.0161 = phi double [ %189, %185 ], [ %208, %190 ]
  %210 = sub nsw i64 %37, %indvars.iv
  %.idx177 = mul i64 %210, 24
  %211 = getelementptr inbounds i8, ptr %31, i64 %.idx177
  store double %153, ptr %211, align 8, !tbaa !14
  %212 = fmul double %.0163, %.0163
  %213 = fmul double %.0163, %212
  %214 = fmul double %213, %151
  %215 = fmul double %214, 2.000000e+00
  %216 = fmul double %.0163, %215
  %217 = fmul double %216, %.1
  %218 = fmul double %217, %.0161
  %219 = fsub double 1.000000e+00, %153
  %220 = fmul double %153, %219
  %221 = fdiv double %218, %220
  br label %.sink.split181

222:                                              ; preds = %149
  %223 = fcmp olt double %156, 1.000000e-02
  br i1 %223, label %224, label %228

224:                                              ; preds = %222
  %225 = fmul double %156, %156
  %226 = fdiv double %225, 1.000000e+01
  %227 = fsub double 1.000000e+00, %226
  br label %237

228:                                              ; preds = %222
  %229 = fdiv double 3.000000e+00, %156
  %230 = fdiv double %229, %156
  %231 = fdiv double %230, %156
  %232 = call double @sin(double noundef %156) #7
  %233 = call double @cos(double noundef %156) #7
  %234 = fneg double %156
  %235 = call double @llvm.fmuladd.f64(double %234, double %233, double %232)
  %236 = fmul double %231, %235
  br label %237

237:                                              ; preds = %228, %224
  %.2 = phi double [ %227, %224 ], [ %236, %228 ]
  %238 = sub nsw i64 %37, %indvars.iv
  %.idx176 = mul i64 %238, 24
  %239 = getelementptr inbounds i8, ptr %31, i64 %.idx176
  store double %.0163, ptr %239, align 8, !tbaa !14
  %240 = fneg double %151
  %241 = fmul double %.2, %240
  %242 = fmul double %.2, %241
  br label %.sink.split181

.sink.split181:                                   ; preds = %237, %209, %172
  %.sink184 = phi ptr [ %174, %172 ], [ %211, %209 ], [ %239, %237 ]
  %.sink182 = phi double [ %182, %172 ], [ %221, %209 ], [ %242, %237 ]
  %243 = getelementptr i8, ptr %.sink184, i64 8
  store double %.sink182, ptr %243, align 8, !tbaa !14
  br label %244

244:                                              ; preds = %.sink.split181, %149
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.peel.next, !llvm.loop !16

._crit_edge:                                      ; preds = %244, %134, %.preheader
  %245 = getelementptr inbounds i8, ptr %0, i64 266
  %246 = call i32 @array_spline(ptr noundef nonnull %31, i32 noundef 3, i32 noundef %27, i32 noundef 0, i32 noundef 1, i32 noundef 2, i16 noundef signext 1, ptr noundef nonnull %245) #7
  %247 = icmp eq i32 %246, 1
  br i1 %247, label %248, label %249

248:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.121, ptr noundef nonnull %245) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %245, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas, i32 noundef 2418, ptr noundef nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #7
  br label %266

249:                                              ; preds = %._crit_edge
  %250 = call i32 @array_integrate_all_trapzd_or_spline(ptr noundef nonnull %31, i32 noundef 3, i32 noundef %27, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 2, ptr noundef %7, ptr noundef nonnull %245) #7
  %251 = icmp eq i32 %250, 1
  br i1 %251, label %252, label %253

252:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.122, ptr noundef nonnull %245) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %245, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas, i32 noundef 2432, ptr noundef nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #7
  br label %266

253:                                              ; preds = %249
  switch i32 %6, label %265 [
    i32 0, label %254
    i32 1, label %258
    i32 2, label %261
  ]

254:                                              ; preds = %253
  %255 = load double, ptr %7, align 8, !tbaa !14
  %256 = fdiv double %255, 0x4033BD3CC9BE45DE
  %257 = call double @sqrt(double noundef %256) #7
  br label %.sink.split185

258:                                              ; preds = %253
  %259 = load double, ptr %7, align 8, !tbaa !14
  %260 = fdiv double %259, 0x4033BD3CC9BE45DE
  br label %.sink.split185

261:                                              ; preds = %253
  %262 = load double, ptr %7, align 8, !tbaa !14
  %263 = fdiv double %262, 0x404D9BDB2E9D68CD
  %264 = call double @sqrt(double noundef %263) #7
  br label %.sink.split185

.sink.split185:                                   ; preds = %254, %258, %261
  %.sink186 = phi double [ %264, %261 ], [ %260, %258 ], [ %257, %254 ]
  store double %.sink186, ptr %7, align 8, !tbaa !14
  br label %265

265:                                              ; preds = %.sink.split185, %253
  call void @free(ptr noundef %31) #7
  br label %266

266:                                              ; preds = %265, %252, %248, %.loopexit, %135
  %.0 = phi i32 [ 1, %135 ], [ 1, %.loopexit ], [ 1, %248 ], [ 1, %252 ], [ 0, %265 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  ret i32 %.0
}

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

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

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

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

declare i32 @array_integrate_all_trapzd_or_spline(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 96}
!10 = !{!"nonlinear", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !12, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !13, i64 56, !12, i64 64, !12, i64 66, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !12, i64 88, !6, i64 92, !13, i64 96, !13, i64 104, !13, i64 112, !6, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !6, i64 184, !6, i64 188, !13, i64 192, !13, i64 200, !13, i64 208, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !12, i64 264, !7, i64 266}
!11 = !{!"double", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !13, i64 104}
!16 = distinct !{!16, !17, !18}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass