; 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] }
%struct.perturbs = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, double, i32, i32, [100 x double], [100 x double], i32, i32, i32, i32, i32, double, i32, i32, [30 x double], double, double, double, ptr, ptr, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, double, double, ptr, i32, double, double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, [8000 x i8], [8000 x i8], [8000 x i8], i32, i32, i32, [30 x ptr], [30 x ptr], [30 x ptr], [30 x i32], [30 x i32], [30 x i32], i16, [2048 x i8] }
%struct.primordial = type { double, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, double, double, double, double, double, double, double, double, double, i32, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i16, [2048 x i8] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.nonlinear_pk_linear = external hidden unnamed_addr constant [20 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [127 x i8], align 1

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

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

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

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

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

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

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

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

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

; 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_pk_linear(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8) #5 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %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 ptr, align 8
  %28 = alloca double, align 8
  %29 = alloca ptr, 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 i32, align 4
  %37 = alloca [2048 x i8], align 16
  %38 = alloca [2048 x i8], align 16
  %39 = alloca [2048 x i8], align 16
  %40 = alloca [2048 x i8], align 16
  %41 = alloca [2048 x i8], align 16
  %42 = alloca [2048 x i8], align 16
  %43 = alloca [2048 x i8], align 16
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  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
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.nonlinear, ptr %44, i32 0, i32 9
  %46 = load i32, ptr %45, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = mul i64 %47, 8
  %49 = call noalias ptr @malloc(i64 noundef %48) #7
  store ptr %49, ptr %27, align 8, !tbaa !5
  %50 = load ptr, ptr %27, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %65

52:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.nonlinear, ptr %53, i32 0, i32 9
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = mul i64 %56, 8
  %58 = trunc i64 %57 to i32
  store i32 %58, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #6
  %59 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %60 = load i32, ptr %33, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %59, ptr noundef @.str.15, ptr noundef @.str.113, i32 noundef %60)
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.nonlinear, ptr %61, i32 0, i32 45
  %63 = getelementptr inbounds [2048 x i8], ptr %62, i64 0, i64 0
  %64 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %63, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2159, ptr noundef %64)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %554

65:                                               ; preds = %9
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.nonlinear, ptr %66, i32 0, i32 9
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = mul i64 %69, 8
  %71 = call noalias ptr @malloc(i64 noundef %70) #7
  store ptr %71, ptr %29, align 8, !tbaa !5
  %72 = load ptr, ptr %29, align 8, !tbaa !5
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %87

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.nonlinear, ptr %75, i32 0, i32 9
  %77 = load i32, ptr %76, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = mul i64 %78, 8
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %37) #6
  %81 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %82 = load i32, ptr %36, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %81, ptr noundef @.str.15, ptr noundef @.str.114, i32 noundef %82)
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.nonlinear, ptr %83, i32 0, i32 45
  %85 = getelementptr inbounds [2048 x i8], ptr %84, i64 0, i64 0
  %86 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %85, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2161, ptr noundef %86)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %37) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %554

87:                                               ; preds = %65
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.nonlinear, ptr %88, i32 0, i32 11
  %90 = load i16, ptr %89, align 8, !tbaa !15
  %91 = sext i16 %90 to i32
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %93, label %103

93:                                               ; preds = %87
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.nonlinear, ptr %95, i32 0, i32 13
  %97 = load i32, ptr %96, align 4, !tbaa !16
  %98 = icmp eq i32 %94, %97
  br i1 %98, label %99, label %103

99:                                               ; preds = %93
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.perturbs, ptr %100, i32 0, i32 111
  %102 = load i32, ptr %101, align 8, !tbaa !17
  store i32 %102, ptr %21, align 4, !tbaa !9
  br label %128

103:                                              ; preds = %93, %87
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nonlinear, ptr %104, i32 0, i32 12
  %106 = load i16, ptr %105, align 2, !tbaa !19
  %107 = sext i16 %106 to i32
  %108 = icmp eq i32 %107, 1
  br i1 %108, label %109, label %119

109:                                              ; preds = %103
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.nonlinear, ptr %111, i32 0, i32 14
  %113 = load i32, ptr %112, align 8, !tbaa !20
  %114 = icmp eq i32 %110, %113
  br i1 %114, label %115, label %119

115:                                              ; preds = %109
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.perturbs, ptr %116, i32 0, i32 112
  %118 = load i32, ptr %117, align 4, !tbaa !21
  store i32 %118, ptr %21, align 4, !tbaa !9
  br label %127

119:                                              ; preds = %109, %103
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #6
  %120 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %120, ptr noundef @.str.115)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %39) #6
  %121 = getelementptr inbounds [2048 x i8], ptr %39, i64 0, i64 0
  %122 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %121, ptr noundef @.str.85, ptr noundef %122)
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.nonlinear, ptr %123, i32 0, i32 45
  %125 = getelementptr inbounds [2048 x i8], ptr %124, i64 0, i64 0
  %126 = getelementptr inbounds [2048 x i8], ptr %39, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %125, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2170, ptr noundef %126)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %39) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #6
  br label %554

127:                                              ; preds = %115
  br label %128

128:                                              ; preds = %127, %99
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %548, %128
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = load i32, ptr %17, align 4, !tbaa !9
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %133, label %551

133:                                              ; preds = %129
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.nonlinear, ptr %135, i32 0, i32 7
  %137 = load i32, ptr %136, align 4, !tbaa !22
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.nonlinear, ptr %138, i32 0, i32 21
  %140 = load ptr, ptr %139, align 8, !tbaa !23
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %140, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !24
  %145 = load ptr, ptr %27, align 8, !tbaa !5
  %146 = call i32 @primordial_spectrum_at_k(ptr noundef %134, i32 noundef %137, i32 noundef 1, double noundef %144, ptr noundef %145)
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %157

148:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 2048, ptr %40) #6
  %149 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.primordial, ptr %150, i32 0, i32 106
  %152 = getelementptr inbounds [2048 x i8], ptr %151, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %149, ptr noundef @.str.4, ptr noundef @.str.116, ptr noundef %152)
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.nonlinear, ptr %153, i32 0, i32 45
  %155 = getelementptr inbounds [2048 x i8], ptr %154, i64 0, i64 0
  %156 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %155, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2180, ptr noundef %156)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %40) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %554

157:                                              ; preds = %133
  store double 0.000000e+00, ptr %28, align 8, !tbaa !24
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %278, %157
  %159 = load i32, ptr %22, align 4, !tbaa !9
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.nonlinear, ptr %160, i32 0, i32 8
  %162 = load i32, ptr %161, align 8, !tbaa !25
  %163 = icmp slt i32 %159, %162
  br i1 %163, label %164, label %281

164:                                              ; preds = %158
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = icmp sle i32 %165, %166
  br i1 %167, label %168, label %182

168:                                              ; preds = %164
  %169 = load i32, ptr %22, align 4, !tbaa !9
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.nonlinear, ptr %170, i32 0, i32 8
  %172 = load i32, ptr %171, align 8, !tbaa !25
  %173 = load i32, ptr %22, align 4, !tbaa !9
  %174 = mul nsw i32 %172, %173
  %175 = add nsw i32 %169, %174
  %176 = load i32, ptr %22, align 4, !tbaa !9
  %177 = load i32, ptr %22, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  %179 = mul nsw i32 %176, %178
  %180 = sdiv i32 %179, 2
  %181 = sub nsw i32 %175, %180
  br label %196

182:                                              ; preds = %164
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = load ptr, ptr %14, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.nonlinear, ptr %184, i32 0, i32 8
  %186 = load i32, ptr %185, align 8, !tbaa !25
  %187 = load i32, ptr %22, align 4, !tbaa !9
  %188 = mul nsw i32 %186, %187
  %189 = add nsw i32 %183, %188
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = load i32, ptr %22, align 4, !tbaa !9
  %192 = add nsw i32 %191, 1
  %193 = mul nsw i32 %190, %192
  %194 = sdiv i32 %193, 2
  %195 = sub nsw i32 %189, %194
  br label %196

196:                                              ; preds = %182, %168
  %197 = phi i32 [ %181, %168 ], [ %195, %182 ]
  store i32 %197, ptr %24, align 4, !tbaa !9
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = load i32, ptr %22, align 4, !tbaa !9
  %203 = load i32, ptr %21, align 4, !tbaa !9
  %204 = load i32, ptr %16, align 4, !tbaa !9
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.perturbs, ptr %205, i32 0, i32 167
  %207 = load ptr, ptr %206, align 8, !tbaa !26
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.nonlinear, ptr %208, i32 0, i32 7
  %210 = load i32, ptr %209, align 4, !tbaa !22
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %207, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = call i32 @nonlinear_get_source(ptr noundef %198, ptr noundef %199, ptr noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203, i32 noundef %204, ptr noundef %213, ptr noundef %30)
  %215 = icmp eq i32 %214, 1
  br i1 %215, label %216, label %225

216:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 2048, ptr %41) #6
  %217 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.nonlinear, ptr %218, i32 0, i32 45
  %220 = getelementptr inbounds [2048 x i8], ptr %219, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %217, ptr noundef @.str.4, ptr noundef @.str.117, ptr noundef %220)
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.nonlinear, ptr %221, i32 0, i32 45
  %223 = getelementptr inbounds [2048 x i8], ptr %222, i64 0, i64 0
  %224 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %223, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2211, ptr noundef %224)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %41) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %554

225:                                              ; preds = %196
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.nonlinear, ptr %226, i32 0, i32 21
  %228 = load ptr, ptr %227, align 8, !tbaa !23
  %229 = load i32, ptr %20, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !24
  %233 = fmul double 3.000000e+00, %232
  %234 = call double @exp(double noundef %233) #6
  %235 = fdiv double 0x4033BD3CC9BE45DE, %234
  %236 = load double, ptr %30, align 8, !tbaa !24
  %237 = fmul double %235, %236
  %238 = load double, ptr %30, align 8, !tbaa !24
  %239 = fmul double %237, %238
  %240 = load ptr, ptr %27, align 8, !tbaa !5
  %241 = load i32, ptr %24, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !24
  %245 = call double @exp(double noundef %244) #6
  %246 = fmul double %239, %245
  %247 = load ptr, ptr %29, align 8, !tbaa !5
  %248 = load i32, ptr %24, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds double, ptr %247, i64 %249
  store double %246, ptr %250, align 8, !tbaa !24
  %251 = load ptr, ptr %29, align 8, !tbaa !5
  %252 = load i32, ptr %24, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %251, i64 %253
  %255 = load double, ptr %254, align 8, !tbaa !24
  %256 = load double, ptr %28, align 8, !tbaa !24
  %257 = fadd double %256, %255
  store double %257, ptr %28, align 8, !tbaa !24
  %258 = load ptr, ptr %19, align 8, !tbaa !5
  %259 = icmp ne ptr %258, null
  br i1 %259, label %260, label %277

260:                                              ; preds = %225
  %261 = load ptr, ptr %29, align 8, !tbaa !5
  %262 = load i32, ptr %24, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds double, ptr %261, i64 %263
  %265 = load double, ptr %264, align 8, !tbaa !24
  %266 = call double @log(double noundef %265) #6
  %267 = load ptr, ptr %19, align 8, !tbaa !5
  %268 = load i32, ptr %20, align 4, !tbaa !9
  %269 = load ptr, ptr %14, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.nonlinear, ptr %269, i32 0, i32 9
  %271 = load i32, ptr %270, align 4, !tbaa !11
  %272 = mul nsw i32 %268, %271
  %273 = load i32, ptr %24, align 4, !tbaa !9
  %274 = add nsw i32 %272, %273
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds double, ptr %267, i64 %275
  store double %266, ptr %276, align 8, !tbaa !24
  br label %277

277:                                              ; preds = %260, %225
  br label %278

278:                                              ; preds = %277
  %279 = load i32, ptr %22, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %22, align 4, !tbaa !9
  br label %158, !llvm.loop !27

281:                                              ; preds = %158
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %538, %281
  %283 = load i32, ptr %22, align 4, !tbaa !9
  %284 = load ptr, ptr %14, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.nonlinear, ptr %284, i32 0, i32 8
  %286 = load i32, ptr %285, align 8, !tbaa !25
  %287 = icmp slt i32 %283, %286
  br i1 %287, label %288, label %541

288:                                              ; preds = %282
  %289 = load i32, ptr %22, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %23, align 4, !tbaa !9
  br label %291

291:                                              ; preds = %534, %288
  %292 = load i32, ptr %23, align 4, !tbaa !9
  %293 = load ptr, ptr %14, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.nonlinear, ptr %293, i32 0, i32 8
  %295 = load i32, ptr %294, align 8, !tbaa !25
  %296 = icmp slt i32 %292, %295
  br i1 %296, label %297, label %537

297:                                              ; preds = %291
  %298 = load i32, ptr %22, align 4, !tbaa !9
  %299 = load i32, ptr %23, align 4, !tbaa !9
  %300 = icmp sle i32 %298, %299
  br i1 %300, label %301, label %315

301:                                              ; preds = %297
  %302 = load i32, ptr %23, align 4, !tbaa !9
  %303 = load ptr, ptr %14, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.nonlinear, ptr %303, i32 0, i32 8
  %305 = load i32, ptr %304, align 8, !tbaa !25
  %306 = load i32, ptr %22, align 4, !tbaa !9
  %307 = mul nsw i32 %305, %306
  %308 = add nsw i32 %302, %307
  %309 = load i32, ptr %22, align 4, !tbaa !9
  %310 = load i32, ptr %22, align 4, !tbaa !9
  %311 = add nsw i32 %310, 1
  %312 = mul nsw i32 %309, %311
  %313 = sdiv i32 %312, 2
  %314 = sub nsw i32 %308, %313
  br label %329

315:                                              ; preds = %297
  %316 = load i32, ptr %22, align 4, !tbaa !9
  %317 = load ptr, ptr %14, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.nonlinear, ptr %317, i32 0, i32 8
  %319 = load i32, ptr %318, align 8, !tbaa !25
  %320 = load i32, ptr %23, align 4, !tbaa !9
  %321 = mul nsw i32 %319, %320
  %322 = add nsw i32 %316, %321
  %323 = load i32, ptr %23, align 4, !tbaa !9
  %324 = load i32, ptr %23, align 4, !tbaa !9
  %325 = add nsw i32 %324, 1
  %326 = mul nsw i32 %323, %325
  %327 = sdiv i32 %326, 2
  %328 = sub nsw i32 %322, %327
  br label %329

329:                                              ; preds = %315, %301
  %330 = phi i32 [ %314, %301 ], [ %328, %315 ]
  store i32 %330, ptr %25, align 4, !tbaa !9
  %331 = load i32, ptr %22, align 4, !tbaa !9
  %332 = load i32, ptr %22, align 4, !tbaa !9
  %333 = icmp sle i32 %331, %332
  br i1 %333, label %334, label %348

334:                                              ; preds = %329
  %335 = load i32, ptr %22, align 4, !tbaa !9
  %336 = load ptr, ptr %14, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.nonlinear, ptr %336, i32 0, i32 8
  %338 = load i32, ptr %337, align 8, !tbaa !25
  %339 = load i32, ptr %22, align 4, !tbaa !9
  %340 = mul nsw i32 %338, %339
  %341 = add nsw i32 %335, %340
  %342 = load i32, ptr %22, align 4, !tbaa !9
  %343 = load i32, ptr %22, align 4, !tbaa !9
  %344 = add nsw i32 %343, 1
  %345 = mul nsw i32 %342, %344
  %346 = sdiv i32 %345, 2
  %347 = sub nsw i32 %341, %346
  br label %362

348:                                              ; preds = %329
  %349 = load i32, ptr %22, align 4, !tbaa !9
  %350 = load ptr, ptr %14, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.nonlinear, ptr %350, i32 0, i32 8
  %352 = load i32, ptr %351, align 8, !tbaa !25
  %353 = load i32, ptr %22, align 4, !tbaa !9
  %354 = mul nsw i32 %352, %353
  %355 = add nsw i32 %349, %354
  %356 = load i32, ptr %22, align 4, !tbaa !9
  %357 = load i32, ptr %22, align 4, !tbaa !9
  %358 = add nsw i32 %357, 1
  %359 = mul nsw i32 %356, %358
  %360 = sdiv i32 %359, 2
  %361 = sub nsw i32 %355, %360
  br label %362

362:                                              ; preds = %348, %334
  %363 = phi i32 [ %347, %334 ], [ %361, %348 ]
  store i32 %363, ptr %24, align 4, !tbaa !9
  %364 = load i32, ptr %23, align 4, !tbaa !9
  %365 = load i32, ptr %23, align 4, !tbaa !9
  %366 = icmp sle i32 %364, %365
  br i1 %366, label %367, label %381

367:                                              ; preds = %362
  %368 = load i32, ptr %23, align 4, !tbaa !9
  %369 = load ptr, ptr %14, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.nonlinear, ptr %369, i32 0, i32 8
  %371 = load i32, ptr %370, align 8, !tbaa !25
  %372 = load i32, ptr %23, align 4, !tbaa !9
  %373 = mul nsw i32 %371, %372
  %374 = add nsw i32 %368, %373
  %375 = load i32, ptr %23, align 4, !tbaa !9
  %376 = load i32, ptr %23, align 4, !tbaa !9
  %377 = add nsw i32 %376, 1
  %378 = mul nsw i32 %375, %377
  %379 = sdiv i32 %378, 2
  %380 = sub nsw i32 %374, %379
  br label %395

381:                                              ; preds = %362
  %382 = load i32, ptr %23, align 4, !tbaa !9
  %383 = load ptr, ptr %14, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.nonlinear, ptr %383, i32 0, i32 8
  %385 = load i32, ptr %384, align 8, !tbaa !25
  %386 = load i32, ptr %23, align 4, !tbaa !9
  %387 = mul nsw i32 %385, %386
  %388 = add nsw i32 %382, %387
  %389 = load i32, ptr %23, align 4, !tbaa !9
  %390 = load i32, ptr %23, align 4, !tbaa !9
  %391 = add nsw i32 %390, 1
  %392 = mul nsw i32 %389, %391
  %393 = sdiv i32 %392, 2
  %394 = sub nsw i32 %388, %393
  br label %395

395:                                              ; preds = %381, %367
  %396 = phi i32 [ %380, %367 ], [ %394, %381 ]
  store i32 %396, ptr %26, align 4, !tbaa !9
  %397 = load ptr, ptr %14, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.nonlinear, ptr %397, i32 0, i32 10
  %399 = load ptr, ptr %398, align 8, !tbaa !29
  %400 = load i32, ptr %25, align 4, !tbaa !9
  %401 = sext i32 %400 to i64
  %402 = getelementptr inbounds i16, ptr %399, i64 %401
  %403 = load i16, ptr %402, align 2, !tbaa !30
  %404 = sext i16 %403 to i32
  %405 = icmp eq i32 %404, 1
  br i1 %405, label %406, label %518

406:                                              ; preds = %395
  %407 = load ptr, ptr %11, align 8, !tbaa !5
  %408 = load ptr, ptr %12, align 8, !tbaa !5
  %409 = load ptr, ptr %14, align 8, !tbaa !5
  %410 = load i32, ptr %20, align 4, !tbaa !9
  %411 = load i32, ptr %22, align 4, !tbaa !9
  %412 = load i32, ptr %21, align 4, !tbaa !9
  %413 = load i32, ptr %16, align 4, !tbaa !9
  %414 = load ptr, ptr %12, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.perturbs, ptr %414, i32 0, i32 167
  %416 = load ptr, ptr %415, align 8, !tbaa !26
  %417 = load ptr, ptr %14, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.nonlinear, ptr %417, i32 0, i32 7
  %419 = load i32, ptr %418, align 4, !tbaa !22
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds ptr, ptr %416, i64 %420
  %422 = load ptr, ptr %421, align 8, !tbaa !5
  %423 = call i32 @nonlinear_get_source(ptr noundef %407, ptr noundef %408, ptr noundef %409, i32 noundef %410, i32 noundef %411, i32 noundef %412, i32 noundef %413, ptr noundef %422, ptr noundef %30)
  %424 = icmp eq i32 %423, 1
  br i1 %424, label %425, label %434

425:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 2048, ptr %42) #6
  %426 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  %427 = load ptr, ptr %14, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.nonlinear, ptr %427, i32 0, i32 45
  %429 = getelementptr inbounds [2048 x i8], ptr %428, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %426, ptr noundef @.str.4, ptr noundef @.str.117, ptr noundef %429)
  %430 = load ptr, ptr %14, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.nonlinear, ptr %430, i32 0, i32 45
  %432 = getelementptr inbounds [2048 x i8], ptr %431, i64 0, i64 0
  %433 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %432, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2244, ptr noundef %433)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %42) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %554

434:                                              ; preds = %406
  %435 = load ptr, ptr %11, align 8, !tbaa !5
  %436 = load ptr, ptr %12, align 8, !tbaa !5
  %437 = load ptr, ptr %14, align 8, !tbaa !5
  %438 = load i32, ptr %20, align 4, !tbaa !9
  %439 = load i32, ptr %23, align 4, !tbaa !9
  %440 = load i32, ptr %21, align 4, !tbaa !9
  %441 = load i32, ptr %16, align 4, !tbaa !9
  %442 = load ptr, ptr %12, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.perturbs, ptr %442, i32 0, i32 167
  %444 = load ptr, ptr %443, align 8, !tbaa !26
  %445 = load ptr, ptr %14, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.nonlinear, ptr %445, i32 0, i32 7
  %447 = load i32, ptr %446, align 4, !tbaa !22
  %448 = sext i32 %447 to i64
  %449 = getelementptr inbounds ptr, ptr %444, i64 %448
  %450 = load ptr, ptr %449, align 8, !tbaa !5
  %451 = call i32 @nonlinear_get_source(ptr noundef %435, ptr noundef %436, ptr noundef %437, i32 noundef %438, i32 noundef %439, i32 noundef %440, i32 noundef %441, ptr noundef %450, ptr noundef %31)
  %452 = icmp eq i32 %451, 1
  br i1 %452, label %453, label %462

453:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 2048, ptr %43) #6
  %454 = getelementptr inbounds [2048 x i8], ptr %43, i64 0, i64 0
  %455 = load ptr, ptr %14, align 8, !tbaa !5
  %456 = getelementptr inbounds %struct.nonlinear, ptr %455, i32 0, i32 45
  %457 = getelementptr inbounds [2048 x i8], ptr %456, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %454, ptr noundef @.str.4, ptr noundef @.str.118, ptr noundef %457)
  %458 = load ptr, ptr %14, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.nonlinear, ptr %458, i32 0, i32 45
  %460 = getelementptr inbounds [2048 x i8], ptr %459, i64 0, i64 0
  %461 = getelementptr inbounds [2048 x i8], ptr %43, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %460, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_pk_linear, i32 noundef 2256, ptr noundef %461)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %43) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %554

462:                                              ; preds = %434
  %463 = load ptr, ptr %27, align 8, !tbaa !5
  %464 = load i32, ptr %25, align 4, !tbaa !9
  %465 = sext i32 %464 to i64
  %466 = getelementptr inbounds double, ptr %463, i64 %465
  %467 = load double, ptr %466, align 8, !tbaa !24
  %468 = load double, ptr %30, align 8, !tbaa !24
  %469 = fcmp ogt double %468, 0.000000e+00
  %470 = zext i1 %469 to i64
  %471 = select i1 %469, double 1.000000e+00, double -1.000000e+00
  %472 = fmul double %467, %471
  %473 = load double, ptr %31, align 8, !tbaa !24
  %474 = fcmp ogt double %473, 0.000000e+00
  %475 = zext i1 %474 to i64
  %476 = select i1 %474, double 1.000000e+00, double -1.000000e+00
  %477 = fmul double %472, %476
  store double %477, ptr %32, align 8, !tbaa !24
  %478 = load double, ptr %32, align 8, !tbaa !24
  %479 = load ptr, ptr %29, align 8, !tbaa !5
  %480 = load i32, ptr %24, align 4, !tbaa !9
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds double, ptr %479, i64 %481
  %483 = load double, ptr %482, align 8, !tbaa !24
  %484 = load ptr, ptr %29, align 8, !tbaa !5
  %485 = load i32, ptr %26, align 4, !tbaa !9
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds double, ptr %484, i64 %486
  %488 = load double, ptr %487, align 8, !tbaa !24
  %489 = fmul double %483, %488
  %490 = call double @sqrt(double noundef %489) #6
  %491 = fmul double %478, %490
  %492 = load ptr, ptr %29, align 8, !tbaa !5
  %493 = load i32, ptr %25, align 4, !tbaa !9
  %494 = sext i32 %493 to i64
  %495 = getelementptr inbounds double, ptr %492, i64 %494
  store double %491, ptr %495, align 8, !tbaa !24
  %496 = load ptr, ptr %29, align 8, !tbaa !5
  %497 = load i32, ptr %25, align 4, !tbaa !9
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds double, ptr %496, i64 %498
  %500 = load double, ptr %499, align 8, !tbaa !24
  %501 = load double, ptr %28, align 8, !tbaa !24
  %502 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %500, double %501)
  store double %502, ptr %28, align 8, !tbaa !24
  %503 = load ptr, ptr %19, align 8, !tbaa !5
  %504 = icmp ne ptr %503, null
  br i1 %504, label %505, label %517

