; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (evolver_ndf15)

; 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"

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.fzero_Newton = external hidden unnamed_addr constant [13 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [187 x i8], align 1
@.str.36 = 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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @fzero_Newton(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, double noundef %4, double noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #4 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %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 ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca [2048 x i8], align 16
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca [2048 x i8], align 16
  %41 = alloca i32, align 4
  %42 = alloca [2048 x i8], align 16
  %43 = alloca i32, align 4
  %44 = alloca [2048 x i8], align 16
  %45 = alloca i32, align 4
  %46 = alloca [2048 x i8], align 16
  %47 = alloca i32, align 4
  %48 = alloca [2048 x i8], align 16
  %49 = alloca i32, align 4
  %50 = alloca [2048 x i8], align 16
  %51 = alloca i32, align 4
  %52 = alloca [2048 x i8], align 16
  %53 = alloca [2048 x i8], align 16
  %54 = alloca [2048 x i8], align 16
  %55 = alloca [2048 x i8], align 16
  %56 = 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 i32 %3, ptr %14, align 4, !tbaa !9
  store double %4, ptr %15, align 8, !tbaa !11
  store double %5, ptr %16, align 8, !tbaa !11
  store ptr %6, ptr %17, align 8, !tbaa !5
  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 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 20, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store double 1.000000e-03, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = mul i64 4, %59
  %61 = call noalias ptr @malloc(i64 noundef %60) #7
  store ptr %61, ptr %23, align 8, !tbaa !5
  %62 = load ptr, ptr %23, align 8, !tbaa !5
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %74

64:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = mul i64 4, %67
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %37) #6
  %70 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %71 = load i32, ptr %36, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %70, ptr noundef @.str, ptr noundef @.str.25, i32 noundef %71)
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %72, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1092, ptr noundef %73)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %37) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %489

74:                                               ; preds = %9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = mul i64 8, %77
  %79 = call noalias ptr @malloc(i64 noundef %78) #7
  store ptr %79, ptr %31, align 8, !tbaa !5
  %80 = load ptr, ptr %31, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %92

82:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = mul i64 8, %85
  %87 = trunc i64 %86 to i32
  store i32 %87, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %40) #6
  %88 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  %89 = load i32, ptr %39, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %88, ptr noundef @.str, ptr noundef @.str.26, i32 noundef %89)
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %90, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1093, ptr noundef %91)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %40) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %489

92:                                               ; preds = %74
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = mul i64 8, %95
  %97 = call noalias ptr @malloc(i64 noundef %96) #7
  store ptr %97, ptr %32, align 8, !tbaa !5
  %98 = load ptr, ptr %32, align 8, !tbaa !5
  %99 = icmp eq ptr %98, null
  br i1 %99, label %100, label %110

100:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = mul i64 8, %103
  %105 = trunc i64 %104 to i32
  store i32 %105, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %42) #6
  %106 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  %107 = load i32, ptr %41, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %106, ptr noundef @.str, ptr noundef @.str.27, i32 noundef %107)
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %108, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1094, ptr noundef %109)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %42) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %489

110:                                              ; preds = %92
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = mul i64 8, %113
  %115 = call noalias ptr @malloc(i64 noundef %114) #7
  store ptr %115, ptr %30, align 8, !tbaa !5
  %116 = load ptr, ptr %30, align 8, !tbaa !5
  %117 = icmp eq ptr %116, null
  br i1 %117, label %118, label %128

118:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = mul i64 8, %121
  %123 = trunc i64 %122 to i32
  store i32 %123, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %44) #6
  %124 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  %125 = load i32, ptr %43, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %124, ptr noundef @.str, ptr noundef @.str.28, i32 noundef %125)
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %126, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1095, ptr noundef %127)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %44) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %489

128:                                              ; preds = %110
  %129 = load ptr, ptr %30, align 8, !tbaa !5
  %130 = getelementptr inbounds ptr, ptr %129, i64 0
  store ptr null, ptr %130, align 8, !tbaa !5
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = mul nsw i32 %131, %132
  %134 = add nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = mul i64 8, %135
  %137 = call noalias ptr @malloc(i64 noundef %136) #7
  %138 = load ptr, ptr %30, align 8, !tbaa !5
  %139 = getelementptr inbounds ptr, ptr %138, i64 1
  store ptr %137, ptr %139, align 8, !tbaa !5
  %140 = load ptr, ptr %30, align 8, !tbaa !5
  %141 = getelementptr inbounds ptr, ptr %140, i64 1
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = icmp eq ptr %142, null
  br i1 %143, label %144, label %156

144:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = mul nsw i32 %145, %146
  %148 = add nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = mul i64 8, %149
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %46) #6
  %152 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  %153 = load i32, ptr %45, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %152, ptr noundef @.str, ptr noundef @.str.29, i32 noundef %153)
  %154 = load ptr, ptr %19, align 8, !tbaa !5
  %155 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %154, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1097, ptr noundef %155)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %46) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %489

156:                                              ; preds = %128
  store i32 2, ptr %21, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %175, %156
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = icmp sle i32 %158, %159
  br i1 %160, label %161, label %178

161:                                              ; preds = %157
  %162 = load ptr, ptr %30, align 8, !tbaa !5
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = sub nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %162, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  %171 = load ptr, ptr %30, align 8, !tbaa !5
  %172 = load i32, ptr %21, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %171, i64 %173
  store ptr %170, ptr %174, align 8, !tbaa !5
  br label %175

175:                                              ; preds = %161
  %176 = load i32, ptr %21, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %21, align 4, !tbaa !9
  br label %157, !llvm.loop !13

178:                                              ; preds = %157
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = mul i64 8, %180
  %182 = call noalias ptr @malloc(i64 noundef %181) #7
  store ptr %182, ptr %28, align 8, !tbaa !5
  %183 = load ptr, ptr %28, align 8, !tbaa !5
  %184 = icmp eq ptr %183, null
  br i1 %184, label %185, label %194

185:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = mul i64 8, %187
  %189 = trunc i64 %188 to i32
  store i32 %189, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %48) #6
  %190 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  %191 = load i32, ptr %47, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %190, ptr noundef @.str, ptr noundef @.str.30, i32 noundef %191)
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %192, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1102, ptr noundef %193)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %48) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %489

194:                                              ; preds = %178
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = mul i64 8, %196
  %198 = call noalias ptr @malloc(i64 noundef %197) #7
  store ptr %198, ptr %35, align 8, !tbaa !5
  %199 = load ptr, ptr %35, align 8, !tbaa !5
  %200 = icmp eq ptr %199, null
  br i1 %200, label %201, label %210

201:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = mul i64 8, %203
  %205 = trunc i64 %204 to i32
  store i32 %205, ptr %49, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %50) #6
  %206 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  %207 = load i32, ptr %49, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %206, ptr noundef @.str, ptr noundef @.str.31, i32 noundef %207)
  %208 = load ptr, ptr %19, align 8, !tbaa !5
  %209 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %208, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1103, ptr noundef %209)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %50) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  br label %489

210:                                              ; preds = %194
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = mul i64 8, %212
  %214 = call noalias ptr @malloc(i64 noundef %213) #7
  store ptr %214, ptr %29, align 8, !tbaa !5
  %215 = load ptr, ptr %29, align 8, !tbaa !5
  %216 = icmp eq ptr %215, null
  br i1 %216, label %217, label %226

217:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = mul i64 8, %219
  %221 = trunc i64 %220 to i32
  store i32 %221, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %52) #6
  %222 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  %223 = load i32, ptr %51, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %222, ptr noundef @.str, ptr noundef @.str.32, i32 noundef %223)
  %224 = load ptr, ptr %19, align 8, !tbaa !5
  %225 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %224, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1104, ptr noundef %225)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %52) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  br label %489

226:                                              ; preds = %210
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %245, %226
  %228 = load i32, ptr %21, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = icmp sle i32 %228, %229
  br i1 %230, label %231, label %248

231:                                              ; preds = %227
  %232 = load double, ptr %34, align 8, !tbaa !11
  %233 = load ptr, ptr %13, align 8, !tbaa !5
  %234 = load i32, ptr %21, align 4, !tbaa !9
  %235 = sub nsw i32 %234, 1
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds double, ptr %233, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !11
  %239 = fmul double %232, %238
  %240 = load ptr, ptr %35, align 8, !tbaa !5
  %241 = load i32, ptr %21, align 4, !tbaa !9
  %242 = sub nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %240, i64 %243
  store double %239, ptr %244, align 8, !tbaa !11
  br label %245

245:                                              ; preds = %231
  %246 = load i32, ptr %21, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %21, align 4, !tbaa !9
  br label %227, !llvm.loop !15

248:                                              ; preds = %227
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %466, %248
  %250 = load i32, ptr %20, align 4, !tbaa !9
  %251 = load i32, ptr %24, align 4, !tbaa !9
  %252 = icmp sle i32 %250, %251
  br i1 %252, label %253, label %469

253:                                              ; preds = %249
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = load ptr, ptr %17, align 8, !tbaa !5
  %258 = load ptr, ptr %28, align 8, !tbaa !5
  %259 = load ptr, ptr %19, align 8, !tbaa !5
  %260 = call i32 %254(ptr noundef %255, i32 noundef %256, ptr noundef %257, ptr noundef %258, ptr noundef %259)
  %261 = icmp eq i32 %260, 1
  br i1 %261, label %262, label %267

262:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 2048, ptr %53) #6
  %263 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  %264 = load ptr, ptr %19, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %263, ptr noundef @.str.3, ptr noundef @.str.33, ptr noundef %264)
  %265 = load ptr, ptr %19, align 8, !tbaa !5
  %266 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %265, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1115, ptr noundef %266)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %53) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  br label %489

267:                                              ; preds = %253
  %268 = load ptr, ptr %18, align 8, !tbaa !5
  %269 = load i32, ptr %268, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  %271 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %270, ptr %271, align 4, !tbaa !9
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %286, %267
  %273 = load i32, ptr %21, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = icmp sle i32 %273, %274
  br i1 %275, label %276, label %289

276:                                              ; preds = %272
  %277 = load ptr, ptr %28, align 8, !tbaa !5
  %278 = load i32, ptr %21, align 4, !tbaa !9
  %279 = sub nsw i32 %278, 1
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds double, ptr %277, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !11
  %283 = call double @llvm.fabs.f64(double %282)
  %284 = load double, ptr %26, align 8, !tbaa !11
  %285 = fadd double %284, %283
  store double %285, ptr %26, align 8, !tbaa !11
  br label %286

286:                                              ; preds = %276
  %287 = load i32, ptr %21, align 4, !tbaa !9
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %21, align 4, !tbaa !9
  br label %272, !llvm.loop !16

289:                                              ; preds = %272
  %290 = load double, ptr %26, align 8, !tbaa !11
  %291 = load double, ptr %16, align 8, !tbaa !11
  %292 = fcmp ole double %290, %291
  br i1 %292, label %293, label %294

293:                                              ; preds = %289
  store i32 1, ptr %33, align 4, !tbaa !9
  br label %469

294:                                              ; preds = %289
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %393, %294
  %296 = load i32, ptr %21, align 4, !tbaa !9
  %297 = load i32, ptr %14, align 4, !tbaa !9
  %298 = icmp sle i32 %296, %297
  br i1 %298, label %299, label %396

299:                                              ; preds = %295
  %300 = load ptr, ptr %28, align 8, !tbaa !5
  %301 = load i32, ptr %21, align 4, !tbaa !9
  %302 = sub nsw i32 %301, 1
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds double, ptr %300, i64 %303
  %305 = load double, ptr %304, align 8, !tbaa !11
  %306 = fcmp olt double %305, 0.000000e+00
  br i1 %306, label %307, label %315

307:                                              ; preds = %299
  %308 = load ptr, ptr %35, align 8, !tbaa !5
  %309 = load i32, ptr %21, align 4, !tbaa !9
  %310 = sub nsw i32 %309, 1
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds double, ptr %308, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !11
  %314 = fmul double %313, -1.000000e+00
  store double %314, ptr %312, align 8, !tbaa !11
  br label %315

315:                                              ; preds = %307, %299
  %316 = load ptr, ptr %35, align 8, !tbaa !5
  %317 = load i32, ptr %21, align 4, !tbaa !9
  %318 = sub nsw i32 %317, 1
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds double, ptr %316, i64 %319
  %321 = load double, ptr %320, align 8, !tbaa !11
  %322 = load ptr, ptr %12, align 8, !tbaa !5
  %323 = load i32, ptr %21, align 4, !tbaa !9
  %324 = sub nsw i32 %323, 1
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds double, ptr %322, i64 %325
  %327 = load double, ptr %326, align 8, !tbaa !11
  %328 = fadd double %327, %321
  store double %328, ptr %326, align 8, !tbaa !11
  %329 = load ptr, ptr %11, align 8, !tbaa !5
  %330 = load ptr, ptr %12, align 8, !tbaa !5
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = load ptr, ptr %17, align 8, !tbaa !5
  %333 = load ptr, ptr %29, align 8, !tbaa !5
  %334 = load ptr, ptr %19, align 8, !tbaa !5
  %335 = call i32 %329(ptr noundef %330, i32 noundef %331, ptr noundef %332, ptr noundef %333, ptr noundef %334)
  %336 = icmp eq i32 %335, 1
  br i1 %336, label %337, label %342

337:                                              ; preds = %315
  call void @llvm.lifetime.start.p0(i64 2048, ptr %54) #6
  %338 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  %339 = load ptr, ptr %19, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %338, ptr noundef @.str.3, ptr noundef @.str.34, ptr noundef %339)
  %340 = load ptr, ptr %19, align 8, !tbaa !5
  %341 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %340, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1143, ptr noundef %341)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %54) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  br label %489

342:                                              ; preds = %315
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %343

343:                                              ; preds = %376, %342
  %344 = load i32, ptr %22, align 4, !tbaa !9
  %345 = load i32, ptr %14, align 4, !tbaa !9
  %346 = icmp sle i32 %344, %345
  br i1 %346, label %347, label %379

347:                                              ; preds = %343
  %348 = load ptr, ptr %29, align 8, !tbaa !5
  %349 = load i32, ptr %22, align 4, !tbaa !9
  %350 = sub nsw i32 %349, 1
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds double, ptr %348, i64 %351
  %353 = load double, ptr %352, align 8, !tbaa !11
  %354 = load ptr, ptr %28, align 8, !tbaa !5
  %355 = load i32, ptr %22, align 4, !tbaa !9
  %356 = sub nsw i32 %355, 1
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds double, ptr %354, i64 %357
  %359 = load double, ptr %358, align 8, !tbaa !11
  %360 = fsub double %353, %359
  %361 = load ptr, ptr %35, align 8, !tbaa !5
  %362 = load i32, ptr %21, align 4, !tbaa !9
  %363 = sub nsw i32 %362, 1
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds double, ptr %361, i64 %364
  %366 = load double, ptr %365, align 8, !tbaa !11
  %367 = fdiv double %360, %366
  %368 = load ptr, ptr %30, align 8, !tbaa !5
  %369 = load i32, ptr %22, align 4, !tbaa !9
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds ptr, ptr %368, i64 %370
  %372 = load ptr, ptr %371, align 8, !tbaa !5
  %373 = load i32, ptr %21, align 4, !tbaa !9
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds double, ptr %372, i64 %374
  store double %367, ptr %375, align 8, !tbaa !11
  br label %376

376:                                              ; preds = %347
  %377 = load i32, ptr %22, align 4, !tbaa !9
  %378 = add nsw i32 %377, 1
  store i32 %378, ptr %22, align 4, !tbaa !9
  br label %343, !llvm.loop !17

379:                                              ; preds = %343
  %380 = load ptr, ptr %35, align 8, !tbaa !5
  %381 = load i32, ptr %21, align 4, !tbaa !9
  %382 = sub nsw i32 %381, 1
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds double, ptr %380, i64 %383
  %385 = load double, ptr %384, align 8, !tbaa !11
  %386 = load ptr, ptr %12, align 8, !tbaa !5
  %387 = load i32, ptr %21, align 4, !tbaa !9
  %388 = sub nsw i32 %387, 1
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds double, ptr %386, i64 %389
  %391 = load double, ptr %390, align 8, !tbaa !11
  %392 = fsub double %391, %385
  store double %392, ptr %390, align 8, !tbaa !11
  br label %393

393:                                              ; preds = %379
  %394 = load i32, ptr %21, align 4, !tbaa !9
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %21, align 4, !tbaa !9
  br label %295, !llvm.loop !18

396:                                              ; preds = %295
  %397 = load ptr, ptr %18, align 8, !tbaa !5
  %398 = load i32, ptr %397, align 4, !tbaa !9
  %399 = load i32, ptr %14, align 4, !tbaa !9
  %400 = add nsw i32 %398, %399
  %401 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %400, ptr %401, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %402

402:                                              ; preds = %418, %396
  %403 = load i32, ptr %21, align 4, !tbaa !9
  %404 = load i32, ptr %14, align 4, !tbaa !9
  %405 = icmp sle i32 %403, %404
  br i1 %405, label %406, label %421

406:                                              ; preds = %402
  %407 = load ptr, ptr %28, align 8, !tbaa !5
  %408 = load i32, ptr %21, align 4, !tbaa !9
  %409 = sub nsw i32 %408, 1
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds double, ptr %407, i64 %410
  %412 = load double, ptr %411, align 8, !tbaa !11
  %413 = fneg double %412
  %414 = load ptr, ptr %31, align 8, !tbaa !5
  %415 = load i32, ptr %21, align 4, !tbaa !9
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds double, ptr %414, i64 %416
  store double %413, ptr %417, align 8, !tbaa !11
  br label %418

418:                                              ; preds = %406
  %419 = load i32, ptr %21, align 4, !tbaa !9
  %420 = add nsw i32 %419, 1
  store i32 %420, ptr %21, align 4, !tbaa !9
  br label %402, !llvm.loop !19

421:                                              ; preds = %402
  %422 = load ptr, ptr %30, align 8, !tbaa !5
  %423 = load i32, ptr %14, align 4, !tbaa !9
  %424 = load ptr, ptr %23, align 8, !tbaa !5
  %425 = load ptr, ptr %32, align 8, !tbaa !5
  %426 = call i32 @ludcmp(ptr noundef %422, i32 noundef %423, ptr noundef %424, ptr noundef %27, ptr noundef %425)
  %427 = load ptr, ptr %30, align 8, !tbaa !5
  %428 = load i32, ptr %14, align 4, !tbaa !9
  %429 = load ptr, ptr %23, align 8, !tbaa !5
  %430 = load ptr, ptr %31, align 8, !tbaa !5
  %431 = call i32 @lubksb(ptr noundef %427, i32 noundef %428, ptr noundef %429, ptr noundef %430)
  store double 0.000000e+00, ptr %25, align 8, !tbaa !11
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %432

432:                                              ; preds = %457, %421
  %433 = load i32, ptr %21, align 4, !tbaa !9
  %434 = load i32, ptr %14, align 4, !tbaa !9
  %435 = icmp sle i32 %433, %434
  br i1 %435, label %436, label %460

436:                                              ; preds = %432
  %437 = load ptr, ptr %31, align 8, !tbaa !5
  %438 = load i32, ptr %21, align 4, !tbaa !9
  %439 = sext i32 %438 to i64
  %440 = getelementptr inbounds double, ptr %437, i64 %439
  %441 = load double, ptr %440, align 8, !tbaa !11
  %442 = call double @llvm.fabs.f64(double %441)
  %443 = load double, ptr %25, align 8, !tbaa !11
  %444 = fadd double %443, %442
  store double %444, ptr %25, align 8, !tbaa !11
  %445 = load ptr, ptr %31, align 8, !tbaa !5
  %446 = load i32, ptr %21, align 4, !tbaa !9
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds double, ptr %445, i64 %447
  %449 = load double, ptr %448, align 8, !tbaa !11
  %450 = load ptr, ptr %12, align 8, !tbaa !5
  %451 = load i32, ptr %21, align 4, !tbaa !9
  %452 = sub nsw i32 %451, 1
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds double, ptr %450, i64 %453
  %455 = load double, ptr %454, align 8, !tbaa !11
  %456 = fadd double %455, %449
  store double %456, ptr %454, align 8, !tbaa !11
  br label %457

457:                                              ; preds = %436
  %458 = load i32, ptr %21, align 4, !tbaa !9
  %459 = add nsw i32 %458, 1
  store i32 %459, ptr %21, align 4, !tbaa !9
  br label %432, !llvm.loop !20

460:                                              ; preds = %432
  %461 = load double, ptr %25, align 8, !tbaa !11
  %462 = load double, ptr %15, align 8, !tbaa !11
  %463 = fcmp ole double %461, %462
  br i1 %463, label %464, label %465

464:                                              ; preds = %460
  store i32 1, ptr %33, align 4, !tbaa !9
  br label %469

465:                                              ; preds = %460
  br label %466

466:                                              ; preds = %465
  %467 = load i32, ptr %20, align 4, !tbaa !9
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %20, align 4, !tbaa !9
  br label %249, !llvm.loop !21

469:                                              ; preds = %464, %293, %249
  %470 = load ptr, ptr %31, align 8, !tbaa !5
  call void @free(ptr noundef %470) #6
  %471 = load ptr, ptr %32, align 8, !tbaa !5
  call void @free(ptr noundef %471) #6
  %472 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %472) #6
  %473 = load ptr, ptr %30, align 8, !tbaa !5
  %474 = getelementptr inbounds ptr, ptr %473, i64 1
  %475 = load ptr, ptr %474, align 8, !tbaa !5
  call void @free(ptr noundef %475) #6
  %476 = load ptr, ptr %30, align 8, !tbaa !5
  call void @free(ptr noundef %476) #6
  %477 = load ptr, ptr %28, align 8, !tbaa !5
  call void @free(ptr noundef %477) #6
  %478 = load ptr, ptr %35, align 8, !tbaa !5
  call void @free(ptr noundef %478) #6
  %479 = load ptr, ptr %29, align 8, !tbaa !5
  call void @free(ptr noundef %479) #6
  %480 = load i32, ptr %33, align 4, !tbaa !9
  %481 = icmp eq i32 %480, 1
  br i1 %481, label %482, label %483

482:                                              ; preds = %469
  store i32 0, ptr %10, align 4
  store i32 1, ptr %38, align 4
  br label %489

483:                                              ; preds = %469
  call void @llvm.lifetime.start.p0(i64 2048, ptr %55) #6
  %484 = getelementptr inbounds [2048 x i8], ptr %55, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %484, ptr noundef @.str.35)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %56) #6
  %485 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %486 = getelementptr inbounds [2048 x i8], ptr %55, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %485, ptr noundef @.str.36, ptr noundef %486)
  %487 = load ptr, ptr %19, align 8, !tbaa !5
  %488 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %487, ptr noundef @.str.2, ptr noundef @__func__.fzero_Newton, i32 noundef 1179, ptr noundef %488)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %56) #6
  store i32 1, ptr %10, align 4
  store i32 1, ptr %38, align 4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %55) #6
  br label %489

489:                                              ; preds = %483, %482, %337, %262, %217, %201, %185, %144, %118, %100, %82, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  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 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  %490 = load i32, ptr %10, align 4
  ret i32 %490
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


; 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 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.fzero_Newton = external hidden unnamed_addr constant [13 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [187 x i8], align 1
@.str.36 = 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

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

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

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @fzero_Newton(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, double noundef %4, double noundef %5, ptr noundef %6, ptr nocapture noundef %7, ptr noundef %8) local_unnamed_addr #4 {
  %10 = alloca double, align 8
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %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
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  %22 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %23 = add i32 %3, 1
  %24 = sext i32 %23 to i64
  %25 = shl nsw i64 %24, 2
  %26 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %30

28:                                               ; preds = %9
  %29 = trunc i64 %25 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.25, i32 noundef %29) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1092, ptr noundef nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #6
  br label %217

30:                                               ; preds = %9
  %31 = shl nsw i64 %24, 3
  %32 = tail call noalias ptr @malloc(i64 noundef %31) #7
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %36

34:                                               ; preds = %30
  %35 = trunc i64 %31 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.26, i32 noundef %35) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1093, ptr noundef nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #6
  br label %217

36:                                               ; preds = %30
  %37 = tail call noalias ptr @malloc(i64 noundef %31) #7
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = trunc i64 %31 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.27, i32 noundef %40) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1094, ptr noundef nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #6
  br label %217

41:                                               ; preds = %36
  %42 = tail call noalias ptr @malloc(i64 noundef %31) #7
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %41
  %45 = trunc i64 %31 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str, ptr noundef nonnull @.str.28, i32 noundef %45) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1095, ptr noundef nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #6
  br label %217

46:                                               ; preds = %41
  store ptr null, ptr %42, align 8, !tbaa !5
  %47 = mul nsw i32 %3, %3
  %48 = add nuw nsw i32 %47, 1
  %49 = zext nneg i32 %48 to i64
  %50 = shl nuw nsw i64 %49, 3
  %51 = tail call noalias ptr @malloc(i64 noundef %50) #7
  %52 = getelementptr inbounds i8, ptr %42, i64 8
  store ptr %51, ptr %52, align 8, !tbaa !5
  %53 = icmp eq ptr %51, null
  br i1 %53, label %58, label %.preheader180

.preheader180:                                    ; preds = %46
  %.not181 = icmp slt i32 %3, 2
  br i1 %.not181, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader180
  %54 = zext nneg i32 %3 to i64
  %wide.trip.count = zext i32 %23 to i64
  %scevgep = getelementptr i8, ptr %42, i64 8
  %load_initial = load ptr, ptr %scevgep, align 8
  %55 = add nsw i64 %wide.trip.count, -2
  %56 = add nsw i64 %wide.trip.count, -3
  %xtraiter = and i64 %55, 7
  %57 = icmp ult i64 %56, 7
  br i1 %57, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %55, -8
  %invariant.gep294 = getelementptr i8, ptr %42, i64 16
  %invariant.gep296 = getelementptr i8, ptr %42, i64 24
  %invariant.gep298 = getelementptr i8, ptr %42, i64 32
  %invariant.gep300 = getelementptr i8, ptr %42, i64 40
  %invariant.gep302 = getelementptr i8, ptr %42, i64 48
  %invariant.gep304 = getelementptr i8, ptr %42, i64 56
  br label %60

58:                                               ; preds = %46
  %59 = trunc i64 %50 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.29, i32 noundef %59) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1097, ptr noundef nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #6
  br label %217

60:                                               ; preds = %60, %.lr.ph.new
  %store_forwarded = phi ptr [ %load_initial, %.lr.ph.new ], [ %70, %60 ]
  %indvars.iv = phi i64 [ 2, %.lr.ph.new ], [ %indvars.iv.next.7, %60 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.7, %60 ]
  %61 = getelementptr ptr, ptr %42, i64 %indvars.iv
  %62 = getelementptr inbounds double, ptr %store_forwarded, i64 %54
  store ptr %62, ptr %61, align 8, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %63 = getelementptr ptr, ptr %42, i64 %indvars.iv.next
  %64 = getelementptr inbounds double, ptr %62, i64 %54
  store ptr %64, ptr %63, align 8, !tbaa !5
  %gep295 = getelementptr ptr, ptr %invariant.gep294, i64 %indvars.iv
  %65 = getelementptr inbounds double, ptr %64, i64 %54
  store ptr %65, ptr %gep295, align 8, !tbaa !5
  %gep297 = getelementptr ptr, ptr %invariant.gep296, i64 %indvars.iv
  %66 = getelementptr inbounds double, ptr %65, i64 %54
  store ptr %66, ptr %gep297, align 8, !tbaa !5
  %gep299 = getelementptr ptr, ptr %invariant.gep298, i64 %indvars.iv
  %67 = getelementptr inbounds double, ptr %66, i64 %54
  store ptr %67, ptr %gep299, align 8, !tbaa !5
  %gep301 = getelementptr ptr, ptr %invariant.gep300, i64 %indvars.iv
  %68 = getelementptr inbounds double, ptr %67, i64 %54
  store ptr %68, ptr %gep301, align 8, !tbaa !5
  %gep303 = getelementptr ptr, ptr %invariant.gep302, i64 %indvars.iv
  %69 = getelementptr inbounds double, ptr %68, i64 %54
  store ptr %69, ptr %gep303, align 8, !tbaa !5
  %gep305 = getelementptr ptr, ptr %invariant.gep304, i64 %indvars.iv
  %70 = getelementptr inbounds double, ptr %69, i64 %54
  store ptr %70, ptr %gep305, align 8, !tbaa !5
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %60, !llvm.loop !9

._crit_edge.loopexit.unr-lcssa:                   ; preds = %60, %.lr.ph
  %store_forwarded.unr = phi ptr [ %load_initial, %.lr.ph ], [ %70, %60 ]
  %indvars.iv.unr = phi i64 [ 2, %.lr.ph ], [ %indvars.iv.next.7, %60 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %store_forwarded.epil = phi ptr [ %72, %.epil.preheader ], [ %store_forwarded.unr, %._crit_edge.loopexit.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %71 = getelementptr ptr, ptr %42, i64 %indvars.iv.epil
  %72 = getelementptr inbounds double, ptr %store_forwarded.epil, i64 %54
  store ptr %72, ptr %71, align 8, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader180
  %73 = sext i32 %3 to i64
  %74 = shl nsw i64 %73, 3
  %75 = tail call noalias ptr @malloc(i64 noundef %74) #7
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %79

77:                                               ; preds = %._crit_edge
  %78 = trunc i64 %74 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.30, i32 noundef %78) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1102, ptr noundef nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #6
  br label %217

79:                                               ; preds = %._crit_edge
  %80 = tail call noalias ptr @malloc(i64 noundef %74) #7
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  %83 = trunc i64 %74 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.31, i32 noundef %83) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1103, ptr noundef nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #6
  br label %217

84:                                               ; preds = %79
  %85 = tail call noalias ptr @malloc(i64 noundef %74) #7
  %86 = icmp eq ptr %85, null
  br i1 %86, label %95, label %.preheader179

.preheader179:                                    ; preds = %84
  %.not171183 = icmp slt i32 %3, 1
  br i1 %.not171183, label %.preheader178, label %.lr.ph185.preheader

.lr.ph185.preheader:                              ; preds = %.preheader179
  %wide.trip.count222 = zext i32 %23 to i64
  %87 = add nsw i64 %wide.trip.count222, -1
  %min.iters.check = icmp ult i32 %23, 5
  br i1 %min.iters.check, label %.lr.ph185.preheader272, label %vector.ph

.lr.ph185.preheader272:                           ; preds = %middle.block, %.lr.ph185.preheader
  %indvars.iv219.ph = phi i64 [ 1, %.lr.ph185.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph185

vector.ph:                                        ; preds = %.lr.ph185.preheader
  %n.vec = and i64 %87, -4
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %88 = getelementptr inbounds double, ptr %2, i64 %index
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %wide.load = load <2 x double>, ptr %88, align 8, !tbaa !13
  %wide.load254 = load <2 x double>, ptr %89, align 8, !tbaa !13
  %90 = fmul <2 x double> %wide.load, <double 1.000000e-03, double 1.000000e-03>
  %91 = fmul <2 x double> %wide.load254, <double 1.000000e-03, double 1.000000e-03>
  %92 = getelementptr inbounds double, ptr %80, i64 %index
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  store <2 x double> %90, ptr %92, align 8, !tbaa !13
  store <2 x double> %91, ptr %93, align 8, !tbaa !13
  %index.next = add nuw i64 %index, 4
  %94 = icmp eq i64 %index.next, %n.vec
  br i1 %94, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %87, %n.vec
  br i1 %cmp.n, label %.preheader178, label %.lr.ph185.preheader272

95:                                               ; preds = %84
  %96 = trunc i64 %74 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.32, i32 noundef %96) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1104, ptr noundef nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #6
  br label %217

.preheader178:                                    ; preds = %.lr.ph185, %middle.block, %.preheader179
  %invariant.gep = getelementptr i8, ptr %75, i64 -8
  %invariant.gep207 = getelementptr i8, ptr %1, i64 -8
  %wide.trip.count227 = zext i32 %23 to i64
  %wide.trip.count237 = zext i32 %23 to i64
  %wide.trip.count242 = zext i32 %23 to i64
  %97 = fcmp ult double %5, 0.000000e+00
  %wide.trip.count247 = zext i32 %23 to i64
  %98 = add nsw i64 %wide.trip.count227, -1
  %99 = add nsw i64 %wide.trip.count247, -1
  %100 = add nsw i64 %wide.trip.count247, -2
  %xtraiter273 = and i64 %99, 3
  %101 = icmp ult i64 %100, 3
  %unroll_iter277 = and i64 %99, -4
  %invariant.gep306 = getelementptr i8, ptr %invariant.gep, i64 16
  %invariant.gep308 = getelementptr i8, ptr %invariant.gep, i64 24
  %lcmp.mod275.not = icmp eq i64 %xtraiter273, 0
  %xtraiter279 = and i64 %99, 1
  %102 = icmp eq i64 %100, 0
  %unroll_iter282 = and i64 %99, -2
  %invariant.gep310 = getelementptr inbounds i8, ptr %42, i64 8
  %lcmp.mod281.not = icmp eq i64 %xtraiter279, 0
  %min.iters.check257 = icmp ult i32 %23, 5
  %n.vec260 = and i64 %98, -4
  %ind.end261 = or disjoint i64 %n.vec260, 1
  %cmp.n269 = icmp eq i64 %98, %n.vec260
  %xtraiter284 = and i64 %99, 1
  %103 = icmp eq i64 %100, 0
  %unroll_iter288 = and i64 %99, -2
  %invariant.gep312 = getelementptr inbounds i8, ptr %32, i64 8
  %lcmp.mod286.not = icmp eq i64 %xtraiter284, 0
  br label %111

.lr.ph185:                                        ; preds = %.lr.ph185.preheader272, %.lr.ph185
  %indvars.iv219 = phi i64 [ %indvars.iv.next220, %.lr.ph185 ], [ %indvars.iv219.ph, %.lr.ph185.preheader272 ]
  %104 = add nsw i64 %indvars.iv219, -1
  %105 = getelementptr inbounds double, ptr %2, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !13
  %107 = fmul double %106, 1.000000e-03
  %108 = getelementptr inbounds double, ptr %80, i64 %104
  store double %107, ptr %108, align 8, !tbaa !13
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %exitcond223.not = icmp eq i64 %indvars.iv.next220, %wide.trip.count222
  br i1 %exitcond223.not, label %.preheader178, label %.lr.ph185, !llvm.loop !18

109:                                              ; preds = %._crit_edge214
  %110 = add nuw nsw i32 %.0156216, 1
  %exitcond249.not = icmp eq i32 %110, 21
  br i1 %exitcond249.not, label %215, label %111, !llvm.loop !19

111:                                              ; preds = %.preheader178, %109
  %.0156216 = phi i32 [ 1, %.preheader178 ], [ %110, %109 ]
  %112 = call i32 %0(ptr noundef %1, i32 noundef %3, ptr noundef %6, ptr noundef nonnull %75, ptr noundef %8) #6
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %19) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.33, ptr noundef %8) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1115, ptr noundef nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #6
  br label %217

115:                                              ; preds = %111
  %116 = load i32, ptr %7, align 4, !tbaa !20
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %7, align 4, !tbaa !20
  br i1 %.not171183, label %._crit_edge191.thread, label %.lr.ph190.preheader

.lr.ph190.preheader:                              ; preds = %115
  br i1 %101, label %._crit_edge191.unr-lcssa, label %.lr.ph190

.lr.ph190:                                        ; preds = %.lr.ph190.preheader, %.lr.ph190
  %indvars.iv224 = phi i64 [ %indvars.iv.next225.3, %.lr.ph190 ], [ 1, %.lr.ph190.preheader ]
  %.0160187 = phi double [ %129, %.lr.ph190 ], [ 0.000000e+00, %.lr.ph190.preheader ]
  %niter278 = phi i64 [ %niter278.next.3, %.lr.ph190 ], [ 0, %.lr.ph190.preheader ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv224
  %118 = load double, ptr %gep, align 8, !tbaa !13
  %119 = call double @llvm.fabs.f64(double %118)
  %120 = fadd double %.0160187, %119
  %gep.1 = getelementptr double, ptr %75, i64 %indvars.iv224
  %121 = load double, ptr %gep.1, align 8, !tbaa !13
  %122 = call double @llvm.fabs.f64(double %121)
  %123 = fadd double %120, %122
  %gep307 = getelementptr double, ptr %invariant.gep306, i64 %indvars.iv224
  %124 = load double, ptr %gep307, align 8, !tbaa !13
  %125 = call double @llvm.fabs.f64(double %124)
  %126 = fadd double %123, %125
  %gep309 = getelementptr double, ptr %invariant.gep308, i64 %indvars.iv224
  %127 = load double, ptr %gep309, align 8, !tbaa !13
  %128 = call double @llvm.fabs.f64(double %127)
  %129 = fadd double %126, %128
  %indvars.iv.next225.3 = add nuw nsw i64 %indvars.iv224, 4
  %niter278.next.3 = add i64 %niter278, 4
  %niter278.ncmp.3 = icmp eq i64 %niter278.next.3, %unroll_iter277
  br i1 %niter278.ncmp.3, label %._crit_edge191.unr-lcssa, label %.lr.ph190, !llvm.loop !22

._crit_edge191.unr-lcssa:                         ; preds = %.lr.ph190, %.lr.ph190.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph190.preheader ], [ %129, %.lr.ph190 ]
  %indvars.iv224.unr = phi i64 [ 1, %.lr.ph190.preheader ], [ %indvars.iv.next225.3, %.lr.ph190 ]
  %.0160187.unr = phi double [ 0.000000e+00, %.lr.ph190.preheader ], [ %129, %.lr.ph190 ]
  br i1 %lcmp.mod275.not, label %._crit_edge191, label %.lr.ph190.epil

.lr.ph190.epil:                                   ; preds = %._crit_edge191.unr-lcssa, %.lr.ph190.epil
  %indvars.iv224.epil = phi i64 [ %indvars.iv.next225.epil, %.lr.ph190.epil ], [ %indvars.iv224.unr, %._crit_edge191.unr-lcssa ]
  %.0160187.epil = phi double [ %132, %.lr.ph190.epil ], [ %.0160187.unr, %._crit_edge191.unr-lcssa ]
  %epil.iter274 = phi i64 [ %epil.iter274.next, %.lr.ph190.epil ], [ 0, %._crit_edge191.unr-lcssa ]
  %gep.epil = getelementptr double, ptr %invariant.gep, i64 %indvars.iv224.epil
  %130 = load double, ptr %gep.epil, align 8, !tbaa !13
  %131 = call double @llvm.fabs.f64(double %130)
  %132 = fadd double %.0160187.epil, %131
  %indvars.iv.next225.epil = add nuw nsw i64 %indvars.iv224.epil, 1
  %epil.iter274.next = add i64 %epil.iter274, 1
  %epil.iter274.cmp.not = icmp eq i64 %epil.iter274.next, %xtraiter273
  br i1 %epil.iter274.cmp.not, label %._crit_edge191, label %.lr.ph190.epil, !llvm.loop !23

._crit_edge191:                                   ; preds = %.lr.ph190.epil, %._crit_edge191.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge191.unr-lcssa ], [ %132, %.lr.ph190.epil ]
  %133 = fcmp ugt double %.lcssa, %5
  br i1 %133, label %.preheader177, label %213

._crit_edge191.thread:                            ; preds = %115
  br i1 %97, label %._crit_edge199.thread, label %213

.preheader177:                                    ; preds = %._crit_edge191
  br i1 %.not171183, label %._crit_edge199.thread, label %.lr.ph198

.lr.ph198:                                        ; preds = %.preheader177, %._crit_edge195
  %indvars.iv234 = phi i64 [ %indvars.iv.next235, %._crit_edge195 ], [ 1, %.preheader177 ]
  %134 = add nsw i64 %indvars.iv234, -1
  %135 = getelementptr inbounds double, ptr %75, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !13
  %137 = fcmp olt double %136, 0.000000e+00
  %138 = getelementptr inbounds double, ptr %80, i64 %134
  %139 = load double, ptr %138, align 8, !tbaa !13
  br i1 %137, label %140, label %.lr.ph198._crit_edge

140:                                              ; preds = %.lr.ph198
  %141 = fneg double %139
  store double %141, ptr %138, align 8, !tbaa !13
  br label %.lr.ph198._crit_edge

.lr.ph198._crit_edge:                             ; preds = %.lr.ph198, %140
  %142 = phi double [ %141, %140 ], [ %139, %.lr.ph198 ]
  %143 = getelementptr inbounds double, ptr %1, i64 %134
  %144 = load double, ptr %143, align 8, !tbaa !13
  %145 = fadd double %142, %144
  store double %145, ptr %143, align 8, !tbaa !13
  %146 = call i32 %0(ptr noundef %1, i32 noundef %3, ptr noundef %6, ptr noundef nonnull %85, ptr noundef %8) #6
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %148, label %.lr.ph194.preheader

.lr.ph194.preheader:                              ; preds = %.lr.ph198._crit_edge
  br i1 %102, label %._crit_edge195.unr-lcssa, label %.lr.ph194

148:                                              ; preds = %.lr.ph198._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %20) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %20, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.34, ptr noundef %8) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1143, ptr noundef nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %20) #6
  br label %217

.lr.ph194:                                        ; preds = %.lr.ph194.preheader, %.lr.ph194
  %indvars.iv229 = phi i64 [ %indvars.iv.next230.1, %.lr.ph194 ], [ 1, %.lr.ph194.preheader ]
  %niter283 = phi i64 [ %niter283.next.1, %.lr.ph194 ], [ 0, %.lr.ph194.preheader ]
  %149 = add nsw i64 %indvars.iv229, -1
  %150 = getelementptr inbounds double, ptr %85, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !13
  %152 = getelementptr inbounds double, ptr %75, i64 %149
  %153 = load double, ptr %152, align 8, !tbaa !13
  %154 = fsub double %151, %153
  %155 = fdiv double %154, %142
  %156 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv229
  %157 = load ptr, ptr %156, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 %indvars.iv234
  store double %155, ptr %158, align 8, !tbaa !13
  %159 = getelementptr inbounds double, ptr %85, i64 %indvars.iv229
  %160 = load double, ptr %159, align 8, !tbaa !13
  %161 = getelementptr inbounds double, ptr %75, i64 %indvars.iv229
  %162 = load double, ptr %161, align 8, !tbaa !13
  %163 = fsub double %160, %162
  %164 = fdiv double %163, %142
  %gep311 = getelementptr inbounds ptr, ptr %invariant.gep310, i64 %indvars.iv229
  %165 = load ptr, ptr %gep311, align 8, !tbaa !5
  %166 = getelementptr inbounds double, ptr %165, i64 %indvars.iv234
  store double %164, ptr %166, align 8, !tbaa !13
  %indvars.iv.next230.1 = add nuw nsw i64 %indvars.iv229, 2
  %niter283.next.1 = add i64 %niter283, 2
  %niter283.ncmp.1 = icmp eq i64 %niter283.next.1, %unroll_iter282
  br i1 %niter283.ncmp.1, label %._crit_edge195.unr-lcssa, label %.lr.ph194, !llvm.loop !24

._crit_edge195.unr-lcssa:                         ; preds = %.lr.ph194, %.lr.ph194.preheader
  %indvars.iv229.unr = phi i64 [ 1, %.lr.ph194.preheader ], [ %indvars.iv.next230.1, %.lr.ph194 ]
  br i1 %lcmp.mod281.not, label %._crit_edge195, label %.lr.ph194.epil

.lr.ph194.epil:                                   ; preds = %._crit_edge195.unr-lcssa
  %167 = add nsw i64 %indvars.iv229.unr, -1
  %168 = getelementptr inbounds double, ptr %85, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !13
  %170 = getelementptr inbounds double, ptr %75, i64 %167
  %171 = load double, ptr %170, align 8, !tbaa !13
  %172 = fsub double %169, %171
  %173 = fdiv double %172, %142
  %174 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv229.unr
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 %indvars.iv234
  store double %173, ptr %176, align 8, !tbaa !13
  br label %._crit_edge195

._crit_edge195:                                   ; preds = %._crit_edge195.unr-lcssa, %.lr.ph194.epil
  %177 = load double, ptr %143, align 8, !tbaa !13
  %178 = fsub double %177, %142
  store double %178, ptr %143, align 8, !tbaa !13
  %indvars.iv.next235 = add nuw nsw i64 %indvars.iv234, 1
  %exitcond238.not = icmp eq i64 %indvars.iv.next235, %wide.trip.count237
  br i1 %exitcond238.not, label %._crit_edge199, label %.lr.ph198, !llvm.loop !25

._crit_edge199.thread:                            ; preds = %.preheader177, %._crit_edge191.thread
  %179 = add nsw i32 %117, %3
  store i32 %179, ptr %7, align 4, !tbaa !20
  br label %._crit_edge206

._crit_edge199:                                   ; preds = %._crit_edge195
  %.pre250 = load i32, ptr %7, align 4, !tbaa !20
  %180 = add nsw i32 %.pre250, %3
  store i32 %180, ptr %7, align 4, !tbaa !20
  br i1 %.not171183, label %._crit_edge214.critedge, label %.lr.ph205.preheader

.lr.ph205.preheader:                              ; preds = %._crit_edge199
  br i1 %min.iters.check257, label %.lr.ph205.preheader270, label %vector.body263

vector.body263:                                   ; preds = %.lr.ph205.preheader, %vector.body263
  %index264 = phi i64 [ %index.next268, %vector.body263 ], [ 0, %.lr.ph205.preheader ]
  %offset.idx265 = or disjoint i64 %index264, 1
  %181 = getelementptr double, ptr %75, i64 %index264
  %182 = getelementptr i8, ptr %181, i64 16
  %wide.load266 = load <2 x double>, ptr %181, align 8, !tbaa !13
  %wide.load267 = load <2 x double>, ptr %182, align 8, !tbaa !13
  %183 = fneg <2 x double> %wide.load266
  %184 = fneg <2 x double> %wide.load267
  %185 = getelementptr inbounds double, ptr %32, i64 %offset.idx265
  %186 = getelementptr inbounds i8, ptr %185, i64 16
  store <2 x double> %183, ptr %185, align 8, !tbaa !13
  store <2 x double> %184, ptr %186, align 8, !tbaa !13
  %index.next268 = add nuw i64 %index264, 4
  %187 = icmp eq i64 %index.next268, %n.vec260
  br i1 %187, label %middle.block255, label %vector.body263, !llvm.loop !26

middle.block255:                                  ; preds = %vector.body263
  br i1 %cmp.n269, label %._crit_edge206, label %.lr.ph205.preheader270

.lr.ph205.preheader270:                           ; preds = %middle.block255, %.lr.ph205.preheader
  %indvars.iv239.ph = phi i64 [ 1, %.lr.ph205.preheader ], [ %ind.end261, %middle.block255 ]
  br label %.lr.ph205

.lr.ph205:                                        ; preds = %.lr.ph205.preheader270, %.lr.ph205
  %indvars.iv239 = phi i64 [ %indvars.iv.next240, %.lr.ph205 ], [ %indvars.iv239.ph, %.lr.ph205.preheader270 ]
  %gep201 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv239
  %188 = load double, ptr %gep201, align 8, !tbaa !13
  %189 = fneg double %188
  %190 = getelementptr inbounds double, ptr %32, i64 %indvars.iv239
  store double %189, ptr %190, align 8, !tbaa !13
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %exitcond243.not = icmp eq i64 %indvars.iv.next240, %wide.trip.count242
  br i1 %exitcond243.not, label %._crit_edge206, label %.lr.ph205, !llvm.loop !27

._crit_edge206:                                   ; preds = %.lr.ph205, %middle.block255, %._crit_edge199.thread
  %191 = call i32 @ludcmp(ptr noundef nonnull %42, i32 noundef %3, ptr noundef nonnull %26, ptr noundef nonnull %10, ptr noundef nonnull %37)
  %192 = call i32 @lubksb(ptr noundef nonnull %42, i32 noundef %3, ptr noundef nonnull %26, ptr noundef nonnull %32)
  br i1 %.not171183, label %._crit_edge214, label %.lr.ph213.preheader

.lr.ph213.preheader:                              ; preds = %._crit_edge206
  br i1 %103, label %._crit_edge214.loopexit.unr-lcssa, label %.lr.ph213

.lr.ph213:                                        ; preds = %.lr.ph213.preheader, %.lr.ph213
  %indvars.iv244 = phi i64 [ %indvars.iv.next245.1, %.lr.ph213 ], [ 1, %.lr.ph213.preheader ]
  %.0159210 = phi double [ %201, %.lr.ph213 ], [ 0.000000e+00, %.lr.ph213.preheader ]
  %niter289 = phi i64 [ %niter289.next.1, %.lr.ph213 ], [ 0, %.lr.ph213.preheader ]
  %193 = getelementptr inbounds double, ptr %32, i64 %indvars.iv244
  %194 = load double, ptr %193, align 8, !tbaa !13
  %195 = call double @llvm.fabs.f64(double %194)
  %196 = fadd double %.0159210, %195
  %gep208 = getelementptr double, ptr %invariant.gep207, i64 %indvars.iv244
  %197 = load double, ptr %gep208, align 8, !tbaa !13
  %198 = fadd double %194, %197
  store double %198, ptr %gep208, align 8, !tbaa !13
  %gep313 = getelementptr inbounds double, ptr %invariant.gep312, i64 %indvars.iv244
  %199 = load double, ptr %gep313, align 8, !tbaa !13
  %200 = call double @llvm.fabs.f64(double %199)
  %201 = fadd double %196, %200
  %gep208.1 = getelementptr double, ptr %1, i64 %indvars.iv244
  %202 = load double, ptr %gep208.1, align 8, !tbaa !13
  %203 = fadd double %199, %202
  store double %203, ptr %gep208.1, align 8, !tbaa !13
  %indvars.iv.next245.1 = add nuw nsw i64 %indvars.iv244, 2
  %niter289.next.1 = add i64 %niter289, 2
  %niter289.ncmp.1 = icmp eq i64 %niter289.next.1, %unroll_iter288
  br i1 %niter289.ncmp.1, label %._crit_edge214.loopexit.unr-lcssa, label %.lr.ph213, !llvm.loop !28

._crit_edge214.critedge:                          ; preds = %._crit_edge199
  %204 = call i32 @ludcmp(ptr noundef nonnull %42, i32 noundef %3, ptr noundef nonnull %26, ptr noundef nonnull %10, ptr noundef nonnull %37)
  %205 = call i32 @lubksb(ptr noundef nonnull %42, i32 noundef %3, ptr noundef nonnull %26, ptr noundef nonnull %32)
  br label %._crit_edge214

._crit_edge214.loopexit.unr-lcssa:                ; preds = %.lr.ph213, %.lr.ph213.preheader
  %.lcssa271.ph = phi double [ poison, %.lr.ph213.preheader ], [ %201, %.lr.ph213 ]
  %indvars.iv244.unr = phi i64 [ 1, %.lr.ph213.preheader ], [ %indvars.iv.next245.1, %.lr.ph213 ]
  %.0159210.unr = phi double [ 0.000000e+00, %.lr.ph213.preheader ], [ %201, %.lr.ph213 ]
  br i1 %lcmp.mod286.not, label %._crit_edge214, label %.lr.ph213.epil

.lr.ph213.epil:                                   ; preds = %._crit_edge214.loopexit.unr-lcssa
  %206 = getelementptr inbounds double, ptr %32, i64 %indvars.iv244.unr
  %207 = load double, ptr %206, align 8, !tbaa !13
  %208 = call double @llvm.fabs.f64(double %207)
  %209 = fadd double %.0159210.unr, %208
  %gep208.epil = getelementptr double, ptr %invariant.gep207, i64 %indvars.iv244.unr
  %210 = load double, ptr %gep208.epil, align 8, !tbaa !13
  %211 = fadd double %207, %210
  store double %211, ptr %gep208.epil, align 8, !tbaa !13
  br label %._crit_edge214

._crit_edge214:                                   ; preds = %.lr.ph213.epil, %._crit_edge214.loopexit.unr-lcssa, %._crit_edge214.critedge, %._crit_edge206
  %.0159.lcssa = phi double [ 0.000000e+00, %._crit_edge206 ], [ 0.000000e+00, %._crit_edge214.critedge ], [ %.lcssa271.ph, %._crit_edge214.loopexit.unr-lcssa ], [ %209, %.lr.ph213.epil ]
  %212 = fcmp ugt double %.0159.lcssa, %4
  br i1 %212, label %109, label %213

213:                                              ; preds = %._crit_edge191.thread, %._crit_edge214, %._crit_edge191
  call void @free(ptr noundef %32) #6
  call void @free(ptr noundef %37) #6
  call void @free(ptr noundef %26) #6
  %214 = load ptr, ptr %52, align 8, !tbaa !5
  call void @free(ptr noundef %214) #6
  call void @free(ptr noundef %42) #6
  call void @free(ptr noundef %75) #6
  call void @free(ptr noundef %80) #6
  call void @free(ptr noundef %85) #6
  br label %217

215:                                              ; preds = %109
  call void @free(ptr noundef %32) #6
  call void @free(ptr noundef %37) #6
  call void @free(ptr noundef %26) #6
  %216 = load ptr, ptr %52, align 8, !tbaa !5
  call void @free(ptr noundef %216) #6
  call void @free(ptr noundef %42) #6
  call void @free(ptr noundef %75) #6
  call void @free(ptr noundef %80) #6
  call void @free(ptr noundef %85) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %21) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.35) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %22) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str.36, ptr noundef nonnull %21) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %8, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.fzero_Newton, i32 noundef 1179, ptr noundef nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %21) #6
  br label %217

217:                                              ; preds = %213, %215, %148, %114, %95, %82, %77, %58, %44, %39, %34, %28
  %.0 = phi i32 [ 1, %28 ], [ 1, %34 ], [ 1, %39 ], [ 1, %44 ], [ 1, %58 ], [ 1, %77 ], [ 1, %82 ], [ 1, %95 ], [ 1, %114 ], [ 1, %215 ], [ 1, %148 ], [ 0, %213 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !10, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !10, !17, !16}
!19 = distinct !{!19, !10}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10, !16, !17}
!27 = distinct !{!27, !10, !17, !16}
!28 = distinct !{!28, !10}


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