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

; 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 [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

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

42:                                               ; preds = %7
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -1, ptr %43, align 4, !tbaa !9
  br label %60

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

50:                                               ; preds = %44
  br label %54

51:                                               ; preds = %44
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %51, %50
  %55 = phi i32 [ 1, %50 ], [ %53, %51 ]
  %56 = icmp slt i32 %46, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -3, ptr %58, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %57, %54
  br label %60

60:                                               ; preds = %59, %42
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %69

64:                                               ; preds = %60
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = sub nsw i32 0, %66
  store i32 %67, ptr %17, align 4, !tbaa !9
  %68 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %17, i32 noundef 7)
  store i32 1, ptr %25, align 4
  br label %219

69:                                               ; preds = %60
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  store float 1.000000e+00, ptr %74, align 4, !tbaa !11
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  store float 0.000000e+00, ptr %75, align 4, !tbaa !11
  store i32 1, ptr %25, align 4
  br label %219

76:                                               ; preds = %69
  %77 = call float @slamch_(ptr noundef @.str.1)
  store float %77, ptr %21, align 4, !tbaa !11
  %78 = load float, ptr %21, align 4, !tbaa !11
  %79 = fpext float %78 to double
  %80 = call double @log(double noundef %79) #4
  %81 = fdiv double -5.000000e-01, %80
  %82 = fptrunc double %81 to float
  store float %82, ptr %24, align 4, !tbaa !11
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds float, ptr %83, i64 %86
  %88 = load float, ptr %87, align 4, !tbaa !11
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds float, ptr %89, i64 1
  store float %88, ptr %90, align 4, !tbaa !11
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds float, ptr %91, i64 1
  %93 = load float, ptr %92, align 4, !tbaa !11
  store float %93, ptr %22, align 4, !tbaa !11
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds float, ptr %94, i64 1
  %96 = load float, ptr %95, align 4, !tbaa !11
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  store float %96, ptr %97, align 4, !tbaa !11
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  store i32 %99, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %23, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %150, %76
  %101 = load i32, ptr %23, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = icmp sle i32 %101, %102
  br i1 %103, label %104, label %153

104:                                              ; preds = %100
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load i32, ptr %23, align 4, !tbaa !9
  %107 = load i32, ptr %23, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = mul nsw i32 %107, %108
  %110 = add nsw i32 %106, %109
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds float, ptr %105, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load i32, ptr %23, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds float, ptr %114, i64 %116
  store float %113, ptr %117, align 4, !tbaa !11
  %118 = load float, ptr %22, align 4, !tbaa !11
  store float %118, ptr %19, align 4, !tbaa !11
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = load i32, ptr %23, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  %123 = load float, ptr %122, align 4, !tbaa !11
  store float %123, ptr %20, align 4, !tbaa !11
  %124 = load float, ptr %19, align 4, !tbaa !11
  %125 = load float, ptr %20, align 4, !tbaa !11
  %126 = fcmp ole float %124, %125
  br i1 %126, label %127, label %129

127:                                              ; preds = %104
  %128 = load float, ptr %19, align 4, !tbaa !11
  br label %131

129:                                              ; preds = %104
  %130 = load float, ptr %20, align 4, !tbaa !11
  br label %131

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

143:                                              ; preds = %131
  %144 = load float, ptr %19, align 4, !tbaa !11
  br label %147

145:                                              ; preds = %131
  %146 = load float, ptr %20, align 4, !tbaa !11
  br label %147

147:                                              ; preds = %145, %143
  %148 = phi float [ %144, %143 ], [ %146, %145 ]
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  store float %148, ptr %149, align 4, !tbaa !11
  br label %150

150:                                              ; preds = %147
  %151 = load i32, ptr %23, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %23, align 4, !tbaa !9
  br label %100, !llvm.loop !13

153:                                              ; preds = %100
  %154 = load float, ptr %22, align 4, !tbaa !11
  %155 = fcmp ole float %154, 0.000000e+00
  br i1 %155, label %156, label %178

156:                                              ; preds = %153
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load i32, ptr %157, align 4, !tbaa !9
  store i32 %158, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %174, %156
  %160 = load i32, ptr %23, align 4, !tbaa !9
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = icmp sle i32 %160, %161
  br i1 %162, label %163, label %177

163:                                              ; preds = %159
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = load i32, ptr %23, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds float, ptr %164, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !11
  %169 = fcmp ole float %168, 0.000000e+00
  br i1 %169, label %170, label %173

170:                                              ; preds = %163
  %171 = load i32, ptr %23, align 4, !tbaa !9
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %171, ptr %172, align 4, !tbaa !9
  store i32 1, ptr %25, align 4
  br label %219

173:                                              ; preds = %163
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %23, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %23, align 4, !tbaa !9
  br label %159, !llvm.loop !15

177:                                              ; preds = %159
  br label %218

178:                                              ; preds = %153
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  store i32 %180, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %204, %178
  %182 = load i32, ptr %23, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = icmp sle i32 %182, %183
  br i1 %184, label %185, label %207

185:                                              ; preds = %181
  %186 = load float, ptr %24, align 4, !tbaa !11
  %187 = fpext float %186 to double
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load i32, ptr %23, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds float, ptr %188, i64 %190
  %192 = load float, ptr %191, align 4, !tbaa !11
  %193 = fpext float %192 to double
  %194 = call double @log(double noundef %193) #4
  %195 = fmul double %187, %194
  %196 = fptosi double %195 to i32
  store i32 %196, ptr %18, align 4, !tbaa !9
  %197 = load float, ptr %21, align 4, !tbaa !11
  %198 = load i32, ptr %18, align 4, !tbaa !9
  %199 = call float @spow_ui(float noundef %197, i32 noundef %198)
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = load i32, ptr %23, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds float, ptr %200, i64 %202
  store float %199, ptr %203, align 4, !tbaa !11
  br label %204

204:                                              ; preds = %185
  %205 = load i32, ptr %23, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %23, align 4, !tbaa !9
  br label %181, !llvm.loop !16

207:                                              ; preds = %181
  %208 = load float, ptr %22, align 4, !tbaa !11
  %209 = fpext float %208 to double
  %210 = call double @sqrt(double noundef %209) #4
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = load float, ptr %211, align 4, !tbaa !11
  %213 = fpext float %212 to double
  %214 = call double @sqrt(double noundef %213) #4
  %215 = fdiv double %210, %214
  %216 = fptrunc double %215 to float
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  store float %216, ptr %217, align 4, !tbaa !11
  br label %218

218:                                              ; preds = %207, %177
  store i32 1, ptr %25, align 4
  br label %219

219:                                              ; preds = %218, %170, %73, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, 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

declare float @slamch_(ptr noundef) #2

; Function Attrs: nounwind
declare double @log(double noundef) #3

; Function Attrs: nounwind uwtable
declare hidden float @spow_ui(float noundef, i32 noundef) #0