505:                                              ; preds = %462
  %506 = load double, ptr %32, align 8, !tbaa !24
  %507 = load ptr, ptr %19, align 8, !tbaa !5
  %508 = load i32, ptr %20, align 4, !tbaa !9
  %509 = load ptr, ptr %14, align 8, !tbaa !5
  %510 = getelementptr inbounds %struct.nonlinear, ptr %509, i32 0, i32 9
  %511 = load i32, ptr %510, align 4, !tbaa !11
  %512 = mul nsw i32 %508, %511
  %513 = load i32, ptr %25, align 4, !tbaa !9
  %514 = add nsw i32 %512, %513
  %515 = sext i32 %514 to i64
  %516 = getelementptr inbounds double, ptr %507, i64 %515
  store double %506, ptr %516, align 8, !tbaa !24
  br label %517

517:                                              ; preds = %505, %462
  br label %533

518:                                              ; preds = %395
  %519 = load ptr, ptr %19, align 8, !tbaa !5
  %520 = icmp ne ptr %519, null
  br i1 %520, label %521, label %532

521:                                              ; preds = %518
  %522 = load ptr, ptr %19, align 8, !tbaa !5
  %523 = load i32, ptr %20, align 4, !tbaa !9
  %524 = load ptr, ptr %14, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.nonlinear, ptr %524, i32 0, i32 9
  %526 = load i32, ptr %525, align 4, !tbaa !11
  %527 = mul nsw i32 %523, %526
  %528 = load i32, ptr %25, align 4, !tbaa !9
  %529 = add nsw i32 %527, %528
  %530 = sext i32 %529 to i64
  %531 = getelementptr inbounds double, ptr %522, i64 %530
  store double 0.000000e+00, ptr %531, align 8, !tbaa !24
  br label %532

532:                                              ; preds = %521, %518
  br label %533

533:                                              ; preds = %532, %517
  br label %534

534:                                              ; preds = %533
  %535 = load i32, ptr %23, align 4, !tbaa !9
  %536 = add nsw i32 %535, 1
  store i32 %536, ptr %23, align 4, !tbaa !9
  br label %291, !llvm.loop !31

537:                                              ; preds = %291
  br label %538

538:                                              ; preds = %537
  %539 = load i32, ptr %22, align 4, !tbaa !9
  %540 = add nsw i32 %539, 1
  store i32 %540, ptr %22, align 4, !tbaa !9
  br label %282, !llvm.loop !32

541:                                              ; preds = %282
  %542 = load double, ptr %28, align 8, !tbaa !24
  %543 = call double @log(double noundef %542) #6
  %544 = load ptr, ptr %18, align 8, !tbaa !5
  %545 = load i32, ptr %20, align 4, !tbaa !9
  %546 = sext i32 %545 to i64
  %547 = getelementptr inbounds double, ptr %544, i64 %546
  store double %543, ptr %547, align 8, !tbaa !24
  br label %548

548:                                              ; preds = %541
  %549 = load i32, ptr %20, align 4, !tbaa !9
  %550 = add nsw i32 %549, 1
  store i32 %550, ptr %20, align 4, !tbaa !9
  br label %129, !llvm.loop !33

551:                                              ; preds = %129
  %552 = load ptr, ptr %27, align 8, !tbaa !5
  call void @free(ptr noundef %552) #6
  %553 = load ptr, ptr %29, align 8, !tbaa !5
  call void @free(ptr noundef %553) #6
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %554

554:                                              ; preds = %551, %453, %425, %216, %148, %119, %74, %52
  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 8, 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 4, ptr %20) #6
  %555 = load i32, ptr %10, align 4
  ret i32 %555
}

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

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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 52}
!12 = !{!"nonlinear", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !14, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !6, i64 56, !14, i64 64, !14, i64 66, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !14, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !10, i64 184, !10, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !14, i64 264, !7, i64 266}
!13 = !{!"double", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !14, i64 64}
!16 = !{!12, !10, i64 68}
!17 = !{!18, !10, i64 2176}
!18 = !{!"perturbs", !14, i64 0, !14, i64 2, !14, i64 4, !14, i64 6, !14, i64 8, !14, i64 10, !14, i64 12, !14, i64 14, !14, i64 16, !14, i64 18, !14, i64 20, !10, i64 24, !14, i64 28, !14, i64 30, !14, i64 32, !14, i64 34, !14, i64 36, !14, i64 38, !14, i64 40, !14, i64 42, !14, i64 44, !14, i64 46, !14, i64 48, !14, i64 50, !14, i64 52, !14, i64 54, !14, i64 56, !14, i64 58, !14, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !13, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !13, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !13, i64 1976, !13, i64 1984, !13, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !14, i64 2020, !14, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !6, i64 2072, !14, i64 2080, !14, i64 2082, !14, i64 2084, !14, i64 2086, !14, i64 2088, !14, i64 2090, !14, i64 2092, !14, i64 2094, !14, i64 2096, !14, i64 2098, !14, i64 2100, !14, i64 2102, !14, i64 2104, !14, i64 2106, !14, i64 2108, !14, i64 2110, !14, i64 2112, !14, i64 2114, !14, i64 2116, !14, i64 2118, !14, i64 2120, !14, i64 2122, !14, i64 2124, !14, i64 2126, !14, i64 2128, !14, i64 2130, !14, i64 2132, !14, i64 2134, !14, i64 2136, !14, i64 2138, !14, i64 2140, !14, i64 2142, !14, i64 2144, !14, i64 2146, !14, i64 2148, !14, i64 2150, !14, i64 2152, !14, i64 2154, !14, i64 2156, !14, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !13, i64 2376, !13, i64 2384, !6, i64 2392, !10, i64 2400, !13, i64 2408, !13, i64 2416, !13, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !14, i64 27608, !7, i64 27610}
!19 = !{!12, !14, i64 66}
!20 = !{!12, !10, i64 72}
!21 = !{!18, !10, i64 2180}
!22 = !{!12, !10, i64 44}
!23 = !{!12, !6, i64 104}
!24 = !{!13, !13, i64 0}
!25 = !{!12, !10, i64 48}
!26 = !{!18, !6, i64 2464}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !6, i64 56}
!30 = !{!14, !14, i64 0}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}


; 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.85 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.nonlinear_pk_linear = external hidden unnamed_addr constant [20 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [127 x i8], align 1

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @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

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

; 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_pk_linear(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr nocapture noundef writeonly %7, ptr noundef writeonly %8) local_unnamed_addr #6 {
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %20 = getelementptr inbounds i8, ptr %3, i64 52
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = shl nsw i64 %22, 3
  %24 = tail call noalias ptr @malloc(i64 noundef %23) #8
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %9
  %27 = shl i32 %21, 3
  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.15, ptr noundef nonnull @.str.113, i32 noundef %27) #7
  %28 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2159, ptr noundef nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #7
  br label %205

29:                                               ; preds = %9
  %30 = tail call noalias ptr @malloc(i64 noundef %23) #8
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = shl i32 %21, 3
  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.15, ptr noundef nonnull @.str.114, i32 noundef %33) #7
  %34 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %34, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2161, ptr noundef nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #7
  br label %205

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %3, i64 64
  %37 = load i16, ptr %36, align 8, !tbaa !13
  %38 = icmp eq i16 %37, 1
  br i1 %38, label %39, label %43

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %3, i64 68
  %41 = load i32, ptr %40, align 4, !tbaa !14
  %42 = icmp eq i32 %41, %4
  br i1 %42, label %53, label %43

43:                                               ; preds = %39, %35
  %44 = getelementptr inbounds i8, ptr %3, i64 66
  %45 = load i16, ptr %44, align 2, !tbaa !15
  %46 = icmp eq i16 %45, 1
  br i1 %46, label %47, label %51

47:                                               ; preds = %43
  %48 = getelementptr inbounds i8, ptr %3, i64 72
  %49 = load i32, ptr %48, align 8, !tbaa !16
  %50 = icmp eq i32 %49, %4
  br i1 %50, label %53, label %51

51:                                               ; preds = %47, %43
  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.115) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.85, ptr noundef nonnull %14) #7
  %52 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %52, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2170, ptr noundef nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #7
  br label %205

53:                                               ; preds = %47, %39
  %.sink = phi i64 [ 2176, %39 ], [ 2180, %47 ]
  %54 = getelementptr inbounds i8, ptr %1, i64 %.sink
  %.0167 = load i32, ptr %54, align 4, !tbaa !17
  %55 = icmp sgt i32 %6, 0
  br i1 %55, label %.lr.ph202, label %._crit_edge203

.lr.ph202:                                        ; preds = %53
  %56 = getelementptr inbounds i8, ptr %3, i64 44
  %57 = getelementptr inbounds i8, ptr %3, i64 104
  %58 = getelementptr inbounds i8, ptr %3, i64 48
  %59 = getelementptr inbounds i8, ptr %1, i64 2464
  %.not181 = icmp eq ptr %8, null
  %60 = getelementptr inbounds i8, ptr %3, i64 56
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %61

61:                                               ; preds = %.lr.ph202, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph202 ], [ %indvars.iv.next, %._crit_edge ]
  %62 = load i32, ptr %56, align 4, !tbaa !18
  %63 = load ptr, ptr %57, align 8, !tbaa !19
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv
  %65 = load double, ptr %64, align 8, !tbaa !20
  %66 = call i32 @primordial_spectrum_at_k(ptr noundef %2, i32 noundef %62, i32 noundef 1, double noundef %65, ptr noundef nonnull %24) #7
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %71, label %.preheader183

.preheader183:                                    ; preds = %61
  %68 = load i32, ptr %58, align 8, !tbaa !21
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader183
  %70 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.lr.ph

71:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #7
  %72 = getelementptr inbounds i8, ptr %2, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.116, ptr noundef nonnull %72) #7
  %73 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %73, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2180, ptr noundef nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #7
  br label %205

.preheader:                                       ; preds = %117
  %74 = icmp sgt i32 %118, 0
  br i1 %74, label %.lr.ph198.preheader, label %._crit_edge

.lr.ph198.preheader:                              ; preds = %.preheader
  %75 = trunc nuw nsw i64 %indvars.iv to i32
  %76 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.lr.ph198

.lr.ph:                                           ; preds = %.lr.ph.preheader, %117
  %77 = phi i32 [ %118, %117 ], [ %68, %.lr.ph.preheader ]
  %.0168191 = phi i32 [ %80, %117 ], [ 0, %.lr.ph.preheader ]
  %.0169190 = phi double [ %109, %117 ], [ 0.000000e+00, %.lr.ph.preheader ]
  %78 = add i32 %77, 1
  %79 = mul i32 %78, %.0168191
  %80 = add nuw nsw i32 %.0168191, 1
  %81 = mul nuw nsw i32 %80, %.0168191
  %82 = lshr i32 %81, 1
  %83 = sub nsw i32 %79, %82
  %84 = load ptr, ptr %59, align 8, !tbaa !22
  %85 = load i32, ptr %56, align 4, !tbaa !18
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !24
  %89 = call i32 @nonlinear_get_source(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %70, i32 noundef %.0168191, i32 noundef %.0167, i32 noundef %5, ptr noundef %88, ptr noundef nonnull %10)
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %93

91:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #7
  %92 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.117, ptr noundef nonnull %92) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %92, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2211, ptr noundef nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #7
  br label %205

93:                                               ; preds = %.lr.ph
  %94 = load ptr, ptr %57, align 8, !tbaa !19
  %95 = getelementptr inbounds double, ptr %94, i64 %indvars.iv
  %96 = load double, ptr %95, align 8, !tbaa !20
  %97 = fmul double %96, 3.000000e+00
  %98 = call double @exp(double noundef %97) #7
  %99 = fdiv double 0x4033BD3CC9BE45DE, %98
  %100 = load double, ptr %10, align 8, !tbaa !20
  %101 = fmul double %99, %100
  %102 = fmul double %100, %101
  %103 = sext i32 %83 to i64
  %104 = getelementptr inbounds double, ptr %24, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !20
  %106 = call double @exp(double noundef %105) #7
  %107 = fmul double %102, %106
  %108 = getelementptr inbounds double, ptr %30, i64 %103
  store double %107, ptr %108, align 8, !tbaa !20
  %109 = fadd double %.0169190, %107
  br i1 %.not181, label %117, label %110

110:                                              ; preds = %93
  %111 = call double @log(double noundef %107) #7
  %112 = load i32, ptr %20, align 4, !tbaa !5
  %113 = mul nsw i32 %112, %70
  %114 = add nsw i32 %113, %83
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %8, i64 %115
  store double %111, ptr %116, align 8, !tbaa !20
  br label %117

117:                                              ; preds = %93, %110
  %118 = load i32, ptr %58, align 8, !tbaa !21
  %119 = icmp slt i32 %80, %118
  br i1 %119, label %.lr.ph, label %.preheader, !llvm.loop !25

.loopexit:                                        ; preds = %200, %.lr.ph198
  %120 = phi i32 [ %122, %.lr.ph198 ], [ %201, %200 ]
  %.2.lcssa = phi double [ %.1170196, %.lr.ph198 ], [ %.3, %200 ]
  %121 = icmp slt i32 %123, %120
  br i1 %121, label %.lr.ph198, label %._crit_edge, !llvm.loop !27

.lr.ph198:                                        ; preds = %.lr.ph198.preheader, %.loopexit
  %122 = phi i32 [ %120, %.loopexit ], [ %118, %.lr.ph198.preheader ]
  %.1197 = phi i32 [ %123, %.loopexit ], [ 0, %.lr.ph198.preheader ]
  %.1170196 = phi double [ %.2.lcssa, %.loopexit ], [ %109, %.lr.ph198.preheader ]
  %123 = add nuw nsw i32 %.1197, 1
  %124 = icmp slt i32 %123, %122
  br i1 %124, label %.lr.ph194, label %.loopexit

.lr.ph194:                                        ; preds = %.lr.ph198
  %125 = mul nuw nsw i32 %123, %.1197
  %126 = lshr i32 %125, 1
  br label %127

127:                                              ; preds = %.lr.ph194, %200
  %128 = phi i32 [ %122, %.lr.ph194 ], [ %201, %200 ]
  %.2193 = phi double [ %.1170196, %.lr.ph194 ], [ %.3, %200 ]
  %.0171192 = phi i32 [ %123, %.lr.ph194 ], [ %.pre-phi, %200 ]
  %.not = icmp ugt i32 %.1197, %.0171192
  br i1 %.not, label %133, label %129

129:                                              ; preds = %127
  %130 = mul nsw i32 %128, %.1197
  %131 = sub nsw i32 %.0171192, %126
  %132 = add i32 %131, %130
  %.pre = add nuw nsw i32 %.0171192, 1
  %.pre205 = mul nuw nsw i32 %.pre, %.0171192
  %.pre207 = lshr i32 %.pre205, 1
  br label %140

133:                                              ; preds = %127
  %134 = mul nsw i32 %128, %.0171192
  %135 = add nsw i32 %134, %.1197
  %136 = add nuw nsw i32 %.0171192, 1
  %137 = mul nuw nsw i32 %136, %.0171192
  %138 = lshr i32 %137, 1
  %139 = sub i32 %135, %138
  br label %140

140:                                              ; preds = %129, %133
  %.pre-phi208 = phi i32 [ %.pre207, %129 ], [ %138, %133 ]
  %.pre-phi = phi i32 [ %.pre, %129 ], [ %136, %133 ]
  %141 = phi i32 [ %132, %129 ], [ %139, %133 ]
  %142 = add i32 %128, 1
  %143 = mul i32 %142, %.1197
  %144 = sub nsw i32 %143, %126
  %145 = mul i32 %142, %.0171192
  %146 = sub nsw i32 %145, %.pre-phi208
  %147 = load ptr, ptr %60, align 8, !tbaa !28
  %148 = sext i32 %141 to i64
  %149 = getelementptr inbounds i16, ptr %147, i64 %148
  %150 = load i16, ptr %149, align 2, !tbaa !29
  %151 = icmp eq i16 %150, 1
  br i1 %151, label %152, label %194

152:                                              ; preds = %140
  %153 = load ptr, ptr %59, align 8, !tbaa !22
  %154 = load i32, ptr %56, align 4, !tbaa !18
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds ptr, ptr %153, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !24
  %158 = call i32 @nonlinear_get_source(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %3, i32 noundef %76, i32 noundef %.1197, i32 noundef %.0167, i32 noundef %5, ptr noundef %157, ptr noundef nonnull %10)
  %159 = icmp eq i32 %158, 1
  br i1 %159, label %160, label %162

160:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #7
  %161 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.117, ptr noundef nonnull %161) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %161, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2244, ptr noundef nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #7
  br label %205

162:                                              ; preds = %152
  %163 = load ptr, ptr %59, align 8, !tbaa !22
  %164 = load i32, ptr %56, align 4, !tbaa !18
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %163, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !24
  %168 = call i32 @nonlinear_get_source(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %3, i32 noundef %76, i32 noundef %.0171192, i32 noundef %.0167, i32 noundef %5, ptr noundef %167, ptr noundef nonnull %11)
  %169 = icmp eq i32 %168, 1
  br i1 %169, label %170, label %172

170:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %19) #7
  %171 = getelementptr inbounds i8, ptr %3, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.118, ptr noundef nonnull %171) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %171, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_pk_linear, i32 noundef 2256, ptr noundef nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #7
  br label %205

172:                                              ; preds = %162
  %173 = getelementptr inbounds double, ptr %24, i64 %148
  %174 = load double, ptr %173, align 8, !tbaa !20
  %175 = load double, ptr %10, align 8, !tbaa !20
  %176 = fcmp ogt double %175, 0.000000e+00
  %177 = fneg double %174
  %178 = select i1 %176, double %174, double %177
  %179 = load double, ptr %11, align 8, !tbaa !20
  %180 = fcmp ogt double %179, 0.000000e+00
  %181 = fneg double %178
  %182 = select i1 %180, double %178, double %181
  %183 = sext i32 %144 to i64
  %184 = getelementptr inbounds double, ptr %30, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !20
  %186 = sext i32 %146 to i64
  %187 = getelementptr inbounds double, ptr %30, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !20
  %189 = fmul double %185, %188
  %190 = call double @sqrt(double noundef %189) #7
  %191 = fmul double %182, %190
  %192 = getelementptr inbounds double, ptr %30, i64 %148
  store double %191, ptr %192, align 8, !tbaa !20
  %193 = call double @llvm.fmuladd.f64(double %191, double 2.000000e+00, double %.2193)
  br i1 %.not181, label %200, label %.sink.split

194:                                              ; preds = %140
  br i1 %.not181, label %200, label %.sink.split

.sink.split:                                      ; preds = %194, %172
  %.sink218 = phi i32 [ %76, %172 ], [ %75, %194 ]
  %.sink212 = phi double [ %182, %172 ], [ 0.000000e+00, %194 ]
  %.3.ph = phi double [ %193, %172 ], [ %.2193, %194 ]
  %195 = load i32, ptr %20, align 4, !tbaa !5
  %196 = mul nsw i32 %195, %.sink218
  %197 = add nsw i32 %196, %141
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds double, ptr %8, i64 %198
  store double %.sink212, ptr %199, align 8, !tbaa !20
  br label %200

200:                                              ; preds = %.sink.split, %172, %194
  %.3 = phi double [ %193, %172 ], [ %.2193, %194 ], [ %.3.ph, %.sink.split ]
  %201 = load i32, ptr %58, align 8, !tbaa !21
  %202 = icmp slt i32 %.pre-phi, %201
  br i1 %202, label %127, label %.loopexit, !llvm.loop !30

._crit_edge:                                      ; preds = %.loopexit, %.preheader183, %.preheader
  %.1170.lcssa = phi double [ %109, %.preheader ], [ 0.000000e+00, %.preheader183 ], [ %.2.lcssa, %.loopexit ]
  %203 = call double @log(double noundef %.1170.lcssa) #7
  %204 = getelementptr inbounds double, ptr %7, i64 %indvars.iv
  store double %203, ptr %204, align 8, !tbaa !20
  %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_edge203, label %61, !llvm.loop !31

._crit_edge203:                                   ; preds = %._crit_edge, %53
  call void @free(ptr noundef %24) #7
  call void @free(ptr noundef %30) #7
  br label %205

205:                                              ; preds = %._crit_edge203, %170, %160, %91, %71, %51, %32, %26
  %.0 = phi i32 [ 1, %26 ], [ 1, %32 ], [ 1, %71 ], [ 1, %91 ], [ 1, %160 ], [ 1, %170 ], [ 0, %._crit_edge203 ], [ 1, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @nonlinear_get_source(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

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, !7, i64 52}
!6 = !{!"nonlinear", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !12, i64 56, !11, i64 64, !11, i64 66, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !11, i64 88, !7, i64 92, !12, i64 96, !12, i64 104, !12, i64 112, !7, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !7, i64 184, !7, i64 188, !12, i64 192, !12, i64 200, !12, i64 208, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !11, i64 264, !8, i64 266}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !11, i64 64}
!14 = !{!6, !7, i64 68}
!15 = !{!6, !11, i64 66}
!16 = !{!6, !7, i64 72}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 44}
!19 = !{!6, !12, i64 104}
!20 = !{!10, !10, i64 0}
!21 = !{!6, !7, i64 48}
!22 = !{!23, !12, i64 2464}
!23 = !{!"perturbs", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 10, !11, i64 12, !11, i64 14, !11, i64 16, !11, i64 18, !11, i64 20, !7, i64 24, !11, i64 28, !11, i64 30, !11, i64 32, !11, i64 34, !11, i64 36, !11, i64 38, !11, i64 40, !11, i64 42, !11, i64 44, !11, i64 46, !11, i64 48, !11, i64 50, !11, i64 52, !11, i64 54, !11, i64 56, !11, i64 58, !11, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !10, i64 80, !7, i64 88, !7, i64 92, !8, i64 96, !8, i64 896, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !10, i64 1720, !7, i64 1728, !7, i64 1732, !8, i64 1736, !10, i64 1976, !10, i64 1984, !10, i64 1992, !12, i64 2000, !12, i64 2008, !7, i64 2016, !11, i64 2020, !11, i64 2022, !7, i64 2024, !7, i64 2028, !7, i64 2032, !7, i64 2036, !7, i64 2040, !7, i64 2044, !7, i64 2048, !7, i64 2052, !7, i64 2056, !7, i64 2060, !7, i64 2064, !12, i64 2072, !11, i64 2080, !11, i64 2082, !11, i64 2084, !11, i64 2086, !11, i64 2088, !11, i64 2090, !11, i64 2092, !11, i64 2094, !11, i64 2096, !11, i64 2098, !11, i64 2100, !11, i64 2102, !11, i64 2104, !11, i64 2106, !11, i64 2108, !11, i64 2110, !11, i64 2112, !11, i64 2114, !11, i64 2116, !11, i64 2118, !11, i64 2120, !11, i64 2122, !11, i64 2124, !11, i64 2126, !11, i64 2128, !11, i64 2130, !11, i64 2132, !11, i64 2134, !11, i64 2136, !11, i64 2138, !11, i64 2140, !11, i64 2142, !11, i64 2144, !11, i64 2146, !11, i64 2148, !11, i64 2150, !11, i64 2152, !11, i64 2154, !11, i64 2156, !11, i64 2158, !7, i64 2160, !7, i64 2164, !7, i64 2168, !7, i64 2172, !7, i64 2176, !7, i64 2180, !7, i64 2184, !7, i64 2188, !7, i64 2192, !7, i64 2196, !7, i64 2200, !7, i64 2204, !7, i64 2208, !7, i64 2212, !7, i64 2216, !7, i64 2220, !7, i64 2224, !7, i64 2228, !7, i64 2232, !7, i64 2236, !7, i64 2240, !7, i64 2244, !7, i64 2248, !7, i64 2252, !7, i64 2256, !7, i64 2260, !7, i64 2264, !7, i64 2268, !7, i64 2272, !7, i64 2276, !7, i64 2280, !7, i64 2284, !7, i64 2288, !7, i64 2292, !7, i64 2296, !7, i64 2300, !7, i64 2304, !7, i64 2308, !7, i64 2312, !7, i64 2316, !7, i64 2320, !7, i64 2324, !7, i64 2328, !7, i64 2332, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !10, i64 2376, !10, i64 2384, !12, i64 2392, !7, i64 2400, !10, i64 2408, !10, i64 2416, !10, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !7, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !7, i64 26512, !7, i64 26516, !7, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !11, i64 27608, !8, i64 27610}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!6, !12, i64 56}
!29 = !{!11, !11, i64 0}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}


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