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

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

; Function Attrs: nounwind uwtable
define dso_local void @cgeql2_(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 %struct.complex, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.complex, align 4
  %23 = alloca i32, 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) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %26, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = mul nsw i32 %27, 1
  %29 = add nsw i32 1, %28
  store i32 %29, ptr %16, align 4, !tbaa !9
  %30 = load i32, ptr %16, align 4, !tbaa !9
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = sext i32 %30 to i64
  %33 = sub i64 0, %32
  %34 = getelementptr inbounds %struct.complex, ptr %31, i64 %33
  store ptr %34, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.complex, ptr %35, i32 -1
  store ptr %36, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.complex, ptr %37, i32 -1
  store ptr %38, ptr %13, 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 %68

45:                                               ; preds = %7
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = icmp slt i32 %47, 0
  br i1 %48, label %49, label %51

49:                                               ; preds = %45
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -2, ptr %50, align 4, !tbaa !9
  br label %67

51:                                               ; preds = %45
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp sge i32 1, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %51
  br label %61

58:                                               ; preds = %51
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %58, %57
  %62 = phi i32 [ 1, %57 ], [ %60, %58 ]
  %63 = icmp slt i32 %53, %62
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -4, ptr %65, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %64, %61
  br label %67

67:                                               ; preds = %66, %49
  br label %68

68:                                               ; preds = %67, %43
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %77

72:                                               ; preds = %68
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sub nsw i32 0, %74
  store i32 %75, ptr %17, align 4, !tbaa !9
  %76 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %17, i32 noundef 6)
  store i32 1, ptr %23, align 4
  br label %250

77:                                               ; preds = %68
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp sle i32 %79, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %77
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  br label %89

86:                                               ; preds = %77
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %87, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %86, %83
  %90 = phi i32 [ %85, %83 ], [ %88, %86 ]
  store i32 %90, ptr %21, align 4, !tbaa !9
  %91 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %91, ptr %20, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %246, %89
  %93 = load i32, ptr %20, align 4, !tbaa !9
  %94 = icmp sge i32 %93, 1
  br i1 %94, label %95, label %249

95:                                               ; preds = %92
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load i32, ptr %21, align 4, !tbaa !9
  %99 = sub nsw i32 %97, %98
  %100 = load i32, ptr %20, align 4, !tbaa !9
  %101 = add nsw i32 %99, %100
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = load i32, ptr %21, align 4, !tbaa !9
  %105 = sub nsw i32 %103, %104
  %106 = load i32, ptr %20, align 4, !tbaa !9
  %107 = add nsw i32 %105, %106
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = mul nsw i32 %107, %108
  %110 = add nsw i32 %101, %109
  store i32 %110, ptr %17, align 4, !tbaa !9
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.complex, ptr %111, i64 %113
  %115 = getelementptr inbounds %struct.complex, ptr %114, i32 0, i32 0
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float %116, ptr %117, align 4, !tbaa !11
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %struct.complex, ptr %118, i64 %120
  %122 = getelementptr inbounds %struct.complex, ptr %121, i32 0, i32 1
  %123 = load float, ptr %122, align 4, !tbaa !14
  %124 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float %123, ptr %124, align 4, !tbaa !14
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = sub nsw i32 %126, %127
  %129 = load i32, ptr %20, align 4, !tbaa !9
  %130 = add nsw i32 %128, %129
  store i32 %130, ptr %17, align 4, !tbaa !9
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = sub nsw i32 %133, %134
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = add nsw i32 %135, %136
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = mul nsw i32 %137, %138
  %140 = add nsw i32 %139, 1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.complex, ptr %131, i64 %141
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds %struct.complex, ptr %143, i64 %145
  call void @clarfg_(ptr noundef %17, ptr noundef %22, ptr noundef %142, ptr noundef @c__1, ptr noundef %146)
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = load i32, ptr %21, align 4, !tbaa !9
  %150 = sub nsw i32 %148, %149
  %151 = load i32, ptr %20, align 4, !tbaa !9
  %152 = add nsw i32 %150, %151
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = sub nsw i32 %154, %155
  %157 = load i32, ptr %20, align 4, !tbaa !9
  %158 = add nsw i32 %156, %157
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = mul nsw i32 %158, %159
  %161 = add nsw i32 %152, %160
  store i32 %161, ptr %17, align 4, !tbaa !9
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.complex, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.complex, ptr %165, i32 0, i32 0
  store float 1.000000e+00, ptr %166, align 4, !tbaa !11
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = load i32, ptr %17, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds %struct.complex, ptr %167, i64 %169
  %171 = getelementptr inbounds %struct.complex, ptr %170, i32 0, i32 1
  store float 0.000000e+00, ptr %171, align 4, !tbaa !14
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = load i32, ptr %21, align 4, !tbaa !9
  %175 = sub nsw i32 %173, %174
  %176 = load i32, ptr %20, align 4, !tbaa !9
  %177 = add nsw i32 %175, %176
  store i32 %177, ptr %17, align 4, !tbaa !9
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load i32, ptr %178, align 4, !tbaa !9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = sub nsw i32 %179, %180
  %182 = load i32, ptr %20, align 4, !tbaa !9
  %183 = add nsw i32 %181, %182
  %184 = sub nsw i32 %183, 1
  store i32 %184, ptr %18, align 4, !tbaa !9
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load i32, ptr %20, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %struct.complex, ptr %185, i64 %187
  %189 = call <2 x float> @Cf(ptr noundef %188)
  store <2 x float> %189, ptr %24, align 4
  %190 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %191 = load float, ptr %190, align 4
  %192 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  %193 = load float, ptr %192, align 4
  %194 = fneg float %193
  %195 = call ptr @_pCf(ptr noundef %19)
  %196 = getelementptr inbounds { float, float }, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds { float, float }, ptr %195, i32 0, i32 1
  store float %191, ptr %196, align 4
  store float %194, ptr %197, align 4
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = load i32, ptr %21, align 4, !tbaa !9
  %202 = sub nsw i32 %200, %201
  %203 = load i32, ptr %20, align 4, !tbaa !9
  %204 = add nsw i32 %202, %203
  %205 = load i32, ptr %15, align 4, !tbaa !9
  %206 = mul nsw i32 %204, %205
  %207 = add nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct.complex, ptr %198, i64 %208
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %struct.complex, ptr %210, i64 %212
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.complex, ptr %215, i64 1
  call void @clarf_(ptr noundef @.str.1, ptr noundef %17, ptr noundef %18, ptr noundef %209, ptr noundef @c__1, ptr noundef %19, ptr noundef %213, ptr noundef %214, ptr noundef %216)
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = load i32, ptr %21, align 4, !tbaa !9
  %220 = sub nsw i32 %218, %219
  %221 = load i32, ptr %20, align 4, !tbaa !9
  %222 = add nsw i32 %220, %221
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = load i32, ptr %21, align 4, !tbaa !9
  %226 = sub nsw i32 %224, %225
  %227 = load i32, ptr %20, align 4, !tbaa !9
  %228 = add nsw i32 %226, %227
  %229 = load i32, ptr %15, align 4, !tbaa !9
  %230 = mul nsw i32 %228, %229
  %231 = add nsw i32 %222, %230
  store i32 %231, ptr %17, align 4, !tbaa !9
  %232 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  %233 = load float, ptr %232, align 4, !tbaa !11
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = load i32, ptr %17, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds %struct.complex, ptr %234, i64 %236
  %238 = getelementptr inbounds %struct.complex, ptr %237, i32 0, i32 0
  store float %233, ptr %238, align 4, !tbaa !11
  %239 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  %240 = load float, ptr %239, align 4, !tbaa !14
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = load i32, ptr %17, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.complex, ptr %241, i64 %243
  %245 = getelementptr inbounds %struct.complex, ptr %244, i32 0, i32 1
  store float %240, ptr %245, align 4, !tbaa !14
  br label %246

246:                                              ; preds = %95
  %247 = load i32, ptr %20, align 4, !tbaa !9
  %248 = add nsw i32 %247, -1
  store i32 %248, ptr %20, align 4, !tbaa !9
  br label %92, !llvm.loop !15

249:                                              ; preds = %92
  store i32 1, ptr %23, align 4
  br label %250

250:                                              ; preds = %249, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  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 void @clarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCf(ptr noundef) #4

declare void @clarf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 = { 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 #4 = { inlinehint 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 #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 = !{!"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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

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

18:                                               ; preds = %7
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %.thread, label %21

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

.thread:                                          ; preds = %21, %18, %7
  %.sink = phi i32 [ -1, %7 ], [ -2, %18 ], [ -4, %21 ]
  %.neg = phi i32 [ 1, %7 ], [ 2, %18 ], [ 4, %21 ]
  store i32 %.sink, ptr %6, align 4, !tbaa !5
  store i32 %.neg, ptr %8, align 4, !tbaa !5
  %24 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %8, i32 noundef 6) #6
  br label %.loopexit

25:                                               ; preds = %21
  %26 = tail call i32 @llvm.umin.i32(i32 %16, i32 %19)
  %invariant.gep = getelementptr i8, ptr %14, i64 8
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %25
  %27 = zext nneg i32 %26 to i64
  br label %28

28:                                               ; preds = %.lr.ph, %28
  %29 = phi i32 [ %19, %.lr.ph ], [ %64, %28 ]
  %30 = phi i32 [ %16, %.lr.ph ], [ %63, %28 ]
  %indvars.iv = phi i64 [ %27, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %31 = sub nsw i32 %30, %26
  %32 = trunc nuw nsw i64 %indvars.iv to i32
  %33 = add nsw i32 %31, %32
  %34 = trunc i64 %indvars.iv to i32
  %35 = sub i32 %34, %26
  %36 = add i32 %35, %29
  %37 = mul nsw i32 %36, %12
  %38 = add nsw i32 %37, %33
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct.complex, ptr %14, i64 %39
  %41 = load <2 x float>, ptr %40, align 4, !tbaa !9
  store <2 x float> %41, ptr %11, align 8, !tbaa !9
  store i32 %33, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %37 to i64
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %42
  %43 = getelementptr inbounds %struct.complex, ptr %15, i64 %indvars.iv
  call void @clarfg_(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %gep, ptr noundef nonnull @c__1, ptr noundef nonnull %43) #6
  %44 = load i32, ptr %0, align 4, !tbaa !5
  %45 = sub nsw i32 %44, %26
  %46 = add nsw i32 %45, %32
  %47 = load i32, ptr %1, align 4, !tbaa !5
  %48 = sub nsw i32 %47, %26
  %49 = add nsw i32 %48, %32
  %50 = mul nsw i32 %49, %12
  %51 = add nsw i32 %50, %46
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct.complex, ptr %14, i64 %52
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %53, align 4, !tbaa !9
  store i32 %46, ptr %8, align 4, !tbaa !5
  %54 = add nsw i32 %49, -1
  store i32 %54, ptr %9, align 4, !tbaa !5
  %55 = call <2 x float> @Cf(ptr noundef nonnull %43)
  %.sroa.0.0.vec.extract = extractelement <2 x float> %55, i64 0
  %.sroa.0.4.vec.extract = extractelement <2 x float> %55, i64 1
  %56 = fneg float %.sroa.0.4.vec.extract
  %57 = call ptr @_pCf(ptr noundef nonnull %10)
  %58 = getelementptr inbounds i8, ptr %57, i64 4
  store float %.sroa.0.0.vec.extract, ptr %57, align 4
  store float %56, ptr %58, align 4
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = add i32 %35, %59
  %61 = mul nsw i32 %60, %12
  %62 = sext i32 %61 to i64
  %gep84 = getelementptr %struct.complex, ptr %invariant.gep, i64 %62
  call void @clarf_(ptr noundef nonnull @.str.1, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %gep84, ptr noundef nonnull @c__1, ptr noundef nonnull %10, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %5) #6
  %63 = load i32, ptr %0, align 4, !tbaa !5
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = add i32 %35, %64
  %66 = mul nsw i32 %65, %12
  %67 = add i32 %35, %63
  %68 = add nsw i32 %67, %66
  store i32 %68, ptr %8, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %struct.complex, ptr %14, i64 %69
  %71 = load <2 x float>, ptr %11, align 8, !tbaa !9
  store <2 x float> %71, ptr %70, align 4, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %72 = icmp ugt i64 %indvars.iv, 1
  br i1 %72, label %28, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %28, %25, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  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

declare void @clarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCf(ptr noundef) local_unnamed_addr #4

declare void @clarf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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

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

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

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 = { 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 #4 = { inlinehint 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 #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 = !{!"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"}


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