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

; 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 @dpbequ_(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 double, align 8
  %24 = alloca double, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca i64, align 8
  %29 = 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
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = load i64, ptr %30, align 8, !tbaa !9
  store i64 %31, ptr %20, align 8, !tbaa !9
  %32 = load i64, ptr %20, align 8, !tbaa !9
  %33 = add nsw i64 1, %32
  store i64 %33, ptr %21, align 8, !tbaa !9
  %34 = load i64, ptr %21, align 8, !tbaa !9
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = sub i64 0, %34
  %37 = getelementptr inbounds double, ptr %35, i64 %36
  store ptr %37, ptr %14, align 8, !tbaa !5
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i32 -1
  store ptr %39, ptr %16, align 8, !tbaa !5
  %40 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %40, align 8, !tbaa !9
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = call i64 @lsame_(ptr noundef %41, ptr noundef @.str)
  store i64 %42, ptr %28, align 8, !tbaa !9
  %43 = load i64, ptr %28, align 8, !tbaa !9
  %44 = icmp ne i64 %43, 0
  br i1 %44, label %51, label %45

45:                                               ; preds = %9
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = call i64 @lsame_(ptr noundef %46, ptr noundef @.str.1)
  %48 = icmp ne i64 %47, 0
  br i1 %48, label %51, label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %50, align 8, !tbaa !9
  br label %75

51:                                               ; preds = %45, %9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp slt i64 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %56, align 8, !tbaa !9
  br label %74

57:                                               ; preds = %51
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = icmp slt i64 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %62, align 8, !tbaa !9
  br label %73

63:                                               ; preds = %57
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = add nsw i64 %67, 1
  %69 = icmp slt i64 %65, %68
  br i1 %69, label %70, label %72

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

72:                                               ; preds = %70, %63
  br label %73

73:                                               ; preds = %72, %61
  br label %74

74:                                               ; preds = %73, %55
  br label %75

75:                                               ; preds = %74, %49
  %76 = load ptr, ptr %19, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %79, label %84

79:                                               ; preds = %75
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = sub nsw i64 0, %81
  store i64 %82, ptr %22, align 8, !tbaa !9
  %83 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %29, align 4
  br label %219

84:                                               ; preds = %75
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %88, label %91

88:                                               ; preds = %84
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  store double 1.000000e+00, ptr %89, align 8, !tbaa !11
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  store double 0.000000e+00, ptr %90, align 8, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %29, align 4
  br label %219

91:                                               ; preds = %84
  %92 = load i64, ptr %28, align 8, !tbaa !9
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %94, label %98

94:                                               ; preds = %91
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = add nsw i64 %96, 1
  store i64 %97, ptr %26, align 8, !tbaa !9
  br label %99

98:                                               ; preds = %91
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %98, %94
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = load i64, ptr %26, align 8, !tbaa !9
  %102 = load i64, ptr %20, align 8, !tbaa !9
  %103 = add nsw i64 %101, %102
  %104 = getelementptr inbounds double, ptr %100, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !11
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 1
  store double %105, ptr %107, align 8, !tbaa !11
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = getelementptr inbounds double, ptr %108, i64 1
  %110 = load double, ptr %109, align 8, !tbaa !11
  store double %110, ptr %27, align 8, !tbaa !11
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds double, ptr %111, i64 1
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  store double %113, ptr %114, align 8, !tbaa !11
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  store i64 %116, ptr %22, align 8, !tbaa !9
  store i64 2, ptr %25, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %163, %99
  %118 = load i64, ptr %25, align 8, !tbaa !9
  %119 = load i64, ptr %22, align 8, !tbaa !9
  %120 = icmp sle i64 %118, %119
  br i1 %120, label %121, label %166

121:                                              ; preds = %117
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = load i64, ptr %26, align 8, !tbaa !9
  %124 = load i64, ptr %25, align 8, !tbaa !9
  %125 = load i64, ptr %20, align 8, !tbaa !9
  %126 = mul nsw i64 %124, %125
  %127 = add nsw i64 %123, %126
  %128 = getelementptr inbounds double, ptr %122, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = load i64, ptr %25, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  store double %129, ptr %132, align 8, !tbaa !11
  %133 = load double, ptr %27, align 8, !tbaa !11
  store double %133, ptr %23, align 8, !tbaa !11
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = load i64, ptr %25, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !11
  store double %137, ptr %24, align 8, !tbaa !11
  %138 = load double, ptr %23, align 8, !tbaa !11
  %139 = load double, ptr %24, align 8, !tbaa !11
  %140 = fcmp ole double %138, %139
  br i1 %140, label %141, label %143

141:                                              ; preds = %121
  %142 = load double, ptr %23, align 8, !tbaa !11
  br label %145

143:                                              ; preds = %121
  %144 = load double, ptr %24, align 8, !tbaa !11
  br label %145

145:                                              ; preds = %143, %141
  %146 = phi double [ %142, %141 ], [ %144, %143 ]
  store double %146, ptr %27, align 8, !tbaa !11
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = load double, ptr %147, align 8, !tbaa !11
  store double %148, ptr %23, align 8, !tbaa !11
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = load i64, ptr %25, align 8, !tbaa !9
  %151 = getelementptr inbounds double, ptr %149, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  store double %152, ptr %24, align 8, !tbaa !11
  %153 = load double, ptr %23, align 8, !tbaa !11
  %154 = load double, ptr %24, align 8, !tbaa !11
  %155 = fcmp oge double %153, %154
  br i1 %155, label %156, label %158

156:                                              ; preds = %145
  %157 = load double, ptr %23, align 8, !tbaa !11
  br label %160

158:                                              ; preds = %145
  %159 = load double, ptr %24, align 8, !tbaa !11
  br label %160

160:                                              ; preds = %158, %156
  %161 = phi double [ %157, %156 ], [ %159, %158 ]
  %162 = load ptr, ptr %18, align 8, !tbaa !5
  store double %161, ptr %162, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %160
  %164 = load i64, ptr %25, align 8, !tbaa !9
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %25, align 8, !tbaa !9
  br label %117, !llvm.loop !13

166:                                              ; preds = %117
  %167 = load double, ptr %27, align 8, !tbaa !11
  %168 = fcmp ole double %167, 0.000000e+00
  br i1 %168, label %169, label %190

169:                                              ; preds = %166
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  store i64 %171, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %186, %169
  %173 = load i64, ptr %25, align 8, !tbaa !9
  %174 = load i64, ptr %22, align 8, !tbaa !9
  %175 = icmp sle i64 %173, %174
  br i1 %175, label %176, label %189

176:                                              ; preds = %172
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load i64, ptr %25, align 8, !tbaa !9
  %179 = getelementptr inbounds double, ptr %177, i64 %178
  %180 = load double, ptr %179, align 8, !tbaa !11
  %181 = fcmp ole double %180, 0.000000e+00
  br i1 %181, label %182, label %185

182:                                              ; preds = %176
  %183 = load i64, ptr %25, align 8, !tbaa !9
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 %183, ptr %184, align 8, !tbaa !9
  store i32 0, ptr %10, align 4
  store i32 1, ptr %29, align 4
  br label %219

185:                                              ; preds = %176
  br label %186

186:                                              ; preds = %185
  %187 = load i64, ptr %25, align 8, !tbaa !9
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %25, align 8, !tbaa !9
  br label %172, !llvm.loop !15

189:                                              ; preds = %172
  br label %218

190:                                              ; preds = %166
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = load i64, ptr %191, align 8, !tbaa !9
  store i64 %192, ptr %22, align 8, !tbaa !9
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %193

193:                                              ; preds = %207, %190
  %194 = load i64, ptr %25, align 8, !tbaa !9
  %195 = load i64, ptr %22, align 8, !tbaa !9
  %196 = icmp sle i64 %194, %195
  br i1 %196, label %197, label %210

197:                                              ; preds = %193
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load i64, ptr %25, align 8, !tbaa !9
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !11
  %202 = call double @sqrt(double noundef %201) #4
  %203 = fdiv double 1.000000e+00, %202
  %204 = load ptr, ptr %16, align 8, !tbaa !5
  %205 = load i64, ptr %25, align 8, !tbaa !9
  %206 = getelementptr inbounds double, ptr %204, i64 %205
  store double %203, ptr %206, align 8, !tbaa !11
  br label %207

207:                                              ; preds = %197
  %208 = load i64, ptr %25, align 8, !tbaa !9
  %209 = add nsw i64 %208, 1
  store i64 %209, ptr %25, align 8, !tbaa !9
  br label %193, !llvm.loop !16

210:                                              ; preds = %193
  %211 = load double, ptr %27, align 8, !tbaa !11
  %212 = call double @sqrt(double noundef %211) #4
  %213 = load ptr, ptr %18, align 8, !tbaa !5
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = call double @sqrt(double noundef %214) #4
  %216 = fdiv double %212, %215
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  store double %216, ptr %217, align 8, !tbaa !11
  br label %218

218:                                              ; preds = %210, %189
  store i32 0, ptr %10, align 4
  store i32 1, ptr %29, align 4
  br label %219

219:                                              ; preds = %218, %182, %88, %79
  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
  %220 = load i32, ptr %10, align 4
  ret i32 %220
}

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


; 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 @dpbequ_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef %7, ptr nocapture noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = load i64, ptr %4, align 8, !tbaa !5
  %12 = xor i64 %11, -1
  %13 = getelementptr inbounds double, ptr %3, i64 %12
  %14 = getelementptr inbounds i8, ptr %5, i64 -8
  store i64 0, ptr %8, align 8, !tbaa !5
  %15 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %15, 0
  br i1 %.not, label %16, label %18

16:                                               ; preds = %9
  %17 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not77 = icmp eq i64 %17, 0
  br i1 %.not77, label %.thread.sink.split, label %18

18:                                               ; preds = %16, %9
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %20 = icmp slt i64 %19, 0
  br i1 %20, label %.thread.sink.split, label %21

21:                                               ; preds = %18
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %.thread.sink.split, label %24

24:                                               ; preds = %21
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %.not78 = icmp sgt i64 %25, %22
  br i1 %.not78, label %26, label %.thread.sink.split

26:                                               ; preds = %24
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not79 = icmp eq i64 %.pr, 0
  br i1 %.not79, label %30, label %.thread

.thread.sink.split:                               ; preds = %24, %21, %18, %16
  %.sink = phi i64 [ -1, %16 ], [ -2, %18 ], [ -3, %21 ], [ -5, %24 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

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

30:                                               ; preds = %26
  %31 = icmp eq i64 %19, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  br label %.loopexit

33:                                               ; preds = %30
  %34 = add nuw nsw i64 %22, 1
  %spec.select = select i1 %.not, i64 1, i64 %34
  %35 = getelementptr double, ptr %13, i64 %spec.select
  %36 = getelementptr double, ptr %35, i64 %11
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %5, align 8, !tbaa !9
  store double %37, ptr %7, align 8, !tbaa !9
  %.not8085 = icmp eq i64 %19, 1
  br i1 %.not8085, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %33, %.lr.ph
  %.07387 = phi double [ %43, %.lr.ph ], [ %37, %33 ]
  %.07586 = phi i64 [ %47, %.lr.ph ], [ 2, %33 ]
  %38 = mul nsw i64 %.07586, %11
  %39 = getelementptr double, ptr %35, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds double, ptr %14, i64 %.07586
  store double %40, ptr %41, align 8, !tbaa !9
  %42 = fcmp ole double %.07387, %40
  %43 = select i1 %42, double %.07387, double %40
  %44 = load double, ptr %7, align 8, !tbaa !9
  %45 = fcmp oge double %44, %40
  %46 = select i1 %45, double %44, double %40
  store double %46, ptr %7, align 8, !tbaa !9
  %47 = add nuw i64 %.07586, 1
  %exitcond.not = icmp eq i64 %.07586, %19
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %33
  %.073.lcssa = phi double [ %37, %33 ], [ %43, %.lr.ph ]
  %48 = fcmp ugt double %.073.lcssa, 0.000000e+00
  br i1 %48, label %.lr.ph95.preheader, label %.lr.ph91

.lr.ph95.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i64 %19, 3
  %49 = icmp ult i64 %19, 4
  br i1 %49, label %._crit_edge96.unr-lcssa, label %.lr.ph95.preheader.new

.lr.ph95.preheader.new:                           ; preds = %.lr.ph95.preheader
  %unroll_iter = and i64 %19, 9223372036854775804
  %invariant.gep = getelementptr i8, ptr %14, i64 16
  %invariant.gep105 = getelementptr i8, ptr %14, i64 24
  br label %.lr.ph95

.lr.ph91:                                         ; preds = %._crit_edge, %54
  %.189 = phi i64 [ %55, %54 ], [ 1, %._crit_edge ]
  %50 = getelementptr inbounds double, ptr %14, i64 %.189
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = fcmp ugt double %51, 0.000000e+00
  br i1 %52, label %54, label %53

53:                                               ; preds = %.lr.ph91
  store i64 %.189, ptr %8, align 8, !tbaa !5
  br label %.loopexit

54:                                               ; preds = %.lr.ph91
  %55 = add nuw i64 %.189, 1
  %exitcond98.not = icmp eq i64 %.189, %19
  br i1 %exitcond98.not, label %.loopexit, label %.lr.ph91, !llvm.loop !13

.lr.ph95:                                         ; preds = %.lr.ph95, %.lr.ph95.preheader.new
  %.293 = phi i64 [ 1, %.lr.ph95.preheader.new ], [ %70, %.lr.ph95 ]
  %niter = phi i64 [ 0, %.lr.ph95.preheader.new ], [ %niter.next.3, %.lr.ph95 ]
  %56 = getelementptr inbounds double, ptr %14, i64 %.293
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = tail call double @sqrt(double noundef %57) #4
  %59 = fdiv double 1.000000e+00, %58
  store double %59, ptr %56, align 8, !tbaa !9
  %60 = getelementptr double, ptr %5, i64 %.293
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = tail call double @sqrt(double noundef %61) #4
  %63 = fdiv double 1.000000e+00, %62
  store double %63, ptr %60, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %.293
  %64 = load double, ptr %gep, align 8, !tbaa !9
  %65 = tail call double @sqrt(double noundef %64) #4
  %66 = fdiv double 1.000000e+00, %65
  store double %66, ptr %gep, align 8, !tbaa !9
  %gep106 = getelementptr double, ptr %invariant.gep105, i64 %.293
  %67 = load double, ptr %gep106, align 8, !tbaa !9
  %68 = tail call double @sqrt(double noundef %67) #4
  %69 = fdiv double 1.000000e+00, %68
  store double %69, ptr %gep106, align 8, !tbaa !9
  %70 = add nuw i64 %.293, 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_edge96.unr-lcssa, label %.lr.ph95, !llvm.loop !14

._crit_edge96.unr-lcssa:                          ; preds = %.lr.ph95, %.lr.ph95.preheader
  %.293.unr = phi i64 [ 1, %.lr.ph95.preheader ], [ %70, %.lr.ph95 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge96, label %.lr.ph95.epil

.lr.ph95.epil:                                    ; preds = %._crit_edge96.unr-lcssa, %.lr.ph95.epil
  %.293.epil = phi i64 [ %75, %.lr.ph95.epil ], [ %.293.unr, %._crit_edge96.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph95.epil ], [ 0, %._crit_edge96.unr-lcssa ]
  %71 = getelementptr inbounds double, ptr %14, i64 %.293.epil
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = tail call double @sqrt(double noundef %72) #4
  %74 = fdiv double 1.000000e+00, %73
  store double %74, ptr %71, align 8, !tbaa !9
  %75 = add nuw i64 %.293.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_edge96, label %.lr.ph95.epil, !llvm.loop !15

._crit_edge96:                                    ; preds = %.lr.ph95.epil, %._crit_edge96.unr-lcssa
  %76 = tail call double @sqrt(double noundef %.073.lcssa) #4
  %77 = load double, ptr %7, align 8, !tbaa !9
  %78 = tail call double @sqrt(double noundef %77) #4
  %79 = fdiv double %76, %78
  store double %79, ptr %6, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %54, %._crit_edge96, %53, %32, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #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, !16}
!16 = !{!"llvm.loop.unroll.disable"}


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