; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 void @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 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 ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 4, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %30, ptr %19, align 4, !tbaa !9
  %31 = load i32, ptr %19, align 4, !tbaa !9
  %32 = mul nsw i32 %31, 1
  %33 = add nsw i32 1, %32
  store i32 %33, ptr %20, align 4, !tbaa !9
  %34 = load i32, ptr %20, align 4, !tbaa !9
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = sext i32 %34 to i64
  %37 = sub i64 0, %36
  %38 = getelementptr inbounds double, ptr %35, i64 %37
  store ptr %38, ptr %13, align 8, !tbaa !5
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i32 -1
  store ptr %40, ptr %15, align 8, !tbaa !5
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %41, align 4, !tbaa !9
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = call i32 @lsame_(ptr noundef %42, ptr noundef @.str)
  store i32 %43, ptr %27, align 4, !tbaa !9
  %44 = load i32, ptr %27, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %52, label %46

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

50:                                               ; preds = %46
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %51, align 4, !tbaa !9
  br label %76

52:                                               ; preds = %46, %9
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %57, align 4, !tbaa !9
  br label %75

58:                                               ; preds = %52
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = icmp slt i32 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -3, ptr %63, align 4, !tbaa !9
  br label %74

64:                                               ; preds = %58
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  %70 = icmp slt i32 %66, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %64
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -5, ptr %72, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %71, %64
  br label %74

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

75:                                               ; preds = %74, %56
  br label %76

76:                                               ; preds = %75, %50
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %76
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = sub nsw i32 0, %82
  store i32 %83, ptr %21, align 4, !tbaa !9
  %84 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %28, align 4
  br label %228

85:                                               ; preds = %76
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %85
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %90, align 8, !tbaa !11
  %91 = load ptr, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %91, align 8, !tbaa !11
  store i32 1, ptr %28, align 4
  br label %228

92:                                               ; preds = %85
  %93 = load i32, ptr %27, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %99

95:                                               ; preds = %92
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %26, align 4, !tbaa !9
  br label %100

99:                                               ; preds = %92
  store i32 1, ptr %26, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %99, %95
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i32, ptr %26, align 4, !tbaa !9
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = add nsw i32 %102, %103
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %101, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds double, ptr %108, i64 1
  store double %107, ptr %109, align 8, !tbaa !11
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = getelementptr inbounds double, ptr %110, i64 1
  %112 = load double, ptr %111, align 8, !tbaa !11
  store double %112, ptr %24, align 8, !tbaa !11
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds double, ptr %113, i64 1
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  store double %115, ptr %116, align 8, !tbaa !11
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  store i32 %118, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %25, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %169, %100
  %120 = load i32, ptr %25, align 4, !tbaa !9
  %121 = load i32, ptr %21, align 4, !tbaa !9
  %122 = icmp sle i32 %120, %121
  br i1 %122, label %123, label %172

123:                                              ; preds = %119
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load i32, ptr %26, align 4, !tbaa !9
  %126 = load i32, ptr %25, align 4, !tbaa !9
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = mul nsw i32 %126, %127
  %129 = add nsw i32 %125, %128
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %124, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = load i32, ptr %25, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  store double %132, ptr %136, align 8, !tbaa !11
  %137 = load double, ptr %24, align 8, !tbaa !11
  store double %137, ptr %22, align 8, !tbaa !11
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i32, ptr %25, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !11
  store double %142, ptr %23, align 8, !tbaa !11
  %143 = load double, ptr %22, align 8, !tbaa !11
  %144 = load double, ptr %23, align 8, !tbaa !11
  %145 = fcmp ole double %143, %144
  br i1 %145, label %146, label %148

146:                                              ; preds = %123
  %147 = load double, ptr %22, align 8, !tbaa !11
  br label %150

148:                                              ; preds = %123
  %149 = load double, ptr %23, align 8, !tbaa !11
  br label %150

150:                                              ; preds = %148, %146
  %151 = phi double [ %147, %146 ], [ %149, %148 ]
  store double %151, ptr %24, align 8, !tbaa !11
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = load double, ptr %152, align 8, !tbaa !11
  store double %153, ptr %22, align 8, !tbaa !11
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load i32, ptr %25, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !11
  store double %158, ptr %23, align 8, !tbaa !11
  %159 = load double, ptr %22, align 8, !tbaa !11
  %160 = load double, ptr %23, align 8, !tbaa !11
  %161 = fcmp oge double %159, %160
  br i1 %161, label %162, label %164

162:                                              ; preds = %150
  %163 = load double, ptr %22, align 8, !tbaa !11
  br label %166

164:                                              ; preds = %150
  %165 = load double, ptr %23, align 8, !tbaa !11
  br label %166

166:                                              ; preds = %164, %162
  %167 = phi double [ %163, %162 ], [ %165, %164 ]
  %168 = load ptr, ptr %17, align 8, !tbaa !5
  store double %167, ptr %168, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %166
  %170 = load i32, ptr %25, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %25, align 4, !tbaa !9
  br label %119, !llvm.loop !13

172:                                              ; preds = %119
  %173 = load double, ptr %24, align 8, !tbaa !11
  %174 = fcmp ole double %173, 0.000000e+00
  br i1 %174, label %175, label %197

175:                                              ; preds = %172
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load i32, ptr %176, align 4, !tbaa !9
  store i32 %177, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %193, %175
  %179 = load i32, ptr %25, align 4, !tbaa !9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = icmp sle i32 %179, %180
  br i1 %181, label %182, label %196

182:                                              ; preds = %178
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = load i32, ptr %25, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = fcmp ole double %187, 0.000000e+00
  br i1 %188, label %189, label %192

189:                                              ; preds = %182
  %190 = load i32, ptr %25, align 4, !tbaa !9
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %190, ptr %191, align 4, !tbaa !9
  store i32 1, ptr %28, align 4
  br label %228

192:                                              ; preds = %182
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %25, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %25, align 4, !tbaa !9
  br label %178, !llvm.loop !15

196:                                              ; preds = %178
  br label %227

197:                                              ; preds = %172
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load i32, ptr %198, align 4, !tbaa !9
  store i32 %199, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %25, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %216, %197
  %201 = load i32, ptr %25, align 4, !tbaa !9
  %202 = load i32, ptr %21, align 4, !tbaa !9
  %203 = icmp sle i32 %201, %202
  br i1 %203, label %204, label %219

204:                                              ; preds = %200
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = load i32, ptr %25, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds double, ptr %205, i64 %207
  %209 = load double, ptr %208, align 8, !tbaa !11
  %210 = call double @sqrt(double noundef %209) #4
  %211 = fdiv double 1.000000e+00, %210
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = load i32, ptr %25, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  store double %211, ptr %215, align 8, !tbaa !11
  br label %216

216:                                              ; preds = %204
  %217 = load i32, ptr %25, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %25, align 4, !tbaa !9
  br label %200, !llvm.loop !16

219:                                              ; preds = %200
  %220 = load double, ptr %24, align 8, !tbaa !11
  %221 = call double @sqrt(double noundef %220) #4
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = load double, ptr %222, align 8, !tbaa !11
  %224 = call double @sqrt(double noundef %223) #4
  %225 = fdiv double %221, %224
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  store double %225, ptr %226, align 8, !tbaa !11
  br label %227

227:                                              ; preds = %219, %196
  store i32 1, ptr %28, align 4
  br label %228

228:                                              ; preds = %227, %189, %89, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  ret void
}

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

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

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

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

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

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

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

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

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

30:                                               ; preds = %26
  %31 = icmp eq i32 %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 i32 %22, 1
  %spec.select = select i1 %.not, i32 1, i32 %34
  %35 = add nsw i32 %spec.select, %11
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds double, ptr %13, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !9
  store double %38, ptr %5, align 8, !tbaa !9
  store double %38, ptr %7, align 8, !tbaa !9
  %.not7984 = icmp eq i32 %19, 1
  br i1 %.not7984, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %33
  %39 = sext i32 %11 to i64
  %40 = zext nneg i32 %spec.select to i64
  %41 = add nuw i32 %19, 1
  %wide.trip.count = zext i32 %41 to i64
  %invariant.gep = getelementptr double, ptr %13, i64 %40
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.07385 = phi double [ %38, %.lr.ph.preheader ], [ %46, %.lr.ph ]
  %42 = mul nsw i64 %indvars.iv, %39
  %gep = getelementptr double, ptr %invariant.gep, i64 %42
  %43 = load double, ptr %gep, align 8, !tbaa !9
  %44 = getelementptr inbounds double, ptr %14, i64 %indvars.iv
  store double %43, ptr %44, align 8, !tbaa !9
  %45 = fcmp ole double %.07385, %43
  %46 = select i1 %45, double %.07385, double %43
  %47 = load double, ptr %7, align 8, !tbaa !9
  %48 = fcmp oge double %47, %43
  %49 = select i1 %48, double %47, double %43
  store double %49, ptr %7, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %33
  %.073.lcssa = phi double [ %38, %33 ], [ %46, %.lr.ph ]
  %50 = fcmp ugt double %.073.lcssa, 0.000000e+00
  %51 = add nuw i32 %19, 1
  %wide.trip.count106 = zext i32 %51 to i64
  br i1 %50, label %.lr.ph94.preheader, label %.lr.ph90

.lr.ph94.preheader:                               ; preds = %._crit_edge
  %52 = zext nneg i32 %19 to i64
  %53 = add nsw i64 %wide.trip.count106, -2
  %xtraiter = and i64 %52, 3
  %54 = icmp ult i64 %53, 3
  br i1 %54, label %._crit_edge95.unr-lcssa, label %.lr.ph94.preheader.new

.lr.ph94.preheader.new:                           ; preds = %.lr.ph94.preheader
  %unroll_iter = and i64 %52, 2147483644
  %invariant.gep112 = getelementptr inbounds i8, ptr %14, i64 16
  %invariant.gep114 = getelementptr inbounds i8, ptr %14, i64 24
  br label %.lr.ph94

.lr.ph90:                                         ; preds = %._crit_edge, %60
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %60 ], [ 1, %._crit_edge ]
  %55 = getelementptr inbounds double, ptr %14, i64 %indvars.iv98
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = fcmp ugt double %56, 0.000000e+00
  br i1 %57, label %60, label %58

58:                                               ; preds = %.lr.ph90
  %59 = trunc nuw nsw i64 %indvars.iv98 to i32
  store i32 %59, ptr %8, align 4, !tbaa !5
  br label %.loopexit

60:                                               ; preds = %.lr.ph90
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next99, %wide.trip.count106
  br i1 %exitcond102.not, label %.loopexit, label %.lr.ph90, !llvm.loop !13

.lr.ph94:                                         ; preds = %.lr.ph94, %.lr.ph94.preheader.new
  %indvars.iv103 = phi i64 [ 1, %.lr.ph94.preheader.new ], [ %indvars.iv.next104.3, %.lr.ph94 ]
  %niter = phi i64 [ 0, %.lr.ph94.preheader.new ], [ %niter.next.3, %.lr.ph94 ]
  %61 = getelementptr inbounds double, ptr %14, i64 %indvars.iv103
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = tail call double @sqrt(double noundef %62) #4
  %64 = fdiv double 1.000000e+00, %63
  store double %64, ptr %61, align 8, !tbaa !9
  %65 = getelementptr double, ptr %5, i64 %indvars.iv103
  %66 = load double, ptr %65, align 8, !tbaa !9
  %67 = tail call double @sqrt(double noundef %66) #4
  %68 = fdiv double 1.000000e+00, %67
  store double %68, ptr %65, align 8, !tbaa !9
  %gep113 = getelementptr inbounds double, ptr %invariant.gep112, i64 %indvars.iv103
  %69 = load double, ptr %gep113, align 8, !tbaa !9
  %70 = tail call double @sqrt(double noundef %69) #4
  %71 = fdiv double 1.000000e+00, %70
  store double %71, ptr %gep113, align 8, !tbaa !9
  %gep115 = getelementptr inbounds double, ptr %invariant.gep114, i64 %indvars.iv103
  %72 = load double, ptr %gep115, align 8, !tbaa !9
  %73 = tail call double @sqrt(double noundef %72) #4
  %74 = fdiv double 1.000000e+00, %73
  store double %74, ptr %gep115, align 8, !tbaa !9
  %indvars.iv.next104.3 = add nuw nsw i64 %indvars.iv103, 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_edge95.unr-lcssa, label %.lr.ph94, !llvm.loop !14

._crit_edge95.unr-lcssa:                          ; preds = %.lr.ph94, %.lr.ph94.preheader
  %indvars.iv103.unr = phi i64 [ 1, %.lr.ph94.preheader ], [ %indvars.iv.next104.3, %.lr.ph94 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge95, label %.lr.ph94.epil

.lr.ph94.epil:                                    ; preds = %._crit_edge95.unr-lcssa, %.lr.ph94.epil
  %indvars.iv103.epil = phi i64 [ %indvars.iv.next104.epil, %.lr.ph94.epil ], [ %indvars.iv103.unr, %._crit_edge95.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph94.epil ], [ 0, %._crit_edge95.unr-lcssa ]
  %75 = getelementptr inbounds double, ptr %14, i64 %indvars.iv103.epil
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = tail call double @sqrt(double noundef %76) #4
  %78 = fdiv double 1.000000e+00, %77
  store double %78, ptr %75, align 8, !tbaa !9
  %indvars.iv.next104.epil = add nuw nsw i64 %indvars.iv103.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_edge95, label %.lr.ph94.epil, !llvm.loop !15

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

.loopexit:                                        ; preds = %60, %._crit_edge95, %58, %32, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  ret void
}

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

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 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 = !{!"int", !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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass