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

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

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

47:                                               ; preds = %41
  br label %51

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

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

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

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

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

61:                                               ; preds = %57
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = sub nsw i64 0, %63
  store i64 %64, ptr %18, align 8, !tbaa !9
  %65 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %18)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %196

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

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

73:                                               ; preds = %66
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %18, align 8, !tbaa !9
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i64, ptr %18, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.doublecomplex, ptr %76, i64 %77
  %79 = getelementptr inbounds %struct.doublecomplex, ptr %78, i32 0, i32 0
  %80 = load double, ptr %79, align 8, !tbaa !13
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i64 1
  store double %80, ptr %82, align 8, !tbaa !11
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 1
  %85 = load double, ptr %84, align 8, !tbaa !11
  store double %85, ptr %23, align 8, !tbaa !11
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds double, ptr %86, i64 1
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  store double %88, ptr %89, align 8, !tbaa !11
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  store i64 %91, ptr %18, align 8, !tbaa !9
  store i64 2, ptr %22, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %140, %73
  %93 = load i64, ptr %22, align 8, !tbaa !9
  %94 = load i64, ptr %18, align 8, !tbaa !9
  %95 = icmp sle i64 %93, %94
  br i1 %95, label %96, label %143

96:                                               ; preds = %92
  %97 = load i64, ptr %22, align 8, !tbaa !9
  %98 = load i64, ptr %22, align 8, !tbaa !9
  %99 = load i64, ptr %16, align 8, !tbaa !9
  %100 = mul nsw i64 %98, %99
  %101 = add nsw i64 %97, %100
  store i64 %101, ptr %19, align 8, !tbaa !9
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i64, ptr %19, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.doublecomplex, ptr %102, i64 %103
  %105 = getelementptr inbounds %struct.doublecomplex, ptr %104, i32 0, i32 0
  %106 = load double, ptr %105, align 8, !tbaa !13
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load i64, ptr %22, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  store double %106, ptr %109, align 8, !tbaa !11
  %110 = load double, ptr %23, align 8, !tbaa !11
  store double %110, ptr %20, align 8, !tbaa !11
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load i64, ptr %22, align 8, !tbaa !9
  %113 = getelementptr inbounds double, ptr %111, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !11
  store double %114, ptr %21, align 8, !tbaa !11
  %115 = load double, ptr %20, align 8, !tbaa !11
  %116 = load double, ptr %21, align 8, !tbaa !11
  %117 = fcmp ole double %115, %116
  br i1 %117, label %118, label %120

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

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

122:                                              ; preds = %120, %118
  %123 = phi double [ %119, %118 ], [ %121, %120 ]
  store double %123, ptr %23, align 8, !tbaa !11
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load double, ptr %124, align 8, !tbaa !11
  store double %125, ptr %20, align 8, !tbaa !11
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = load i64, ptr %22, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !11
  store double %129, ptr %21, align 8, !tbaa !11
  %130 = load double, ptr %20, align 8, !tbaa !11
  %131 = load double, ptr %21, align 8, !tbaa !11
  %132 = fcmp oge double %130, %131
  br i1 %132, label %133, label %135

133:                                              ; preds = %122
  %134 = load double, ptr %20, align 8, !tbaa !11
  br label %137

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

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

140:                                              ; preds = %137
  %141 = load i64, ptr %22, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %22, align 8, !tbaa !9
  br label %92, !llvm.loop !15

143:                                              ; preds = %92
  %144 = load double, ptr %23, align 8, !tbaa !11
  %145 = fcmp ole double %144, 0.000000e+00
  br i1 %145, label %146, label %167

146:                                              ; preds = %143
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !9
  store i64 %148, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %163, %146
  %150 = load i64, ptr %22, align 8, !tbaa !9
  %151 = load i64, ptr %18, align 8, !tbaa !9
  %152 = icmp sle i64 %150, %151
  br i1 %152, label %153, label %166

153:                                              ; preds = %149
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = load i64, ptr %22, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %154, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !11
  %158 = fcmp ole double %157, 0.000000e+00
  br i1 %158, label %159, label %162

159:                                              ; preds = %153
  %160 = load i64, ptr %22, align 8, !tbaa !9
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %160, ptr %161, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %196

162:                                              ; preds = %153
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %22, align 8, !tbaa !9
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %22, align 8, !tbaa !9
  br label %149, !llvm.loop !17

166:                                              ; preds = %149
  br label %195

167:                                              ; preds = %143
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load i64, ptr %168, align 8, !tbaa !9
  store i64 %169, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %184, %167
  %171 = load i64, ptr %22, align 8, !tbaa !9
  %172 = load i64, ptr %18, align 8, !tbaa !9
  %173 = icmp sle i64 %171, %172
  br i1 %173, label %174, label %187

174:                                              ; preds = %170
  %175 = load ptr, ptr %12, align 8, !tbaa !5
  %176 = load i64, ptr %22, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = call double @sqrt(double noundef %178) #4
  %180 = fdiv double 1.000000e+00, %179
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = load i64, ptr %22, align 8, !tbaa !9
  %183 = getelementptr inbounds double, ptr %181, i64 %182
  store double %180, ptr %183, align 8, !tbaa !11
  br label %184

184:                                              ; preds = %174
  %185 = load i64, ptr %22, align 8, !tbaa !9
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %22, align 8, !tbaa !9
  br label %170, !llvm.loop !18

187:                                              ; preds = %170
  %188 = load double, ptr %23, align 8, !tbaa !11
  %189 = call double @sqrt(double noundef %188) #4
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = call double @sqrt(double noundef %191) #4
  %193 = fdiv double %189, %192
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  store double %193, ptr %194, align 8, !tbaa !11
  br label %195

195:                                              ; preds = %187, %166
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %196

196:                                              ; preds = %195, %159, %70, %61
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %197 = load i32, ptr %8, align 4
  ret i32 %197
}

; 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) #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 = !{!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 noundef i32 @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 i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %9 = load i64, ptr %2, align 8, !tbaa !5
  %10 = add i64 %9, 1
  %11 = xor i64 %9, -1
  %12 = getelementptr inbounds %struct.doublecomplex, ptr %1, i64 %11
  %13 = getelementptr inbounds i8, ptr %3, i64 -8
  store i64 0, ptr %6, align 8, !tbaa !5
  %14 = load i64, ptr %0, align 8, !tbaa !5
  %15 = icmp slt i64 %14, 0
  br i1 %15, label %.thread, label %16

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

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

21:                                               ; preds = %16
  %22 = icmp eq i64 %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
  %.not7075 = icmp eq i64 %14, 1
  br i1 %.not7075, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %24, %.lr.ph
  %.077 = phi double [ %31, %.lr.ph ], [ %25, %24 ]
  %.06676 = phi i64 [ %35, %.lr.ph ], [ 2, %24 ]
  %26 = mul i64 %.06676, %10
  %27 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %26
  %28 = load double, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds double, ptr %13, i64 %.06676
  store double %28, ptr %29, align 8, !tbaa !9
  %30 = fcmp ole double %.077, %28
  %31 = select i1 %30, double %.077, double %28
  %32 = load double, ptr %5, align 8, !tbaa !9
  %33 = fcmp oge double %32, %28
  %34 = select i1 %33, double %32, double %28
  store double %34, ptr %5, align 8, !tbaa !9
  %35 = add nuw i64 %.06676, 1
  %exitcond.not = icmp eq i64 %.06676, %14
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %24
  %.0.lcssa = phi double [ %25, %24 ], [ %31, %.lr.ph ]
  %36 = fcmp ugt double %.0.lcssa, 0.000000e+00
  br i1 %36, label %.lr.ph85.preheader, label %.lr.ph81

.lr.ph85.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i64 %14, 3
  %37 = icmp ult i64 %14, 4
  br i1 %37, label %._crit_edge86.unr-lcssa, label %.lr.ph85.preheader.new

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

.lr.ph81:                                         ; preds = %._crit_edge, %42
  %.179 = phi i64 [ %43, %42 ], [ 1, %._crit_edge ]
  %38 = getelementptr inbounds double, ptr %13, i64 %.179
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = fcmp ugt double %39, 0.000000e+00
  br i1 %40, label %42, label %41

41:                                               ; preds = %.lr.ph81
  store i64 %.179, ptr %6, align 8, !tbaa !5
  br label %.loopexit

42:                                               ; preds = %.lr.ph81
  %43 = add nuw i64 %.179, 1
  %exitcond88.not = icmp eq i64 %.179, %14
  br i1 %exitcond88.not, label %.loopexit, label %.lr.ph81, !llvm.loop !15

.lr.ph85:                                         ; preds = %.lr.ph85, %.lr.ph85.preheader.new
  %.283 = phi i64 [ 1, %.lr.ph85.preheader.new ], [ %58, %.lr.ph85 ]
  %niter = phi i64 [ 0, %.lr.ph85.preheader.new ], [ %niter.next.3, %.lr.ph85 ]
  %44 = getelementptr inbounds double, ptr %13, i64 %.283
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = tail call double @sqrt(double noundef %45) #5
  %47 = fdiv double 1.000000e+00, %46
  store double %47, ptr %44, align 8, !tbaa !9
  %48 = getelementptr double, ptr %3, i64 %.283
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = tail call double @sqrt(double noundef %49) #5
  %51 = fdiv double 1.000000e+00, %50
  store double %51, ptr %48, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %.283
  %52 = load double, ptr %gep, align 8, !tbaa !9
  %53 = tail call double @sqrt(double noundef %52) #5
  %54 = fdiv double 1.000000e+00, %53
  store double %54, ptr %gep, align 8, !tbaa !9
  %gep96 = getelementptr double, ptr %invariant.gep95, i64 %.283
  %55 = load double, ptr %gep96, align 8, !tbaa !9
  %56 = tail call double @sqrt(double noundef %55) #5
  %57 = fdiv double 1.000000e+00, %56
  store double %57, ptr %gep96, align 8, !tbaa !9
  %58 = add nuw i64 %.283, 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_edge86.unr-lcssa, label %.lr.ph85, !llvm.loop !16

._crit_edge86.unr-lcssa:                          ; preds = %.lr.ph85, %.lr.ph85.preheader
  %.283.unr = phi i64 [ 1, %.lr.ph85.preheader ], [ %58, %.lr.ph85 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge86, label %.lr.ph85.epil

.lr.ph85.epil:                                    ; preds = %._crit_edge86.unr-lcssa, %.lr.ph85.epil
  %.283.epil = phi i64 [ %63, %.lr.ph85.epil ], [ %.283.unr, %._crit_edge86.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph85.epil ], [ 0, %._crit_edge86.unr-lcssa ]
  %59 = getelementptr inbounds double, ptr %13, i64 %.283.epil
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = tail call double @sqrt(double noundef %60) #5
  %62 = fdiv double 1.000000e+00, %61
  store double %62, ptr %59, align 8, !tbaa !9
  %63 = add nuw i64 %.283.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_edge86, label %.lr.ph85.epil, !llvm.loop !17

._crit_edge86:                                    ; preds = %.lr.ph85.epil, %._crit_edge86.unr-lcssa
  %64 = tail call double @sqrt(double noundef %.0.lcssa) #5
  %65 = load double, ptr %5, align 8, !tbaa !9
  %66 = tail call double @sqrt(double noundef %65) #5
  %67 = fdiv double %64, %66
  store double %67, ptr %4, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %42, %._crit_edge86, %41, %23, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  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 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

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