; 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 = !{!"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 [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

20:                                               ; preds = %15
  %21 = icmp eq i32 %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 = tail call float @slamch_(ptr noundef nonnull @.str.1) #5
  %25 = fpext float %24 to double
  %26 = tail call double @log(double noundef %25) #5
  %27 = fdiv double -5.000000e-01, %26
  %28 = fptrunc double %27 to float
  %29 = load float, ptr %1, align 4, !tbaa !9
  store float %29, ptr %3, align 4, !tbaa !9
  store float %29, ptr %5, align 4, !tbaa !9
  %30 = load i32, ptr %0, align 4, !tbaa !5
  %.not7176 = icmp slt i32 %30, 2
  br i1 %.not7176, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %31 = add i32 %9, 1
  %32 = add nuw i32 %30, 1
  %wide.trip.count = zext i32 %32 to i64
  br label %33

33:                                               ; preds = %.lr.ph, %33
  %indvars.iv = phi i64 [ 2, %.lr.ph ], [ %indvars.iv.next, %33 ]
  %.06877 = phi float [ %29, %.lr.ph ], [ %41, %33 ]
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  %35 = mul i32 %31, %34
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %11, i64 %36
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = getelementptr inbounds float, ptr %12, i64 %indvars.iv
  store float %38, ptr %39, align 4, !tbaa !9
  %40 = fcmp ole float %.06877, %38
  %41 = select i1 %40, float %.06877, float %38
  %42 = load float, ptr %5, align 4, !tbaa !9
  %43 = fcmp oge float %42, %38
  %44 = select i1 %43, float %42, float %38
  store float %44, ptr %5, align 4, !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 %33, !llvm.loop !11

._crit_edge:                                      ; preds = %33, %23
  %.068.lcssa = phi float [ %29, %23 ], [ %41, %33 ]
  %45 = fcmp ugt float %.068.lcssa, 0.000000e+00
  %.not7283 = icmp slt i32 %30, 1
  br i1 %45, label %54, label %46

46:                                               ; preds = %._crit_edge
  br i1 %.not7283, label %.loopexit, label %.lr.ph82.preheader

.lr.ph82.preheader:                               ; preds = %46
  %47 = add nuw i32 %30, 1
  %wide.trip.count93 = zext i32 %47 to i64
  br label %.lr.ph82

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %53
  %indvars.iv90 = phi i64 [ 1, %.lr.ph82.preheader ], [ %indvars.iv.next91, %53 ]
  %48 = getelementptr inbounds float, ptr %12, i64 %indvars.iv90
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = fcmp ugt float %49, 0.000000e+00
  br i1 %50, label %53, label %51

51:                                               ; preds = %.lr.ph82
  %52 = trunc nuw nsw i64 %indvars.iv90 to i32
  store i32 %52, ptr %6, align 4, !tbaa !5
  br label %.loopexit

53:                                               ; preds = %.lr.ph82
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %exitcond94.not = icmp eq i64 %indvars.iv.next91, %wide.trip.count93
  br i1 %exitcond94.not, label %.loopexit, label %.lr.ph82, !llvm.loop !13

54:                                               ; preds = %._crit_edge
  br i1 %.not7283, label %._crit_edge87, label %.lr.ph86

.lr.ph86:                                         ; preds = %54
  %55 = fpext float %28 to double
  %56 = add nuw i32 %30, 1
  %wide.trip.count98 = zext i32 %56 to i64
  br label %57

57:                                               ; preds = %.lr.ph86, %57
  %indvars.iv95 = phi i64 [ 1, %.lr.ph86 ], [ %indvars.iv.next96, %57 ]
  %58 = getelementptr inbounds float, ptr %12, i64 %indvars.iv95
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = fpext float %59 to double
  %61 = tail call double @log(double noundef %60) #5
  %62 = fmul double %61, %55
  %63 = fptosi double %62 to i32
  %64 = tail call float @spow_ui(float noundef %24, i32 noundef %63)
  store float %64, ptr %58, align 4, !tbaa !9
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %exitcond99.not = icmp eq i64 %indvars.iv.next96, %wide.trip.count98
  br i1 %exitcond99.not, label %._crit_edge87, label %57, !llvm.loop !14

._crit_edge87:                                    ; preds = %57, %54
  %65 = fpext float %.068.lcssa to double
  %66 = tail call double @sqrt(double noundef %65) #5
  %67 = load float, ptr %5, align 4, !tbaa !9
  %68 = fpext float %67 to double
  %69 = tail call double @sqrt(double noundef %68) #5
  %70 = fdiv double %66, %69
  %71 = fptrunc double %70 to float
  store float %71, ptr %4, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %53, %46, %._crit_edge87, %51, %22, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare float @slamch_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden float @spow_ui(float noundef, i32 noundef) local_unnamed_addr #0

; 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 = !{!"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,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass