; LLVM IR from stillwater-sc/universal :: applications/accuracy/roots/rpoly_ak1.ll (Z10Fxshfr_ak1iPiddPdiS0_iS0_S0_S0_S0_S0_)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10Fxshfr_ak1iPiddPdiS0_iS0_S0_S0_S0_S0_(i32 noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #2 {
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca double, align 8
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  %57 = alloca double, align 8
  %58 = alloca double, align 8
  %59 = alloca double, align 8
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca double, align 8
  %63 = alloca double, align 8
  %64 = alloca [101 x double], align 16
  %65 = alloca [101 x double], align 16
  %66 = alloca i32, align 4
  store i32 %0, ptr %14, align 4, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !9
  store double %2, ptr %16, align 8, !tbaa !11
  store double %3, ptr %17, align 8, !tbaa !11
  store ptr %4, ptr %18, align 8, !tbaa !9
  store i32 %5, ptr %19, align 4, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !9
  store i32 %7, ptr %21, align 4, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !9
  store ptr %9, ptr %23, align 8, !tbaa !9
  store ptr %10, ptr %24, align 8, !tbaa !9
  store ptr %11, ptr %25, align 8, !tbaa !9
  store ptr %12, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #4
  call void @llvm.lifetime.start.p0(i64 808, ptr %64) #4
  call void @llvm.lifetime.start.p0(i64 808, ptr %65) #4
  %67 = load ptr, ptr %15, align 8, !tbaa !9
  store i32 0, ptr %67, align 4, !tbaa !5
  store double 2.500000e-01, ptr %41, align 8, !tbaa !11
  store double 2.500000e-01, ptr %42, align 8, !tbaa !11
  %68 = load double, ptr %16, align 8, !tbaa !11
  %69 = fmul double 2.000000e+00, %68
  %70 = fneg double %69
  store double %70, ptr %59, align 8, !tbaa !11
  %71 = load double, ptr %16, align 8, !tbaa !11
  store double %71, ptr %49, align 8, !tbaa !11
  %72 = load double, ptr %17, align 8, !tbaa !11
  store double %72, ptr %61, align 8, !tbaa !11
  store double %72, ptr %52, align 8, !tbaa !11
  store double 1.000000e+00, ptr %51, align 8, !tbaa !11
  store double 1.000000e+00, ptr %50, align 8, !tbaa !11
  %73 = load i32, ptr %21, align 4, !tbaa !5
  %74 = load double, ptr %59, align 8, !tbaa !11
  %75 = load double, ptr %61, align 8, !tbaa !11
  %76 = load ptr, ptr %20, align 8, !tbaa !9
  %77 = load ptr, ptr %22, align 8, !tbaa !9
  call void @_Z10QuadSD_ak1iddPdS_S_S_(i32 noundef %73, double noundef %74, double noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %36, ptr noundef %40)
  %78 = load i32, ptr %19, align 4, !tbaa !5
  %79 = load double, ptr %36, align 8, !tbaa !11
  %80 = load double, ptr %40, align 8, !tbaa !11
  %81 = load ptr, ptr %18, align 8, !tbaa !9
  %82 = load double, ptr %59, align 8, !tbaa !11
  %83 = load double, ptr %61, align 8, !tbaa !11
  %84 = getelementptr inbounds [101 x double], ptr %64, i64 0, i64 0
  %85 = call noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef %78, double noundef %79, double noundef %80, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %81, double noundef %82, double noundef %83, ptr noundef %84)
  store i32 %85, ptr %33, align 4, !tbaa !5
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %373, %13
  %87 = load i32, ptr %30, align 4, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %90, label %376

