; LLVM IR from buresjan/optim_lbm :: nomad/examples/advanced/library/Restart_VNS/problems/7_WILD3 (bb)

; 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: nounwind
declare double @sqrt(double noundef) #0

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6dfoveciiPKdiPd(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z6calfuniii12problem_typePKdRb(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef nonnull align 1 dereferenceable(1) %5) #3 {
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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 double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !11
  %23 = load ptr, ptr %13, align 8, !tbaa !11
  store i8 0, ptr %23, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 0.000000e+00, ptr %18, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %25, i64 8)
  %27 = extractvalue { i64, i1 } %26, 1
  %28 = extractvalue { i64, i1 } %26, 0
  %29 = select i1 %27, i64 -1, i64 %28
  %30 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #7
  store ptr %30, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %32, i64 8)
  %34 = extractvalue { i64, i1 } %33, 1
  %35 = extractvalue { i64, i1 } %33, 0
  %36 = select i1 %34, i64 -1, i64 %35
  %37 = call noalias noundef nonnull ptr @_Znam(i64 noundef %36) #7
  store ptr %37, ptr %21, align 8, !tbaa !11
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 1
  br i1 %39, label %40, label %87

40:                                               ; preds = %6
  %41 = load i32, ptr %10, align 4, !tbaa !5
  %42 = icmp eq i32 %41, 8
  br i1 %42, label %58, label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = icmp eq i32 %44, 9
  br i1 %45, label %58, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 13
  br i1 %48, label %58, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 16
  br i1 %51, label %58, label %52

52:                                               ; preds = %49
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 17
  br i1 %54, label %58, label %55

55:                                               ; preds = %52
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = icmp eq i32 %56, 18
  br i1 %57, label %58, label %87

58:                                               ; preds = %55, %52, %49, %46, %43, %40
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %83, %58
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %86

63:                                               ; preds = %59
  %64 = load ptr, ptr %12, align 8, !tbaa !11
  %65 = load i32, ptr %14, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %64, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !15
  %69 = fcmp olt double %68, 0.000000e+00
  br i1 %69, label %70, label %71

70:                                               ; preds = %63
  br label %77

71:                                               ; preds = %63
  %72 = load ptr, ptr %12, align 8, !tbaa !11
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !15
  br label %77

77:                                               ; preds = %71, %70
  %78 = phi double [ 0.000000e+00, %70 ], [ %76, %71 ]
  %79 = load ptr, ptr %21, align 8, !tbaa !11
  %80 = load i32, ptr %14, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  store double %78, ptr %82, align 8, !tbaa !15
  br label %83

83:                                               ; preds = %77
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %14, align 4, !tbaa !5
  br label %59, !llvm.loop !17

86:                                               ; preds = %59
  br label %158

87:                                               ; preds = %55, %6
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 2
  br i1 %89, label %90, label %138

90:                                               ; preds = %87
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %132, %90
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %95, label %135

95:                                               ; preds = %91
  %96 = load ptr, ptr %12, align 8, !tbaa !11
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !15
  %101 = load ptr, ptr %21, align 8, !tbaa !11
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  store double %100, ptr %104, align 8, !tbaa !15
  %105 = load ptr, ptr %12, align 8, !tbaa !11
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !15
  %110 = call double @llvm.fabs.f64(double %109)
  store double %110, ptr %15, align 8, !tbaa !15
  %111 = load double, ptr %15, align 8, !tbaa !15
  %112 = load double, ptr %17, align 8, !tbaa !15
  %113 = fadd double %112, %111
  store double %113, ptr %17, align 8, !tbaa !15
  %114 = load ptr, ptr %12, align 8, !tbaa !11
  %115 = load i32, ptr %14, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %114, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !15
  %119 = load ptr, ptr %12, align 8, !tbaa !11
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = load double, ptr %18, align 8, !tbaa !15
  %125 = call double @llvm.fmuladd.f64(double %118, double %123, double %124)
  store double %125, ptr %18, align 8, !tbaa !15
  %126 = load double, ptr %15, align 8, !tbaa !15
  %127 = load double, ptr %19, align 8, !tbaa !15
  %128 = fcmp ogt double %126, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %95
  %130 = load double, ptr %15, align 8, !tbaa !15
  store double %130, ptr %19, align 8, !tbaa !15
  br label %131

131:                                              ; preds = %129, %95
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !5
  br label %91, !llvm.loop !19

135:                                              ; preds = %91
  %136 = load double, ptr %18, align 8, !tbaa !15
  %137 = call double @sqrt(double noundef %136) #6
  store double %137, ptr %18, align 8, !tbaa !15
  br label %157

138:                                              ; preds = %87
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %153, %138
  %140 = load i32, ptr %14, align 4, !tbaa !5
  %141 = load i32, ptr %9, align 4, !tbaa !5
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %143, label %156

143:                                              ; preds = %139
  %144 = load ptr, ptr %12, align 8, !tbaa !11
  %145 = load i32, ptr %14, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !15
  %149 = load ptr, ptr %21, align 8, !tbaa !11
  %150 = load i32, ptr %14, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %149, i64 %151
  store double %148, ptr %152, align 8, !tbaa !15
  br label %153

153:                                              ; preds = %143
  %154 = load i32, ptr %14, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %14, align 4, !tbaa !5
  br label %139, !llvm.loop !20

156:                                              ; preds = %139
  br label %157

157:                                              ; preds = %156, %135
  br label %158

158:                                              ; preds = %157, %86
  %159 = load i32, ptr %8, align 4, !tbaa !5
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = load ptr, ptr %21, align 8, !tbaa !11
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = load ptr, ptr %20, align 8, !tbaa !11
  %164 = call noundef zeroext i1 @_Z6dfoveciiPKdiPd(i32 noundef %159, i32 noundef %160, ptr noundef %161, i32 noundef %162, ptr noundef %163)
  br i1 %164, label %175, label %165

165:                                              ; preds = %158
  %166 = load ptr, ptr %13, align 8, !tbaa !11
  store i8 1, ptr %166, align 1, !tbaa !13
  %167 = load ptr, ptr %21, align 8, !tbaa !11
  %168 = icmp eq ptr %167, null
  br i1 %168, label %170, label %169

169:                                              ; preds = %165
  call void @_ZdaPv(ptr noundef %167) #8
  br label %170

170:                                              ; preds = %169, %165
  %171 = load ptr, ptr %20, align 8, !tbaa !11
  %172 = icmp eq ptr %171, null
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  call void @_ZdaPv(ptr noundef %171) #8
  br label %174

174:                                              ; preds = %173, %170
  store double 1.000000e+100, ptr %7, align 8
  store i32 1, ptr %22, align 4
  br label %297

175:                                              ; preds = %158
  %176 = load ptr, ptr %21, align 8, !tbaa !11
  %177 = icmp eq ptr %176, null
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  call void @_ZdaPv(ptr noundef %176) #8
  br label %179

179:                                              ; preds = %178, %175
  %180 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %180, label %291 [
    i32 0, label %181
    i32 1, label %203
    i32 2, label %221
    i32 3, label %264
  ]

181:                                              ; preds = %179
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %199, %181
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = load i32, ptr %8, align 4, !tbaa !5
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %186, label %202

186:                                              ; preds = %182
  %187 = load ptr, ptr %20, align 8, !tbaa !11
  %188 = load i32, ptr %14, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !15
  %192 = load ptr, ptr %20, align 8, !tbaa !11
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds double, ptr %192, i64 %194
  %196 = load double, ptr %195, align 8, !tbaa !15
  %197 = load double, ptr %16, align 8, !tbaa !15
  %198 = call double @llvm.fmuladd.f64(double %191, double %196, double %197)
  store double %198, ptr %16, align 8, !tbaa !15
  br label %199

199:                                              ; preds = %186
  %200 = load i32, ptr %14, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %14, align 4, !tbaa !5
  br label %182, !llvm.loop !21

202:                                              ; preds = %182
  br label %291

203:                                              ; preds = %179
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %217, %203
  %205 = load i32, ptr %14, align 4, !tbaa !5
  %206 = load i32, ptr %8, align 4, !tbaa !5
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %208, label %220

208:                                              ; preds = %204
  %209 = load ptr, ptr %20, align 8, !tbaa !11
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %209, i64 %211
  %213 = load double, ptr %212, align 8, !tbaa !15
  %214 = call double @llvm.fabs.f64(double %213)
  %215 = load double, ptr %16, align 8, !tbaa !15
  %216 = fadd double %215, %214
  store double %216, ptr %16, align 8, !tbaa !15
  br label %217

217:                                              ; preds = %208
  %218 = load i32, ptr %14, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %14, align 4, !tbaa !5
  br label %204, !llvm.loop !22

220:                                              ; preds = %204
  br label %291

221:                                              ; preds = %179
  %222 = load double, ptr %17, align 8, !tbaa !15
  %223 = fmul double 1.000000e+02, %222
  %224 = call double @sin(double noundef %223) #6
  %225 = fmul double 9.000000e-01, %224
  %226 = load double, ptr %19, align 8, !tbaa !15
  %227 = fmul double 1.000000e+02, %226
  %228 = call double @cos(double noundef %227) #6
  %229 = load double, ptr %18, align 8, !tbaa !15
  %230 = call double @cos(double noundef %229) #6
  %231 = fmul double 1.000000e-01, %230
  %232 = call double @llvm.fmuladd.f64(double %225, double %228, double %231)
  store double %232, ptr %15, align 8, !tbaa !15
  %233 = load double, ptr %15, align 8, !tbaa !15
  %234 = fmul double 4.000000e+00, %233
  %235 = load double, ptr %15, align 8, !tbaa !15
  %236 = call double @llvm.fmuladd.f64(double %234, double %235, double -3.000000e+00)
  %237 = load double, ptr %15, align 8, !tbaa !15
  %238 = fmul double %237, %236
  store double %238, ptr %15, align 8, !tbaa !15
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %256, %221
  %240 = load i32, ptr %14, align 4, !tbaa !5
  %241 = load i32, ptr %8, align 4, !tbaa !5
  %242 = icmp slt i32 %240, %241
  br i1 %242, label %243, label %259

243:                                              ; preds = %239
  %244 = load ptr, ptr %20, align 8, !tbaa !11
  %245 = load i32, ptr %14, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !15
  %249 = load ptr, ptr %20, align 8, !tbaa !11
  %250 = load i32, ptr %14, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds double, ptr %249, i64 %251
  %253 = load double, ptr %252, align 8, !tbaa !15
  %254 = load double, ptr %16, align 8, !tbaa !15
  %255 = call double @llvm.fmuladd.f64(double %248, double %253, double %254)
  store double %255, ptr %16, align 8, !tbaa !15
  br label %256

256:                                              ; preds = %243
  %257 = load i32, ptr %14, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %14, align 4, !tbaa !5
  br label %239, !llvm.loop !23

259:                                              ; preds = %239
  %260 = load double, ptr %15, align 8, !tbaa !15
  %261 = call double @llvm.fmuladd.f64(double 1.000000e-03, double %260, double 1.000000e+00)
  %262 = load double, ptr %16, align 8, !tbaa !15
  %263 = fmul double %262, %261
  store double %263, ptr %16, align 8, !tbaa !15
  br label %291

264:                                              ; preds = %179
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %287, %264
  %266 = load i32, ptr %14, align 4, !tbaa !5
  %267 = load i32, ptr %8, align 4, !tbaa !5
  %268 = icmp slt i32 %266, %267
  br i1 %268, label %269, label %290

269:                                              ; preds = %265
  %270 = call i32 @rand() #6
  %271 = sitofp i32 %270 to double
  %272 = fdiv double %271, 0x41DFFFFFFFC00000
  store double %272, ptr %15, align 8, !tbaa !15
  %273 = load double, ptr %15, align 8, !tbaa !15
  %274 = call double @llvm.fmuladd.f64(double %273, double 2.000000e+00, double -1.000000e+00)
  %275 = call double @llvm.fmuladd.f64(double 1.000000e-03, double %274, double 1.000000e+00)
  store double %275, ptr %15, align 8, !tbaa !15
  %276 = load ptr, ptr %20, align 8, !tbaa !11
  %277 = load i32, ptr %14, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !15
  %281 = load double, ptr %15, align 8, !tbaa !15
  %282 = fmul double %281, %280
  store double %282, ptr %15, align 8, !tbaa !15
  %283 = load double, ptr %15, align 8, !tbaa !15
  %284 = load double, ptr %15, align 8, !tbaa !15
  %285 = load double, ptr %16, align 8, !tbaa !15
  %286 = call double @llvm.fmuladd.f64(double %283, double %284, double %285)
  store double %286, ptr %16, align 8, !tbaa !15
  br label %287

287:                                              ; preds = %269
  %288 = load i32, ptr %14, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %14, align 4, !tbaa !5
  br label %265, !llvm.loop !24

290:                                              ; preds = %265
  br label %291

291:                                              ; preds = %290, %259, %220, %202, %179
  %292 = load ptr, ptr %20, align 8, !tbaa !11
  %293 = icmp eq ptr %292, null
  br i1 %293, label %295, label %294

294:                                              ; preds = %291
  call void @_ZdaPv(ptr noundef %292) #8
  br label %295

295:                                              ; preds = %294, %291
  %296 = load double, ptr %16, align 8, !tbaa !15
  store double %296, ptr %7, align 8
  store i32 1, ptr %22, align 4
  br label %297

297:                                              ; preds = %295, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %298 = load double, ptr %7, align 8
  ret double %298
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

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

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

; Function Attrs: nounwind
declare i32 @rand() #0

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nobuiltin 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 #5 = { nobuiltin 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 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"_ZTS12problem_type", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}


; 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 nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6dfoveciiPKdiPd(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z6calfuniii12problem_typePKdRb(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %5) local_unnamed_addr #2 {
  store i8 0, ptr %5, align 1, !tbaa !5
  %7 = zext i32 %0 to i64
  %8 = icmp slt i32 %0, 0
  %9 = shl nuw nsw i64 %7, 3
  %10 = select i1 %8, i64 -1, i64 %9
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #7
  %12 = zext i32 %1 to i64
  %13 = icmp slt i32 %1, 0
  %14 = shl nuw nsw i64 %12, 3
  %15 = select i1 %13, i64 -1, i64 %14
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #7
  switch i32 %3, label %57 [
    i32 1, label %19
    i32 2, label %.preheader129
  ]

.preheader129:                                    ; preds = %6
  %17 = icmp sgt i32 %1, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader129
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %16, ptr align 8 %4, i64 %14, i1 false), !tbaa !9
  %xtraiter = and i64 %12, 1
  %18 = icmp eq i32 %1, 1
  br i1 %18, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %12, 2147483646
  br label %.lr.ph

19:                                               ; preds = %6
  switch i32 %2, label %57 [
    i32 18, label %20
    i32 17, label %20
    i32 16, label %20
    i32 13, label %20
    i32 9, label %20
    i32 8, label %20
  ]

20:                                               ; preds = %19, %19, %19, %19, %19, %19
  %21 = icmp sgt i32 %1, 0
  br i1 %21, label %.lr.ph138.preheader, label %.loopexit127

.lr.ph138.preheader:                              ; preds = %20
  %min.iters.check = icmp ult i32 %1, 4
  br i1 %min.iters.check, label %.lr.ph138.preheader217, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph138.preheader
  %n.vec = and i64 %12, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %22 = getelementptr inbounds double, ptr %4, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %wide.load = load <2 x double>, ptr %22, align 8, !tbaa !9
  %wide.load211 = load <2 x double>, ptr %23, align 8, !tbaa !9
  %24 = fcmp olt <2 x double> %wide.load, zeroinitializer
  %25 = fcmp olt <2 x double> %wide.load211, zeroinitializer
  %26 = select <2 x i1> %24, <2 x double> zeroinitializer, <2 x double> %wide.load
  %27 = select <2 x i1> %25, <2 x double> zeroinitializer, <2 x double> %wide.load211
  %28 = getelementptr inbounds double, ptr %16, i64 %index
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  store <2 x double> %26, ptr %28, align 8, !tbaa !9
  store <2 x double> %27, ptr %29, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %12
  br i1 %cmp.n, label %.loopexit127, label %.lr.ph138.preheader217

.lr.ph138.preheader217:                           ; preds = %middle.block, %.lr.ph138.preheader
  %indvars.iv169.ph = phi i64 [ 0, %.lr.ph138.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph138

.lr.ph138:                                        ; preds = %.lr.ph138.preheader217, %.lr.ph138
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %.lr.ph138 ], [ %indvars.iv169.ph, %.lr.ph138.preheader217 ]
  %31 = getelementptr inbounds double, ptr %4, i64 %indvars.iv169
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = fcmp olt double %32, 0.000000e+00
  %34 = select i1 %33, double 0.000000e+00, double %32
  %35 = getelementptr inbounds double, ptr %16, i64 %indvars.iv169
  store double %34, ptr %35, align 8, !tbaa !9
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next170, %12
  br i1 %exitcond173.not, label %.loopexit127, label %.lr.ph138, !llvm.loop !15

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.0109132 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %.1110.1, %.lr.ph ]
  %.0112131 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %46, %.lr.ph ]
  %.0114130 = phi double [ 0.000000e+00, %.lr.ph.preheader.new ], [ %45, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %36 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = tail call double @llvm.fabs.f64(double %37)
  %39 = fadd double %.0114130, %38
  %40 = tail call double @llvm.fmuladd.f64(double %37, double %37, double %.0112131)
  %41 = fcmp ogt double %38, %.0109132
  %.1110 = select i1 %41, double %38, double %.0109132
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %42 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = tail call double @llvm.fabs.f64(double %43)
  %45 = fadd double %39, %44
  %46 = tail call double @llvm.fmuladd.f64(double %43, double %43, double %40)
  %47 = fcmp ogt double %44, %.1110
  %.1110.1 = select i1 %47, double %44, double %.1110
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa219.ph = phi double [ poison, %.lr.ph.preheader ], [ %45, %.lr.ph ]
  %.lcssa218.ph = phi double [ poison, %.lr.ph.preheader ], [ %46, %.lr.ph ]
  %.1110.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %.1110.1, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.0109132.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %.1110.1, %.lr.ph ]
  %.0112131.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %46, %.lr.ph ]
  %.0114130.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %45, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %48 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.unr
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = tail call double @llvm.fabs.f64(double %49)
  %51 = fadd double %.0114130.unr, %50
  %52 = tail call double @llvm.fmuladd.f64(double %49, double %49, double %.0112131.unr)
  %53 = fcmp ogt double %50, %.0109132.unr
  %.1110.epil = select i1 %53, double %50, double %.0109132.unr
  br label %._crit_edge.loopexit

._crit_edge.loopexit:                             ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.lcssa219 = phi double [ %.lcssa219.ph, %._crit_edge.loopexit.unr-lcssa ], [ %51, %.lr.ph.epil ]
  %.lcssa218 = phi double [ %.lcssa218.ph, %._crit_edge.loopexit.unr-lcssa ], [ %52, %.lr.ph.epil ]
  %.1110.lcssa = phi double [ %.1110.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.1110.epil, %.lr.ph.epil ]
  %54 = fmul double %.lcssa219, 1.000000e+02
  %55 = fmul double %.1110.lcssa, 1.000000e+02
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader129
  %.0114.lcssa = phi double [ 0.000000e+00, %.preheader129 ], [ %54, %._crit_edge.loopexit ]
  %.0112.lcssa = phi double [ 0.000000e+00, %.preheader129 ], [ %.lcssa218, %._crit_edge.loopexit ]
  %.0109.lcssa = phi double [ 0.000000e+00, %.preheader129 ], [ %55, %._crit_edge.loopexit ]
  %56 = tail call double @sqrt(double noundef %.0112.lcssa) #8
  br label %.loopexit127

57:                                               ; preds = %19, %6
  %58 = icmp sgt i32 %1, 0
  br i1 %58, label %.lr.ph141.preheader, label %.loopexit127

.lr.ph141.preheader:                              ; preds = %57
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %16, ptr align 8 %4, i64 %14, i1 false), !tbaa !9
  br label %.loopexit127

.loopexit127:                                     ; preds = %.lr.ph138, %middle.block, %.lr.ph141.preheader, %20, %57, %._crit_edge
  %.1115 = phi double [ %.0114.lcssa, %._crit_edge ], [ 0.000000e+00, %57 ], [ 0.000000e+00, %20 ], [ 0.000000e+00, %.lr.ph141.preheader ], [ 0.000000e+00, %middle.block ], [ 0.000000e+00, %.lr.ph138 ]
  %.1113 = phi double [ %56, %._crit_edge ], [ 0.000000e+00, %57 ], [ 0.000000e+00, %20 ], [ 0.000000e+00, %.lr.ph141.preheader ], [ 0.000000e+00, %middle.block ], [ 0.000000e+00, %.lr.ph138 ]
  %.2111 = phi double [ %.0109.lcssa, %._crit_edge ], [ 0.000000e+00, %57 ], [ 0.000000e+00, %20 ], [ 0.000000e+00, %.lr.ph141.preheader ], [ 0.000000e+00, %middle.block ], [ 0.000000e+00, %.lr.ph138 ]
  %59 = tail call noundef zeroext i1 @_Z6dfoveciiPKdiPd(i32 noundef %0, i32 noundef %1, ptr noundef nonnull %16, i32 noundef %2, ptr noundef nonnull %11)
  br i1 %59, label %61, label %60

60:                                               ; preds = %.loopexit127
  store i8 1, ptr %5, align 1, !tbaa !5
  tail call void @_ZdaPv(ptr noundef nonnull %16) #9
  br label %.loopexit

61:                                               ; preds = %.loopexit127
  tail call void @_ZdaPv(ptr noundef nonnull %16) #9
  switch i32 %3, label %.loopexit [
    i32 0, label %.preheader
    i32 1, label %.preheader123
    i32 2, label %95
    i32 3, label %.preheader125
  ]

.preheader125:                                    ; preds = %61
  %62 = icmp sgt i32 %0, 0
  br i1 %62, label %.lr.ph144, label %.loopexit

.preheader123:                                    ; preds = %61
  %63 = icmp sgt i32 %0, 0
  br i1 %63, label %.lr.ph154.preheader, label %.loopexit

.lr.ph154.preheader:                              ; preds = %.preheader123
  %xtraiter228 = and i64 %7, 3
  %64 = icmp ult i32 %0, 4
  br i1 %64, label %.loopexit.loopexit212.unr-lcssa, label %.lr.ph154.preheader.new

.lr.ph154.preheader.new:                          ; preds = %.lr.ph154.preheader
  %unroll_iter232 = and i64 %7, 2147483644
  br label %.lr.ph154

.preheader:                                       ; preds = %61
  %65 = icmp sgt i32 %0, 0
  br i1 %65, label %.lr.ph158.preheader, label %.loopexit

.lr.ph158.preheader:                              ; preds = %.preheader
  %xtraiter234 = and i64 %7, 3
  %66 = icmp ult i32 %0, 4
  br i1 %66, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph158.preheader.new

.lr.ph158.preheader.new:                          ; preds = %.lr.ph158.preheader
  %unroll_iter238 = and i64 %7, 2147483644
  br label %.lr.ph158

.lr.ph158:                                        ; preds = %.lr.ph158, %.lr.ph158.preheader.new
  %indvars.iv192 = phi i64 [ 0, %.lr.ph158.preheader.new ], [ %indvars.iv.next193.3, %.lr.ph158 ]
  %.0116156 = phi double [ 0.000000e+00, %.lr.ph158.preheader.new ], [ %78, %.lr.ph158 ]
  %niter239 = phi i64 [ 0, %.lr.ph158.preheader.new ], [ %niter239.next.3, %.lr.ph158 ]
  %67 = getelementptr inbounds double, ptr %11, i64 %indvars.iv192
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = tail call double @llvm.fmuladd.f64(double %68, double %68, double %.0116156)
  %indvars.iv.next193 = or disjoint i64 %indvars.iv192, 1
  %70 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next193
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = tail call double @llvm.fmuladd.f64(double %71, double %71, double %69)
  %indvars.iv.next193.1 = or disjoint i64 %indvars.iv192, 2
  %73 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next193.1
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = tail call double @llvm.fmuladd.f64(double %74, double %74, double %72)
  %indvars.iv.next193.2 = or disjoint i64 %indvars.iv192, 3
  %76 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next193.2
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = tail call double @llvm.fmuladd.f64(double %77, double %77, double %75)
  %indvars.iv.next193.3 = add nuw nsw i64 %indvars.iv192, 4
  %niter239.next.3 = add i64 %niter239, 4
  %niter239.ncmp.3 = icmp eq i64 %niter239.next.3, %unroll_iter238
  br i1 %niter239.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph158, !llvm.loop !17

.lr.ph154:                                        ; preds = %.lr.ph154, %.lr.ph154.preheader.new
  %indvars.iv187 = phi i64 [ 0, %.lr.ph154.preheader.new ], [ %indvars.iv.next188.3, %.lr.ph154 ]
  %.1117152 = phi double [ 0.000000e+00, %.lr.ph154.preheader.new ], [ %94, %.lr.ph154 ]
  %niter233 = phi i64 [ 0, %.lr.ph154.preheader.new ], [ %niter233.next.3, %.lr.ph154 ]
  %79 = getelementptr inbounds double, ptr %11, i64 %indvars.iv187
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = tail call double @llvm.fabs.f64(double %80)
  %82 = fadd double %.1117152, %81
  %indvars.iv.next188 = or disjoint i64 %indvars.iv187, 1
  %83 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next188
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = tail call double @llvm.fabs.f64(double %84)
  %86 = fadd double %82, %85
  %indvars.iv.next188.1 = or disjoint i64 %indvars.iv187, 2
  %87 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next188.1
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = tail call double @llvm.fabs.f64(double %88)
  %90 = fadd double %86, %89
  %indvars.iv.next188.2 = or disjoint i64 %indvars.iv187, 3
  %91 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next188.2
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = tail call double @llvm.fabs.f64(double %92)
  %94 = fadd double %90, %93
  %indvars.iv.next188.3 = add nuw nsw i64 %indvars.iv187, 4
  %niter233.next.3 = add i64 %niter233, 4
  %niter233.ncmp.3 = icmp eq i64 %niter233.next.3, %unroll_iter232
  br i1 %niter233.ncmp.3, label %.loopexit.loopexit212.unr-lcssa, label %.lr.ph154, !llvm.loop !18

95:                                               ; preds = %61
  %96 = tail call double @sin(double noundef %.1115) #8
  %97 = fmul double %96, 9.000000e-01
  %98 = tail call double @cos(double noundef %.2111) #8
  %99 = tail call double @cos(double noundef %.1113) #8
  %100 = fmul double %99, 1.000000e-01
  %101 = tail call double @llvm.fmuladd.f64(double %97, double %98, double %100)
  %102 = fmul double %101, 4.000000e+00
  %103 = tail call double @llvm.fmuladd.f64(double %102, double %101, double -3.000000e+00)
  %104 = fmul double %101, %103
  %105 = icmp sgt i32 %0, 0
  br i1 %105, label %.lr.ph149.preheader, label %._crit_edge150

.lr.ph149.preheader:                              ; preds = %95
  %xtraiter223 = and i64 %7, 3
  %106 = icmp ult i32 %0, 4
  br i1 %106, label %._crit_edge150.loopexit.unr-lcssa, label %.lr.ph149.preheader.new

.lr.ph149.preheader.new:                          ; preds = %.lr.ph149.preheader
  %unroll_iter226 = and i64 %7, 2147483644
  br label %.lr.ph149

.lr.ph149:                                        ; preds = %.lr.ph149, %.lr.ph149.preheader.new
  %indvars.iv182 = phi i64 [ 0, %.lr.ph149.preheader.new ], [ %indvars.iv.next183.3, %.lr.ph149 ]
  %.2118146 = phi double [ 0.000000e+00, %.lr.ph149.preheader.new ], [ %118, %.lr.ph149 ]
  %niter227 = phi i64 [ 0, %.lr.ph149.preheader.new ], [ %niter227.next.3, %.lr.ph149 ]
  %107 = getelementptr inbounds double, ptr %11, i64 %indvars.iv182
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = tail call double @llvm.fmuladd.f64(double %108, double %108, double %.2118146)
  %indvars.iv.next183 = or disjoint i64 %indvars.iv182, 1
  %110 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next183
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = tail call double @llvm.fmuladd.f64(double %111, double %111, double %109)
  %indvars.iv.next183.1 = or disjoint i64 %indvars.iv182, 2
  %113 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next183.1
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = tail call double @llvm.fmuladd.f64(double %114, double %114, double %112)
  %indvars.iv.next183.2 = or disjoint i64 %indvars.iv182, 3
  %116 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next183.2
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = tail call double @llvm.fmuladd.f64(double %117, double %117, double %115)
  %indvars.iv.next183.3 = add nuw nsw i64 %indvars.iv182, 4
  %niter227.next.3 = add i64 %niter227, 4
  %niter227.ncmp.3 = icmp eq i64 %niter227.next.3, %unroll_iter226
  br i1 %niter227.ncmp.3, label %._crit_edge150.loopexit.unr-lcssa, label %.lr.ph149, !llvm.loop !19

._crit_edge150.loopexit.unr-lcssa:                ; preds = %.lr.ph149, %.lr.ph149.preheader
  %.lcssa214.ph = phi double [ poison, %.lr.ph149.preheader ], [ %118, %.lr.ph149 ]
  %indvars.iv182.unr = phi i64 [ 0, %.lr.ph149.preheader ], [ %indvars.iv.next183.3, %.lr.ph149 ]
  %.2118146.unr = phi double [ 0.000000e+00, %.lr.ph149.preheader ], [ %118, %.lr.ph149 ]
  %lcmp.mod224.not = icmp eq i64 %xtraiter223, 0
  br i1 %lcmp.mod224.not, label %._crit_edge150, label %.lr.ph149.epil

.lr.ph149.epil:                                   ; preds = %._crit_edge150.loopexit.unr-lcssa, %.lr.ph149.epil
  %indvars.iv182.epil = phi i64 [ %indvars.iv.next183.epil, %.lr.ph149.epil ], [ %indvars.iv182.unr, %._crit_edge150.loopexit.unr-lcssa ]
  %.2118146.epil = phi double [ %121, %.lr.ph149.epil ], [ %.2118146.unr, %._crit_edge150.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph149.epil ], [ 0, %._crit_edge150.loopexit.unr-lcssa ]
  %119 = getelementptr inbounds double, ptr %11, i64 %indvars.iv182.epil
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = tail call double @llvm.fmuladd.f64(double %120, double %120, double %.2118146.epil)
  %indvars.iv.next183.epil = add nuw nsw i64 %indvars.iv182.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter223
  br i1 %epil.iter.cmp.not, label %._crit_edge150, label %.lr.ph149.epil, !llvm.loop !20

._crit_edge150:                                   ; preds = %._crit_edge150.loopexit.unr-lcssa, %.lr.ph149.epil, %95
  %.2118.lcssa = phi double [ 0.000000e+00, %95 ], [ %.lcssa214.ph, %._crit_edge150.loopexit.unr-lcssa ], [ %121, %.lr.ph149.epil ]
  %122 = tail call double @llvm.fmuladd.f64(double %104, double 1.000000e-03, double 1.000000e+00)
  %123 = fmul double %122, %.2118.lcssa
  br label %.loopexit

.lr.ph144:                                        ; preds = %.preheader125, %.lr.ph144
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %.lr.ph144 ], [ 0, %.preheader125 ]
  %.3119142 = phi double [ %132, %.lr.ph144 ], [ 0.000000e+00, %.preheader125 ]
  %124 = tail call i32 @rand() #8
  %125 = sitofp i32 %124 to double
  %126 = fdiv double %125, 0x41DFFFFFFFC00000
  %127 = tail call double @llvm.fmuladd.f64(double %126, double 2.000000e+00, double -1.000000e+00)
  %128 = tail call double @llvm.fmuladd.f64(double %127, double 1.000000e-03, double 1.000000e+00)
  %129 = getelementptr inbounds double, ptr %11, i64 %indvars.iv177
  %130 = load double, ptr %129, align 8, !tbaa !9
  %131 = fmul double %130, %128
  %132 = tail call double @llvm.fmuladd.f64(double %131, double %131, double %.3119142)
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond181.not = icmp eq i64 %indvars.iv.next178, %7
  br i1 %exitcond181.not, label %.loopexit, label %.lr.ph144, !llvm.loop !22

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph158, %.lr.ph158.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph158.preheader ], [ %78, %.lr.ph158 ]
  %indvars.iv192.unr = phi i64 [ 0, %.lr.ph158.preheader ], [ %indvars.iv.next193.3, %.lr.ph158 ]
  %.0116156.unr = phi double [ 0.000000e+00, %.lr.ph158.preheader ], [ %78, %.lr.ph158 ]
  %lcmp.mod236.not = icmp eq i64 %xtraiter234, 0
  br i1 %lcmp.mod236.not, label %.loopexit, label %.lr.ph158.epil

.lr.ph158.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph158.epil
  %indvars.iv192.epil = phi i64 [ %indvars.iv.next193.epil, %.lr.ph158.epil ], [ %indvars.iv192.unr, %.loopexit.loopexit.unr-lcssa ]
  %.0116156.epil = phi double [ %135, %.lr.ph158.epil ], [ %.0116156.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter235 = phi i64 [ %epil.iter235.next, %.lr.ph158.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %133 = getelementptr inbounds double, ptr %11, i64 %indvars.iv192.epil
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = tail call double @llvm.fmuladd.f64(double %134, double %134, double %.0116156.epil)
  %indvars.iv.next193.epil = add nuw nsw i64 %indvars.iv192.epil, 1
  %epil.iter235.next = add i64 %epil.iter235, 1
  %epil.iter235.cmp.not = icmp eq i64 %epil.iter235.next, %xtraiter234
  br i1 %epil.iter235.cmp.not, label %.loopexit, label %.lr.ph158.epil, !llvm.loop !23

.loopexit.loopexit212.unr-lcssa:                  ; preds = %.lr.ph154, %.lr.ph154.preheader
  %.lcssa213.ph = phi double [ poison, %.lr.ph154.preheader ], [ %94, %.lr.ph154 ]
  %indvars.iv187.unr = phi i64 [ 0, %.lr.ph154.preheader ], [ %indvars.iv.next188.3, %.lr.ph154 ]
  %.1117152.unr = phi double [ 0.000000e+00, %.lr.ph154.preheader ], [ %94, %.lr.ph154 ]
  %lcmp.mod230.not = icmp eq i64 %xtraiter228, 0
  br i1 %lcmp.mod230.not, label %.loopexit, label %.lr.ph154.epil

.lr.ph154.epil:                                   ; preds = %.loopexit.loopexit212.unr-lcssa, %.lr.ph154.epil
  %indvars.iv187.epil = phi i64 [ %indvars.iv.next188.epil, %.lr.ph154.epil ], [ %indvars.iv187.unr, %.loopexit.loopexit212.unr-lcssa ]
  %.1117152.epil = phi double [ %139, %.lr.ph154.epil ], [ %.1117152.unr, %.loopexit.loopexit212.unr-lcssa ]
  %epil.iter229 = phi i64 [ %epil.iter229.next, %.lr.ph154.epil ], [ 0, %.loopexit.loopexit212.unr-lcssa ]
  %136 = getelementptr inbounds double, ptr %11, i64 %indvars.iv187.epil
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = tail call double @llvm.fabs.f64(double %137)
  %139 = fadd double %.1117152.epil, %138
  %indvars.iv.next188.epil = add nuw nsw i64 %indvars.iv187.epil, 1
  %epil.iter229.next = add i64 %epil.iter229, 1
  %epil.iter229.cmp.not = icmp eq i64 %epil.iter229.next, %xtraiter228
  br i1 %epil.iter229.cmp.not, label %.loopexit, label %.lr.ph154.epil, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph144, %.loopexit.loopexit212.unr-lcssa, %.lr.ph154.epil, %.loopexit.loopexit.unr-lcssa, %.lr.ph158.epil, %._crit_edge150, %61, %.preheader, %.preheader123, %.preheader125, %60
  %.0 = phi double [ 1.000000e+100, %60 ], [ 0.000000e+00, %61 ], [ %123, %._crit_edge150 ], [ 0.000000e+00, %.preheader ], [ 0.000000e+00, %.preheader123 ], [ 0.000000e+00, %.preheader125 ], [ %.lcssa.ph, %.loopexit.loopexit.unr-lcssa ], [ %135, %.lr.ph158.epil ], [ %.lcssa213.ph, %.loopexit.loopexit212.unr-lcssa ], [ %139, %.lr.ph154.epil ], [ %132, %.lr.ph144 ]
  tail call void @_ZdaPv(ptr noundef nonnull %11) #9
  ret double %.0
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

; 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) #6

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 = !{!"bool", !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, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


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