; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (dppequ)

; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @dppequ_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %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 i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  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
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i32 -1
  store ptr %25, ptr %12, align 8, !tbaa !5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i32 -1
  store ptr %27, ptr %11, align 8, !tbaa !5
  %28 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %28, align 8, !tbaa !9
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = call i64 @lsame_(ptr noundef %29, ptr noundef @.str)
  store i64 %30, ptr %22, align 8, !tbaa !9
  %31 = load i64, ptr %22, align 8, !tbaa !9
  %32 = icmp ne i64 %31, 0
  br i1 %32, label %39, label %33

33:                                               ; preds = %7
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = call i64 @lsame_(ptr noundef %34, ptr noundef @.str.1)
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %39, label %37

37:                                               ; preds = %33
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %38, align 8, !tbaa !9
  br label %46

39:                                               ; preds = %33, %7
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = icmp slt i64 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %39
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -2, ptr %44, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %43, %39
  br label %46

46:                                               ; preds = %45, %37
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %46
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = sub nsw i64 0, %52
  store i64 %53, ptr %16, align 8, !tbaa !9
  %54 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %16)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %238

55:                                               ; preds = %46
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load i64, ptr %56, align 8, !tbaa !9
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %55
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  store double 1.000000e+00, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %61, align 8, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %238

62:                                               ; preds = %55
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 1
  %65 = load double, ptr %64, align 8, !tbaa !11
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 1
  store double %65, ptr %67, align 8, !tbaa !11
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %68, i64 1
  %70 = load double, ptr %69, align 8, !tbaa !11
  store double %70, ptr %21, align 8, !tbaa !11
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 1
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  store double %73, ptr %74, align 8, !tbaa !11
  %75 = load i64, ptr %22, align 8, !tbaa !9
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %77, label %129

77:                                               ; preds = %62
  store i64 1, ptr %20, align 8, !tbaa !9
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i64, ptr %78, align 8, !tbaa !9
  store i64 %79, ptr %16, align 8, !tbaa !9
  store i64 2, ptr %19, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %125, %77
  %81 = load i64, ptr %19, align 8, !tbaa !9
  %82 = load i64, ptr %16, align 8, !tbaa !9
  %83 = icmp sle i64 %81, %82
  br i1 %83, label %84, label %128

84:                                               ; preds = %80
  %85 = load i64, ptr %19, align 8, !tbaa !9
  %86 = load i64, ptr %20, align 8, !tbaa !9
  %87 = add nsw i64 %86, %85
  store i64 %87, ptr %20, align 8, !tbaa !9
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = load i64, ptr %20, align 8, !tbaa !9
  %90 = getelementptr inbounds double, ptr %88, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !11
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load i64, ptr %19, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  store double %91, ptr %94, align 8, !tbaa !11
  %95 = load double, ptr %21, align 8, !tbaa !11
  store double %95, ptr %17, align 8, !tbaa !11
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = load i64, ptr %19, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !11
  store double %99, ptr %18, align 8, !tbaa !11
  %100 = load double, ptr %17, align 8, !tbaa !11
  %101 = load double, ptr %18, align 8, !tbaa !11
  %102 = fcmp ole double %100, %101
  br i1 %102, label %103, label %105

103:                                              ; preds = %84
  %104 = load double, ptr %17, align 8, !tbaa !11
  br label %107

105:                                              ; preds = %84
  %106 = load double, ptr %18, align 8, !tbaa !11
  br label %107

107:                                              ; preds = %105, %103
  %108 = phi double [ %104, %103 ], [ %106, %105 ]
  store double %108, ptr %21, align 8, !tbaa !11
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load double, ptr %109, align 8, !tbaa !11
  store double %110, ptr %17, align 8, !tbaa !11
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load i64, ptr %19, align 8, !tbaa !9
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !11
  store double %114, ptr %18, align 8, !tbaa !11
  %115 = load double, ptr %17, align 8, !tbaa !11
  %116 = load double, ptr %18, align 8, !tbaa !11
  %117 = fcmp oge double %115, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %107
  %119 = load double, ptr %17, align 8, !tbaa !11
  br label %122

120:                                              ; preds = %107
  %121 = load double, ptr %18, align 8, !tbaa !11
  br label %122

122:                                              ; preds = %120, %118
  %123 = phi double [ %119, %118 ], [ %121, %120 ]
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  store double %123, ptr %124, align 8, !tbaa !11
  br label %125

125:                                              ; preds = %122
  %126 = load i64, ptr %19, align 8, !tbaa !9
  %127 = add nsw i64 %126, 1
  store i64 %127, ptr %19, align 8, !tbaa !9
  br label %80, !llvm.loop !13

128:                                              ; preds = %80
  br label %185

129:                                              ; preds = %62
  store i64 1, ptr %20, align 8, !tbaa !9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load i64, ptr %130, align 8, !tbaa !9
  store i64 %131, ptr %16, align 8, !tbaa !9
  store i64 2, ptr %19, align 8, !tbaa !9
  br label %132

132:                                              ; preds = %181, %129
  %133 = load i64, ptr %19, align 8, !tbaa !9
  %134 = load i64, ptr %16, align 8, !tbaa !9
  %135 = icmp sle i64 %133, %134
  br i1 %135, label %136, label %184

136:                                              ; preds = %132
  %137 = load i64, ptr %20, align 8, !tbaa !9
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = add nsw i64 %137, %139
  %141 = load i64, ptr %19, align 8, !tbaa !9
  %142 = sub nsw i64 %140, %141
  %143 = add nsw i64 %142, 2
  store i64 %143, ptr %20, align 8, !tbaa !9
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = load i64, ptr %20, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  %147 = load double, ptr %146, align 8, !tbaa !11
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = load i64, ptr %19, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %148, i64 %149
  store double %147, ptr %150, align 8, !tbaa !11
  %151 = load double, ptr %21, align 8, !tbaa !11
  store double %151, ptr %17, align 8, !tbaa !11
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load i64, ptr %19, align 8, !tbaa !9
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  store double %155, ptr %18, align 8, !tbaa !11
  %156 = load double, ptr %17, align 8, !tbaa !11
  %157 = load double, ptr %18, align 8, !tbaa !11
  %158 = fcmp ole double %156, %157
  br i1 %158, label %159, label %161

159:                                              ; preds = %136
  %160 = load double, ptr %17, align 8, !tbaa !11
  br label %163

161:                                              ; preds = %136
  %162 = load double, ptr %18, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %161, %159
  %164 = phi double [ %160, %159 ], [ %162, %161 ]
  store double %164, ptr %21, align 8, !tbaa !11
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load double, ptr %165, align 8, !tbaa !11
  store double %166, ptr %17, align 8, !tbaa !11
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load i64, ptr %19, align 8, !tbaa !9
  %169 = getelementptr inbounds double, ptr %167, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !11
  store double %170, ptr %18, align 8, !tbaa !11
  %171 = load double, ptr %17, align 8, !tbaa !11
  %172 = load double, ptr %18, align 8, !tbaa !11
  %173 = fcmp oge double %171, %172
  br i1 %173, label %174, label %176

174:                                              ; preds = %163
  %175 = load double, ptr %17, align 8, !tbaa !11
  br label %178

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

178:                                              ; preds = %176, %174
  %179 = phi double [ %175, %174 ], [ %177, %176 ]
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  store double %179, ptr %180, align 8, !tbaa !11
  br label %181

181:                                              ; preds = %178
  %182 = load i64, ptr %19, align 8, !tbaa !9
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %19, align 8, !tbaa !9
  br label %132, !llvm.loop !15

184:                                              ; preds = %132
  br label %185

185:                                              ; preds = %184, %128
  %186 = load double, ptr %21, align 8, !tbaa !11
  %187 = fcmp ole double %186, 0.000000e+00
  br i1 %187, label %188, label %209

188:                                              ; preds = %185
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = load i64, ptr %189, align 8, !tbaa !9
  store i64 %190, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %191

191:                                              ; preds = %205, %188
  %192 = load i64, ptr %19, align 8, !tbaa !9
  %193 = load i64, ptr %16, align 8, !tbaa !9
  %194 = icmp sle i64 %192, %193
  br i1 %194, label %195, label %208

195:                                              ; preds = %191
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i64, ptr %19, align 8, !tbaa !9
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = fcmp ole double %199, 0.000000e+00
  br i1 %200, label %201, label %204

201:                                              ; preds = %195
  %202 = load i64, ptr %19, align 8, !tbaa !9
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %202, ptr %203, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %238

204:                                              ; preds = %195
  br label %205

205:                                              ; preds = %204
  %206 = load i64, ptr %19, align 8, !tbaa !9
  %207 = add nsw i64 %206, 1
  store i64 %207, ptr %19, align 8, !tbaa !9
  br label %191, !llvm.loop !16

208:                                              ; preds = %191
  br label %237

209:                                              ; preds = %185
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = load i64, ptr %210, align 8, !tbaa !9
  store i64 %211, ptr %16, align 8, !tbaa !9
  store i64 1, ptr %19, align 8, !tbaa !9
  br label %212

212:                                              ; preds = %226, %209
  %213 = load i64, ptr %19, align 8, !tbaa !9
  %214 = load i64, ptr %16, align 8, !tbaa !9
  %215 = icmp sle i64 %213, %214
  br i1 %215, label %216, label %229

216:                                              ; preds = %212
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = load i64, ptr %19, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !11
  %221 = call double @sqrt(double noundef %220) #4
  %222 = fdiv double 1.000000e+00, %221
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = load i64, ptr %19, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  store double %222, ptr %225, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %216
  %227 = load i64, ptr %19, align 8, !tbaa !9
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %19, align 8, !tbaa !9
  br label %212, !llvm.loop !17

229:                                              ; preds = %212
  %230 = load double, ptr %21, align 8, !tbaa !11
  %231 = call double @sqrt(double noundef %230) #4
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = load double, ptr %232, align 8, !tbaa !11
  %234 = call double @sqrt(double noundef %233) #4
  %235 = fdiv double %231, %234
  %236 = load ptr, ptr %13, align 8, !tbaa !5
  store double %235, ptr %236, align 8, !tbaa !11
  br label %237

237:                                              ; preds = %229, %208
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %238

238:                                              ; preds = %237, %201, %59, %50
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %239 = load i32, ptr %8, align 4
  ret i32 %239
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #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 = { 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 #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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dppequ_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %9 = getelementptr inbounds i8, ptr %3, i64 -8
  %10 = getelementptr inbounds i8, ptr %2, i64 -8
  store i64 0, ptr %6, align 8, !tbaa !5
  %11 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %11, 0
  br i1 %.not, label %12, label %14

12:                                               ; preds = %7
  %13 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not93 = icmp eq i64 %13, 0
  br i1 %.not93, label %.thread.sink.split, label %14

14:                                               ; preds = %12, %7
  %15 = load i64, ptr %1, align 8, !tbaa !5
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %.thread.sink.split, label %17

17:                                               ; preds = %14
  %.pr = load i64, ptr %6, align 8, !tbaa !5
  %.not94 = icmp eq i64 %.pr, 0
  br i1 %.not94, label %21, label %.thread

.thread.sink.split:                               ; preds = %14, %12
  %.sink = phi i64 [ -1, %12 ], [ -2, %14 ]
  store i64 %.sink, ptr %6, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %17
  %18 = phi i64 [ %.pr, %17 ], [ %.sink, %.thread.sink.split ]
  %19 = sub nsw i64 0, %18
  store i64 %19, ptr %8, align 8, !tbaa !5
  %20 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %8) #4
  br label %.loopexit

21:                                               ; preds = %17
  %22 = icmp eq i64 %15, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %21
  store double 1.000000e+00, ptr %4, align 8, !tbaa !9
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  br label %.loopexit

24:                                               ; preds = %21
  %25 = load double, ptr %2, align 8, !tbaa !9
  store double %25, ptr %3, align 8, !tbaa !9
  store double %25, ptr %5, align 8, !tbaa !9
  %.not95107 = icmp eq i64 %15, 1
  br i1 %.not, label %37, label %26

26:                                               ; preds = %24
  br i1 %.not95107, label %.loopexit100, label %.lr.ph

.lr.ph:                                           ; preds = %26, %.lr.ph
  %.087106 = phi double [ %32, %.lr.ph ], [ %25, %26 ]
  %.088105 = phi i64 [ %27, %.lr.ph ], [ 1, %26 ]
  %.090104 = phi i64 [ %36, %.lr.ph ], [ 2, %26 ]
  %27 = add nuw nsw i64 %.088105, %.090104
  %28 = getelementptr inbounds double, ptr %10, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds double, ptr %9, i64 %.090104
  store double %29, ptr %30, align 8, !tbaa !9
  %31 = fcmp ole double %.087106, %29
  %32 = select i1 %31, double %.087106, double %29
  %33 = load double, ptr %5, align 8, !tbaa !9
  %34 = fcmp oge double %33, %29
  %35 = select i1 %34, double %33, double %29
  store double %35, ptr %5, align 8, !tbaa !9
  %36 = add nuw i64 %.090104, 1
  %exitcond.not = icmp eq i64 %.090104, %15
  br i1 %exitcond.not, label %.loopexit100, label %.lr.ph, !llvm.loop !11

37:                                               ; preds = %24
  br i1 %.not95107, label %.loopexit100, label %.lr.ph111

.lr.ph111:                                        ; preds = %37
  %38 = add nuw i64 %15, 2
  br label %39

39:                                               ; preds = %.lr.ph111, %39
  %.1110 = phi double [ %25, %.lr.ph111 ], [ %46, %39 ]
  %.189109 = phi i64 [ 1, %.lr.ph111 ], [ %41, %39 ]
  %.191108 = phi i64 [ 2, %.lr.ph111 ], [ %50, %39 ]
  %40 = sub i64 %38, %.191108
  %41 = add i64 %40, %.189109
  %42 = getelementptr inbounds double, ptr %10, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %9, i64 %.191108
  store double %43, ptr %44, align 8, !tbaa !9
  %45 = fcmp ole double %.1110, %43
  %46 = select i1 %45, double %.1110, double %43
  %47 = load double, ptr %5, align 8, !tbaa !9
  %48 = fcmp oge double %47, %43
  %49 = select i1 %48, double %47, double %43
  store double %49, ptr %5, align 8, !tbaa !9
  %50 = add nuw i64 %.191108, 1
  %exitcond122.not = icmp eq i64 %.191108, %15
  br i1 %exitcond122.not, label %.loopexit100, label %39, !llvm.loop !13

.loopexit100:                                     ; preds = %.lr.ph, %39, %26, %37
  %.2 = phi double [ %25, %37 ], [ %25, %26 ], [ %46, %39 ], [ %32, %.lr.ph ]
  %51 = fcmp ugt double %.2, 0.000000e+00
  br i1 %51, label %.lr.ph118.preheader, label %.lr.ph115

.lr.ph118.preheader:                              ; preds = %.loopexit100
  %xtraiter = and i64 %15, 3
  %52 = icmp ult i64 %15, 4
  br i1 %52, label %._crit_edge.unr-lcssa, label %.lr.ph118.preheader.new

.lr.ph118.preheader.new:                          ; preds = %.lr.ph118.preheader
  %unroll_iter = and i64 %15, 9223372036854775804
  %invariant.gep = getelementptr i8, ptr %9, i64 16
  %invariant.gep137 = getelementptr i8, ptr %9, i64 24
  br label %.lr.ph118

.lr.ph115:                                        ; preds = %.loopexit100, %57
  %.292114 = phi i64 [ %58, %57 ], [ 1, %.loopexit100 ]
  %53 = getelementptr inbounds double, ptr %9, i64 %.292114
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = fcmp ugt double %54, 0.000000e+00
  br i1 %55, label %57, label %56

56:                                               ; preds = %.lr.ph115
  store i64 %.292114, ptr %6, align 8, !tbaa !5
  br label %.loopexit

57:                                               ; preds = %.lr.ph115
  %58 = add nuw i64 %.292114, 1
  %exitcond123.not = icmp eq i64 %.292114, %15
  br i1 %exitcond123.not, label %.loopexit, label %.lr.ph115, !llvm.loop !14

.lr.ph118:                                        ; preds = %.lr.ph118, %.lr.ph118.preheader.new
  %.3117 = phi i64 [ 1, %.lr.ph118.preheader.new ], [ %73, %.lr.ph118 ]
  %niter = phi i64 [ 0, %.lr.ph118.preheader.new ], [ %niter.next.3, %.lr.ph118 ]
  %59 = getelementptr inbounds double, ptr %9, i64 %.3117
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = tail call double @sqrt(double noundef %60) #4
  %62 = fdiv double 1.000000e+00, %61
  store double %62, ptr %59, align 8, !tbaa !9
  %63 = getelementptr double, ptr %3, i64 %.3117
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = tail call double @sqrt(double noundef %64) #4
  %66 = fdiv double 1.000000e+00, %65
  store double %66, ptr %63, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %.3117
  %67 = load double, ptr %gep, align 8, !tbaa !9
  %68 = tail call double @sqrt(double noundef %67) #4
  %69 = fdiv double 1.000000e+00, %68
  store double %69, ptr %gep, align 8, !tbaa !9
  %gep138 = getelementptr double, ptr %invariant.gep137, i64 %.3117
  %70 = load double, ptr %gep138, align 8, !tbaa !9
  %71 = tail call double @sqrt(double noundef %70) #4
  %72 = fdiv double 1.000000e+00, %71
  store double %72, ptr %gep138, align 8, !tbaa !9
  %73 = add nuw i64 %.3117, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph118, !llvm.loop !15

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph118, %.lr.ph118.preheader
  %.3117.unr = phi i64 [ 1, %.lr.ph118.preheader ], [ %73, %.lr.ph118 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph118.epil

.lr.ph118.epil:                                   ; preds = %._crit_edge.unr-lcssa, %.lr.ph118.epil
  %.3117.epil = phi i64 [ %78, %.lr.ph118.epil ], [ %.3117.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph118.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %74 = getelementptr inbounds double, ptr %9, i64 %.3117.epil
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = tail call double @sqrt(double noundef %75) #4
  %77 = fdiv double 1.000000e+00, %76
  store double %77, ptr %74, align 8, !tbaa !9
  %78 = add nuw i64 %.3117.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph118.epil, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph118.epil, %._crit_edge.unr-lcssa
  %79 = tail call double @sqrt(double noundef %.2) #4
  %80 = load double, ptr %5, align 8, !tbaa !9
  %81 = tail call double @sqrt(double noundef %80) #4
  %82 = fdiv double %79, %81
  store double %82, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %57, %._crit_edge, %56, %23, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  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 i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress 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 = { 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 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 #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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}


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