; LLVM IR from sp-nitech/SPTK :: third_party/WORLD/matlabfunctions.ll (ZN4sptk5world3invEPPdiS2_)

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4sptk5world3invEPPdiS2_(ptr noundef %0, i32 noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %45, %3
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %48

26:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %41, %26
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %44

32:                                               ; preds = %27
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds ptr, ptr %33, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds double, ptr %37, i64 %39
  store double 0.000000e+00, ptr %40, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %32
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %9, align 4, !tbaa !9
  br label %27, !llvm.loop !13

44:                                               ; preds = %31
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !9
  br label %21, !llvm.loop !15

48:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %63, %48
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %66

54:                                               ; preds = %49
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %59, i64 %61
  store double 1.000000e+00, ptr %62, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %54
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %10, align 4, !tbaa !9
  br label %49, !llvm.loop !16

66:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %218, %66
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %221

72:                                               ; preds = %67
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !11
  store double %81, ptr %11, align 8, !tbaa !11
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  store double 1.000000e+00, ptr %89, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %107, %72
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %110

95:                                               ; preds = %90
  %96 = load double, ptr %11, align 8, !tbaa !11
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !11
  %106 = fdiv double %105, %96
  store double %106, ptr %104, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %95
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !9
  br label %90, !llvm.loop !17

110:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %14, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %130, %110
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %133

118:                                              ; preds = %113
  %119 = load double, ptr %11, align 8, !tbaa !11
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds double, ptr %124, i64 %126
  %128 = load double, ptr %127, align 8, !tbaa !11
  %129 = fdiv double %128, %119
  store double %129, ptr %127, align 8, !tbaa !11
  br label %130

130:                                              ; preds = %118
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %14, align 4, !tbaa !9
  br label %113, !llvm.loop !18

133:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %15, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %214, %133
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %5, align 4, !tbaa !9
  %139 = icmp slt i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %217

141:                                              ; preds = %136
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds ptr, ptr %142, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds double, ptr %146, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !11
  store double %150, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %178, %141
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = icmp sle i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %181

156:                                              ; preds = %151
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds ptr, ptr %157, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = load i32, ptr %16, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = load double, ptr %11, align 8, !tbaa !11
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds ptr, ptr %167, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !11
  %176 = fneg double %165
  %177 = call double @llvm.fmuladd.f64(double %176, double %166, double %175)
  store double %177, ptr %174, align 8, !tbaa !11
  br label %178

178:                                              ; preds = %156
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %16, align 4, !tbaa !9
  br label %151, !llvm.loop !19

181:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %182 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %182, ptr %17, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %210, %181
  %184 = load i32, ptr %17, align 4, !tbaa !9
  %185 = load i32, ptr %5, align 4, !tbaa !9
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %213

188:                                              ; preds = %183
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds ptr, ptr %189, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i32, ptr %17, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds double, ptr %193, i64 %195
  %197 = load double, ptr %196, align 8, !tbaa !11
  %198 = load double, ptr %11, align 8, !tbaa !11
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds ptr, ptr %199, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = load i32, ptr %17, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %203, i64 %205
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = fneg double %197
  %209 = call double @llvm.fmuladd.f64(double %208, double %198, double %207)
  store double %209, ptr %206, align 8, !tbaa !11
  br label %210

210:                                              ; preds = %188
  %211 = load i32, ptr %17, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %17, align 4, !tbaa !9
  br label %183, !llvm.loop !20

213:                                              ; preds = %187
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %15, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %15, align 4, !tbaa !9
  br label %136, !llvm.loop !21

217:                                              ; preds = %140
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %12, align 4, !tbaa !9
  br label %67, !llvm.loop !22

221:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %222 = load i32, ptr %5, align 4, !tbaa !9
  %223 = sub nsw i32 %222, 1
  store i32 %223, ptr %18, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %279, %221
  %225 = load i32, ptr %18, align 4, !tbaa !9
  %226 = icmp sge i32 %225, 0
  br i1 %226, label %228, label %227

227:                                              ; preds = %224
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %282

228:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %229

229:                                              ; preds = %275, %228
  %230 = load i32, ptr %19, align 4, !tbaa !9
  %231 = load i32, ptr %18, align 4, !tbaa !9
  %232 = icmp slt i32 %230, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %229
  store i32 32, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  br label %278

234:                                              ; preds = %229
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load i32, ptr %19, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds ptr, ptr %235, i64 %237
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = load i32, ptr %18, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds double, ptr %239, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !11
  store double %243, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %271, %234
  %245 = load i32, ptr %20, align 4, !tbaa !9
  %246 = load i32, ptr %5, align 4, !tbaa !9
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %249, label %248

248:                                              ; preds = %244
  store i32 35, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %274

249:                                              ; preds = %244
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i32, ptr %18, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds ptr, ptr %250, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !5
  %255 = load i32, ptr %20, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !11
  %259 = load double, ptr %11, align 8, !tbaa !11
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = load i32, ptr %19, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds ptr, ptr %260, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = load i32, ptr %20, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !11
  %269 = fneg double %258
  %270 = call double @llvm.fmuladd.f64(double %269, double %259, double %268)
  store double %270, ptr %267, align 8, !tbaa !11
  br label %271

271:                                              ; preds = %249
  %272 = load i32, ptr %20, align 4, !tbaa !9
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %20, align 4, !tbaa !9
  br label %244, !llvm.loop !23

274:                                              ; preds = %248
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %19, align 4, !tbaa !9
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %19, align 4, !tbaa !9
  br label %229, !llvm.loop !24

278:                                              ; preds = %233
  br label %279

279:                                              ; preds = %278
  %280 = load i32, ptr %18, align 4, !tbaa !9
  %281 = add nsw i32 %280, -1
  store i32 %281, ptr %18, align 4, !tbaa !9
  br label %224, !llvm.loop !25

282:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @_ZN4sptk5world3invEPPdiS2_(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #1 {
  %4 = icmp sgt i32 %1, 0
  br i1 %4, label %.preheader104.us.preheader, label %._crit_edge127

.preheader104.us.preheader:                       ; preds = %3
  %5 = zext nneg i32 %1 to i64
  %6 = shl nuw nsw i64 %5, 3
  %xtraiter = and i64 %5, 7
  %7 = icmp ult i32 %1, 8
  br i1 %7, label %.preheader103.unr-lcssa, label %.preheader104.us.preheader.new

.preheader104.us.preheader.new:                   ; preds = %.preheader104.us.preheader
  %unroll_iter = and i64 %5, 2147483640
  br label %.preheader104.us

.preheader104.us:                                 ; preds = %.preheader104.us, %.preheader104.us.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader104.us.preheader.new ], [ %indvars.iv.next.7, %.preheader104.us ]
  %niter = phi i64 [ 0, %.preheader104.us.preheader.new ], [ %niter.next.7, %.preheader104.us ]
  %8 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %10 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %12 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.1
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %14 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.2
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv, 4
  %16 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.3
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv, 5
  %18 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.4
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %19, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv, 6
  %20 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv, 7
  %22 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.6
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader103.unr-lcssa, label %.preheader104.us, !llvm.loop !11

.preheader103.unr-lcssa:                          ; preds = %.preheader104.us, %.preheader104.us.preheader
  %indvars.iv.unr = phi i64 [ 0, %.preheader104.us.preheader ], [ %indvars.iv.next.7, %.preheader104.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader103, label %.preheader104.us.epil

.preheader104.us.epil:                            ; preds = %.preheader103.unr-lcssa, %.preheader104.us.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.preheader104.us.epil ], [ %indvars.iv.unr, %.preheader103.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader104.us.epil ], [ 0, %.preheader103.unr-lcssa ]
  %24 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.epil
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 %6, i1 false), !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader103, label %.preheader104.us.epil, !llvm.loop !13

.preheader103:                                    ; preds = %.preheader104.us.epil, %.preheader103.unr-lcssa
  br i1 %4, label %.lr.ph.preheader, label %._crit_edge127

.lr.ph.preheader:                                 ; preds = %.preheader103
  %xtraiter275 = and i64 %5, 3
  %26 = icmp ult i32 %1, 4
  br i1 %26, label %.preheader102.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter278 = and i64 %5, 2147483644
  br label %.lr.ph

.preheader102.unr-lcssa:                          ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv130.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next131.3, %.lr.ph ]
  %lcmp.mod277.not = icmp eq i64 %xtraiter275, 0
  br i1 %lcmp.mod277.not, label %.preheader102, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader102.unr-lcssa, %.lr.ph.epil
  %indvars.iv130.epil = phi i64 [ %indvars.iv.next131.epil, %.lr.ph.epil ], [ %indvars.iv130.unr, %.preheader102.unr-lcssa ]
  %epil.iter276 = phi i64 [ %epil.iter276.next, %.lr.ph.epil ], [ 0, %.preheader102.unr-lcssa ]
  %27 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv130.epil
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 %indvars.iv130.epil
  store double 1.000000e+00, ptr %29, align 8, !tbaa !9
  %indvars.iv.next131.epil = add nuw nsw i64 %indvars.iv130.epil, 1
  %epil.iter276.next = add i64 %epil.iter276, 1
  %epil.iter276.cmp.not = icmp eq i64 %epil.iter276.next, %xtraiter275
  br i1 %epil.iter276.cmp.not, label %.preheader102, label %.lr.ph.epil, !llvm.loop !15

.preheader102:                                    ; preds = %.lr.ph.epil, %.preheader102.unr-lcssa
  br i1 %4, label %.lr.ph117.preheader, label %._crit_edge127

.lr.ph117.preheader:                              ; preds = %.preheader102
  %30 = zext nneg i32 %1 to i64
  %wide.trip.count169 = zext nneg i32 %1 to i64
  %31 = shl nuw nsw i64 %5, 3
  %32 = add nsw i64 %wide.trip.count169, -1
  br label %.lr.ph117

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv130 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next131.3, %.lr.ph ]
  %niter279 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter279.next.3, %.lr.ph ]
  %33 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv130
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i64 %indvars.iv130
  store double 1.000000e+00, ptr %35, align 8, !tbaa !9
  %indvars.iv.next131 = or disjoint i64 %indvars.iv130, 1
  %36 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next131
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 %indvars.iv.next131
  store double 1.000000e+00, ptr %38, align 8, !tbaa !9
  %indvars.iv.next131.1 = or disjoint i64 %indvars.iv130, 2
  %39 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next131.1
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %40, i64 %indvars.iv.next131.1
  store double 1.000000e+00, ptr %41, align 8, !tbaa !9
  %indvars.iv.next131.2 = or disjoint i64 %indvars.iv130, 3
  %42 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next131.2
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds double, ptr %43, i64 %indvars.iv.next131.2
  store double 1.000000e+00, ptr %44, align 8, !tbaa !9
  %indvars.iv.next131.3 = add nuw nsw i64 %indvars.iv130, 4
  %niter279.next.3 = add i64 %niter279, 4
  %niter279.ncmp.3 = icmp eq i64 %niter279.next.3, %unroll_iter278
  br i1 %niter279.ncmp.3, label %.preheader102.unr-lcssa, label %.lr.ph, !llvm.loop !16

.loopexit101:                                     ; preds = %._crit_edge, %.loopexit, %.preheader100
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next155, %wide.trip.count169
  br i1 %exitcond170.not, label %.preheader98, label %.lr.ph117, !llvm.loop !17

.preheader98:                                     ; preds = %.loopexit101
  br i1 %4, label %.preheader.us.preheader, label %._crit_edge127

.preheader.us.preheader:                          ; preds = %.preheader98
  %45 = add nsw i32 %1, -1
  %46 = zext nneg i32 %45 to i64
  %47 = zext nneg i32 %1 to i64
  %48 = shl nuw nsw i64 %5, 3
  %min.iters.check258 = icmp ult i32 %1, 4
  %n.vec261 = and i64 %5, 2147483644
  %cmp.n272 = icmp eq i64 %n.vec261, %5
  %xtraiter284 = and i64 %wide.trip.count169, 1
  %lcmp.mod285.not = icmp eq i64 %xtraiter284, 0
  %49 = add nsw i64 %wide.trip.count169, -1
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %.loopexit.us
  %indvars.iv185 = phi i64 [ %47, %.preheader.us.preheader ], [ %indvars.iv.next186, %.loopexit.us ]
  %indvars.iv183 = phi i64 [ %46, %.preheader.us.preheader ], [ %indvars.iv.next184, %.loopexit.us ]
  %indvars.iv.next186 = add nsw i64 %indvars.iv185, -1
  %50 = icmp ugt i64 %indvars.iv185, 1
  br i1 %50, label %.lr.ph123.us, label %._crit_edge127

.loopexit.us:                                     ; preds = %._crit_edge121.us.us
  %indvars.iv.next184 = add nsw i64 %indvars.iv183, -1
  br i1 %50, label %.preheader.us, label %._crit_edge127, !llvm.loop !18

.lr.ph123.us:                                     ; preds = %.preheader.us
  %51 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next186
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %scevgep252 = getelementptr i8, ptr %52, i64 %48
  br label %.lr.ph120.us.us

.lr.ph120.us.us:                                  ; preds = %._crit_edge121.us.us, %.lr.ph123.us
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %._crit_edge121.us.us ], [ 0, %.lr.ph123.us ]
  %53 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv176
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next186
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv176
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  br i1 %min.iters.check258, label %scalar.ph257.preheader, label %vector.memcheck250

vector.memcheck250:                               ; preds = %.lr.ph120.us.us
  %scevgep251 = getelementptr i8, ptr %58, i64 %48
  %bound0253 = icmp ult ptr %58, %scevgep252
  %bound1254 = icmp ult ptr %52, %scevgep251
  %found.conflict255 = and i1 %bound0253, %bound1254
  br i1 %found.conflict255, label %scalar.ph257.preheader, label %vector.ph259

vector.ph259:                                     ; preds = %vector.memcheck250
  %broadcast.splatinsert269 = insertelement <2 x double> poison, double %56, i64 0
  %broadcast.splat270 = shufflevector <2 x double> %broadcast.splatinsert269, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body263

vector.body263:                                   ; preds = %vector.body263, %vector.ph259
  %index264 = phi i64 [ 0, %vector.ph259 ], [ %index.next271, %vector.body263 ]
  %59 = getelementptr inbounds double, ptr %52, i64 %index264
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %wide.load265 = load <2 x double>, ptr %59, align 8, !tbaa !9, !alias.scope !19
  %wide.load266 = load <2 x double>, ptr %60, align 8, !tbaa !9, !alias.scope !19
  %61 = getelementptr inbounds double, ptr %58, i64 %index264
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load267 = load <2 x double>, ptr %61, align 8, !tbaa !9, !alias.scope !22, !noalias !19
  %wide.load268 = load <2 x double>, ptr %62, align 8, !tbaa !9, !alias.scope !22, !noalias !19
  %63 = fneg <2 x double> %wide.load265
  %64 = fneg <2 x double> %wide.load266
  %65 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %63, <2 x double> %broadcast.splat270, <2 x double> %wide.load267)
  %66 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %64, <2 x double> %broadcast.splat270, <2 x double> %wide.load268)
  store <2 x double> %65, ptr %61, align 8, !tbaa !9, !alias.scope !22, !noalias !19
  store <2 x double> %66, ptr %62, align 8, !tbaa !9, !alias.scope !22, !noalias !19
  %index.next271 = add nuw i64 %index264, 4
  %67 = icmp eq i64 %index.next271, %n.vec261
  br i1 %67, label %middle.block256, label %vector.body263, !llvm.loop !24

middle.block256:                                  ; preds = %vector.body263
  br i1 %cmp.n272, label %._crit_edge121.us.us, label %scalar.ph257.preheader

scalar.ph257.preheader:                           ; preds = %middle.block256, %vector.memcheck250, %.lr.ph120.us.us
  %indvars.iv171.ph = phi i64 [ 0, %vector.memcheck250 ], [ 0, %.lr.ph120.us.us ], [ %n.vec261, %middle.block256 ]
  br i1 %lcmp.mod285.not, label %scalar.ph257.prol.loopexit, label %scalar.ph257.prol

scalar.ph257.prol:                                ; preds = %scalar.ph257.preheader
  %68 = getelementptr inbounds double, ptr %52, i64 %indvars.iv171.ph
  %69 = load double, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds double, ptr %58, i64 %indvars.iv171.ph
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = fneg double %69
  %73 = tail call double @llvm.fmuladd.f64(double %72, double %56, double %71)
  store double %73, ptr %70, align 8, !tbaa !9
  %indvars.iv.next172.prol = or disjoint i64 %indvars.iv171.ph, 1
  br label %scalar.ph257.prol.loopexit

scalar.ph257.prol.loopexit:                       ; preds = %scalar.ph257.prol, %scalar.ph257.preheader
  %indvars.iv171.unr = phi i64 [ %indvars.iv171.ph, %scalar.ph257.preheader ], [ %indvars.iv.next172.prol, %scalar.ph257.prol ]
  %74 = icmp eq i64 %indvars.iv171.ph, %49
  br i1 %74, label %._crit_edge121.us.us, label %scalar.ph257

scalar.ph257:                                     ; preds = %scalar.ph257.prol.loopexit, %scalar.ph257
  %indvars.iv171 = phi i64 [ %indvars.iv.next172.1, %scalar.ph257 ], [ %indvars.iv171.unr, %scalar.ph257.prol.loopexit ]
  %75 = getelementptr inbounds double, ptr %52, i64 %indvars.iv171
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds double, ptr %58, i64 %indvars.iv171
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fneg double %76
  %80 = tail call double @llvm.fmuladd.f64(double %79, double %56, double %78)
  store double %80, ptr %77, align 8, !tbaa !9
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %81 = getelementptr inbounds double, ptr %52, i64 %indvars.iv.next172
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds double, ptr %58, i64 %indvars.iv.next172
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = fneg double %82
  %86 = tail call double @llvm.fmuladd.f64(double %85, double %56, double %84)
  store double %86, ptr %83, align 8, !tbaa !9
  %indvars.iv.next172.1 = add nuw nsw i64 %indvars.iv171, 2
  %exitcond175.not.1 = icmp eq i64 %indvars.iv.next172.1, %47
  br i1 %exitcond175.not.1, label %._crit_edge121.us.us, label %scalar.ph257, !llvm.loop !27

._crit_edge121.us.us:                             ; preds = %scalar.ph257.prol.loopexit, %scalar.ph257, %middle.block256
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next177, %indvars.iv183
  br i1 %exitcond182.not, label %.loopexit.us, label %.lr.ph120.us.us, !llvm.loop !28

.lr.ph117:                                        ; preds = %.lr.ph117.preheader, %.loopexit101
  %indvars.iv154 = phi i64 [ 0, %.lr.ph117.preheader ], [ %indvars.iv.next155, %.loopexit101 ]
  %indvars.iv142 = phi i64 [ 1, %.lr.ph117.preheader ], [ %indvars.iv.next143, %.loopexit101 ]
  %87 = xor i64 %indvars.iv154, -1
  %88 = add nsw i64 %87, %5
  %89 = shl nuw nsw i64 %indvars.iv154, 3
  %90 = add nuw i64 %89, 8
  %91 = sub nsw i64 %5, %indvars.iv154
  %92 = shl nuw nsw i64 %indvars.iv154, 3
  %93 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv154
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds double, ptr %94, i64 %indvars.iv154
  %96 = load double, ptr %95, align 8, !tbaa !9
  store double 1.000000e+00, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv154
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %min.iters.check238 = icmp ult i64 %indvars.iv142, 2
  br i1 %min.iters.check238, label %scalar.ph237.preheader, label %vector.ph239

scalar.ph237.preheader:                           ; preds = %middle.block236, %.lr.ph117
  %indvars.iv135.ph = phi i64 [ 0, %.lr.ph117 ], [ %n.vec241, %middle.block236 ]
  br label %scalar.ph237

vector.ph239:                                     ; preds = %.lr.ph117
  %n.vec241 = and i64 %indvars.iv142, 9223372036854775806
  %broadcast.splatinsert246 = insertelement <2 x double> poison, double %96, i64 0
  %broadcast.splat247 = shufflevector <2 x double> %broadcast.splatinsert246, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body243

vector.body243:                                   ; preds = %vector.body243, %vector.ph239
  %index244 = phi i64 [ 0, %vector.ph239 ], [ %index.next248, %vector.body243 ]
  %99 = getelementptr inbounds double, ptr %98, i64 %index244
  %wide.load245 = load <2 x double>, ptr %99, align 8, !tbaa !9
  %100 = fdiv <2 x double> %wide.load245, %broadcast.splat247
  store <2 x double> %100, ptr %99, align 8, !tbaa !9
  %index.next248 = add nuw i64 %index244, 2
  %101 = icmp eq i64 %index.next248, %n.vec241
  br i1 %101, label %middle.block236, label %vector.body243, !llvm.loop !29

middle.block236:                                  ; preds = %vector.body243
  %cmp.n249 = icmp eq i64 %indvars.iv142, %n.vec241
  br i1 %cmp.n249, label %.loopexit, label %scalar.ph237.preheader

.loopexit:                                        ; preds = %scalar.ph237, %middle.block236
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %102 = icmp ult i64 %indvars.iv.next155, %30
  br i1 %102, label %.lr.ph110.preheader, label %.loopexit101

.lr.ph110.preheader:                              ; preds = %.loopexit
  %min.iters.check222 = icmp ult i64 %88, 2
  br i1 %min.iters.check222, label %.lr.ph110.preheader274, label %vector.ph223

.lr.ph110.preheader274:                           ; preds = %middle.block220, %.lr.ph110.preheader
  %indvars.iv144.ph = phi i64 [ %indvars.iv142, %.lr.ph110.preheader ], [ %ind.end226, %middle.block220 ]
  br label %.lr.ph110

vector.ph223:                                     ; preds = %.lr.ph110.preheader
  %n.vec225 = and i64 %88, -2
  %ind.end226 = add i64 %indvars.iv142, %n.vec225
  %broadcast.splatinsert232 = insertelement <2 x double> poison, double %96, i64 0
  %broadcast.splat233 = shufflevector <2 x double> %broadcast.splatinsert232, <2 x double> poison, <2 x i32> zeroinitializer
  %103 = getelementptr double, ptr %94, i64 %indvars.iv142
  br label %vector.body228

vector.body228:                                   ; preds = %vector.body228, %vector.ph223
  %index229 = phi i64 [ 0, %vector.ph223 ], [ %index.next234, %vector.body228 ]
  %104 = getelementptr double, ptr %103, i64 %index229
  %wide.load231 = load <2 x double>, ptr %104, align 8, !tbaa !9
  %105 = fdiv <2 x double> %wide.load231, %broadcast.splat233
  store <2 x double> %105, ptr %104, align 8, !tbaa !9
  %index.next234 = add nuw i64 %index229, 2
  %106 = icmp eq i64 %index.next234, %n.vec225
  br i1 %106, label %middle.block220, label %vector.body228, !llvm.loop !30

middle.block220:                                  ; preds = %vector.body228
  %cmp.n235 = icmp eq i64 %88, %n.vec225
  br i1 %cmp.n235, label %.preheader100, label %.lr.ph110.preheader274

scalar.ph237:                                     ; preds = %scalar.ph237.preheader, %scalar.ph237
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %scalar.ph237 ], [ %indvars.iv135.ph, %scalar.ph237.preheader ]
  %107 = getelementptr inbounds double, ptr %98, i64 %indvars.iv135
  %108 = load double, ptr %107, align 8, !tbaa !9
  %109 = fdiv double %108, %96
  store double %109, ptr %107, align 8, !tbaa !9
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next136, %indvars.iv142
  br i1 %exitcond141.not, label %.loopexit, label %scalar.ph237, !llvm.loop !31

.preheader100:                                    ; preds = %.lr.ph110, %middle.block220
  br i1 %102, label %.lr.ph115.preheader, label %.loopexit101

.lr.ph115.preheader:                              ; preds = %.preheader100
  %scevgep192 = getelementptr i8, ptr %94, i64 %92
  %scevgep193 = getelementptr i8, ptr %94, i64 %31
  %scevgep199 = getelementptr i8, ptr %98, i64 %90
  %min.iters.check205 = icmp ult i64 %indvars.iv142, 4
  %n.vec208 = and i64 %indvars.iv142, 9223372036854775804
  %cmp.n219 = icmp eq i64 %indvars.iv142, %n.vec208
  %xtraiter280 = and i64 %indvars.iv142, 1
  %lcmp.mod281.not = icmp eq i64 %xtraiter280, 0
  %min.iters.check = icmp ult i64 %91, 4
  %n.vec = and i64 %91, -4
  %ind.end = add i64 %indvars.iv154, %n.vec
  %cmp.n = icmp eq i64 %91, %n.vec
  br label %.lr.ph115

.lr.ph110:                                        ; preds = %.lr.ph110.preheader274, %.lr.ph110
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %.lr.ph110 ], [ %indvars.iv144.ph, %.lr.ph110.preheader274 ]
  %110 = getelementptr inbounds double, ptr %94, i64 %indvars.iv144
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = fdiv double %111, %96
  store double %112, ptr %110, align 8, !tbaa !9
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond148.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count169
  br i1 %exitcond148.not, label %.preheader100, label %.lr.ph110, !llvm.loop !32

.lr.ph115:                                        ; preds = %.lr.ph115.preheader, %._crit_edge
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %._crit_edge ], [ %indvars.iv142, %.lr.ph115.preheader ]
  %113 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv161
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = getelementptr inbounds double, ptr %114, i64 %indvars.iv154
  %116 = load double, ptr %115, align 8, !tbaa !9
  %117 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv161
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  br i1 %min.iters.check205, label %scalar.ph204.preheader, label %vector.memcheck197

vector.memcheck197:                               ; preds = %.lr.ph115
  %scevgep198 = getelementptr i8, ptr %118, i64 %90
  %bound0200 = icmp ult ptr %118, %scevgep199
  %bound1201 = icmp ult ptr %98, %scevgep198
  %found.conflict202 = and i1 %bound0200, %bound1201
  br i1 %found.conflict202, label %scalar.ph204.preheader, label %vector.ph206

vector.ph206:                                     ; preds = %vector.memcheck197
  %broadcast.splatinsert216 = insertelement <2 x double> poison, double %116, i64 0
  %broadcast.splat217 = shufflevector <2 x double> %broadcast.splatinsert216, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body210

vector.body210:                                   ; preds = %vector.body210, %vector.ph206
  %index211 = phi i64 [ 0, %vector.ph206 ], [ %index.next218, %vector.body210 ]
  %119 = getelementptr inbounds double, ptr %98, i64 %index211
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  %wide.load212 = load <2 x double>, ptr %119, align 8, !tbaa !9, !alias.scope !33
  %wide.load213 = load <2 x double>, ptr %120, align 8, !tbaa !9, !alias.scope !33
  %121 = getelementptr inbounds double, ptr %118, i64 %index211
  %122 = getelementptr inbounds i8, ptr %121, i64 16
  %wide.load214 = load <2 x double>, ptr %121, align 8, !tbaa !9, !alias.scope !36, !noalias !33
  %wide.load215 = load <2 x double>, ptr %122, align 8, !tbaa !9, !alias.scope !36, !noalias !33
  %123 = fneg <2 x double> %wide.load212
  %124 = fneg <2 x double> %wide.load213
  %125 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %123, <2 x double> %broadcast.splat217, <2 x double> %wide.load214)
  %126 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %124, <2 x double> %broadcast.splat217, <2 x double> %wide.load215)
  store <2 x double> %125, ptr %121, align 8, !tbaa !9, !alias.scope !36, !noalias !33
  store <2 x double> %126, ptr %122, align 8, !tbaa !9, !alias.scope !36, !noalias !33
  %index.next218 = add nuw i64 %index211, 4
  %127 = icmp eq i64 %index.next218, %n.vec208
  br i1 %127, label %middle.block203, label %vector.body210, !llvm.loop !38

middle.block203:                                  ; preds = %vector.body210
  br i1 %cmp.n219, label %.lr.ph113.preheader, label %scalar.ph204.preheader

scalar.ph204.preheader:                           ; preds = %middle.block203, %vector.memcheck197, %.lr.ph115
  %indvars.iv149.ph = phi i64 [ 0, %vector.memcheck197 ], [ 0, %.lr.ph115 ], [ %n.vec208, %middle.block203 ]
  br i1 %lcmp.mod281.not, label %scalar.ph204.prol.loopexit, label %scalar.ph204.prol

scalar.ph204.prol:                                ; preds = %scalar.ph204.preheader
  %128 = getelementptr inbounds double, ptr %98, i64 %indvars.iv149.ph
  %129 = load double, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %118, i64 %indvars.iv149.ph
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = fneg double %129
  %133 = tail call double @llvm.fmuladd.f64(double %132, double %116, double %131)
  store double %133, ptr %130, align 8, !tbaa !9
  %indvars.iv.next150.prol = or disjoint i64 %indvars.iv149.ph, 1
  br label %scalar.ph204.prol.loopexit

scalar.ph204.prol.loopexit:                       ; preds = %scalar.ph204.prol, %scalar.ph204.preheader
  %indvars.iv149.unr = phi i64 [ %indvars.iv149.ph, %scalar.ph204.preheader ], [ %indvars.iv.next150.prol, %scalar.ph204.prol ]
  %134 = icmp eq i64 %indvars.iv154, %indvars.iv149.ph
  br i1 %134, label %.lr.ph113.preheader, label %scalar.ph204

scalar.ph204:                                     ; preds = %scalar.ph204.prol.loopexit, %scalar.ph204
  %indvars.iv149 = phi i64 [ %indvars.iv.next150.1, %scalar.ph204 ], [ %indvars.iv149.unr, %scalar.ph204.prol.loopexit ]
  %135 = getelementptr inbounds double, ptr %98, i64 %indvars.iv149
  %136 = load double, ptr %135, align 8, !tbaa !9
  %137 = getelementptr inbounds double, ptr %118, i64 %indvars.iv149
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = fneg double %136
  %140 = tail call double @llvm.fmuladd.f64(double %139, double %116, double %138)
  store double %140, ptr %137, align 8, !tbaa !9
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %141 = getelementptr inbounds double, ptr %98, i64 %indvars.iv.next150
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = getelementptr inbounds double, ptr %118, i64 %indvars.iv.next150
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = fneg double %142
  %146 = tail call double @llvm.fmuladd.f64(double %145, double %116, double %144)
  store double %146, ptr %143, align 8, !tbaa !9
  %indvars.iv.next150.1 = add nuw nsw i64 %indvars.iv149, 2
  %exitcond153.not.1 = icmp eq i64 %indvars.iv.next150.1, %indvars.iv142
  br i1 %exitcond153.not.1, label %.lr.ph113.preheader, label %scalar.ph204, !llvm.loop !39

.lr.ph113.preheader:                              ; preds = %scalar.ph204.prol.loopexit, %scalar.ph204, %middle.block203
  br i1 %min.iters.check, label %.lr.ph113.preheader273, label %vector.memcheck

.lr.ph113.preheader273:                           ; preds = %middle.block, %vector.memcheck, %.lr.ph113.preheader
  %indvars.iv156.ph = phi i64 [ %indvars.iv154, %vector.memcheck ], [ %indvars.iv154, %.lr.ph113.preheader ], [ %ind.end, %middle.block ]
  %147 = sub i64 %wide.trip.count169, %indvars.iv156.ph
  %xtraiter282 = and i64 %147, 1
  %lcmp.mod283.not = icmp eq i64 %xtraiter282, 0
  br i1 %lcmp.mod283.not, label %.lr.ph113.prol.loopexit, label %.lr.ph113.prol

.lr.ph113.prol:                                   ; preds = %.lr.ph113.preheader273
  %148 = getelementptr inbounds double, ptr %94, i64 %indvars.iv156.ph
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %114, i64 %indvars.iv156.ph
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = fneg double %149
  %153 = tail call double @llvm.fmuladd.f64(double %152, double %116, double %151)
  store double %153, ptr %150, align 8, !tbaa !9
  %indvars.iv.next157.prol = add nuw nsw i64 %indvars.iv156.ph, 1
  br label %.lr.ph113.prol.loopexit

.lr.ph113.prol.loopexit:                          ; preds = %.lr.ph113.prol, %.lr.ph113.preheader273
  %indvars.iv156.unr = phi i64 [ %indvars.iv156.ph, %.lr.ph113.preheader273 ], [ %indvars.iv.next157.prol, %.lr.ph113.prol ]
  %154 = icmp eq i64 %indvars.iv156.ph, %32
  br i1 %154, label %._crit_edge, label %.lr.ph113

vector.memcheck:                                  ; preds = %.lr.ph113.preheader
  %scevgep = getelementptr i8, ptr %114, i64 %92
  %scevgep191 = getelementptr i8, ptr %114, i64 %31
  %bound0 = icmp ult ptr %scevgep, %scevgep193
  %bound1 = icmp ult ptr %scevgep192, %scevgep191
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph113.preheader273, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <2 x double> poison, double %116, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv154, %index
  %155 = getelementptr inbounds double, ptr %94, i64 %offset.idx
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %wide.load = load <2 x double>, ptr %155, align 8, !tbaa !9, !alias.scope !40
  %wide.load194 = load <2 x double>, ptr %156, align 8, !tbaa !9, !alias.scope !40
  %157 = getelementptr inbounds double, ptr %114, i64 %offset.idx
  %158 = getelementptr inbounds i8, ptr %157, i64 16
  %wide.load195 = load <2 x double>, ptr %157, align 8, !tbaa !9, !alias.scope !43, !noalias !40
  %wide.load196 = load <2 x double>, ptr %158, align 8, !tbaa !9, !alias.scope !43, !noalias !40
  %159 = fneg <2 x double> %wide.load
  %160 = fneg <2 x double> %wide.load194
  %161 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %159, <2 x double> %broadcast.splat, <2 x double> %wide.load195)
  %162 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %160, <2 x double> %broadcast.splat, <2 x double> %wide.load196)
  store <2 x double> %161, ptr %157, align 8, !tbaa !9, !alias.scope !43, !noalias !40
  store <2 x double> %162, ptr %158, align 8, !tbaa !9, !alias.scope !43, !noalias !40
  %index.next = add nuw i64 %index, 4
  %163 = icmp eq i64 %index.next, %n.vec
  br i1 %163, label %middle.block, label %vector.body, !llvm.loop !45

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph113.preheader273

._crit_edge:                                      ; preds = %.lr.ph113.prol.loopexit, %.lr.ph113, %middle.block
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count169
  br i1 %exitcond165.not, label %.loopexit101, label %.lr.ph115, !llvm.loop !46

.lr.ph113:                                        ; preds = %.lr.ph113.prol.loopexit, %.lr.ph113
  %indvars.iv156 = phi i64 [ %indvars.iv.next157.1, %.lr.ph113 ], [ %indvars.iv156.unr, %.lr.ph113.prol.loopexit ]
  %164 = getelementptr inbounds double, ptr %94, i64 %indvars.iv156
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds double, ptr %114, i64 %indvars.iv156
  %167 = load double, ptr %166, align 8, !tbaa !9
  %168 = fneg double %165
  %169 = tail call double @llvm.fmuladd.f64(double %168, double %116, double %167)
  store double %169, ptr %166, align 8, !tbaa !9
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %170 = getelementptr inbounds double, ptr %94, i64 %indvars.iv.next157
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds double, ptr %114, i64 %indvars.iv.next157
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = fneg double %171
  %175 = tail call double @llvm.fmuladd.f64(double %174, double %116, double %173)
  store double %175, ptr %172, align 8, !tbaa !9
  %indvars.iv.next157.1 = add nuw nsw i64 %indvars.iv156, 2
  %exitcond160.not.1 = icmp eq i64 %indvars.iv.next157.1, %wide.trip.count169
  br i1 %exitcond160.not.1, label %._crit_edge, label %.lr.ph113, !llvm.loop !47

._crit_edge127:                                   ; preds = %.preheader.us, %.loopexit.us, %3, %.preheader103, %.preheader102, %.preheader98
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !12, !25, !26}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !12, !25}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12, !25, !26}
!30 = distinct !{!30, !12, !25, !26}
!31 = distinct !{!31, !12, !26, !25}
!32 = distinct !{!32, !12, !26, !25}
!33 = !{!34}
!34 = distinct !{!34, !35}
!35 = distinct !{!35, !"LVerDomain"}
!36 = !{!37}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !12, !25, !26}
!39 = distinct !{!39, !12, !25}
!40 = !{!41}
!41 = distinct !{!41, !42}
!42 = distinct !{!42, !"LVerDomain"}
!43 = !{!44}
!44 = distinct !{!44, !42}
!45 = distinct !{!45, !12, !25, !26}
!46 = distinct !{!46, !12}
!47 = distinct !{!47, !12, !25}


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