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

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

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

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

46:                                               ; preds = %40
  br label %50

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

50:                                               ; preds = %47, %46
  %51 = phi i64 [ 1, %46 ], [ %49, %47 ]
  %52 = icmp slt i64 %42, %51
  br i1 %52, label %53, label %55

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

55:                                               ; preds = %53, %50
  br label %56

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

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

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

69:                                               ; preds = %65
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  store float 1.000000e+00, ptr %70, align 4, !tbaa !11
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  store float 0.000000e+00, ptr %71, align 4, !tbaa !11
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %200

72:                                               ; preds = %65
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = add nsw i64 %74, 1
  %76 = getelementptr inbounds float, ptr %73, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !11
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = getelementptr inbounds float, ptr %78, i64 1
  store float %77, ptr %79, align 4, !tbaa !11
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds float, ptr %80, i64 1
  %82 = load float, ptr %81, align 4, !tbaa !11
  store float %82, ptr %22, 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
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  store float %85, ptr %86, align 4, !tbaa !11
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  store i64 %88, ptr %18, align 8, !tbaa !9
  store i64 2, ptr %21, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %139, %72
  %90 = load i64, ptr %21, align 8, !tbaa !9
  %91 = load i64, ptr %18, align 8, !tbaa !9
  %92 = icmp sle i64 %90, %91
  br i1 %92, label %93, label %142

93:                                               ; preds = %89
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load i64, ptr %21, align 8, !tbaa !9
  %96 = load i64, ptr %21, align 8, !tbaa !9
  %97 = load i64, ptr %16, align 8, !tbaa !9
  %98 = mul nsw i64 %96, %97
  %99 = add nsw i64 %95, %98
  %100 = getelementptr inbounds float, ptr %94, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !11
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load i64, ptr %21, align 8, !tbaa !9
  %104 = getelementptr inbounds float, ptr %102, i64 %103
  store float %101, ptr %104, align 4, !tbaa !11
  %105 = load float, ptr %22, align 4, !tbaa !11
  store float %105, ptr %19, align 4, !tbaa !11
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = load i64, ptr %21, align 8, !tbaa !9
  %108 = getelementptr inbounds float, ptr %106, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !11
  store float %109, ptr %20, align 4, !tbaa !11
  %110 = load float, ptr %19, align 4, !tbaa !11
  %111 = load float, ptr %20, align 4, !tbaa !11
  %112 = fcmp ole float %110, %111
  br i1 %112, label %113, label %115

113:                                              ; preds = %93
  %114 = load float, ptr %19, align 4, !tbaa !11
  br label %117

115:                                              ; preds = %93
  %116 = load float, ptr %20, align 4, !tbaa !11
  br label %117

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

130:                                              ; preds = %117
  %131 = load float, ptr %19, align 4, !tbaa !11
  br label %134

132:                                              ; preds = %117
  %133 = load float, ptr %20, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %132, %130
  %135 = phi float [ %131, %130 ], [ %133, %132 ]
  %136 = fpext float %135 to double
  %137 = fptrunc double %136 to float
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  store float %137, ptr %138, align 4, !tbaa !11
  br label %139

139:                                              ; preds = %134
  %140 = load i64, ptr %21, align 8, !tbaa !9
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %21, align 8, !tbaa !9
  br label %89, !llvm.loop !13

142:                                              ; preds = %89
  %143 = load float, ptr %22, align 4, !tbaa !11
  %144 = fcmp ole float %143, 0.000000e+00
  br i1 %144, label %145, label %166

145:                                              ; preds = %142
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  store i64 %147, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %21, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %162, %145
  %149 = load i64, ptr %21, align 8, !tbaa !9
  %150 = load i64, ptr %18, align 8, !tbaa !9
  %151 = icmp sle i64 %149, %150
  br i1 %151, label %152, label %165

152:                                              ; preds = %148
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load i64, ptr %21, align 8, !tbaa !9
  %155 = getelementptr inbounds float, ptr %153, i64 %154
  %156 = load float, ptr %155, align 4, !tbaa !11
  %157 = fcmp ole float %156, 0.000000e+00
  br i1 %157, label %158, label %161

158:                                              ; preds = %152
  %159 = load i64, ptr %21, align 8, !tbaa !9
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %159, ptr %160, align 8, !tbaa !9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %200

161:                                              ; preds = %152
  br label %162

162:                                              ; preds = %161
  %163 = load i64, ptr %21, align 8, !tbaa !9
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %21, align 8, !tbaa !9
  br label %148, !llvm.loop !15

165:                                              ; preds = %148
  br label %199

166:                                              ; preds = %142
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load i64, ptr %167, align 8, !tbaa !9
  store i64 %168, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %21, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %185, %166
  %170 = load i64, ptr %21, align 8, !tbaa !9
  %171 = load i64, ptr %18, align 8, !tbaa !9
  %172 = icmp sle i64 %170, %171
  br i1 %172, label %173, label %188

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

185:                                              ; preds = %173
  %186 = load i64, ptr %21, align 8, !tbaa !9
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %21, align 8, !tbaa !9
  br label %169, !llvm.loop !16

188:                                              ; preds = %169
  %189 = load float, ptr %22, align 4, !tbaa !11
  %190 = fpext float %189 to double
  %191 = call double @sqrt(double noundef %190) #4
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load float, ptr %192, align 4, !tbaa !11
  %194 = fpext float %193 to double
  %195 = call double @sqrt(double noundef %194) #4
  %196 = fdiv double %191, %195
  %197 = fptrunc double %196 to float
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  store float %197, ptr %198, align 4, !tbaa !11
  br label %199

199:                                              ; preds = %188, %165
  store i32 0, ptr %8, align 4
  store i32 1, ptr %23, align 4
  br label %200

200:                                              ; preds = %199, %158, %69, %60
  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 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  %201 = load i32, ptr %8, align 4
  ret i32 %201
}

; 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 = 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 noundef i32 @spoequ_(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 = xor i64 %9, -1
  %11 = getelementptr inbounds float, ptr %1, i64 %10
  %12 = getelementptr inbounds i8, ptr %3, i64 -4
  store i64 0, ptr %6, align 8, !tbaa !5
  %13 = load i64, ptr %0, align 8, !tbaa !5
  %14 = icmp slt i64 %13, 0
  br i1 %14, label %.thread, label %15

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

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

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

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

23:                                               ; preds = %20
  %24 = load float, ptr %1, align 4, !tbaa !9
  store float %24, ptr %3, align 4, !tbaa !9
  store float %24, ptr %5, align 4, !tbaa !9
  %.not6974 = icmp eq i64 %13, 1
  br i1 %.not6974, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %25 = add i64 %9, 1
  br label %26

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

._crit_edge:                                      ; preds = %26, %23
  %.0.lcssa = phi float [ %24, %23 ], [ %32, %26 ]
  %37 = fcmp ugt float %.0.lcssa, 0.000000e+00
  br i1 %37, label %.lr.ph84.preheader, label %.lr.ph80

.lr.ph84.preheader:                               ; preds = %._crit_edge
  %xtraiter = and i64 %13, 1
  %38 = icmp eq i64 %13, 1
  br i1 %38, label %._crit_edge85.unr-lcssa, label %.lr.ph84.preheader.new

.lr.ph84.preheader.new:                           ; preds = %.lr.ph84.preheader
  %unroll_iter = and i64 %13, 9223372036854775806
  br label %.lr.ph84

.lr.ph80:                                         ; preds = %._crit_edge, %43
  %.178 = phi i64 [ %44, %43 ], [ 1, %._crit_edge ]
  %39 = getelementptr inbounds float, ptr %12, i64 %.178
  %40 = load float, ptr %39, align 4, !tbaa !9
  %41 = fcmp ugt float %40, 0.000000e+00
  br i1 %41, label %43, label %42

42:                                               ; preds = %.lr.ph80
  store i64 %.178, ptr %6, align 8, !tbaa !5
  br label %.loopexit

43:                                               ; preds = %.lr.ph80
  %44 = add nuw i64 %.178, 1
  %exitcond87.not = icmp eq i64 %.178, %13
  br i1 %exitcond87.not, label %.loopexit, label %.lr.ph80, !llvm.loop !13

.lr.ph84:                                         ; preds = %.lr.ph84, %.lr.ph84.preheader.new
  %.282 = phi i64 [ 1, %.lr.ph84.preheader.new ], [ %57, %.lr.ph84 ]
  %niter = phi i64 [ 0, %.lr.ph84.preheader.new ], [ %niter.next.1, %.lr.ph84 ]
  %45 = getelementptr inbounds float, ptr %12, i64 %.282
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fpext float %46 to double
  %48 = tail call double @sqrt(double noundef %47) #5
  %49 = fdiv double 1.000000e+00, %48
  %50 = fptrunc double %49 to float
  store float %50, ptr %45, align 4, !tbaa !9
  %51 = getelementptr float, ptr %3, i64 %.282
  %52 = load float, ptr %51, align 4, !tbaa !9
  %53 = fpext float %52 to double
  %54 = tail call double @sqrt(double noundef %53) #5
  %55 = fdiv double 1.000000e+00, %54
  %56 = fptrunc double %55 to float
  store float %56, ptr %51, align 4, !tbaa !9
  %57 = add nuw i64 %.282, 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_edge85.unr-lcssa, label %.lr.ph84, !llvm.loop !14

._crit_edge85.unr-lcssa:                          ; preds = %.lr.ph84, %.lr.ph84.preheader
  %.282.unr = phi i64 [ 1, %.lr.ph84.preheader ], [ %57, %.lr.ph84 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge85, label %.lr.ph84.epil

.lr.ph84.epil:                                    ; preds = %._crit_edge85.unr-lcssa
  %58 = getelementptr inbounds float, ptr %12, i64 %.282.unr
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = fpext float %59 to double
  %61 = tail call double @sqrt(double noundef %60) #5
  %62 = fdiv double 1.000000e+00, %61
  %63 = fptrunc double %62 to float
  store float %63, ptr %58, align 4, !tbaa !9
  br label %._crit_edge85

._crit_edge85:                                    ; preds = %._crit_edge85.unr-lcssa, %.lr.ph84.epil
  %64 = fpext float %.0.lcssa to double
  %65 = tail call double @sqrt(double noundef %64) #5
  %66 = load float, ptr %5, align 4, !tbaa !9
  %67 = fpext float %66 to double
  %68 = tail call double @sqrt(double noundef %67) #5
  %69 = fdiv double %65, %68
  %70 = fptrunc double %69 to float
  store float %70, ptr %4, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %43, %._crit_edge85, %42, %22, %.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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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