; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/BLAS/SRC (dger)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @f2c_dger(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i32 -1
  store ptr %33, ptr %14, align 8, !tbaa !5
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i32 -1
  store ptr %35, ptr %16, align 8, !tbaa !5
  %36 = load ptr, ptr %19, align 8, !tbaa !5
  %37 = load i64, ptr %36, align 8, !tbaa !9
  store i64 %37, ptr %20, align 8, !tbaa !9
  %38 = load i64, ptr %20, align 8, !tbaa !9
  %39 = add nsw i64 1, %38
  store i64 %39, ptr %21, align 8, !tbaa !9
  %40 = load i64, ptr %21, align 8, !tbaa !9
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  %42 = sub i64 0, %40
  %43 = getelementptr inbounds double, ptr %41, i64 %42
  store ptr %43, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %29, align 8, !tbaa !9
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %9
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %81

48:                                               ; preds = %9
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store i64 2, ptr %29, align 8, !tbaa !9
  br label %80

53:                                               ; preds = %48
  %54 = load ptr, ptr %15, align 8, !tbaa !5
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  store i64 5, ptr %29, align 8, !tbaa !9
  br label %79

58:                                               ; preds = %53
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = icmp eq i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  store i64 7, ptr %29, align 8, !tbaa !9
  br label %78

63:                                               ; preds = %58
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = icmp sge i64 1, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %63
  br label %73

70:                                               ; preds = %63
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %70, %69
  %74 = phi i64 [ 1, %69 ], [ %72, %70 ]
  %75 = icmp slt i64 %65, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  store i64 9, ptr %29, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %76, %73
  br label %78

78:                                               ; preds = %77, %62
  br label %79

79:                                               ; preds = %78, %57
  br label %80

80:                                               ; preds = %79, %52
  br label %81

81:                                               ; preds = %80, %47
  %82 = load i64, ptr %29, align 8, !tbaa !9
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %81
  %85 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %29)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %245

86:                                               ; preds = %81
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = icmp eq i64 %88, 0
  br i1 %89, label %98, label %90

90:                                               ; preds = %86
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %98, label %94

94:                                               ; preds = %90
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = fcmp oeq double %96, 0.000000e+00
  br i1 %97, label %98, label %99

98:                                               ; preds = %94, %90, %86
  store i32 0, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %245

99:                                               ; preds = %94
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = icmp sgt i64 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %99
  store i64 1, ptr %27, align 8, !tbaa !9
  br label %112

104:                                              ; preds = %99
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = sub nsw i64 %106, 1
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = mul nsw i64 %107, %109
  %111 = sub nsw i64 1, %110
  store i64 %111, ptr %27, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %104, %103
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = icmp eq i64 %114, 1
  br i1 %115, label %116, label %171

116:                                              ; preds = %112
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  store i64 %118, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %167, %116
  %120 = load i64, ptr %25, align 8, !tbaa !9
  %121 = load i64, ptr %22, align 8, !tbaa !9
  %122 = icmp sle i64 %120, %121
  br i1 %122, label %123, label %170

123:                                              ; preds = %119
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  %125 = load i64, ptr %27, align 8, !tbaa !9
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = fcmp une double %127, 0.000000e+00
  br i1 %128, label %129, label %162

129:                                              ; preds = %123
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load double, ptr %130, align 8, !tbaa !11
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load i64, ptr %27, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !11
  %136 = fmul double %131, %135
  store double %136, ptr %30, align 8, !tbaa !11
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !9
  store i64 %138, ptr %23, align 8, !tbaa !9
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %139

139:                                              ; preds = %158, %129
  %140 = load i64, ptr %24, align 8, !tbaa !9
  %141 = load i64, ptr %23, align 8, !tbaa !9
  %142 = icmp sle i64 %140, %141
  br i1 %142, label %143, label %161

143:                                              ; preds = %139
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = load i64, ptr %24, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = load double, ptr %30, align 8, !tbaa !11
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = load i64, ptr %24, align 8, !tbaa !9
  %151 = load i64, ptr %25, align 8, !tbaa !9
  %152 = load i64, ptr %20, align 8, !tbaa !9
  %153 = mul nsw i64 %151, %152
  %154 = add nsw i64 %150, %153
  %155 = getelementptr inbounds double, ptr %149, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !11
  %157 = call double @llvm.fmuladd.f64(double %147, double %148, double %156)
  store double %157, ptr %155, align 8, !tbaa !11
  br label %158

158:                                              ; preds = %143
  %159 = load i64, ptr %24, align 8, !tbaa !9
  %160 = add nsw i64 %159, 1
  store i64 %160, ptr %24, align 8, !tbaa !9
  br label %139, !llvm.loop !13

161:                                              ; preds = %139
  br label %162

162:                                              ; preds = %161, %123
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = load i64, ptr %163, align 8, !tbaa !9
  %165 = load i64, ptr %27, align 8, !tbaa !9
  %166 = add nsw i64 %165, %164
  store i64 %166, ptr %27, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %162
  %168 = load i64, ptr %25, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %25, align 8, !tbaa !9
  br label %119, !llvm.loop !15

170:                                              ; preds = %119
  br label %244

171:                                              ; preds = %112
  %172 = load ptr, ptr %15, align 8, !tbaa !5
  %173 = load i64, ptr %172, align 8, !tbaa !9
  %174 = icmp sgt i64 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %171
  store i64 1, ptr %28, align 8, !tbaa !9
  br label %184

176:                                              ; preds = %171
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = load i64, ptr %177, align 8, !tbaa !9
  %179 = sub nsw i64 %178, 1
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = mul nsw i64 %179, %181
  %183 = sub nsw i64 1, %182
  store i64 %183, ptr %28, align 8, !tbaa !9
  br label %184

184:                                              ; preds = %176, %175
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load i64, ptr %185, align 8, !tbaa !9
  store i64 %186, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %187

187:                                              ; preds = %240, %184
  %188 = load i64, ptr %25, align 8, !tbaa !9
  %189 = load i64, ptr %22, align 8, !tbaa !9
  %190 = icmp sle i64 %188, %189
  br i1 %190, label %191, label %243

191:                                              ; preds = %187
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load i64, ptr %27, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  %195 = load double, ptr %194, align 8, !tbaa !11
  %196 = fcmp une double %195, 0.000000e+00
  br i1 %196, label %197, label %235

197:                                              ; preds = %191
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = load ptr, ptr %16, align 8, !tbaa !5
  %201 = load i64, ptr %27, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = fmul double %199, %203
  store double %204, ptr %30, align 8, !tbaa !11
  %205 = load i64, ptr %28, align 8, !tbaa !9
  store i64 %205, ptr %26, align 8, !tbaa !9
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load i64, ptr %206, align 8, !tbaa !9
  store i64 %207, ptr %23, align 8, !tbaa !9
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %208

208:                                              ; preds = %231, %197
  %209 = load i64, ptr %24, align 8, !tbaa !9
  %210 = load i64, ptr %23, align 8, !tbaa !9
  %211 = icmp sle i64 %209, %210
  br i1 %211, label %212, label %234

212:                                              ; preds = %208
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = load i64, ptr %26, align 8, !tbaa !9
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !11
  %217 = load double, ptr %30, align 8, !tbaa !11
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = load i64, ptr %24, align 8, !tbaa !9
  %220 = load i64, ptr %25, align 8, !tbaa !9
  %221 = load i64, ptr %20, align 8, !tbaa !9
  %222 = mul nsw i64 %220, %221
  %223 = add nsw i64 %219, %222
  %224 = getelementptr inbounds double, ptr %218, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = call double @llvm.fmuladd.f64(double %216, double %217, double %225)
  store double %226, ptr %224, align 8, !tbaa !11
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = load i64, ptr %227, align 8, !tbaa !9
  %229 = load i64, ptr %26, align 8, !tbaa !9
  %230 = add nsw i64 %229, %228
  store i64 %230, ptr %26, align 8, !tbaa !9
  br label %231

