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

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [35 x i8], align 1
@__func__.nonlinear_get_k_list = external hidden unnamed_addr constant [21 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [10 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; 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_get_k_list(ptr noundef %0, ptr noundef %1, ptr noundef %2) #5 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [2048 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca [2048 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.perturbs, ptr %19, i32 0, i32 154
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.nonlinear, ptr %22, i32 0, i32 7
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i32, ptr %21, i64 %25
  %27 = load i32, ptr %26, align 4, !tbaa !17
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.nonlinear, ptr %28, i32 0, i32 19
  store i32 %27, ptr %29, align 4, !tbaa !18
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.perturbs, ptr %30, i32 0, i32 155
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.nonlinear, ptr %33, i32 0, i32 7
  %35 = load i32, ptr %34, align 4, !tbaa !15
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %32, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.nonlinear, ptr %39, i32 0, i32 19
  %41 = load i32, ptr %40, align 4, !tbaa !18
  %42 = sub nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds double, ptr %38, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !9
  store double %45, ptr %9, align 8, !tbaa !9
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.nonlinear, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !20
  %49 = icmp eq i32 %48, 2
  br i1 %49, label %50, label %100

50:                                               ; preds = %3
  store i32 0, ptr %11, align 4, !tbaa !17
  br label %51

51:                                               ; preds = %62, %50
  %52 = load double, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.precision, ptr %53, i32 0, i32 160
  %55 = load double, ptr %54, align 8, !tbaa !21
  %56 = fcmp olt double %52, %55
  br i1 %56, label %57, label %60

57:                                               ; preds = %51
  %58 = load i32, ptr %11, align 4, !tbaa !17
  %59 = icmp slt i32 %58, 100000
  br label %60

60:                                               ; preds = %57, %51
  %61 = phi i1 [ false, %51 ], [ %59, %57 ]
  br i1 %61, label %62, label %74

62:                                               ; preds = %60
  %63 = load i32, ptr %11, align 4, !tbaa !17
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %11, align 4, !tbaa !17
  %65 = load double, ptr %9, align 8, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !17
  %67 = sitofp i32 %66 to double
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.precision, ptr %68, i32 0, i32 58
  %70 = load double, ptr %69, align 8, !tbaa !23
  %71 = fdiv double %67, %70
  %72 = call double @pow(double noundef 1.000000e+01, double noundef %71) #6
  %73 = fmul double %65, %72
  store double %73, ptr %8, align 8, !tbaa !9
  br label %51, !llvm.loop !24

74:                                               ; preds = %60
  %75 = load i32, ptr %11, align 4, !tbaa !17
  %76 = icmp eq i32 %75, 100000
  br i1 %76, label %77, label %92

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 2048, ptr %12) #6
  %78 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.precision, ptr %79, i32 0, i32 160
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = load double, ptr %9, align 8, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.precision, ptr %83, i32 0, i32 58
  %85 = load double, ptr %84, align 8, !tbaa !23
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.106, double noundef %81, double noundef %82, double noundef %85, i32 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #6
  %86 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %87 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %86, ptr noundef @.str.1, ptr noundef @.str.107, ptr noundef %87)
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.nonlinear, ptr %88, i32 0, i32 45
  %90 = getelementptr inbounds [2048 x i8], ptr %89, i64 0, i64 0
  %91 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %90, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_get_k_list, i32 noundef 1895, ptr noundef %91)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %12) #6
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %244

92:                                               ; preds = %74
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.nonlinear, ptr %93, i32 0, i32 19
  %95 = load i32, ptr %94, align 4, !tbaa !18
  %96 = load i32, ptr %11, align 4, !tbaa !17
  %97 = add nsw i32 %95, %96
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.nonlinear, ptr %98, i32 0, i32 31
  store i32 %97, ptr %99, align 8, !tbaa !26
  br label %106

100:                                              ; preds = %3
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.nonlinear, ptr %101, i32 0, i32 19
  %103 = load i32, ptr %102, align 4, !tbaa !18
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nonlinear, ptr %104, i32 0, i32 31
  store i32 %103, ptr %105, align 8, !tbaa !26
  br label %106

106:                                              ; preds = %100, %92
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.nonlinear, ptr %107, i32 0, i32 31
  %109 = load i32, ptr %108, align 8, !tbaa !26
  %110 = sext i32 %109 to i64
  %111 = mul i64 %110, 8
  %112 = call noalias ptr @malloc(i64 noundef %111) #7
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.nonlinear, ptr %113, i32 0, i32 20
  store ptr %112, ptr %114, align 8, !tbaa !27
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.nonlinear, ptr %115, i32 0, i32 20
  %117 = load ptr, ptr %116, align 8, !tbaa !27
  %118 = icmp eq ptr %117, null
  br i1 %118, label %119, label %132

119:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.nonlinear, ptr %120, i32 0, i32 31
  %122 = load i32, ptr %121, align 8, !tbaa !26
  %123 = sext i32 %122 to i64
  %124 = mul i64 %123, 8
  %125 = trunc i64 %124 to i32
  store i32 %125, ptr %15, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %16) #6
  %126 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  %127 = load i32, ptr %15, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %126, ptr noundef @.str.15, ptr noundef @.str.108, i32 noundef %127)
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nonlinear, ptr %128, i32 0, i32 45
  %130 = getelementptr inbounds [2048 x i8], ptr %129, i64 0, i64 0
  %131 = getelementptr inbounds [2048 x i8], ptr %16, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %130, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_get_k_list, i32 noundef 1904, ptr noundef %131)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %16) #6
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %244

132:                                              ; preds = %106
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.nonlinear, ptr %133, i32 0, i32 31
  %135 = load i32, ptr %134, align 8, !tbaa !26
  %136 = sext i32 %135 to i64
  %137 = mul i64 %136, 8
  %138 = call noalias ptr @malloc(i64 noundef %137) #7
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.nonlinear, ptr %139, i32 0, i32 21
  store ptr %138, ptr %140, align 8, !tbaa !28
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.nonlinear, ptr %141, i32 0, i32 21
  %143 = load ptr, ptr %142, align 8, !tbaa !28
  %144 = icmp eq ptr %143, null
  br i1 %144, label %145, label %158

145:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.nonlinear, ptr %146, i32 0, i32 31
  %148 = load i32, ptr %147, align 8, !tbaa !26
  %149 = sext i32 %148 to i64
  %150 = mul i64 %149, 8
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %17, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #6
  %152 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %153 = load i32, ptr %17, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %152, ptr noundef @.str.15, ptr noundef @.str.109, i32 noundef %153)
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.nonlinear, ptr %154, i32 0, i32 45
  %156 = getelementptr inbounds [2048 x i8], ptr %155, i64 0, i64 0
  %157 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %156, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_get_k_list, i32 noundef 1905, ptr noundef %157)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #6
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %244

158:                                              ; preds = %132
  store i32 0, ptr %11, align 4, !tbaa !17
  br label %159

159:                                              ; preds = %194, %158
  %160 = load i32, ptr %11, align 4, !tbaa !17
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.nonlinear, ptr %161, i32 0, i32 19
  %163 = load i32, ptr %162, align 4, !tbaa !18
  %164 = icmp slt i32 %160, %163
  br i1 %164, label %165, label %197

165:                                              ; preds = %159
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.perturbs, ptr %166, i32 0, i32 155
  %168 = load ptr, ptr %167, align 8, !tbaa !19
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.nonlinear, ptr %169, i32 0, i32 7
  %171 = load i32, ptr %170, align 4, !tbaa !15
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds ptr, ptr %168, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i32, ptr %11, align 4, !tbaa !17
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !9
  store double %178, ptr %8, align 8, !tbaa !9
  %179 = load double, ptr %8, align 8, !tbaa !9
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.nonlinear, ptr %180, i32 0, i32 20
  %182 = load ptr, ptr %181, align 8, !tbaa !27
  %183 = load i32, ptr %11, align 4, !tbaa !17
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds double, ptr %182, i64 %184
  store double %179, ptr %185, align 8, !tbaa !9
  %186 = load double, ptr %8, align 8, !tbaa !9
  %187 = call double @log(double noundef %186) #6
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.nonlinear, ptr %188, i32 0, i32 21
  %190 = load ptr, ptr %189, align 8, !tbaa !28
  %191 = load i32, ptr %11, align 4, !tbaa !17
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %190, i64 %192
  store double %187, ptr %193, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %165
  %195 = load i32, ptr %11, align 4, !tbaa !17
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %11, align 4, !tbaa !17
  br label %159, !llvm.loop !29

197:                                              ; preds = %159
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.nonlinear, ptr %198, i32 0, i32 19
  %200 = load i32, ptr %199, align 4, !tbaa !18
  store i32 %200, ptr %11, align 4, !tbaa !17
  br label %201

201:                                              ; preds = %240, %197
  %202 = load i32, ptr %11, align 4, !tbaa !17
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.nonlinear, ptr %203, i32 0, i32 31
  %205 = load i32, ptr %204, align 8, !tbaa !26
  %206 = icmp slt i32 %202, %205
  br i1 %206, label %207, label %243

207:                                              ; preds = %201
  %208 = load i32, ptr %11, align 4, !tbaa !17
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.nonlinear, ptr %209, i32 0, i32 19
  %211 = load i32, ptr %210, align 4, !tbaa !18
  %212 = sub nsw i32 %211, 1
  %213 = sub nsw i32 %208, %212
  %214 = sitofp i32 %213 to double
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.precision, ptr %215, i32 0, i32 58
  %217 = load double, ptr %216, align 8, !tbaa !23
  %218 = fdiv double %214, %217
  store double %218, ptr %10, align 8, !tbaa !9
  %219 = load double, ptr %8, align 8, !tbaa !9
  %220 = load double, ptr %10, align 8, !tbaa !9
  %221 = call double @pow(double noundef 1.000000e+01, double noundef %220) #6
  %222 = fmul double %219, %221
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.nonlinear, ptr %223, i32 0, i32 20
  %225 = load ptr, ptr %224, align 8, !tbaa !27
  %226 = load i32, ptr %11, align 4, !tbaa !17
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds double, ptr %225, i64 %227
  store double %222, ptr %228, align 8, !tbaa !9
  %229 = load double, ptr %8, align 8, !tbaa !9
  %230 = call double @log(double noundef %229) #6
  %231 = load double, ptr %10, align 8, !tbaa !9
  %232 = call double @log(double noundef 1.000000e+01) #6
  %233 = call double @llvm.fmuladd.f64(double %231, double %232, double %230)
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.nonlinear, ptr %234, i32 0, i32 21
  %236 = load ptr, ptr %235, align 8, !tbaa !28
  %237 = load i32, ptr %11, align 4, !tbaa !17
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds double, ptr %236, i64 %238
  store double %233, ptr %239, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %207
  %241 = load i32, ptr %11, align 4, !tbaa !17
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %11, align 4, !tbaa !17
  br label %201, !llvm.loop !30

243:                                              ; preds = %201
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %244

244:                                              ; preds = %243, %145, %119, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %245 = load i32, ptr %4, align 4
  ret i32 %245
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !6, i64 2360}
!12 = !{!"perturbs", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !14, i64 24, !13, i64 28, !13, i64 30, !13, i64 32, !13, i64 34, !13, i64 36, !13, i64 38, !13, i64 40, !13, i64 42, !13, i64 44, !13, i64 46, !13, i64 48, !13, i64 50, !13, i64 52, !13, i64 54, !13, i64 56, !13, i64 58, !13, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !10, i64 80, !14, i64 88, !14, i64 92, !7, i64 96, !7, i64 896, !14, i64 1696, !14, i64 1700, !14, i64 1704, !14, i64 1708, !14, i64 1712, !10, i64 1720, !14, i64 1728, !14, i64 1732, !7, i64 1736, !10, i64 1976, !10, i64 1984, !10, i64 1992, !6, i64 2000, !6, i64 2008, !14, i64 2016, !13, i64 2020, !13, i64 2022, !14, i64 2024, !14, i64 2028, !14, i64 2032, !14, i64 2036, !14, i64 2040, !14, i64 2044, !14, i64 2048, !14, i64 2052, !14, i64 2056, !14, i64 2060, !14, i64 2064, !6, i64 2072, !13, i64 2080, !13, i64 2082, !13, i64 2084, !13, i64 2086, !13, i64 2088, !13, i64 2090, !13, i64 2092, !13, i64 2094, !13, i64 2096, !13, i64 2098, !13, i64 2100, !13, i64 2102, !13, i64 2104, !13, i64 2106, !13, i64 2108, !13, i64 2110, !13, i64 2112, !13, i64 2114, !13, i64 2116, !13, i64 2118, !13, i64 2120, !13, i64 2122, !13, i64 2124, !13, i64 2126, !13, i64 2128, !13, i64 2130, !13, i64 2132, !13, i64 2134, !13, i64 2136, !13, i64 2138, !13, i64 2140, !13, i64 2142, !13, i64 2144, !13, i64 2146, !13, i64 2148, !13, i64 2150, !13, i64 2152, !13, i64 2154, !13, i64 2156, !13, i64 2158, !14, i64 2160, !14, i64 2164, !14, i64 2168, !14, i64 2172, !14, i64 2176, !14, i64 2180, !14, i64 2184, !14, i64 2188, !14, i64 2192, !14, i64 2196, !14, i64 2200, !14, i64 2204, !14, i64 2208, !14, i64 2212, !14, i64 2216, !14, i64 2220, !14, i64 2224, !14, i64 2228, !14, i64 2232, !14, i64 2236, !14, i64 2240, !14, i64 2244, !14, i64 2248, !14, i64 2252, !14, i64 2256, !14, i64 2260, !14, i64 2264, !14, i64 2268, !14, i64 2272, !14, i64 2276, !14, i64 2280, !14, i64 2284, !14, i64 2288, !14, i64 2292, !14, i64 2296, !14, i64 2300, !14, i64 2304, !14, i64 2308, !14, i64 2312, !14, i64 2316, !14, i64 2320, !14, i64 2324, !14, i64 2328, !14, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !10, i64 2376, !10, i64 2384, !6, i64 2392, !14, i64 2400, !10, i64 2408, !10, i64 2416, !10, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !14, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !14, i64 26512, !14, i64 26516, !14, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !13, i64 27608, !7, i64 27610}
!13 = !{!"short", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 44}
!16 = !{!"nonlinear", !14, i64 0, !14, i64 4, !14, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !6, i64 56, !13, i64 64, !13, i64 66, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !13, i64 88, !14, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !14, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !14, i64 184, !14, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !14, i64 216, !14, i64 220, !14, i64 224, !14, i64 228, !14, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !13, i64 264, !7, i64 266}
!17 = !{!14, !14, i64 0}
!18 = !{!16, !14, i64 92}
!19 = !{!12, !6, i64 2368}
!20 = !{!16, !14, i64 0}
!21 = !{!22, !10, i64 2232}
!22 = !{!"precision", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !7, i64 104, !10, i64 360, !14, i64 368, !10, i64 376, !14, i64 384, !14, i64 388, !10, i64 392, !14, i64 400, !10, i64 408, !14, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !14, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !10, i64 1400, !10, i64 1408, !10, i64 1416, !10, i64 1424, !10, i64 1432, !10, i64 1440, !10, i64 1448, !10, i64 1456, !10, i64 1464, !10, i64 1472, !10, i64 1480, !10, i64 1488, !10, i64 1496, !10, i64 1504, !10, i64 1512, !10, i64 1520, !14, i64 1528, !10, i64 1536, !10, i64 1544, !14, i64 1552, !14, i64 1556, !14, i64 1560, !14, i64 1564, !14, i64 1568, !14, i64 1572, !14, i64 1576, !14, i64 1580, !10, i64 1584, !10, i64 1592, !10, i64 1600, !10, i64 1608, !10, i64 1616, !10, i64 1624, !10, i64 1632, !10, i64 1640, !14, i64 1648, !10, i64 1656, !10, i64 1664, !14, i64 1672, !10, i64 1680, !10, i64 1688, !14, i64 1696, !10, i64 1704, !14, i64 1712, !10, i64 1720, !10, i64 1728, !14, i64 1736, !10, i64 1744, !10, i64 1752, !10, i64 1760, !14, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !14, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !10, i64 1872, !14, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !10, i64 1912, !10, i64 1920, !10, i64 1928, !10, i64 1936, !10, i64 1944, !10, i64 1952, !10, i64 1960, !10, i64 1968, !10, i64 1976, !10, i64 1984, !10, i64 1992, !10, i64 2000, !10, i64 2008, !10, i64 2016, !10, i64 2024, !10, i64 2032, !10, i64 2040, !10, i64 2048, !10, i64 2056, !10, i64 2064, !10, i64 2072, !10, i64 2080, !10, i64 2088, !10, i64 2096, !10, i64 2104, !10, i64 2112, !10, i64 2120, !10, i64 2128, !10, i64 2136, !10, i64 2144, !10, i64 2152, !10, i64 2160, !10, i64 2168, !10, i64 2176, !10, i64 2184, !10, i64 2192, !10, i64 2200, !10, i64 2208, !10, i64 2216, !10, i64 2224, !10, i64 2232, !10, i64 2240, !10, i64 2248, !14, i64 2256, !10, i64 2264, !10, i64 2272, !10, i64 2280, !10, i64 2288, !14, i64 2296, !10, i64 2304, !10, i64 2312, !14, i64 2320, !14, i64 2324, !14, i64 2328, !10, i64 2336, !10, i64 2344, !7, i64 2352}
!23 = !{!22, !10, i64 1448}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!16, !14, i64 184}
!27 = !{!16, !6, i64 96}
!28 = !{!16, !6, i64 104}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}


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

@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [132 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [35 x i8], align 1
@__func__.nonlinear_get_k_list = external hidden unnamed_addr constant [21 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [10 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 allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_get_k_list(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #5 {
  %4 = alloca [2048 x i8], align 16
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = getelementptr inbounds i8, ptr %1, i64 2360
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %2, i64 44
  %11 = load i32, ptr %10, align 4, !tbaa !13
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds i32, ptr %9, i64 %12
  %14 = load i32, ptr %13, align 4, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %2, i64 92
  store i32 %14, ptr %15, align 4, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %1, i64 2368
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = getelementptr inbounds ptr, ptr %17, i64 %12
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = sext i32 %14 to i64
  %21 = getelementptr double, ptr %19, i64 %20
  %22 = getelementptr i8, ptr %21, i64 -8
  %23 = load double, ptr %22, align 8, !tbaa !19
  %24 = load i32, ptr %2, align 8, !tbaa !20
  %25 = icmp eq i32 %24, 2
  br i1 %25, label %.preheader70, label %49

.preheader70:                                     ; preds = %3
  %26 = getelementptr inbounds i8, ptr %0, i64 2232
  %27 = load double, ptr %26, align 8, !tbaa !21
  %28 = fcmp ogt double %27, 0.000000e+00
  br i1 %28, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %.preheader70
  %29 = getelementptr inbounds i8, ptr %0, i64 1448
  br label %30

30:                                               ; preds = %.lr.ph, %30
  %.06472 = phi i32 [ 0, %.lr.ph ], [ %31, %30 ]
  %31 = add nuw nsw i32 %.06472, 1
  %32 = uitofp nneg i32 %31 to double
  %33 = load double, ptr %29, align 8, !tbaa !23
  %34 = fdiv double %32, %33
  %35 = tail call double @pow(double noundef 1.000000e+01, double noundef %34) #6
  %36 = fmul double %23, %35
  %37 = load double, ptr %26, align 8, !tbaa !21
  %38 = fcmp olt double %36, %37
  %39 = icmp ult i32 %.06472, 99999
  %40 = and i1 %39, %38
  br i1 %40, label %30, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %30
  %41 = icmp eq i32 %31, 100000
  br i1 %41, label %42, label %._crit_edge.thread

42:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #6
  %43 = getelementptr inbounds i8, ptr %0, i64 1448
  %44 = load double, ptr %43, align 8, !tbaa !23
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.106, double noundef %37, double noundef %23, double noundef %44, i32 noundef 100000) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.107, ptr noundef nonnull %4) #6
  %45 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %45, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_get_k_list, i32 noundef 1895, ptr noundef nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #6
  br label %.loopexit

._crit_edge.thread:                               ; preds = %.preheader70, %._crit_edge
  %.063.lcssa95 = phi double [ %36, %._crit_edge ], [ 0.000000e+00, %.preheader70 ]
  %.064.lcssa94 = phi i32 [ %31, %._crit_edge ], [ 0, %.preheader70 ]
  %46 = load i32, ptr %15, align 4, !tbaa !16
  %47 = add nsw i32 %46, %.064.lcssa94
  %48 = getelementptr inbounds i8, ptr %2, i64 184
  store i32 %47, ptr %48, align 8, !tbaa !26
  %.pre90 = sext i32 %47 to i64
  br label %51

49:                                               ; preds = %3
  %50 = getelementptr inbounds i8, ptr %2, i64 184
  store i32 %14, ptr %50, align 8, !tbaa !26
  br label %51

51:                                               ; preds = %49, %._crit_edge.thread
  %.pre-phi = phi i64 [ %20, %49 ], [ %.pre90, %._crit_edge.thread ]
  %52 = phi i32 [ %14, %49 ], [ %46, %._crit_edge.thread ]
  %53 = phi i32 [ %14, %49 ], [ %47, %._crit_edge.thread ]
  %.1 = phi double [ 0.000000e+00, %49 ], [ %.063.lcssa95, %._crit_edge.thread ]
  %54 = getelementptr inbounds i8, ptr %2, i64 184
  %55 = shl nsw i64 %.pre-phi, 3
  %56 = tail call noalias ptr @malloc(i64 noundef %55) #7
  %57 = getelementptr inbounds i8, ptr %2, i64 96
  store ptr %56, ptr %57, align 8, !tbaa !27
  %58 = icmp eq ptr %56, null
  br i1 %58, label %59, label %62

59:                                               ; preds = %51
  %60 = shl i32 %53, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.108, i32 noundef %60) #6
  %61 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %61, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_get_k_list, i32 noundef 1904, ptr noundef nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #6
  br label %.loopexit

62:                                               ; preds = %51
  %63 = tail call noalias ptr @malloc(i64 noundef %55) #7
  %64 = getelementptr inbounds i8, ptr %2, i64 104
  store ptr %63, ptr %64, align 8, !tbaa !28
  %65 = icmp eq ptr %63, null
  br i1 %65, label %67, label %.preheader69

.preheader69:                                     ; preds = %62
  %66 = icmp sgt i32 %52, 0
  br i1 %66, label %.lr.ph76, label %.preheader

67:                                               ; preds = %62
  %68 = shl i32 %53, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.109, i32 noundef %68) #6
  %69 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %69, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_get_k_list, i32 noundef 1905, ptr noundef nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #6
  br label %.loopexit

.preheader.loopexit:                              ; preds = %.lr.ph76
  %.pre = load i32, ptr %54, align 8, !tbaa !26
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader69
  %70 = phi i32 [ %53, %.preheader69 ], [ %.pre, %.preheader.loopexit ]
  %.2.lcssa = phi double [ %.1, %.preheader69 ], [ %80, %.preheader.loopexit ]
  %.lcssa = phi i32 [ %52, %.preheader69 ], [ %86, %.preheader.loopexit ]
  %71 = icmp slt i32 %.lcssa, %70
  br i1 %71, label %.lr.ph80, label %.loopexit

.lr.ph80:                                         ; preds = %.preheader
  %72 = getelementptr inbounds i8, ptr %0, i64 1448
  %73 = sext i32 %.lcssa to i64
  br label %89

.lr.ph76:                                         ; preds = %.preheader69, %.lr.ph76
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph76 ], [ 0, %.preheader69 ]
  %74 = load ptr, ptr %16, align 8, !tbaa !17
  %75 = load i32, ptr %10, align 4, !tbaa !13
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %74, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = getelementptr inbounds double, ptr %78, i64 %indvars.iv
  %80 = load double, ptr %79, align 8, !tbaa !19
  %81 = load ptr, ptr %57, align 8, !tbaa !27
  %82 = getelementptr inbounds double, ptr %81, i64 %indvars.iv
  store double %80, ptr %82, align 8, !tbaa !19
  %83 = tail call double @log(double noundef %80) #6
  %84 = load ptr, ptr %64, align 8, !tbaa !28
  %85 = getelementptr inbounds double, ptr %84, i64 %indvars.iv
  store double %83, ptr %85, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = load i32, ptr %15, align 4, !tbaa !16
  %87 = sext i32 %86 to i64
  %88 = icmp slt i64 %indvars.iv.next, %87
  br i1 %88, label %.lr.ph76, label %.preheader.loopexit, !llvm.loop !29

89:                                               ; preds = %.lr.ph80, %89
  %indvars.iv87 = phi i64 [ %73, %.lr.ph80 ], [ %indvars.iv.next88, %89 ]
  %90 = load i32, ptr %15, align 4, !tbaa !16
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, 1
  %91 = trunc nsw i64 %indvars.iv.next88 to i32
  %92 = sub i32 %91, %90
  %93 = sitofp i32 %92 to double
  %94 = load double, ptr %72, align 8, !tbaa !23
  %95 = fdiv double %93, %94
  %96 = tail call double @pow(double noundef 1.000000e+01, double noundef %95) #6
  %97 = fmul double %.2.lcssa, %96
  %98 = load ptr, ptr %57, align 8, !tbaa !27
  %99 = getelementptr inbounds double, ptr %98, i64 %indvars.iv87
  store double %97, ptr %99, align 8, !tbaa !19
  %100 = tail call double @log(double noundef %.2.lcssa) #6
  %101 = tail call double @llvm.fmuladd.f64(double %95, double 0x40026BB1BBB55516, double %100)
  %102 = load ptr, ptr %64, align 8, !tbaa !28
  %103 = getelementptr inbounds double, ptr %102, i64 %indvars.iv87
  store double %101, ptr %103, align 8, !tbaa !19
  %104 = load i32, ptr %54, align 8, !tbaa !26
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next88, %105
  br i1 %106, label %89, label %.loopexit, !llvm.loop !30

.loopexit:                                        ; preds = %89, %.preheader, %67, %59, %42
  %.0 = phi i32 [ 1, %42 ], [ 1, %59 ], [ 1, %67 ], [ 0, %.preheader ], [ 0, %89 ]
  ret i32 %.0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 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, !12, i64 2360}
!6 = !{!"perturbs", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !7, i64 16, !7, i64 18, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 30, !7, i64 32, !7, i64 34, !7, i64 36, !7, i64 38, !7, i64 40, !7, i64 42, !7, i64 44, !7, i64 46, !7, i64 48, !7, i64 50, !7, i64 52, !7, i64 54, !7, i64 56, !7, i64 58, !7, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !11, i64 80, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !11, i64 1720, !10, i64 1728, !10, i64 1732, !8, i64 1736, !11, i64 1976, !11, i64 1984, !11, i64 1992, !12, i64 2000, !12, i64 2008, !10, i64 2016, !7, i64 2020, !7, 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, !12, i64 2072, !7, i64 2080, !7, i64 2082, !7, i64 2084, !7, i64 2086, !7, i64 2088, !7, i64 2090, !7, i64 2092, !7, i64 2094, !7, i64 2096, !7, i64 2098, !7, i64 2100, !7, i64 2102, !7, i64 2104, !7, i64 2106, !7, i64 2108, !7, i64 2110, !7, i64 2112, !7, i64 2114, !7, i64 2116, !7, i64 2118, !7, i64 2120, !7, i64 2122, !7, i64 2124, !7, i64 2126, !7, i64 2128, !7, i64 2130, !7, i64 2132, !7, i64 2134, !7, i64 2136, !7, i64 2138, !7, i64 2140, !7, i64 2142, !7, i64 2144, !7, i64 2146, !7, i64 2148, !7, i64 2150, !7, i64 2152, !7, i64 2154, !7, i64 2156, !7, 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, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !11, i64 2376, !11, i64 2384, !12, i64 2392, !10, i64 2400, !11, i64 2408, !11, i64 2416, !11, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !10, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !7, i64 27608, !8, i64 27610}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !10, i64 44}
!14 = !{!"nonlinear", !10, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !12, i64 56, !7, i64 64, !7, i64 66, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !7, i64 88, !10, i64 92, !12, i64 96, !12, i64 104, !12, i64 112, !10, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !12, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !7, i64 264, !8, i64 266}
!15 = !{!10, !10, i64 0}
!16 = !{!14, !10, i64 92}
!17 = !{!6, !12, i64 2368}
!18 = !{!12, !12, i64 0}
!19 = !{!11, !11, i64 0}
!20 = !{!14, !10, i64 0}
!21 = !{!22, !11, i64 2232}
!22 = !{!"precision", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !8, i64 104, !11, i64 360, !10, i64 368, !11, i64 376, !10, i64 384, !10, i64 388, !11, i64 392, !10, i64 400, !11, i64 408, !10, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !10, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !11, i64 1400, !11, i64 1408, !11, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !11, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !11, i64 1520, !10, i64 1528, !11, i64 1536, !11, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !11, i64 1584, !11, i64 1592, !11, i64 1600, !11, i64 1608, !11, i64 1616, !11, i64 1624, !11, i64 1632, !11, i64 1640, !10, i64 1648, !11, i64 1656, !11, i64 1664, !10, i64 1672, !11, i64 1680, !11, i64 1688, !10, i64 1696, !11, i64 1704, !10, i64 1712, !11, i64 1720, !11, i64 1728, !10, i64 1736, !11, i64 1744, !11, i64 1752, !11, i64 1760, !10, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !10, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !10, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !11, i64 1944, !11, i64 1952, !11, i64 1960, !11, i64 1968, !11, i64 1976, !11, i64 1984, !11, i64 1992, !11, i64 2000, !11, i64 2008, !11, i64 2016, !11, i64 2024, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !11, i64 2072, !11, i64 2080, !11, i64 2088, !11, i64 2096, !11, i64 2104, !11, i64 2112, !11, i64 2120, !11, i64 2128, !11, i64 2136, !11, i64 2144, !11, i64 2152, !11, i64 2160, !11, i64 2168, !11, i64 2176, !11, i64 2184, !11, i64 2192, !11, i64 2200, !11, i64 2208, !11, i64 2216, !11, i64 2224, !11, i64 2232, !11, i64 2240, !11, i64 2248, !10, i64 2256, !11, i64 2264, !11, i64 2272, !11, i64 2280, !11, i64 2288, !10, i64 2296, !11, i64 2304, !11, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !11, i64 2336, !11, i64 2344, !8, i64 2352}
!23 = !{!22, !11, i64 1448}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!14, !10, i64 184}
!27 = !{!14, !12, i64 96}
!28 = !{!14, !12, i64 104}
!29 = distinct !{!29, !25}
!30 = distinct !{!30, !25}


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