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

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

%struct.doublecomplex = type { double, double }

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

; Function Attrs: nounwind uwtable
define dso_local void @zpoequ_(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 i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = 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 4, 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 4, ptr %22) #4
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %25, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = mul nsw i32 %26, 1
  %28 = add nsw i32 1, %27
  store i32 %28, ptr %16, align 4, !tbaa !9
  %29 = load i32, ptr %16, align 4, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = sext i32 %29 to i64
  %32 = sub i64 0, %31
  %33 = getelementptr inbounds %struct.doublecomplex, ptr %30, i64 %32
  store ptr %33, ptr %9, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = getelementptr inbounds double, ptr %34, i32 -1
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %36, align 4, !tbaa !9
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %42

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

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

48:                                               ; preds = %42
  br label %52

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

52:                                               ; preds = %49, %48
  %53 = phi i32 [ 1, %48 ], [ %51, %49 ]
  %54 = icmp slt i32 %44, %53
  br i1 %54, label %55, label %57

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

57:                                               ; preds = %55, %52
  br label %58

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

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

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

71:                                               ; preds = %67
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  store double 1.000000e+00, ptr %72, align 8, !tbaa !11
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %73, align 8, !tbaa !11
  store i32 1, ptr %23, align 4
  br label %205

74:                                               ; preds = %67
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %17, align 4, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %struct.doublecomplex, ptr %77, i64 %79
  %81 = getelementptr inbounds %struct.doublecomplex, ptr %80, i32 0, i32 0
  %82 = load double, ptr %81, align 8, !tbaa !13
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 1
  store double %82, ptr %84, 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
  store double %87, ptr %21, align 8, !tbaa !11
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds double, ptr %88, i64 1
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  store double %90, ptr %91, align 8, !tbaa !11
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  store i32 %93, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %22, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %146, %74
  %95 = load i32, ptr %22, align 4, !tbaa !9
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %98, label %149

98:                                               ; preds = %94
  %99 = load i32, ptr %22, align 4, !tbaa !9
  %100 = load i32, ptr %22, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = mul nsw i32 %100, %101
  %103 = add nsw i32 %99, %102
  store i32 %103, ptr %18, align 4, !tbaa !9
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.doublecomplex, ptr %104, i64 %106
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %107, i32 0, i32 0
  %109 = load double, ptr %108, align 8, !tbaa !13
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i32, ptr %22, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  store double %109, ptr %113, align 8, !tbaa !11
  %114 = load double, ptr %21, align 8, !tbaa !11
  store double %114, ptr %19, align 8, !tbaa !11
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = load i32, ptr %22, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !11
  store double %119, ptr %20, align 8, !tbaa !11
  %120 = load double, ptr %19, align 8, !tbaa !11
  %121 = load double, ptr %20, align 8, !tbaa !11
  %122 = fcmp ole double %120, %121
  br i1 %122, label %123, label %125

123:                                              ; preds = %98
  %124 = load double, ptr %19, align 8, !tbaa !11
  br label %127

125:                                              ; preds = %98
  %126 = load double, ptr %20, align 8, !tbaa !11
  br label %127

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

139:                                              ; preds = %127
  %140 = load double, ptr %19, align 8, !tbaa !11
  br label %143

141:                                              ; preds = %127
  %142 = load double, ptr %20, align 8, !tbaa !11
  br label %143

143:                                              ; preds = %141, %139
  %144 = phi double [ %140, %139 ], [ %142, %141 ]
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  store double %144, ptr %145, align 8, !tbaa !11
  br label %146

146:                                              ; preds = %143
  %147 = load i32, ptr %22, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %22, align 4, !tbaa !9
  br label %94, !llvm.loop !15

149:                                              ; preds = %94
  %150 = load double, ptr %21, align 8, !tbaa !11
  %151 = fcmp ole double %150, 0.000000e+00
  br i1 %151, label %152, label %174

152:                                              ; preds = %149
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  store i32 %154, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %170, %152
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = load i32, ptr %17, align 4, !tbaa !9
  %158 = icmp sle i32 %156, %157
  br i1 %158, label %159, label %173

159:                                              ; preds = %155
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load i32, ptr %22, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds double, ptr %160, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = fcmp ole double %164, 0.000000e+00
  br i1 %165, label %166, label %169

166:                                              ; preds = %159
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %167, ptr %168, align 4, !tbaa !9
  store i32 1, ptr %23, align 4
  br label %205

169:                                              ; preds = %159
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %22, align 4, !tbaa !9
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %22, align 4, !tbaa !9
  br label %155, !llvm.loop !17

173:                                              ; preds = %155
  br label %204

174:                                              ; preds = %149
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = load i32, ptr %175, align 4, !tbaa !9
  store i32 %176, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %177

177:                                              ; preds = %193, %174
  %178 = load i32, ptr %22, align 4, !tbaa !9
  %179 = load i32, ptr %17, align 4, !tbaa !9
  %180 = icmp sle i32 %178, %179
  br i1 %180, label %181, label %196

181:                                              ; preds = %177
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = load i32, ptr %22, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds double, ptr %182, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !11
  %187 = call double @sqrt(double noundef %186) #4
  %188 = fdiv double 1.000000e+00, %187
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %189, i64 %191
  store double %188, ptr %192, align 8, !tbaa !11
  br label %193

193:                                              ; preds = %181
  %194 = load i32, ptr %22, align 4, !tbaa !9
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %22, align 4, !tbaa !9
  br label %177, !llvm.loop !18

196:                                              ; preds = %177
  %197 = load double, ptr %21, align 8, !tbaa !11
  %198 = call double @sqrt(double noundef %197) #4
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = load double, ptr %199, align 8, !tbaa !11
  %201 = call double @sqrt(double noundef %200) #4
  %202 = fdiv double %198, %201
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  store double %202, ptr %203, align 8, !tbaa !11
  br label %204

204:                                              ; preds = %196, %173
  store i32 1, ptr %23, align 4
  br label %205

205:                                              ; preds = %204, %166, %71, %62
  call void @llvm.lifetime.end.p0(i64 4, 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 4, 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 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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

%struct.doublecomplex = type { double, double }

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

; Function Attrs: nounwind uwtable
define dso_local void @zpoequ_(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
  %10 = add i32 %9, 1
  %narrow = xor i32 %9, -1
  %11 = sext i32 %narrow to i64
  %12 = getelementptr inbounds %struct.doublecomplex, ptr %1, i64 %11
  %13 = getelementptr inbounds i8, ptr %3, i64 -8
  store i32 0, ptr %6, align 4, !tbaa !5
  %14 = load i32, ptr %0, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %.thread, label %16

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

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

21:                                               ; preds = %16
  %22 = icmp eq i32 %14, 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 %1, align 8, !tbaa !11
  store double %25, ptr %3, align 8, !tbaa !9
  store double %25, ptr %5, align 8, !tbaa !9
  %.not6873 = icmp eq i32 %14, 1
  br i1 %.not6873, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %24
  %26 = add nuw i32 %14, 1
  %wide.trip.count = zext i32 %26 to i64
  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 ]
  %.06574 = phi double [ %25, %.lr.ph.preheader ], [ %34, %.lr.ph ]
  %27 = trunc nuw nsw i64 %indvars.iv to i32
  %28 = mul i32 %10, %27
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds double, ptr %13, i64 %indvars.iv
  store double %31, ptr %32, align 8, !tbaa !9
  %33 = fcmp ole double %.06574, %31
  %34 = select i1 %33, double %.06574, double %31
  %35 = load double, ptr %5, align 8, !tbaa !9
  %36 = fcmp oge double %35, %31
  %37 = select i1 %36, double %35, double %31
  store double %37, 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 %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %24
  %.065.lcssa = phi double [ %25, %24 ], [ %34, %.lr.ph ]
  %38 = fcmp ugt double %.065.lcssa, 0.000000e+00
  %39 = add nuw i32 %14, 1
  %wide.trip.count95 = zext i32 %39 to i64
  br i1 %38, label %.lr.ph83.preheader, label %.lr.ph79

.lr.ph83.preheader:                               ; preds = %._crit_edge
  %40 = zext nneg i32 %14 to i64
  %41 = add nsw i64 %wide.trip.count95, -2
  %xtraiter = and i64 %40, 3
  %42 = icmp ult i64 %41, 3
  br i1 %42, label %._crit_edge84.unr-lcssa, label %.lr.ph83.preheader.new

.lr.ph83.preheader.new:                           ; preds = %.lr.ph83.preheader
  %unroll_iter = and i64 %40, 2147483644
  %invariant.gep = getelementptr inbounds i8, ptr %13, i64 16
  %invariant.gep101 = getelementptr inbounds i8, ptr %13, i64 24
  br label %.lr.ph83

.lr.ph79:                                         ; preds = %._crit_edge, %48
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %48 ], [ 1, %._crit_edge ]
  %43 = getelementptr inbounds double, ptr %13, i64 %indvars.iv87
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = fcmp ugt double %44, 0.000000e+00
  br i1 %45, label %48, label %46

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

48:                                               ; preds = %.lr.ph79
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %exitcond91.not = icmp eq i64 %indvars.iv.next88, %wide.trip.count95
  br i1 %exitcond91.not, label %.loopexit, label %.lr.ph79, !llvm.loop !15

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

._crit_edge84.unr-lcssa:                          ; preds = %.lr.ph83, %.lr.ph83.preheader
  %indvars.iv92.unr = phi i64 [ 1, %.lr.ph83.preheader ], [ %indvars.iv.next93.3, %.lr.ph83 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge84, label %.lr.ph83.epil

.lr.ph83.epil:                                    ; preds = %._crit_edge84.unr-lcssa, %.lr.ph83.epil
  %indvars.iv92.epil = phi i64 [ %indvars.iv.next93.epil, %.lr.ph83.epil ], [ %indvars.iv92.unr, %._crit_edge84.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph83.epil ], [ 0, %._crit_edge84.unr-lcssa ]
  %63 = getelementptr inbounds double, ptr %13, i64 %indvars.iv92.epil
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = tail call double @sqrt(double noundef %64) #5
  %66 = fdiv double 1.000000e+00, %65
  store double %66, ptr %63, align 8, !tbaa !9
  %indvars.iv.next93.epil = add nuw nsw i64 %indvars.iv92.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_edge84, label %.lr.ph83.epil, !llvm.loop !17

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

.loopexit:                                        ; preds = %48, %._crit_edge84, %46, %23, %.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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !18}
!18 = !{!"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