231:                                              ; preds = %212
  %232 = load i64, ptr %24, align 8, !tbaa !9
  %233 = add nsw i64 %232, 1
  store i64 %233, ptr %24, align 8, !tbaa !9
  br label %208, !llvm.loop !16

234:                                              ; preds = %208
  br label %235

235:                                              ; preds = %234, %191
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  %237 = load i64, ptr %236, align 8, !tbaa !9
  %238 = load i64, ptr %27, align 8, !tbaa !9
  %239 = add nsw i64 %238, %237
  store i64 %239, ptr %27, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %235
  %241 = load i64, ptr %25, align 8, !tbaa !9
  %242 = add nsw i64 %241, 1
  store i64 %242, ptr %25, align 8, !tbaa !9
  br label %187, !llvm.loop !17

243:                                              ; preds = %187
  br label %244

244:                                              ; preds = %243, %170
  store i32 0, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %245

245:                                              ; preds = %244, %98, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %246 = load i32, ptr %10, align 4
  ret i32 %246
}

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

declare i32 @xerbla_(ptr noundef, ptr noundef) #2

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

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

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

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

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


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

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @f2c_dger(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef %7, ptr nocapture noundef readonly %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %11 = getelementptr inbounds i8, ptr %3, i64 -8
  %12 = getelementptr inbounds i8, ptr %5, i64 -8
  %13 = load i64, ptr %8, align 8, !tbaa !5
  %14 = xor i64 %13, -1
  %15 = getelementptr inbounds double, ptr %7, i64 %14
  %16 = load i64, ptr %0, align 8, !tbaa !5
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %9
  store i64 1, ptr %10, align 8, !tbaa !5
  br label %.thread

19:                                               ; preds = %9
  %20 = load i64, ptr %1, align 8, !tbaa !5
  %21 = icmp slt i64 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  store i64 2, ptr %10, align 8, !tbaa !5
  br label %.thread

23:                                               ; preds = %19
  %24 = load i64, ptr %4, align 8, !tbaa !5
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  store i64 5, ptr %10, align 8, !tbaa !5
  br label %.thread

27:                                               ; preds = %23
  %28 = load i64, ptr %6, align 8, !tbaa !5
  %29 = icmp eq i64 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  store i64 7, ptr %10, align 8, !tbaa !5
  br label %.thread

31:                                               ; preds = %27
  %spec.select = tail call i64 @llvm.umax.i64(i64 %16, i64 1)
  %32 = icmp slt i64 %13, %spec.select
  br i1 %32, label %33, label %35

33:                                               ; preds = %31
  store i64 9, ptr %10, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %18, %26, %33, %30, %22
  %34 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %10) #5
  br label %.loopexit89

35:                                               ; preds = %31
  %36 = icmp eq i64 %16, 0
  %37 = icmp eq i64 %20, 0
  %or.cond = or i1 %36, %37
  br i1 %or.cond, label %.loopexit89, label %38

38:                                               ; preds = %35
  %39 = load double, ptr %2, align 8, !tbaa !9
  %40 = fcmp oeq double %39, 0.000000e+00
  br i1 %40, label %.loopexit89, label %41

41:                                               ; preds = %38
  %42 = add nsw i64 %20, -1
  %43 = mul nsw i64 %28, %42
  %44 = sub nsw i64 1, %43
  %.inv = icmp slt i64 %28, 1
  %.070 = select i1 %.inv, i64 %44, i64 1
  %45 = icmp eq i64 %24, 1
  br i1 %45, label %.lr.ph109.split.preheader, label %.lr.ph99.split.preheader

.lr.ph109.split.preheader:                        ; preds = %41
  %46 = add nuw i64 %20, 2305843009213693951
  %47 = mul i64 %13, %46
  %48 = shl i64 %16, 3
  %49 = add i64 %47, %16
  %50 = shl i64 %49, 3
  %scevgep127 = getelementptr i8, ptr %7, i64 %50
  %scevgep128 = getelementptr i8, ptr %3, i64 %48
  %min.iters.check135 = icmp ult i64 %16, 4
  %bound0129 = icmp ugt ptr %scevgep128, %7
  %bound1130 = icmp ugt ptr %scevgep127, %3
  %found.conflict131 = and i1 %bound0129, %bound1130
  %.mask = and i64 %13, 1152921504606846976
  %stride.check132 = icmp ne i64 %.mask, 0
  %51 = or i1 %found.conflict131, %stride.check132
  %n.vec138 = and i64 %16, 9223372036854775804
  %ind.end139 = or disjoint i64 %n.vec138, 1
  %cmp.n151 = icmp eq i64 %16, %n.vec138
  %xtraiter153 = and i64 %16, 1
  %lcmp.mod154.not = icmp eq i64 %xtraiter153, 0
  br label %.lr.ph109.split

.lr.ph109.split:                                  ; preds = %.lr.ph109.split.preheader, %..loopexit_crit_edge
  %.1108 = phi i64 [ %81, %..loopexit_crit_edge ], [ %.070, %.lr.ph109.split.preheader ]
  %.072106 = phi i64 [ %82, %..loopexit_crit_edge ], [ 1, %.lr.ph109.split.preheader ]
  %52 = getelementptr inbounds double, ptr %12, i64 %.1108
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = fcmp une double %53, 0.000000e+00
  br i1 %54, label %.lr.ph102, label %..loopexit_crit_edge

.lr.ph102:                                        ; preds = %.lr.ph109.split
  %55 = load double, ptr %2, align 8, !tbaa !9
  %56 = fmul double %53, %55
  %57 = mul nsw i64 %.072106, %13
  %invariant.gep103 = getelementptr double, ptr %15, i64 %57
  %brmerge = select i1 %min.iters.check135, i1 true, i1 %51
  br i1 %brmerge, label %scalar.ph134.preheader, label %vector.ph136

vector.ph136:                                     ; preds = %.lr.ph102
  %broadcast.splatinsert148 = insertelement <2 x double> poison, double %56, i64 0
  %broadcast.splat149 = shufflevector <2 x double> %broadcast.splatinsert148, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body141

vector.body141:                                   ; preds = %vector.body141, %vector.ph136
  %index142 = phi i64 [ 0, %vector.ph136 ], [ %index.next150, %vector.body141 ]
  %offset.idx143 = or disjoint i64 %index142, 1
  %58 = getelementptr double, ptr %3, i64 %index142
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %wide.load144 = load <2 x double>, ptr %58, align 8, !tbaa !9, !alias.scope !11
  %wide.load145 = load <2 x double>, ptr %59, align 8, !tbaa !9, !alias.scope !11
  %60 = getelementptr double, ptr %invariant.gep103, i64 %offset.idx143
  %61 = getelementptr i8, ptr %60, i64 16
  %wide.load146 = load <2 x double>, ptr %60, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %wide.load147 = load <2 x double>, ptr %61, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %62 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load144, <2 x double> %broadcast.splat149, <2 x double> %wide.load146)
  %63 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load145, <2 x double> %broadcast.splat149, <2 x double> %wide.load147)
  store <2 x double> %62, ptr %60, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  store <2 x double> %63, ptr %61, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %index.next150 = add nuw i64 %index142, 4
  %64 = icmp eq i64 %index.next150, %n.vec138
  br i1 %64, label %middle.block133, label %vector.body141, !llvm.loop !16

middle.block133:                                  ; preds = %vector.body141
  br i1 %cmp.n151, label %..loopexit_crit_edge, label %scalar.ph134.preheader

scalar.ph134.preheader:                           ; preds = %.lr.ph102, %middle.block133
  %.074101.ph = phi i64 [ 1, %.lr.ph102 ], [ %ind.end139, %middle.block133 ]
  br i1 %lcmp.mod154.not, label %scalar.ph134.prol.loopexit, label %scalar.ph134.prol

scalar.ph134.prol:                                ; preds = %scalar.ph134.preheader
  %65 = getelementptr inbounds double, ptr %11, i64 %.074101.ph
  %66 = load double, ptr %65, align 8, !tbaa !9
  %gep104.prol = getelementptr double, ptr %invariant.gep103, i64 %.074101.ph
  %67 = load double, ptr %gep104.prol, align 8, !tbaa !9
  %68 = tail call double @llvm.fmuladd.f64(double %66, double %56, double %67)
  store double %68, ptr %gep104.prol, align 8, !tbaa !9
  %69 = add nuw i64 %.074101.ph, 1
  br label %scalar.ph134.prol.loopexit

scalar.ph134.prol.loopexit:                       ; preds = %scalar.ph134.prol, %scalar.ph134.preheader
  %.074101.unr = phi i64 [ %.074101.ph, %scalar.ph134.preheader ], [ %69, %scalar.ph134.prol ]
  %70 = icmp eq i64 %16, %.074101.ph
  br i1 %70, label %..loopexit_crit_edge, label %scalar.ph134

scalar.ph134:                                     ; preds = %scalar.ph134.prol.loopexit, %scalar.ph134
  %.074101 = phi i64 [ %80, %scalar.ph134 ], [ %.074101.unr, %scalar.ph134.prol.loopexit ]
  %71 = getelementptr inbounds double, ptr %11, i64 %.074101
  %72 = load double, ptr %71, align 8, !tbaa !9
  %gep104 = getelementptr double, ptr %invariant.gep103, i64 %.074101
  %73 = load double, ptr %gep104, align 8, !tbaa !9
  %74 = tail call double @llvm.fmuladd.f64(double %72, double %56, double %73)
  store double %74, ptr %gep104, align 8, !tbaa !9
  %75 = add nuw i64 %.074101, 1
  %76 = getelementptr double, ptr %3, i64 %.074101
  %77 = load double, ptr %76, align 8, !tbaa !9
  %gep104.1 = getelementptr double, ptr %invariant.gep103, i64 %75
  %78 = load double, ptr %gep104.1, align 8, !tbaa !9
  %79 = tail call double @llvm.fmuladd.f64(double %77, double %56, double %78)
  store double %79, ptr %gep104.1, align 8, !tbaa !9
  %80 = add nuw i64 %.074101, 2
  %exitcond114.not.1 = icmp eq i64 %75, %16
  br i1 %exitcond114.not.1, label %..loopexit_crit_edge, label %scalar.ph134, !llvm.loop !20

..loopexit_crit_edge:                             ; preds = %scalar.ph134.prol.loopexit, %scalar.ph134, %middle.block133, %.lr.ph109.split
  %81 = add nsw i64 %.1108, %28
  %82 = add nuw i64 %.072106, 1
  %exitcond115.not = icmp eq i64 %.072106, %20
  br i1 %exitcond115.not, label %.loopexit89, label %.lr.ph109.split, !llvm.loop !21

.lr.ph99.split.preheader:                         ; preds = %41
  %83 = add nsw i64 %16, -1
  %84 = mul nsw i64 %24, %83
  %85 = sub nsw i64 1, %84
  %.inv88 = icmp slt i64 %24, 1
  %.0 = select i1 %.inv88, i64 %85, i64 1
  %xtraiter = and i64 %16, 1
  %86 = icmp eq i64 %16, 1
  %unroll_iter = and i64 %16, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph99.split

.lr.ph99.split:                                   ; preds = %.lr.ph99.split.preheader, %..loopexit90_crit_edge
  %.298 = phi i64 [ %109, %..loopexit90_crit_edge ], [ %.070, %.lr.ph99.split.preheader ]
  %.17396 = phi i64 [ %110, %..loopexit90_crit_edge ], [ 1, %.lr.ph99.split.preheader ]
  %87 = getelementptr inbounds double, ptr %12, i64 %.298
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = fcmp une double %88, 0.000000e+00
  br i1 %89, label %.lr.ph, label %..loopexit90_crit_edge

.lr.ph:                                           ; preds = %.lr.ph99.split
  %90 = load double, ptr %2, align 8, !tbaa !9
  %91 = fmul double %88, %90
  %92 = mul nsw i64 %.17396, %13
  %invariant.gep = getelementptr double, ptr %15, i64 %92
  br i1 %86, label %..loopexit90_crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %invariant.gep156 = getelementptr i8, ptr %invariant.gep, i64 8
  br label %93

93:                                               ; preds = %93, %.lr.ph.new
  %.07194 = phi i64 [ %.0, %.lr.ph.new ], [ %103, %93 ]
  %.17593 = phi i64 [ 1, %.lr.ph.new ], [ %104, %93 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %93 ]
  %94 = getelementptr inbounds double, ptr %11, i64 %.07194
  %95 = load double, ptr %94, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %.17593
  %96 = load double, ptr %gep, align 8, !tbaa !9
  %97 = tail call double @llvm.fmuladd.f64(double %95, double %91, double %96)
  store double %97, ptr %gep, align 8, !tbaa !9
  %98 = add nsw i64 %.07194, %24
  %99 = getelementptr inbounds double, ptr %11, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !9
  %gep157 = getelementptr double, ptr %invariant.gep156, i64 %.17593
  %101 = load double, ptr %gep157, align 8, !tbaa !9
  %102 = tail call double @llvm.fmuladd.f64(double %100, double %91, double %101)
  store double %102, ptr %gep157, align 8, !tbaa !9
  %103 = add nsw i64 %98, %24
  %104 = add nuw i64 %.17593, 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 %..loopexit90_crit_edge.loopexit.unr-lcssa, label %93, !llvm.loop !22

..loopexit90_crit_edge.loopexit.unr-lcssa:        ; preds = %93, %.lr.ph
  %.07194.unr = phi i64 [ %.0, %.lr.ph ], [ %103, %93 ]
  %.17593.unr = phi i64 [ 1, %.lr.ph ], [ %104, %93 ]
  br i1 %lcmp.mod.not, label %..loopexit90_crit_edge, label %..loopexit90_crit_edge.loopexit.epilog-lcssa

..loopexit90_crit_edge.loopexit.epilog-lcssa:     ; preds = %..loopexit90_crit_edge.loopexit.unr-lcssa
  %105 = getelementptr inbounds double, ptr %11, i64 %.07194.unr
  %106 = load double, ptr %105, align 8, !tbaa !9
  %gep.epil = getelementptr double, ptr %invariant.gep, i64 %.17593.unr
  %107 = load double, ptr %gep.epil, align 8, !tbaa !9
  %108 = tail call double @llvm.fmuladd.f64(double %106, double %91, double %107)
  store double %108, ptr %gep.epil, align 8, !tbaa !9
  br label %..loopexit90_crit_edge

..loopexit90_crit_edge:                           ; preds = %..loopexit90_crit_edge.loopexit.epilog-lcssa, %..loopexit90_crit_edge.loopexit.unr-lcssa, %.lr.ph99.split
  %109 = add nsw i64 %.298, %28
  %110 = add nuw i64 %.17396, 1
  %exitcond113.not = icmp eq i64 %.17396, %20
  br i1 %exitcond113.not, label %.loopexit89, label %.lr.ph99.split, !llvm.loop !23

.loopexit89:                                      ; preds = %..loopexit90_crit_edge, %..loopexit_crit_edge, %35, %38, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  ret i32 0
}

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

declare i32 @xerbla_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17, !18}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17, !18}
!23 = distinct !{!23, !17}


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