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

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

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

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

51:                                               ; preds = %45
  br label %55

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

55:                                               ; preds = %52, %51
  %56 = phi i32 [ 1, %51 ], [ %54, %52 ]
  %57 = icmp slt i32 %47, %56
  br i1 %57, label %58, label %60

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

60:                                               ; preds = %58, %55
  br label %61

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

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

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

74:                                               ; preds = %70
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  store float 1.000000e+00, ptr %75, align 4, !tbaa !11
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  store float 0.000000e+00, ptr %76, align 4, !tbaa !11
  store i32 1, ptr %26, align 4
  br label %225

77:                                               ; preds = %70
  %78 = call float @slamch_(ptr noundef @.str.1)
  store float %78, ptr %22, align 4, !tbaa !11
  %79 = load float, ptr %22, align 4, !tbaa !11
  %80 = fpext float %79 to double
  %81 = call double @log(double noundef %80) #4
  %82 = fdiv double -5.000000e-01, %81
  %83 = fptrunc double %82 to float
  store float %83, ptr %25, align 4, !tbaa !11
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %17, align 4, !tbaa !9
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %struct.complex, ptr %86, i64 %88
  %90 = getelementptr inbounds %struct.complex, ptr %89, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !13
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds float, ptr %92, i64 1
  store float %91, ptr %93, 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
  store float %96, ptr %23, align 4, !tbaa !11
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds float, ptr %97, i64 1
  %99 = load float, ptr %98, align 4, !tbaa !11
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  store float %99, ptr %100, align 4, !tbaa !11
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  store i32 %102, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %156, %77
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = icmp sle i32 %104, %105
  br i1 %106, label %107, label %159

107:                                              ; preds = %103
  %108 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %108, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %24, align 4, !tbaa !9
  %110 = load i32, ptr %24, align 4, !tbaa !9
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = mul nsw i32 %110, %111
  %113 = add nsw i32 %109, %112
  store i32 %113, ptr %19, align 4, !tbaa !9
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %struct.complex, ptr %114, i64 %116
  %118 = getelementptr inbounds %struct.complex, ptr %117, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !13
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load i32, ptr %18, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %120, i64 %122
  store float %119, ptr %123, align 4, !tbaa !11
  %124 = load float, ptr %23, align 4, !tbaa !11
  store float %124, ptr %20, align 4, !tbaa !11
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %125, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !11
  store float %129, ptr %21, align 4, !tbaa !11
  %130 = load float, ptr %20, align 4, !tbaa !11
  %131 = load float, ptr %21, align 4, !tbaa !11
  %132 = fcmp ole float %130, %131
  br i1 %132, label %133, label %135

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

135:                                              ; preds = %107
  %136 = load float, ptr %21, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %135, %133
  %138 = phi float [ %134, %133 ], [ %136, %135 ]
  store float %138, ptr %23, align 4, !tbaa !11
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load float, ptr %139, align 4, !tbaa !11
  store float %140, ptr %20, align 4, !tbaa !11
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %24, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !11
  store float %145, ptr %21, align 4, !tbaa !11
  %146 = load float, ptr %20, align 4, !tbaa !11
  %147 = load float, ptr %21, align 4, !tbaa !11
  %148 = fcmp oge float %146, %147
  br i1 %148, label %149, label %151

149:                                              ; preds = %137
  %150 = load float, ptr %20, align 4, !tbaa !11
  br label %153

151:                                              ; preds = %137
  %152 = load float, ptr %21, align 4, !tbaa !11
  br label %153

153:                                              ; preds = %151, %149
  %154 = phi float [ %150, %149 ], [ %152, %151 ]
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  store float %154, ptr %155, align 4, !tbaa !11
  br label %156

156:                                              ; preds = %153
  %157 = load i32, ptr %24, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %24, align 4, !tbaa !9
  br label %103, !llvm.loop !15

159:                                              ; preds = %103
  %160 = load float, ptr %23, align 4, !tbaa !11
  %161 = fcmp ole float %160, 0.000000e+00
  br i1 %161, label %162, label %184

162:                                              ; preds = %159
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !9
  store i32 %164, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %180, %162
  %166 = load i32, ptr %24, align 4, !tbaa !9
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = icmp sle i32 %166, %167
  br i1 %168, label %169, label %183

169:                                              ; preds = %165
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load i32, ptr %24, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds float, ptr %170, i64 %172
  %174 = load float, ptr %173, align 4, !tbaa !11
  %175 = fcmp ole float %174, 0.000000e+00
  br i1 %175, label %176, label %179

176:                                              ; preds = %169
  %177 = load i32, ptr %24, align 4, !tbaa !9
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %177, ptr %178, align 4, !tbaa !9
  store i32 1, ptr %26, align 4
  br label %225

179:                                              ; preds = %169
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %24, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %24, align 4, !tbaa !9
  br label %165, !llvm.loop !17

183:                                              ; preds = %165
  br label %224

