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

; 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.complex = type { float, float }

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

; Function Attrs: nounwind uwtable
define dso_local i32 @cpoequ_(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 float, align 4
  %21 = alloca float, align 4
  %22 = alloca i64, align 8
  %23 = alloca float, align 4
  %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 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 4, 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.complex, 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 float, 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 %205

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 float 1.000000e+00, ptr %71, align 4, !tbaa !11
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  store float 0.000000e+00, ptr %72, align 4, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %205

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.complex, ptr %76, i64 %77
  %79 = getelementptr inbounds %struct.complex, ptr %78, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !13
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds float, ptr %81, i64 1
  store float %80, ptr %82, align 4, !tbaa !11
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = getelementptr inbounds float, ptr %83, i64 1
  %85 = load float, ptr %84, align 4, !tbaa !11
  store float %85, ptr %23, align 4, !tbaa !11
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds float, ptr %86, i64 1
  %88 = load float, ptr %87, align 4, !tbaa !11
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  store float %88, ptr %89, align 4, !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 = %144, %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 %147

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.complex, ptr %102, i64 %103
  %105 = getelementptr inbounds %struct.complex, ptr %104, i32 0, i32 0
  %106 = load float, ptr %105, align 4, !tbaa !13
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load i64, ptr %22, align 8, !tbaa !9
  %109 = getelementptr inbounds float, ptr %107, i64 %108
  store float %106, ptr %109, align 4, !tbaa !11
  %110 = load float, ptr %23, align 4, !tbaa !11
  store float %110, ptr %20, align 4, !tbaa !11
  %111 = load ptr, ptr %12, align 8, !tbaa !5
  %112 = load i64, ptr %22, align 8, !tbaa !9
  %113 = getelementptr inbounds float, ptr %111, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !11
  store float %114, ptr %21, align 4, !tbaa !11
  %115 = load float, ptr %20, align 4, !tbaa !11
  %116 = load float, ptr %21, align 4, !tbaa !11
  %117 = fcmp ole float %115, %116
  br i1 %117, label %118, label %120

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

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

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

135:                                              ; preds = %122
  %136 = load float, ptr %20, align 4, !tbaa !11
  br label %139

137:                                              ; preds = %122
  %138 = load float, ptr %21, align 4, !tbaa !11
  br label %139

139:                                              ; preds = %137, %135
  %140 = phi float [ %136, %135 ], [ %138, %137 ]
  %141 = fpext float %140 to double
  %142 = fptrunc double %141 to float
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  store float %142, ptr %143, align 4, !tbaa !11
  br label %144

144:                                              ; preds = %139
  %145 = load i64, ptr %22, align 8, !tbaa !9
  %146 = add nsw i64 %145, 1
  store i64 %146, ptr %22, align 8, !tbaa !9
  br label %92, !llvm.loop !15

147:                                              ; preds = %92
  %148 = load float, ptr %23, align 4, !tbaa !11
  %149 = fcmp ole float %148, 0.000000e+00
  br i1 %149, label %150, label %171

150:                                              ; preds = %147
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load i64, ptr %151, align 8, !tbaa !9
  store i64 %152, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %167, %150
  %154 = load i64, ptr %22, align 8, !tbaa !9
  %155 = load i64, ptr %18, align 8, !tbaa !9
  %156 = icmp sle i64 %154, %155
  br i1 %156, label %157, label %170

157:                                              ; preds = %153
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i64, ptr %22, align 8, !tbaa !9
  %160 = getelementptr inbounds float, ptr %158, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !11
  %162 = fcmp ole float %161, 0.000000e+00
  br i1 %162, label %163, label %166

163:                                              ; preds = %157
  %164 = load i64, ptr %22, align 8, !tbaa !9
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %164, ptr %165, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %205

166:                                              ; preds = %157
  br label %167

167:                                              ; preds = %166
  %168 = load i64, ptr %22, align 8, !tbaa !9
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %22, align 8, !tbaa !9
  br label %153, !llvm.loop !17

170:                                              ; preds = %153
  br label %204

171:                                              ; preds = %147
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = load i64, ptr %172, align 8, !tbaa !9
  store i64 %173, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %190, %171
  %175 = load i64, ptr %22, align 8, !tbaa !9
  %176 = load i64, ptr %18, align 8, !tbaa !9
  %177 = icmp sle i64 %175, %176
  br i1 %177, label %178, label %193

178:                                              ; preds = %174
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load i64, ptr %22, align 8, !tbaa !9
  %181 = getelementptr inbounds float, ptr %179, i64 %180
  %182 = load float, ptr %181, align 4, !tbaa !11
  %183 = fpext float %182 to double
  %184 = call double @sqrt(double noundef %183) #4
  %185 = fdiv double 1.000000e+00, %184
  %186 = fptrunc double %185 to float
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  %188 = load i64, ptr %22, align 8, !tbaa !9
  %189 = getelementptr inbounds float, ptr %187, i64 %188
  store float %186, ptr %189, align 4, !tbaa !11
  br label %190

190:                                              ; preds = %178
  %191 = load i64, ptr %22, align 8, !tbaa !9
  %192 = add nsw i64 %191, 1
  store i64 %192, ptr %22, align 8, !tbaa !9
  br label %174, !llvm.loop !18

193:                                              ; preds = %174
  %194 = load float, ptr %23, align 4, !tbaa !11
  %195 = fpext float %194 to double
  %196 = call double @sqrt(double noundef %195) #4
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load float, ptr %197, align 4, !tbaa !11
  %199 = fpext float %198 to double
  %200 = call double @sqrt(double noundef %199) #4
  %201 = fdiv double %196, %200
  %202 = fptrunc double %201 to float
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  store float %202, ptr %203, align 4, !tbaa !11
  br label %204

204:                                              ; preds = %193, %170
  store i32 0, ptr %8, align 4
  store i32 1, ptr %24, align 4
  br label %205

205:                                              ; preds = %204, %163, %70, %61
  call void @llvm.lifetime.end.p0(i64 4, 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 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
  %206 = load i32, ptr %8, align 4
  ret i32 %206
}

; 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 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4}
!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.complex = type { float, float }

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cpoequ_(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.complex, ptr %1, i64 %11
  %13 = getelementptr inbounds i8, ptr %3, i64 -4
  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 float 1.000000e+00, ptr %4, align 4, !tbaa !9
  store float 0.000000e+00, ptr %5, align 4, !tbaa !9
  br label %.loopexit

24:                                               ; preds = %21
  %25 = load float, ptr %1, align 4, !tbaa !11
  store float %25, ptr %3, align 4, !tbaa !9
  store float %25, ptr %5, align 4, !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 float [ %31, %.lr.ph ], [ %25, %24 ]
  %.06676 = phi i64 [ %35, %.lr.ph ], [ 2, %24 ]
  %26 = mul i64 %.06676, %10
  %27 = getelementptr inbounds %struct.complex, ptr %12, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !11
  %29 = getelementptr inbounds float, ptr %13, i64 %.06676
  store float %28, ptr %29, align 4, !tbaa !9
  %30 = fcmp ole float %.077, %28
  %31 = select i1 %30, float %.077, float %28
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = fcmp oge float %32, %28
  %34 = select i1 %33, float %32, float %28
  store float %34, ptr %5, align 4, !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 float [ %25, %24 ], [ %31, %.lr.ph ]
  %36 = fcmp ugt float %.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, 1
  %37 = icmp eq i64 %14, 1
  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, 9223372036854775806
  br label %.lr.ph85

.lr.ph81:                                         ; preds = %._crit_edge, %42
  %.179 = phi i64 [ %43, %42 ], [ 1, %._crit_edge ]
  %38 = getelementptr inbounds float, ptr %13, i64 %.179
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = fcmp ugt float %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 ], [ %56, %.lr.ph85 ]
  %niter = phi i64 [ 0, %.lr.ph85.preheader.new ], [ %niter.next.1, %.lr.ph85 ]
  %44 = getelementptr inbounds float, ptr %13, i64 %.283
  %45 = load float, ptr %44, align 4, !tbaa !9
  %46 = fpext float %45 to double
  %47 = tail call double @sqrt(double noundef %46) #5
  %48 = fdiv double 1.000000e+00, %47
  %49 = fptrunc double %48 to float
  store float %49, ptr %44, align 4, !tbaa !9
  %50 = getelementptr float, ptr %3, i64 %.283
  %51 = load float, ptr %50, align 4, !tbaa !9
  %52 = fpext float %51 to double
  %53 = tail call double @sqrt(double noundef %52) #5
  %54 = fdiv double 1.000000e+00, %53
  %55 = fptrunc double %54 to float
  store float %55, ptr %50, align 4, !tbaa !9
  %56 = add nuw i64 %.283, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, 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 ], [ %56, %.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
  %57 = getelementptr inbounds float, ptr %13, i64 %.283.unr
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fpext float %58 to double
  %60 = tail call double @sqrt(double noundef %59) #5
  %61 = fdiv double 1.000000e+00, %60
  %62 = fptrunc double %61 to float
  store float %62, ptr %57, align 4, !tbaa !9
  br label %._crit_edge86

._crit_edge86:                                    ; preds = %._crit_edge86.unr-lcssa, %.lr.ph85.epil
  %63 = fpext float %.0.lcssa to double
  %64 = tail call double @sqrt(double noundef %63) #5
  %65 = load float, ptr %5, align 4, !tbaa !9
  %66 = fpext float %65 to double
  %67 = tail call double @sqrt(double noundef %66) #5
  %68 = fdiv double %64, %67
  %69 = fptrunc double %68 to float
  store float %69, ptr %4, align 4, !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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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