90:                                               ; preds = %86
  %91 = load i32, ptr %19, align 4, !tbaa !5
  %92 = load i32, ptr %33, align 4, !tbaa !5
  %93 = load double, ptr %36, align 8, !tbaa !11
  %94 = load double, ptr %40, align 8, !tbaa !11
  %95 = load double, ptr %37, align 8, !tbaa !11
  %96 = load ptr, ptr %18, align 8, !tbaa !9
  %97 = getelementptr inbounds [101 x double], ptr %64, i64 0, i64 0
  %98 = load ptr, ptr %22, align 8, !tbaa !9
  call void @_Z9nextK_ak1iidddPdS_S_S_S_(i32 noundef %91, i32 noundef %92, double noundef %93, double noundef %94, double noundef %95, ptr noundef %38, ptr noundef %39, ptr noundef %96, ptr noundef %97, ptr noundef %98)
  %99 = load i32, ptr %19, align 4, !tbaa !5
  %100 = load double, ptr %36, align 8, !tbaa !11
  %101 = load double, ptr %40, align 8, !tbaa !11
  %102 = load ptr, ptr %18, align 8, !tbaa !9
  %103 = load double, ptr %59, align 8, !tbaa !11
  %104 = load double, ptr %61, align 8, !tbaa !11
  %105 = getelementptr inbounds [101 x double], ptr %64, i64 0, i64 0
  %106 = call noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef %99, double noundef %100, double noundef %101, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %102, double noundef %103, double noundef %104, ptr noundef %105)
  store i32 %106, ptr %33, align 4, !tbaa !5
  %107 = load i32, ptr %33, align 4, !tbaa !5
  %108 = load double, ptr %36, align 8, !tbaa !11
  %109 = load double, ptr %37, align 8, !tbaa !11
  %110 = load double, ptr %38, align 8, !tbaa !11
  %111 = load double, ptr %39, align 8, !tbaa !11
  %112 = load double, ptr %40, align 8, !tbaa !11
  %113 = load double, ptr %43, align 8, !tbaa !11
  %114 = load double, ptr %44, align 8, !tbaa !11
  %115 = load double, ptr %46, align 8, !tbaa !11
  %116 = load double, ptr %47, align 8, !tbaa !11
  %117 = load double, ptr %48, align 8, !tbaa !11
  %118 = load double, ptr %59, align 8, !tbaa !11
  %119 = load double, ptr %61, align 8, !tbaa !11
  %120 = load ptr, ptr %18, align 8, !tbaa !9
  %121 = load i32, ptr %19, align 4, !tbaa !5
  %122 = load ptr, ptr %20, align 8, !tbaa !9
  call void @_Z10newest_ak1iPdS_ddddddddddddS_iS_(i32 noundef %107, ptr noundef %60, ptr noundef %62, double noundef %108, double noundef %109, double noundef %110, double noundef %111, double noundef %112, double noundef %113, double noundef %114, double noundef %115, double noundef %116, double noundef %117, double noundef %118, double noundef %119, ptr noundef %120, i32 noundef %121, ptr noundef %122)
  %123 = load double, ptr %62, align 8, !tbaa !11
  store double %123, ptr %63, align 8, !tbaa !11
  %124 = load ptr, ptr %18, align 8, !tbaa !9
  %125 = load i32, ptr %19, align 4, !tbaa !5
  %126 = sub nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds double, ptr %124, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fcmp une double %129, 0.000000e+00
  br i1 %130, label %131, label %145

131:                                              ; preds = %90
  %132 = load ptr, ptr %20, align 8, !tbaa !9
  %133 = load i32, ptr %19, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = load ptr, ptr %18, align 8, !tbaa !9
  %138 = load i32, ptr %19, align 4, !tbaa !5
  %139 = sub nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %137, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !11
  %143 = fdiv double %136, %142
  %144 = fneg double %143
  br label %146

145:                                              ; preds = %90
  br label %146

146:                                              ; preds = %145, %131
  %147 = phi double [ %144, %131 ], [ 0.000000e+00, %145 ]
  store double %147, ptr %54, align 8, !tbaa !11
  store double 1.000000e+00, ptr %57, align 8, !tbaa !11
  store double 1.000000e+00, ptr %55, align 8, !tbaa !11
  %148 = load i32, ptr %30, align 4, !tbaa !5
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %368

150:                                              ; preds = %146
  %151 = load i32, ptr %33, align 4, !tbaa !5
  %152 = icmp ne i32 %151, 3
  br i1 %152, label %153, label %368

153:                                              ; preds = %150
  %154 = load double, ptr %63, align 8, !tbaa !11
  %155 = fcmp une double %154, 0.000000e+00
  br i1 %155, label %156, label %163

156:                                              ; preds = %153
  %157 = load double, ptr %63, align 8, !tbaa !11
  %158 = load double, ptr %52, align 8, !tbaa !11
  %159 = fsub double %157, %158
  %160 = load double, ptr %63, align 8, !tbaa !11
  %161 = fdiv double %159, %160
  %162 = call double @llvm.fabs.f64(double %161)
  br label %165

163:                                              ; preds = %153
  %164 = load double, ptr %57, align 8, !tbaa !11
  br label %165

165:                                              ; preds = %163, %156
  %166 = phi double [ %162, %156 ], [ %164, %163 ]
  store double %166, ptr %57, align 8, !tbaa !11
  %167 = load double, ptr %54, align 8, !tbaa !11
  %168 = fcmp une double %167, 0.000000e+00
  br i1 %168, label %169, label %176

169:                                              ; preds = %165
  %170 = load double, ptr %54, align 8, !tbaa !11
  %171 = load double, ptr %49, align 8, !tbaa !11
  %172 = fsub double %170, %171
  %173 = load double, ptr %54, align 8, !tbaa !11
  %174 = fdiv double %172, %173
  %175 = call double @llvm.fabs.f64(double %174)
  br label %178

176:                                              ; preds = %165
  %177 = load double, ptr %55, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %176, %169
  %179 = phi double [ %175, %169 ], [ %177, %176 ]
  store double %179, ptr %55, align 8, !tbaa !11
  %180 = load double, ptr %57, align 8, !tbaa !11
  %181 = load double, ptr %51, align 8, !tbaa !11
  %182 = fcmp olt double %180, %181
  br i1 %182, label %183, label %187

183:                                              ; preds = %178
  %184 = load double, ptr %57, align 8, !tbaa !11
  %185 = load double, ptr %51, align 8, !tbaa !11
  %186 = fmul double %184, %185
  br label %188

187:                                              ; preds = %178
  br label %188

188:                                              ; preds = %187, %183
  %189 = phi double [ %186, %183 ], [ 1.000000e+00, %187 ]
  store double %189, ptr %58, align 8, !tbaa !11
  %190 = load double, ptr %55, align 8, !tbaa !11
  %191 = load double, ptr %50, align 8, !tbaa !11
  %192 = fcmp olt double %190, %191
  br i1 %192, label %193, label %197

193:                                              ; preds = %188
  %194 = load double, ptr %55, align 8, !tbaa !11
  %195 = load double, ptr %50, align 8, !tbaa !11
  %196 = fmul double %194, %195
  br label %198

197:                                              ; preds = %188
  br label %198

198:                                              ; preds = %197, %193
  %199 = phi double [ %196, %193 ], [ 1.000000e+00, %197 ]
  store double %199, ptr %56, align 8, !tbaa !11
  %200 = load double, ptr %58, align 8, !tbaa !11
  %201 = load double, ptr %42, align 8, !tbaa !11
  %202 = fcmp olt double %200, %201
  %203 = zext i1 %202 to i64
  %204 = select i1 %202, i32 1, i32 0
  store i32 %204, ptr %34, align 4, !tbaa !5
  %205 = load double, ptr %56, align 8, !tbaa !11
  %206 = load double, ptr %41, align 8, !tbaa !11
  %207 = fcmp olt double %205, %206
  %208 = zext i1 %207 to i64
  %209 = select i1 %207, i32 1, i32 0
  store i32 %209, ptr %31, align 4, !tbaa !5
  %210 = load i32, ptr %31, align 4, !tbaa !5
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %215, label %212

212:                                              ; preds = %198
  %213 = load i32, ptr %34, align 4, !tbaa !5
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %367

215:                                              ; preds = %212, %198
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %229, %215
  %217 = load i32, ptr %28, align 4, !tbaa !5
  %218 = load i32, ptr %19, align 4, !tbaa !5
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %220, label %232

220:                                              ; preds = %216
  %221 = load ptr, ptr %18, align 8, !tbaa !9
  %222 = load i32, ptr %28, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = load i32, ptr %28, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [101 x double], ptr %65, i64 0, i64 %227
  store double %225, ptr %228, align 8, !tbaa !11
  br label %229

229:                                              ; preds = %220
  %230 = load i32, ptr %28, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %28, align 4, !tbaa !5
  br label %216, !llvm.loop !13

232:                                              ; preds = %216
  %233 = load double, ptr %54, align 8, !tbaa !11
  store double %233, ptr %53, align 8, !tbaa !11
  store i32 0, ptr %35, align 4, !tbaa !5
  store i32 0, ptr %32, align 4, !tbaa !5
  store i32 1, ptr %27, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %351, %232
  store i32 1, ptr %29, align 4, !tbaa !5
  %235 = load i32, ptr %27, align 4, !tbaa !5
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %249

237:                                              ; preds = %234
  store i32 0, ptr %27, align 4, !tbaa !5
  br i1 true, label %238, label %249

238:                                              ; preds = %237
  %239 = load i32, ptr %31, align 4, !tbaa !5
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %249

241:                                              ; preds = %238
  %242 = load i32, ptr %34, align 4, !tbaa !5
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %248

244:                                              ; preds = %241
  %245 = load double, ptr %56, align 8, !tbaa !11
  %246 = load double, ptr %58, align 8, !tbaa !11
  %247 = fcmp olt double %245, %246
  br i1 %247, label %248, label %249

248:                                              ; preds = %244, %241
  br label %295

249:                                              ; preds = %244, %238, %237, %234
  %250 = load i32, ptr %19, align 4, !tbaa !5
  %251 = load ptr, ptr %15, align 8, !tbaa !9
  %252 = load double, ptr %60, align 8, !tbaa !11
  %253 = load double, ptr %62, align 8, !tbaa !11
  %254 = load ptr, ptr %26, align 8, !tbaa !9
  %255 = load ptr, ptr %25, align 8, !tbaa !9
  %256 = load ptr, ptr %24, align 8, !tbaa !9
  %257 = load ptr, ptr %23, align 8, !tbaa !9
  %258 = load ptr, ptr %22, align 8, !tbaa !9
  %259 = load i32, ptr %21, align 4, !tbaa !5
  %260 = load ptr, ptr %20, align 8, !tbaa !9
  %261 = getelementptr inbounds [101 x double], ptr %64, i64 0, i64 0
  %262 = load ptr, ptr %18, align 8, !tbaa !9
  call void @_Z10QuadIT_ak1iPiddPdS0_S0_S0_S0_iS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_(i32 noundef %250, ptr noundef %251, double noundef %252, double noundef %253, ptr noundef %254, ptr noundef %255, ptr noundef %256, ptr noundef %257, ptr noundef %258, i32 noundef %259, ptr noundef %36, ptr noundef %40, ptr noundef %260, ptr noundef %261, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %262)
  %263 = load ptr, ptr %15, align 8, !tbaa !9
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = icmp sgt i32 %264, 0
  br i1 %265, label %266, label %267

266:                                              ; preds = %249
  store i32 1, ptr %66, align 4
  br label %377

267:                                              ; preds = %249
  store i32 1, ptr %35, align 4, !tbaa !5
  %268 = load double, ptr %42, align 8, !tbaa !11
  %269 = fmul double %268, 2.500000e-01
  store double %269, ptr %42, align 8, !tbaa !11
  %270 = load i32, ptr %32, align 4, !tbaa !5
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %275, label %272

272:                                              ; preds = %267
  %273 = load i32, ptr %31, align 4, !tbaa !5
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %276, label %275

275:                                              ; preds = %272, %267
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %294

276:                                              ; preds = %272
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %277

277:                                              ; preds = %290, %276
  %278 = load i32, ptr %28, align 4, !tbaa !5
  %279 = load i32, ptr %19, align 4, !tbaa !5
  %280 = icmp slt i32 %278, %279
  br i1 %280, label %281, label %293

281:                                              ; preds = %277
  %282 = load i32, ptr %28, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [101 x double], ptr %65, i64 0, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !11
  %286 = load ptr, ptr %18, align 8, !tbaa !9
  %287 = load i32, ptr %28, align 4, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds double, ptr %286, i64 %288
  store double %285, ptr %289, align 8, !tbaa !11
  br label %290

290:                                              ; preds = %281
  %291 = load i32, ptr %28, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %28, align 4, !tbaa !5
  br label %277, !llvm.loop !15

293:                                              ; preds = %277
  br label %294

294:                                              ; preds = %293, %275
  br label %295

295:                                              ; preds = %294, %248
  %296 = load i32, ptr %29, align 4, !tbaa !5
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %326

298:                                              ; preds = %295
  %299 = load ptr, ptr %15, align 8, !tbaa !9
  %300 = load i32, ptr %19, align 4, !tbaa !5
  %301 = load ptr, ptr %20, align 8, !tbaa !9
  %302 = load i32, ptr %21, align 4, !tbaa !5
  %303 = load ptr, ptr %22, align 8, !tbaa !9
  %304 = load ptr, ptr %26, align 8, !tbaa !9
  %305 = load ptr, ptr %25, align 8, !tbaa !9
  %306 = load ptr, ptr %18, align 8, !tbaa !9
  %307 = getelementptr inbounds [101 x double], ptr %64, i64 0, i64 0
  call void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr noundef %29, ptr noundef %299, ptr noundef %53, i32 noundef %300, ptr noundef %301, i32 noundef %302, ptr noundef %303, ptr noundef %304, ptr noundef %305, ptr noundef %306, ptr noundef %307)
  %308 = load ptr, ptr %15, align 8, !tbaa !9
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = icmp sgt i32 %309, 0
  br i1 %310, label %311, label %312

311:                                              ; preds = %298
  store i32 1, ptr %66, align 4
  br label %377

312:                                              ; preds = %298
  store i32 1, ptr %32, align 4, !tbaa !5
  %313 = load double, ptr %41, align 8, !tbaa !11
  %314 = fmul double %313, 2.500000e-01
  store double %314, ptr %41, align 8, !tbaa !11
  %315 = load i32, ptr %29, align 4, !tbaa !5
  %316 = icmp ne i32 %315, 0
  br i1 %316, label %317, label %325

317:                                              ; preds = %312
  %318 = load double, ptr %53, align 8, !tbaa !11
  %319 = load double, ptr %53, align 8, !tbaa !11
  %320 = fadd double %318, %319
  %321 = fneg double %320
  store double %321, ptr %60, align 8, !tbaa !11
  %322 = load double, ptr %53, align 8, !tbaa !11
  %323 = load double, ptr %53, align 8, !tbaa !11
  %324 = fmul double %322, %323
  store double %324, ptr %62, align 8, !tbaa !11
  br label %344

325:                                              ; preds = %312
  br label %326

326:                                              ; preds = %325, %295
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %327

327:                                              ; preds = %340, %326
  %328 = load i32, ptr %28, align 4, !tbaa !5
  %329 = load i32, ptr %19, align 4, !tbaa !5
  %330 = icmp slt i32 %328, %329
  br i1 %330, label %331, label %343

331:                                              ; preds = %327
  %332 = load i32, ptr %28, align 4, !tbaa !5
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds [101 x double], ptr %65, i64 0, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !11
  %336 = load ptr, ptr %18, align 8, !tbaa !9
  %337 = load i32, ptr %28, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds double, ptr %336, i64 %338
  store double %335, ptr %339, align 8, !tbaa !11
  br label %340

340:                                              ; preds = %331
  %341 = load i32, ptr %28, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %28, align 4, !tbaa !5
  br label %327, !llvm.loop !16

343:                                              ; preds = %327
  br label %344

344:                                              ; preds = %343, %317
  %345 = load i32, ptr %34, align 4, !tbaa !5
  %346 = icmp ne i32 %345, 0
  br i1 %346, label %347, label %351

347:                                              ; preds = %344
  %348 = load i32, ptr %35, align 4, !tbaa !5
  %349 = icmp ne i32 %348, 0
  %350 = xor i1 %349, true
  br label %351

351:                                              ; preds = %347, %344
  %352 = phi i1 [ false, %344 ], [ %350, %347 ]
  br i1 %352, label %234, label %353, !llvm.loop !17

353:                                              ; preds = %351
  %354 = load i32, ptr %21, align 4, !tbaa !5
  %355 = load double, ptr %59, align 8, !tbaa !11
  %356 = load double, ptr %61, align 8, !tbaa !11
  %357 = load ptr, ptr %20, align 8, !tbaa !9
  %358 = load ptr, ptr %22, align 8, !tbaa !9
  call void @_Z10QuadSD_ak1iddPdS_S_S_(i32 noundef %354, double noundef %355, double noundef %356, ptr noundef %357, ptr noundef %358, ptr noundef %36, ptr noundef %40)
  %359 = load i32, ptr %19, align 4, !tbaa !5
  %360 = load double, ptr %36, align 8, !tbaa !11
  %361 = load double, ptr %40, align 8, !tbaa !11
  %362 = load ptr, ptr %18, align 8, !tbaa !9
  %363 = load double, ptr %59, align 8, !tbaa !11
  %364 = load double, ptr %61, align 8, !tbaa !11
  %365 = getelementptr inbounds [101 x double], ptr %64, i64 0, i64 0
  %366 = call noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef %359, double noundef %360, double noundef %361, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %362, double noundef %363, double noundef %364, ptr noundef %365)
  store i32 %366, ptr %33, align 4, !tbaa !5
  br label %367

367:                                              ; preds = %353, %212
  br label %368

368:                                              ; preds = %367, %150, %146
  %369 = load double, ptr %63, align 8, !tbaa !11
  store double %369, ptr %52, align 8, !tbaa !11
  %370 = load double, ptr %54, align 8, !tbaa !11
  store double %370, ptr %49, align 8, !tbaa !11
  %371 = load double, ptr %57, align 8, !tbaa !11
  store double %371, ptr %51, align 8, !tbaa !11
  %372 = load double, ptr %55, align 8, !tbaa !11
  store double %372, ptr %50, align 8, !tbaa !11
  br label %373

373:                                              ; preds = %368
  %374 = load i32, ptr %30, align 4, !tbaa !5
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %30, align 4, !tbaa !5
  br label %86, !llvm.loop !18

376:                                              ; preds = %86
  store i32 1, ptr %66, align 4
  br label %377

377:                                              ; preds = %376, %311, %266
  call void @llvm.lifetime.end.p0(i64 808, ptr %65) #4
  call void @llvm.lifetime.end.p0(i64 808, ptr %64) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10QuadSD_ak1iddPdS_S_S_(i32 noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9nextK_ak1iidddPdS_S_S_S_(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10newest_ak1iPdS_ddddddddddddS_iS_(i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10QuadIT_ak1iPiddPdS0_S0_S0_S0_iS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_(i32 noundef, ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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}


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

; 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 uwtable
define dso_local void @_Z10Fxshfr_ak1iPiddPdiS0_iS0_S0_S0_S0_S0_(i32 noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) local_unnamed_addr #1 {
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca [101 x double], align 16
  %30 = alloca [101 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #5
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %29) #5
  call void @llvm.lifetime.start.p0(i64 808, ptr nonnull %30)
  store i32 0, ptr %1, align 4, !tbaa !5
  %31 = fmul double %2, -2.000000e+00
  call void @_Z10QuadSD_ak1iddPdS_S_S_(i32 noundef %7, double noundef %31, double noundef %3, ptr noundef %6, ptr noundef %8, ptr noundef nonnull %15, ptr noundef nonnull %19)
  %32 = load double, ptr %15, align 8, !tbaa !9
  %33 = load double, ptr %19, align 8, !tbaa !9
  %34 = call noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef %5, double noundef %32, double noundef %33, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef %4, double noundef %31, double noundef %3, ptr noundef nonnull %29)
  %35 = icmp sgt i32 %0, 0
  br i1 %35, label %.lr.ph193, label %.loopexit175

.lr.ph193:                                        ; preds = %13
  %invariant.gep = getelementptr i8, ptr %4, i64 -8
  %36 = sext i32 %5 to i64
  %gep = getelementptr double, ptr %invariant.gep, i64 %36
  %37 = getelementptr inbounds double, ptr %6, i64 %36
  %38 = icmp sgt i32 %5, 0
  %39 = zext i32 %5 to i64
  %40 = shl nuw nsw i64 %39, 3
  %41 = insertelement <2 x double> poison, double %2, i64 0
  %42 = insertelement <2 x double> %41, double %3, i64 1
  br label %43

43:                                               ; preds = %.lr.ph193, %132
  %.0132191 = phi i32 [ 0, %.lr.ph193 ], [ %134, %132 ]
  %.0137190 = phi i32 [ %34, %.lr.ph193 ], [ %.1138, %132 ]
  %.0143188 = phi double [ 1.000000e+00, %.lr.ph193 ], [ %138, %132 ]
  %.0144187 = phi double [ 1.000000e+00, %.lr.ph193 ], [ %137, %132 ]
  %.0146185 = phi double [ 2.500000e-01, %.lr.ph193 ], [ %.3, %132 ]
  %.0149184 = phi double [ 2.500000e-01, %.lr.ph193 ], [ %.4, %132 ]
  %44 = phi <2 x double> [ %42, %.lr.ph193 ], [ %136, %132 ]
  %45 = load double, ptr %15, align 8, !tbaa !9
  %46 = load double, ptr %19, align 8, !tbaa !9
  %47 = load double, ptr %16, align 8, !tbaa !9
  call void @_Z9nextK_ak1iidddPdS_S_S_S_(i32 noundef %5, i32 noundef %.0137190, double noundef %45, double noundef %46, double noundef %47, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef %4, ptr noundef nonnull %29, ptr noundef %8)
  %48 = load double, ptr %15, align 8, !tbaa !9
  %49 = load double, ptr %19, align 8, !tbaa !9
  %50 = call noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef %5, double noundef %48, double noundef %49, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef %4, double noundef %31, double noundef %3, ptr noundef nonnull %29)
  %51 = load double, ptr %15, align 8, !tbaa !9
  %52 = load double, ptr %16, align 8, !tbaa !9
  %53 = load double, ptr %17, align 8, !tbaa !9
  %54 = load double, ptr %18, align 8, !tbaa !9
  %55 = load double, ptr %19, align 8, !tbaa !9
  %56 = load double, ptr %20, align 8, !tbaa !9
  %57 = load double, ptr %21, align 8, !tbaa !9
  %58 = load double, ptr %23, align 8, !tbaa !9
  %59 = load double, ptr %24, align 8, !tbaa !9
  %60 = load double, ptr %25, align 8, !tbaa !9
  call void @_Z10newest_ak1iPdS_ddddddddddddS_iS_(i32 noundef %50, ptr noundef nonnull %27, ptr noundef nonnull %28, double noundef %51, double noundef %52, double noundef %53, double noundef %54, double noundef %55, double noundef %56, double noundef %57, double noundef %58, double noundef %59, double noundef %60, double noundef %31, double noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6)
  %61 = load double, ptr %28, align 8, !tbaa !9
  %62 = load double, ptr %gep, align 8, !tbaa !9
  %63 = fcmp une double %62, 0.000000e+00
  br i1 %63, label %64, label %68

64:                                               ; preds = %43
  %65 = load double, ptr %37, align 8, !tbaa !9
  %66 = fneg double %65
  %67 = fdiv double %66, %62
  br label %68

68:                                               ; preds = %43, %64
  %69 = phi double [ %67, %64 ], [ 0.000000e+00, %43 ]
  %70 = icmp ne i32 %.0132191, 0
  %71 = icmp ne i32 %50, 3
  %or.cond = and i1 %70, %71
  br i1 %or.cond, label %72, label %132

72:                                               ; preds = %68
  %73 = insertelement <2 x double> poison, double %69, i64 0
  %74 = insertelement <2 x double> %73, double %61, i64 1
  %75 = fcmp une <2 x double> %74, zeroinitializer
  %76 = fsub <2 x double> %74, %44
  %77 = fdiv <2 x double> %76, %74
  %78 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %77)
  %79 = select <2 x i1> %75, <2 x double> %78, <2 x double> <double 1.000000e+00, double 1.000000e+00>
  %80 = extractelement <2 x double> %79, i64 1
  %81 = fcmp olt double %80, %.0143188
  %82 = fmul double %.0143188, %80
  %83 = select i1 %81, double %82, double 1.000000e+00
  %84 = extractelement <2 x double> %79, i64 0
  %85 = fcmp olt double %84, %.0144187
  %86 = fmul double %.0144187, %84
  %87 = select i1 %85, double %86, double 1.000000e+00
  %88 = fcmp olt double %83, %.0146185
  %89 = fcmp olt double %87, %.0149184
  %or.cond3 = select i1 %89, i1 true, i1 %88
  br i1 %or.cond3, label %.preheader176, label %132

.preheader176:                                    ; preds = %72
  br i1 %38, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader176
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %30, ptr nonnull align 8 %4, i64 %40, i1 false), !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %.preheader176
  store double %69, ptr %26, align 8, !tbaa !9
  %90 = fcmp uge double %87, %83
  %or.cond165.not = and i1 %88, %90
  store i32 1, ptr %14, align 4, !tbaa !5
  %brmerge.not.not.peel = xor i1 %89, true
  %or.cond173.peel = select i1 %brmerge.not.not.peel, i1 true, i1 %or.cond165.not
  br i1 %or.cond173.peel, label %91, label %.loopexit174.peel.thread

91:                                               ; preds = %._crit_edge
  %92 = load double, ptr %27, align 8, !tbaa !9
  call void @_Z10QuadIT_ak1iPiddPdS0_S0_S0_S0_iS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_(i32 noundef %5, ptr noundef nonnull %1, double noundef %92, double noundef %61, ptr noundef %12, ptr noundef %11, ptr noundef %10, ptr noundef %9, ptr noundef %8, i32 noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %19, ptr noundef %6, ptr noundef nonnull %29, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %4)
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.loopexit175, label %95

95:                                               ; preds = %91
  %96 = fmul double %.0146185, 2.500000e-01
  br i1 %89, label %.preheader.peel, label %.thread.peel

.thread.peel:                                     ; preds = %95
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %107

.preheader.peel:                                  ; preds = %95
  br i1 %38, label %.lr.ph180.preheader.peel, label %.loopexit174.peel

.lr.ph180.preheader.peel:                         ; preds = %.preheader.peel
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %4, ptr nonnull align 16 %30, i64 %40, i1 false), !tbaa !9
  br label %.loopexit174.peel

.loopexit174.peel:                                ; preds = %.lr.ph180.preheader.peel, %.preheader.peel
  %.pr.peel.pr = load i32, ptr %14, align 4, !tbaa !5
  %.not160.peel = icmp eq i32 %.pr.peel.pr, 0
  br i1 %.not160.peel, label %107, label %.loopexit174.peel.thread

.loopexit174.peel.thread:                         ; preds = %._crit_edge, %.loopexit174.peel
  %.1141.ph.peel206 = phi i32 [ 1, %.loopexit174.peel ], [ 0, %._crit_edge ]
  %.2148.ph.peel205 = phi double [ %96, %.loopexit174.peel ], [ %.0146185, %._crit_edge ]
  call void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr noundef nonnull %14, ptr noundef nonnull %1, ptr noundef nonnull %26, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %12, ptr noundef %11, ptr noundef nonnull %4, ptr noundef nonnull %29)
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %.loopexit175, label %99

99:                                               ; preds = %.loopexit174.peel.thread
  %100 = fmul double %.0149184, 2.500000e-01
  %101 = load i32, ptr %14, align 4, !tbaa !5
  %.not161.peel = icmp eq i32 %101, 0
  br i1 %.not161.peel, label %107, label %102

102:                                              ; preds = %99
  %103 = load double, ptr %26, align 8, !tbaa !9
  %104 = fadd double %103, %103
  %105 = fneg double %104
  store double %105, ptr %27, align 8, !tbaa !9
  %106 = fmul double %103, %103
  store double %106, ptr %28, align 8, !tbaa !9
  br label %.loopexit.peel

107:                                              ; preds = %99, %.loopexit174.peel, %.thread.peel
  %.1141172.peel = phi i32 [ %.1141.ph.peel206, %99 ], [ 1, %.loopexit174.peel ], [ 1, %.thread.peel ]
  %.2148170.peel = phi double [ %.2148.ph.peel205, %99 ], [ %96, %.loopexit174.peel ], [ %96, %.thread.peel ]
  %.2151.peel = phi double [ %100, %99 ], [ %.0149184, %.loopexit174.peel ], [ %.0149184, %.thread.peel ]
  %.1134.peel = phi i32 [ 1, %99 ], [ 0, %.loopexit174.peel ], [ 0, %.thread.peel ]
  br i1 %38, label %.lr.ph183.preheader.peel, label %.loopexit.peel

.lr.ph183.preheader.peel:                         ; preds = %107
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %4, ptr nonnull align 16 %30, i64 %40, i1 false), !tbaa !9
  br label %.loopexit.peel

.loopexit.peel:                                   ; preds = %.lr.ph183.preheader.peel, %107, %102
  %.1141171.peel = phi i32 [ %.1141.ph.peel206, %102 ], [ %.1141172.peel, %107 ], [ %.1141172.peel, %.lr.ph183.preheader.peel ]
  %.2148169.peel = phi double [ %.2148.ph.peel205, %102 ], [ %.2148170.peel, %107 ], [ %.2148170.peel, %.lr.ph183.preheader.peel ]
  %.3152.peel = phi double [ %100, %102 ], [ %.2151.peel, %107 ], [ %.2151.peel, %.lr.ph183.preheader.peel ]
  %.2135.peel = phi i32 [ 1, %102 ], [ %.1134.peel, %107 ], [ %.1134.peel, %.lr.ph183.preheader.peel ]
  %.not162.peel = icmp eq i32 %.1141171.peel, 0
  %108 = and i1 %88, %.not162.peel
  br i1 %108, label %109, label %.loopexit199

109:                                              ; preds = %.loopexit.peel
  store i32 1, ptr %14, align 4, !tbaa !5
  %110 = load double, ptr %27, align 8, !tbaa !9
  %111 = load double, ptr %28, align 8, !tbaa !9
  call void @_Z10QuadIT_ak1iPiddPdS0_S0_S0_S0_iS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_(i32 noundef %5, ptr noundef nonnull %1, double noundef %110, double noundef %111, ptr noundef %12, ptr noundef %11, ptr noundef %10, ptr noundef %9, ptr noundef %8, i32 noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %19, ptr noundef %6, ptr noundef nonnull %29, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %4)
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.loopexit175, label %114

114:                                              ; preds = %109
  %115 = fmul double %.2148169.peel, 2.500000e-01
  %116 = icmp eq i32 %.2135.peel, 0
  %or.cond5 = and i1 %89, %116
  br i1 %or.cond5, label %.preheader, label %.thread

.preheader:                                       ; preds = %114
  br i1 %38, label %.lr.ph180.preheader, label %.loopexit174

.lr.ph180.preheader:                              ; preds = %.preheader
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %4, ptr nonnull align 16 %30, i64 %40, i1 false), !tbaa !9
  br label %.loopexit174

.thread:                                          ; preds = %114
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %128

.loopexit174:                                     ; preds = %.lr.ph180.preheader, %.preheader
  %.pr = load i32, ptr %14, align 4, !tbaa !5
  %.not160 = icmp eq i32 %.pr, 0
  br i1 %.not160, label %128, label %117

117:                                              ; preds = %.loopexit174
  call void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr noundef nonnull %14, ptr noundef nonnull %1, ptr noundef nonnull %26, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %12, ptr noundef %11, ptr noundef nonnull %4, ptr noundef nonnull %29)
  %118 = load i32, ptr %1, align 4, !tbaa !5
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.loopexit175, label %120

120:                                              ; preds = %117
  %121 = fmul double %.3152.peel, 2.500000e-01
  %122 = load i32, ptr %14, align 4, !tbaa !5
  %.not161 = icmp eq i32 %122, 0
  br i1 %.not161, label %128, label %123

123:                                              ; preds = %120
  %124 = load double, ptr %26, align 8, !tbaa !9
  %125 = fadd double %124, %124
  %126 = fneg double %125
  store double %126, ptr %27, align 8, !tbaa !9
  %127 = fmul double %124, %124
  store double %127, ptr %28, align 8, !tbaa !9
  br label %.loopexit199

128:                                              ; preds = %.thread, %120, %.loopexit174
  %.2151 = phi double [ %121, %120 ], [ %.3152.peel, %.loopexit174 ], [ %.3152.peel, %.thread ]
  br i1 %38, label %.lr.ph183.preheader, label %.loopexit199

.lr.ph183.preheader:                              ; preds = %128
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %4, ptr nonnull align 16 %30, i64 %40, i1 false), !tbaa !9
  br label %.loopexit199

.loopexit199:                                     ; preds = %.lr.ph183.preheader, %128, %123, %.loopexit.peel
  %.2148169.lcssa = phi double [ %.2148169.peel, %.loopexit.peel ], [ %115, %123 ], [ %115, %128 ], [ %115, %.lr.ph183.preheader ]
  %.3152.lcssa = phi double [ %.3152.peel, %.loopexit.peel ], [ %121, %123 ], [ %.2151, %128 ], [ %.2151, %.lr.ph183.preheader ]
  call void @_Z10QuadSD_ak1iddPdS_S_S_(i32 noundef %7, double noundef %31, double noundef %3, ptr noundef %6, ptr noundef %8, ptr noundef nonnull %15, ptr noundef nonnull %19)
  %129 = load double, ptr %15, align 8, !tbaa !9
  %130 = load double, ptr %19, align 8, !tbaa !9
  %131 = call noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef %5, double noundef %129, double noundef %130, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %4, double noundef %31, double noundef %3, ptr noundef nonnull %29)
  br label %132

132:                                              ; preds = %.loopexit199, %72, %68
  %.4 = phi double [ %.3152.lcssa, %.loopexit199 ], [ %.0149184, %72 ], [ %.0149184, %68 ]
  %.3 = phi double [ %.2148169.lcssa, %.loopexit199 ], [ %.0146185, %72 ], [ %.0146185, %68 ]
  %.1138 = phi i32 [ %131, %.loopexit199 ], [ %50, %72 ], [ %50, %68 ]
  %133 = phi <2 x double> [ %79, %.loopexit199 ], [ %79, %72 ], [ <double 1.000000e+00, double 1.000000e+00>, %68 ]
  %134 = add nuw nsw i32 %.0132191, 1
  %exitcond.not = icmp eq i32 %134, %0
  %135 = insertelement <2 x double> poison, double %69, i64 0
  %136 = insertelement <2 x double> %135, double %61, i64 1
  %137 = extractelement <2 x double> %133, i64 0
  %138 = extractelement <2 x double> %133, i64 1
  br i1 %exitcond.not, label %.loopexit175, label %43, !llvm.loop !11

.loopexit175:                                     ; preds = %132, %117, %109, %91, %.loopexit174.peel.thread, %13
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %30)
  call void @llvm.lifetime.end.p0(i64 808, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  ret void
}

; 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 nounwind uwtable
declare dso_local void @_Z10QuadSD_ak1iddPdS_S_S_(i32 noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10calcSC_ak1iddPdS_S_S_S_S_S_S_S_S_ddS_(i32 noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9nextK_ak1iidddPdS_S_S_S_(i32 noundef, i32 noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10newest_ak1iPdS_ddddddddddddS_iS_(i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10QuadIT_ak1iPiddPdS0_S0_S0_S0_iS0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_S0_(i32 noundef, ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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