184:                                              ; preds = %159
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !9
  store i32 %186, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %210, %184
  %188 = load i32, ptr %24, align 4, !tbaa !9
  %189 = load i32, ptr %17, align 4, !tbaa !9
  %190 = icmp sle i32 %188, %189
  br i1 %190, label %191, label %213

191:                                              ; preds = %187
  %192 = load float, ptr %25, align 4, !tbaa !11
  %193 = fpext float %192 to double
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = load i32, ptr %24, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds float, ptr %194, i64 %196
  %198 = load float, ptr %197, align 4, !tbaa !11
  %199 = fpext float %198 to double
  %200 = call double @log(double noundef %199) #4
  %201 = fmul double %193, %200
  %202 = fptosi double %201 to i32
  store i32 %202, ptr %18, align 4, !tbaa !9
  %203 = load float, ptr %22, align 4, !tbaa !11
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = call float @spow_ui(float noundef %203, i32 noundef %204)
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load i32, ptr %24, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds float, ptr %206, i64 %208
  store float %205, ptr %209, align 4, !tbaa !11
  br label %210

210:                                              ; preds = %191
  %211 = load i32, ptr %24, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %24, align 4, !tbaa !9
  br label %187, !llvm.loop !18

213:                                              ; preds = %187
  %214 = load float, ptr %23, align 4, !tbaa !11
  %215 = fpext float %214 to double
  %216 = call double @sqrt(double noundef %215) #4
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = load float, ptr %217, align 4, !tbaa !11
  %219 = fpext float %218 to double
  %220 = call double @sqrt(double noundef %219) #4
  %221 = fdiv double %216, %220
  %222 = fptrunc double %221 to float
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  store float %222, ptr %223, align 4, !tbaa !11
  br label %224

224:                                              ; preds = %213, %183
  store i32 1, ptr %26, align 4
  br label %225

225:                                              ; preds = %224, %176, %74, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  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 = !{!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 [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 @cpoequb_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = add i32 %9, 1
  %narrow = xor i32 %9, -1
  %11 = sext i32 %narrow to i64
  %12 = getelementptr inbounds %struct.complex, ptr %1, i64 %11
  %13 = getelementptr inbounds i8, ptr %3, i64 -4
  store i32 0, ptr %6, align 4, !tbaa !5
  %14 = load i32, ptr %0, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %.thread, label %16

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

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

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

.lr.ph.preheader:                                 ; preds = %24
  %32 = add nuw i32 %31, 1
  %wide.trip.count = zext i32 %32 to i64
  br label %.lr.ph

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

._crit_edge:                                      ; preds = %.lr.ph, %24
  %.070.lcssa = phi float [ %30, %24 ], [ %40, %.lr.ph ]
  %44 = fcmp ugt float %.070.lcssa, 0.000000e+00
  %.not7485 = icmp slt i32 %31, 1
  br i1 %44, label %53, label %45

45:                                               ; preds = %._crit_edge
  br i1 %.not7485, label %.loopexit, label %.lr.ph84.preheader

.lr.ph84.preheader:                               ; preds = %45
  %46 = add nuw i32 %31, 1
  %wide.trip.count95 = zext i32 %46 to i64
  br label %.lr.ph84

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %52
  %indvars.iv92 = phi i64 [ 1, %.lr.ph84.preheader ], [ %indvars.iv.next93, %52 ]
  %47 = getelementptr inbounds float, ptr %13, i64 %indvars.iv92
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = fcmp ugt float %48, 0.000000e+00
  br i1 %49, label %52, label %50

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

52:                                               ; preds = %.lr.ph84
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond96.not = icmp eq i64 %indvars.iv.next93, %wide.trip.count95
  br i1 %exitcond96.not, label %.loopexit, label %.lr.ph84, !llvm.loop !15

53:                                               ; preds = %._crit_edge
  br i1 %.not7485, label %._crit_edge89, label %.lr.ph88

.lr.ph88:                                         ; preds = %53
  %54 = fpext float %29 to double
  %55 = add nuw i32 %31, 1
  %wide.trip.count100 = zext i32 %55 to i64
  br label %56

56:                                               ; preds = %.lr.ph88, %56
  %indvars.iv97 = phi i64 [ 1, %.lr.ph88 ], [ %indvars.iv.next98, %56 ]
  %57 = getelementptr inbounds float, ptr %13, i64 %indvars.iv97
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = fpext float %58 to double
  %60 = tail call double @log(double noundef %59) #5
  %61 = fmul double %60, %54
  %62 = fptosi double %61 to i32
  %63 = tail call float @spow_ui(float noundef %25, i32 noundef %62)
  store float %63, ptr %57, align 4, !tbaa !9
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond101.not = icmp eq i64 %indvars.iv.next98, %wide.trip.count100
  br i1 %exitcond101.not, label %._crit_edge89, label %56, !llvm.loop !16

._crit_edge89:                                    ; preds = %56, %53
  %64 = fpext float %.070.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 = %52, %45, %._crit_edge89, %50, %23, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  ret void
}

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

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

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