; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dpoequ)

; 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 void @dpoequ_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, 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 4, ptr %21) #4
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %24, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %15, align 4, !tbaa !9
  %26 = mul nsw i32 %25, 1
  %27 = add nsw i32 1, %26
  store i32 %27, ptr %16, align 4, !tbaa !9
  %28 = load i32, ptr %16, align 4, !tbaa !9
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = sext i32 %28 to i64
  %31 = sub i64 0, %30
  %32 = getelementptr inbounds double, ptr %29, i64 %31
  store ptr %32, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %33, i32 -1
  store ptr %34, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %35, align 4, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %7
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -1, ptr %40, align 4, !tbaa !9
  br label %57

41:                                               ; preds = %7
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = icmp sge i32 1, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  br label %51

48:                                               ; preds = %41
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %48, %47
  %52 = phi i32 [ 1, %47 ], [ %50, %48 ]
  %53 = icmp slt i32 %43, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -3, ptr %55, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %54, %51
  br label %57

57:                                               ; preds = %56, %39
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %57
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = sub nsw i32 0, %63
  store i32 %64, ptr %17, align 4, !tbaa !9
  %65 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %17, i32 noundef 6)
  store i32 1, ptr %22, align 4
  br label %200

66:                                               ; preds = %57
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %66
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %71, align 8, !tbaa !11
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %72, align 8, !tbaa !11
  store i32 1, ptr %22, align 4
  br label %200

73:                                               ; preds = %66
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %74, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !11
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 1
  store double %79, ptr %81, align 8, !tbaa !11
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds double, ptr %82, i64 1
  %84 = load double, ptr %83, align 8, !tbaa !11
  store double %84, ptr %20, align 8, !tbaa !11
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds double, ptr %85, i64 1
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  store double %87, ptr %88, align 8, !tbaa !11
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !9
  store i32 %90, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %141, %73
  %92 = load i32, ptr %21, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = icmp sle i32 %92, %93
  br i1 %94, label %95, label %144

95:                                               ; preds = %91
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i32, ptr %21, align 4, !tbaa !9
  %98 = load i32, ptr %21, align 4, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = mul nsw i32 %98, %99
  %101 = add nsw i32 %97, %100
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %96, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i32, ptr %21, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  store double %104, ptr %108, align 8, !tbaa !11
  %109 = load double, ptr %20, align 8, !tbaa !11
  store double %109, ptr %18, align 8, !tbaa !11
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i32, ptr %21, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !11
  store double %114, ptr %19, align 8, !tbaa !11
  %115 = load double, ptr %18, align 8, !tbaa !11
  %116 = load double, ptr %19, align 8, !tbaa !11
  %117 = fcmp ole double %115, %116
  br i1 %117, label %118, label %120

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

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

122:                                              ; preds = %120, %118
  %123 = phi double [ %119, %118 ], [ %121, %120 ]
  store double %123, ptr %20, align 8, !tbaa !11
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = load double, ptr %124, align 8, !tbaa !11
  store double %125, ptr %18, align 8, !tbaa !11
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !11
  store double %130, ptr %19, align 8, !tbaa !11
  %131 = load double, ptr %18, align 8, !tbaa !11
  %132 = load double, ptr %19, align 8, !tbaa !11
  %133 = fcmp oge double %131, %132
  br i1 %133, label %134, label %136

134:                                              ; preds = %122
  %135 = load double, ptr %18, align 8, !tbaa !11
  br label %138

136:                                              ; preds = %122
  %137 = load double, ptr %19, align 8, !tbaa !11
  br label %138

138:                                              ; preds = %136, %134
  %139 = phi double [ %135, %134 ], [ %137, %136 ]
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  store double %139, ptr %140, align 8, !tbaa !11
  br label %141

141:                                              ; preds = %138
  %142 = load i32, ptr %21, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %21, align 4, !tbaa !9
  br label %91, !llvm.loop !13

144:                                              ; preds = %91
  %145 = load double, ptr %20, align 8, !tbaa !11
  %146 = fcmp ole double %145, 0.000000e+00
  br i1 %146, label %147, label %169

147:                                              ; preds = %144
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !9
  store i32 %149, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %165, %147
  %151 = load i32, ptr %21, align 4, !tbaa !9
  %152 = load i32, ptr %17, align 4, !tbaa !9
  %153 = icmp sle i32 %151, %152
  br i1 %153, label %154, label %168

154:                                              ; preds = %150
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load i32, ptr %21, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds double, ptr %155, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !11
  %160 = fcmp ole double %159, 0.000000e+00
  br i1 %160, label %161, label %164

161:                                              ; preds = %154
  %162 = load i32, ptr %21, align 4, !tbaa !9
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %162, ptr %163, align 4, !tbaa !9
  store i32 1, ptr %22, align 4
  br label %200

164:                                              ; preds = %154
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %21, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %21, align 4, !tbaa !9
  br label %150, !llvm.loop !15

168:                                              ; preds = %150
  br label %199

169:                                              ; preds = %144
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = load i32, ptr %170, align 4, !tbaa !9
  store i32 %171, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %188, %169
  %173 = load i32, ptr %21, align 4, !tbaa !9
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = icmp sle i32 %173, %174
  br i1 %175, label %176, label %191

176:                                              ; preds = %172
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = load i32, ptr %21, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !11
  %182 = call double @sqrt(double noundef %181) #4
  %183 = fdiv double 1.000000e+00, %182
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load i32, ptr %21, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %183, ptr %187, align 8, !tbaa !11
  br label %188

188:                                              ; preds = %176
  %189 = load i32, ptr %21, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %21, align 4, !tbaa !9
  br label %172, !llvm.loop !16

191:                                              ; preds = %172
  %192 = load double, ptr %20, align 8, !tbaa !11
  %193 = call double @sqrt(double noundef %192) #4
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = load double, ptr %194, align 8, !tbaa !11
  %196 = call double @sqrt(double noundef %195) #4
  %197 = fdiv double %193, %196
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  store double %197, ptr %198, align 8, !tbaa !11
  br label %199

199:                                              ; preds = %191, %168
  store i32 1, ptr %22, align 4
  br label %200

200:                                              ; preds = %199, %161, %70, %61
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #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 @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 [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @dpoequ_(ptr nocapture noundef readonly %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 writeonly %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %narrow = xor i32 %9, -1
  %10 = sext i32 %narrow to i64
  %11 = getelementptr inbounds double, ptr %1, i64 %10
  %12 = getelementptr inbounds i8, ptr %3, i64 -8
  store i32 0, ptr %6, align 4, !tbaa !5
  %13 = load i32, ptr %0, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 0
  br i1 %14, label %.thread, label %15

15:                                               ; preds = %7
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %13, i32 1)
  %17 = icmp slt i32 %16, %spec.select
  br i1 %17, label %.thread, label %20

.thread:                                          ; preds = %15, %7
  %storemerge = phi i32 [ -1, %7 ], [ -3, %15 ]
  store i32 %storemerge, ptr %6, align 4, !tbaa !5
  %18 = sub nsw i32 0, %storemerge
  store i32 %18, ptr %8, align 4, !tbaa !5
  %19 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %8, i32 noundef 6) #5
  br label %.loopexit

20:                                               ; preds = %15
  %21 = icmp eq i32 %13, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %20
  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

23:                                               ; preds = %20
  %24 = load double, ptr %1, align 8, !tbaa !9
  store double %24, ptr %3, align 8, !tbaa !9
  store double %24, ptr %5, align 8, !tbaa !9
  %.not6772 = icmp eq i32 %13, 1
  br i1 %.not6772, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %25 = add i32 %9, 1
  %26 = add nuw i32 %13, 1
  %wide.trip.count = zext i32 %26 to i64
  br label %27

27:                                               ; preds = %.lr.ph, %27
  %indvars.iv = phi i64 [ 2, %.lr.ph ], [ %indvars.iv.next, %27 ]
  %.06473 = phi double [ %24, %.lr.ph ], [ %35, %27 ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = mul i32 %25, %28
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds double, ptr %11, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds double, ptr %12, i64 %indvars.iv
  store double %32, ptr %33, align 8, !tbaa !9
  %34 = fcmp ole double %.06473, %32
  %35 = select i1 %34, double %.06473, double %32
  %36 = load double, ptr %5, align 8, !tbaa !9
  %37 = fcmp oge double %36, %32
  %38 = select i1 %37, double %36, double %32
  store double %38, ptr %5, 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 %27, !llvm.loop !11

._crit_edge:                                      ; preds = %27, %23
  %.064.lcssa = phi double [ %24, %23 ], [ %35, %27 ]
  %39 = fcmp ugt double %.064.lcssa, 0.000000e+00
  %40 = add nuw i32 %13, 1
  %wide.trip.count94 = zext i32 %40 to i64
  br i1 %39, label %.lr.ph82.preheader, label %.lr.ph78

.lr.ph82.preheader:                               ; preds = %._crit_edge
  %41 = zext nneg i32 %13 to i64
  %42 = add nsw i64 %wide.trip.count94, -2
  %xtraiter = and i64 %41, 3
  %43 = icmp ult i64 %42, 3
  br i1 %43, label %._crit_edge83.unr-lcssa, label %.lr.ph82.preheader.new

.lr.ph82.preheader.new:                           ; preds = %.lr.ph82.preheader
  %unroll_iter = and i64 %41, 2147483644
  %invariant.gep = getelementptr inbounds i8, ptr %12, i64 16
  %invariant.gep100 = getelementptr inbounds i8, ptr %12, i64 24
  br label %.lr.ph82

.lr.ph78:                                         ; preds = %._crit_edge, %49
  %indvars.iv86 = phi i64 [ %indvars.iv.next87, %49 ], [ 1, %._crit_edge ]
  %44 = getelementptr inbounds double, ptr %12, i64 %indvars.iv86
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = fcmp ugt double %45, 0.000000e+00
  br i1 %46, label %49, label %47

47:                                               ; preds = %.lr.ph78
  %48 = trunc nuw nsw i64 %indvars.iv86 to i32
  store i32 %48, ptr %6, align 4, !tbaa !5
  br label %.loopexit

49:                                               ; preds = %.lr.ph78
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next87, %wide.trip.count94
  br i1 %exitcond90.not, label %.loopexit, label %.lr.ph78, !llvm.loop !13

.lr.ph82:                                         ; preds = %.lr.ph82, %.lr.ph82.preheader.new
  %indvars.iv91 = phi i64 [ 1, %.lr.ph82.preheader.new ], [ %indvars.iv.next92.3, %.lr.ph82 ]
  %niter = phi i64 [ 0, %.lr.ph82.preheader.new ], [ %niter.next.3, %.lr.ph82 ]
  %50 = getelementptr inbounds double, ptr %12, i64 %indvars.iv91
  %51 = load double, ptr %50, align 8, !tbaa !9
  %52 = tail call double @sqrt(double noundef %51) #5
  %53 = fdiv double 1.000000e+00, %52
  store double %53, ptr %50, align 8, !tbaa !9
  %54 = getelementptr double, ptr %3, i64 %indvars.iv91
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = tail call double @sqrt(double noundef %55) #5
  %57 = fdiv double 1.000000e+00, %56
  store double %57, ptr %54, align 8, !tbaa !9
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv91
  %58 = load double, ptr %gep, align 8, !tbaa !9
  %59 = tail call double @sqrt(double noundef %58) #5
  %60 = fdiv double 1.000000e+00, %59
  store double %60, ptr %gep, align 8, !tbaa !9
  %gep101 = getelementptr inbounds double, ptr %invariant.gep100, i64 %indvars.iv91
  %61 = load double, ptr %gep101, align 8, !tbaa !9
  %62 = tail call double @sqrt(double noundef %61) #5
  %63 = fdiv double 1.000000e+00, %62
  store double %63, ptr %gep101, align 8, !tbaa !9
  %indvars.iv.next92.3 = add nuw nsw i64 %indvars.iv91, 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_edge83.unr-lcssa, label %.lr.ph82, !llvm.loop !14

._crit_edge83.unr-lcssa:                          ; preds = %.lr.ph82, %.lr.ph82.preheader
  %indvars.iv91.unr = phi i64 [ 1, %.lr.ph82.preheader ], [ %indvars.iv.next92.3, %.lr.ph82 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge83, label %.lr.ph82.epil

.lr.ph82.epil:                                    ; preds = %._crit_edge83.unr-lcssa, %.lr.ph82.epil
  %indvars.iv91.epil = phi i64 [ %indvars.iv.next92.epil, %.lr.ph82.epil ], [ %indvars.iv91.unr, %._crit_edge83.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph82.epil ], [ 0, %._crit_edge83.unr-lcssa ]
  %64 = getelementptr inbounds double, ptr %12, i64 %indvars.iv91.epil
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = tail call double @sqrt(double noundef %65) #5
  %67 = fdiv double 1.000000e+00, %66
  store double %67, ptr %64, align 8, !tbaa !9
  %indvars.iv.next92.epil = add nuw nsw i64 %indvars.iv91.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_edge83, label %.lr.ph82.epil, !llvm.loop !15

._crit_edge83:                                    ; preds = %.lr.ph82.epil, %._crit_edge83.unr-lcssa
  %68 = tail call double @sqrt(double noundef %.064.lcssa) #5
  %69 = load double, ptr %5, align 8, !tbaa !9
  %70 = tail call double @sqrt(double noundef %69) #5
  %71 = fdiv double %68, %70
  store double %71, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %49, %._crit_edge83, %47, %22, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  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 @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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #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 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 = { 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 = !{!"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,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass