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

; 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
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @cptcon_(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 float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca { float, float }, align 4
  %22 = alloca { float, float }, align 4
  %23 = alloca { float, float }, align 4
  %24 = alloca { float, float }, 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) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %25 = load ptr, ptr %13, align 8, !tbaa !5
  %26 = getelementptr inbounds float, ptr %25, i32 -1
  store ptr %26, ptr %13, align 8, !tbaa !5
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.complex, ptr %27, i32 -1
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = getelementptr inbounds float, ptr %29, i32 -1
  store ptr %30, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %31, align 4, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %37

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

37:                                               ; preds = %7
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load float, ptr %38, align 4, !tbaa !11
  %40 = fcmp olt float %39, 0.000000e+00
  br i1 %40, label %41, label %43

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

43:                                               ; preds = %41, %37
  br label %44

44:                                               ; preds = %43, %35
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %53

48:                                               ; preds = %44
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = sub nsw i32 0, %50
  store i32 %51, ptr %15, align 4, !tbaa !9
  %52 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %15, i32 noundef 6)
  store i32 1, ptr %20, align 4
  br label %211

53:                                               ; preds = %44
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  store float 0.000000e+00, ptr %54, align 4, !tbaa !11
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %53
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  store float 1.000000e+00, ptr %59, align 4, !tbaa !11
  store i32 1, ptr %20, align 4
  br label %211

60:                                               ; preds = %53
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load float, ptr %61, align 4, !tbaa !11
  %63 = fcmp oeq float %62, 0.000000e+00
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  store i32 1, ptr %20, align 4
  br label %211

65:                                               ; preds = %60
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  store i32 %68, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %82, %66
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %73, label %85

73:                                               ; preds = %69
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds float, ptr %74, i64 %76
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = fcmp ole float %78, 0.000000e+00
  br i1 %79, label %80, label %81

80:                                               ; preds = %73
  store i32 1, ptr %20, align 4
  br label %211

81:                                               ; preds = %73
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %17, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %17, align 4, !tbaa !9
  br label %69, !llvm.loop !13

85:                                               ; preds = %69
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = getelementptr inbounds float, ptr %86, i64 1
  store float 1.000000e+00, ptr %87, align 4, !tbaa !11
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  store i32 %89, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %120, %85
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = load i32, ptr %15, align 4, !tbaa !9
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %94, label %123

94:                                               ; preds = %90
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds float, ptr %95, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.complex, ptr %101, i64 %104
  %106 = call <2 x float> @Cf(ptr noundef %105)
  store <2 x float> %106, ptr %21, align 4
  %107 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 0
  %108 = load float, ptr %107, align 4
  %109 = getelementptr inbounds { float, float }, ptr %21, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 0
  %112 = getelementptr inbounds { float, float }, ptr %22, i32 0, i32 1
  store float %108, ptr %111, align 4
  store float %110, ptr %112, align 4
  %113 = load <2 x float>, ptr %22, align 4
  %114 = call float @cabsf(<2 x float> noundef %113) #6
  %115 = call float @llvm.fmuladd.f32(float %100, float %114, float 1.000000e+00)
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %116, i64 %118
  store float %115, ptr %119, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %94
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %17, align 4, !tbaa !9
  br label %90, !llvm.loop !15

123:                                              ; preds = %90
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %124, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds float, ptr %130, i64 %133
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = fdiv float %135, %129
  store float %136, ptr %134, align 4, !tbaa !11
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = sub nsw i32 %138, 1
  store i32 %139, ptr %17, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %179, %123
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = icmp sge i32 %141, 1
  br i1 %142, label %143, label %182

143:                                              ; preds = %140
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds float, ptr %144, i64 %146
  %148 = load float, ptr %147, align 4, !tbaa !11
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = load i32, ptr %17, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = fdiv float %148, %153
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds float, ptr %155, i64 %158
  %160 = load float, ptr %159, align 4, !tbaa !11
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = load i32, ptr %17, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds %struct.complex, ptr %161, i64 %163
  %165 = call <2 x float> @Cf(ptr noundef %164)
  store <2 x float> %165, ptr %23, align 4
  %166 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 0
  %167 = load float, ptr %166, align 4
  %168 = getelementptr inbounds { float, float }, ptr %23, i32 0, i32 1
  %169 = load float, ptr %168, align 4
  %170 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %171 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  store float %167, ptr %170, align 4
  store float %169, ptr %171, align 4
  %172 = load <2 x float>, ptr %24, align 4
  %173 = call float @cabsf(<2 x float> noundef %172) #6
  %174 = call float @llvm.fmuladd.f32(float %160, float %173, float %154)
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds float, ptr %175, i64 %177
  store float %174, ptr %178, align 4, !tbaa !11
  br label %179

179:                                              ; preds = %143
  %180 = load i32, ptr %17, align 4, !tbaa !9
  %181 = add nsw i32 %180, -1
  store i32 %181, ptr %17, align 4, !tbaa !9
  br label %140, !llvm.loop !16

182:                                              ; preds = %140
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = getelementptr inbounds float, ptr %184, i64 1
  %186 = call i32 @isamax_(ptr noundef %183, ptr noundef %185, ptr noundef @c__1)
  store i32 %186, ptr %18, align 4, !tbaa !9
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = load i32, ptr %18, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds float, ptr %187, i64 %189
  %191 = load float, ptr %190, align 4, !tbaa !11
  store float %191, ptr %16, align 4, !tbaa !11
  %192 = load float, ptr %16, align 4, !tbaa !11
  %193 = fcmp oge float %192, 0.000000e+00
  br i1 %193, label %194, label %196

194:                                              ; preds = %182
  %195 = load float, ptr %16, align 4, !tbaa !11
  br label %199

196:                                              ; preds = %182
  %197 = load float, ptr %16, align 4, !tbaa !11
  %198 = fneg float %197
  br label %199

199:                                              ; preds = %196, %194
  %200 = phi float [ %195, %194 ], [ %198, %196 ]
  store float %200, ptr %19, align 4, !tbaa !11
  %201 = load float, ptr %19, align 4, !tbaa !11
  %202 = fcmp une float %201, 0.000000e+00
  br i1 %202, label %203, label %210

203:                                              ; preds = %199
  %204 = load float, ptr %19, align 4, !tbaa !11
  %205 = fdiv float 1.000000e+00, %204
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = load float, ptr %206, align 4, !tbaa !11
  %208 = fdiv float %205, %207
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  store float %208, ptr %209, align 4, !tbaa !11
  br label %210

210:                                              ; preds = %203, %199
  store i32 1, ptr %20, align 4
  br label %211

211:                                              ; preds = %210, %80, %64, %58, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

declare i32 @isamax_(ptr noundef, ptr noundef, ptr noundef) #2

; 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"="64" "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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"

%struct.complex = type { float, float }

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

; Function Attrs: nounwind uwtable
define dso_local void @cptcon_(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, ptr 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) #6
  %9 = getelementptr inbounds i8, ptr %5, i64 -4
  %10 = getelementptr inbounds i8, ptr %2, i64 -8
  %11 = getelementptr inbounds i8, ptr %1, i64 -4
  store i32 0, ptr %6, align 4, !tbaa !5
  %12 = load i32, ptr %0, align 4, !tbaa !5
  %13 = icmp slt i32 %12, 0
  br i1 %13, label %.thread, label %14

14:                                               ; preds = %7
  %15 = load float, ptr %3, align 4, !tbaa !9
  %16 = fcmp olt float %15, 0.000000e+00
  br i1 %16, label %.thread, label %19

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

19:                                               ; preds = %14
  store float 0.000000e+00, ptr %4, align 4, !tbaa !9
  %20 = icmp eq i32 %12, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  store float 1.000000e+00, ptr %4, align 4, !tbaa !9
  br label %.loopexit

22:                                               ; preds = %19
  %23 = load float, ptr %3, align 4, !tbaa !9
  %24 = fcmp oeq float %23, 0.000000e+00
  br i1 %24, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %22
  %25 = add nuw i32 %12, 1
  %wide.trip.count = zext i32 %25 to i64
  br label %.lr.ph

26:                                               ; preds = %.lr.ph
  %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 !11

.lr.ph:                                           ; preds = %.lr.ph.preheader, %26
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %26 ]
  %27 = getelementptr inbounds float, ptr %11, i64 %indvars.iv
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = fcmp ugt float %28, 0.000000e+00
  br i1 %29, label %26, label %.loopexit

._crit_edge:                                      ; preds = %26
  store float 1.000000e+00, ptr %5, align 4, !tbaa !9
  %.not6569 = icmp slt i32 %12, 2
  br i1 %.not6569, label %._crit_edge73.thread, label %.lr.ph72.preheader

._crit_edge73.thread:                             ; preds = %._crit_edge
  %30 = zext nneg i32 %12 to i64
  %31 = getelementptr inbounds float, ptr %11, i64 %30
  %32 = load float, ptr %31, align 4, !tbaa !9
  %33 = getelementptr inbounds float, ptr %9, i64 %30
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = fdiv float %34, %32
  store float %35, ptr %33, align 4, !tbaa !9
  br label %._crit_edge77

.lr.ph72.preheader:                               ; preds = %._crit_edge
  %36 = add nuw i32 %12, 1
  %wide.trip.count82 = zext i32 %36 to i64
  %invariant.gep = getelementptr i8, ptr %2, i64 -16
  br label %.lr.ph72

.lr.ph72:                                         ; preds = %.lr.ph72.preheader, %.lr.ph72
  %37 = phi float [ 1.000000e+00, %.lr.ph72.preheader ], [ %40, %.lr.ph72 ]
  %indvars.iv79 = phi i64 [ 2, %.lr.ph72.preheader ], [ %indvars.iv.next80, %.lr.ph72 ]
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %indvars.iv79
  %38 = tail call <2 x float> @Cf(ptr noundef nonnull %gep)
  %39 = tail call float @cabsf(<2 x float> noundef %38) #6
  %40 = tail call float @llvm.fmuladd.f32(float %37, float %39, float 1.000000e+00)
  %41 = getelementptr inbounds float, ptr %9, i64 %indvars.iv79
  store float %40, ptr %41, align 4, !tbaa !9
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %._crit_edge73, label %.lr.ph72, !llvm.loop !13

._crit_edge73:                                    ; preds = %.lr.ph72
  %.pre87 = load i32, ptr %0, align 4, !tbaa !5
  %42 = sext i32 %.pre87 to i64
  %43 = getelementptr inbounds float, ptr %11, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = getelementptr inbounds float, ptr %9, i64 %42
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fdiv float %46, %44
  store float %47, ptr %45, align 4, !tbaa !9
  %48 = icmp sgt i32 %.pre87, 1
  br i1 %48, label %.lr.ph76.preheader, label %._crit_edge77

.lr.ph76.preheader:                               ; preds = %._crit_edge73
  %49 = zext nneg i32 %.pre87 to i64
  %.phi.trans.insert88 = getelementptr inbounds float, ptr %9, i64 %49
  %.pre89 = load float, ptr %.phi.trans.insert88, align 4, !tbaa !9
  br label %.lr.ph76

.lr.ph76:                                         ; preds = %.lr.ph76.preheader, %.lr.ph76
  %50 = phi float [ %.pre89, %.lr.ph76.preheader ], [ %59, %.lr.ph76 ]
  %indvars.iv84 = phi i64 [ %49, %.lr.ph76.preheader ], [ %indvars.iv.next85, %.lr.ph76 ]
  %indvars.iv.next85 = add nsw i64 %indvars.iv84, -1
  %51 = getelementptr inbounds float, ptr %9, i64 %indvars.iv.next85
  %52 = load float, ptr %51, align 4, !tbaa !9
  %53 = getelementptr inbounds float, ptr %11, i64 %indvars.iv.next85
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = fdiv float %52, %54
  %56 = getelementptr inbounds %struct.complex, ptr %10, i64 %indvars.iv.next85
  %57 = tail call <2 x float> @Cf(ptr noundef nonnull %56)
  %58 = tail call float @cabsf(<2 x float> noundef %57) #6
  %59 = tail call float @llvm.fmuladd.f32(float %50, float %58, float %55)
  store float %59, ptr %51, align 4, !tbaa !9
  %60 = icmp ugt i64 %indvars.iv84, 2
  br i1 %60, label %.lr.ph76, label %._crit_edge77, !llvm.loop !14

._crit_edge77:                                    ; preds = %.lr.ph76, %._crit_edge73.thread, %._crit_edge73
  %61 = tail call i32 @isamax_(ptr noundef nonnull %0, ptr noundef nonnull %5, ptr noundef nonnull @c__1) #6
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds float, ptr %9, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !9
  %65 = fcmp une float %64, 0.000000e+00
  br i1 %65, label %66, label %.loopexit

66:                                               ; preds = %._crit_edge77
  %67 = fcmp oge float %64, 0.000000e+00
  %68 = fneg float %64
  %69 = select i1 %67, float %64, float %68
  %70 = fdiv float 1.000000e+00, %69
  %71 = load float, ptr %3, align 4, !tbaa !9
  %72 = fdiv float %70, %71
  store float %72, ptr %4, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %._crit_edge77, %66, %22, %21, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  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

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

; Function Attrs: mustprogress 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"="64" "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 = { 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 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass