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

; 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.doublecomplex = type { double, double }

@.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 @zgeql2_(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.doublecomplex, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.doublecomplex, align 8
  %23 = 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 16, 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 16, ptr %22) #4
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %25, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = mul nsw i32 %26, 1
  %28 = add nsw i32 1, %27
  store i32 %28, ptr %16, align 4, !tbaa !9
  %29 = load i32, ptr %16, align 4, !tbaa !9
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = sext i32 %29 to i64
  %32 = sub i64 0, %31
  %33 = getelementptr inbounds %struct.doublecomplex, ptr %30, i64 %32
  store ptr %33, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.doublecomplex, ptr %34, i32 -1
  store ptr %35, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.doublecomplex, ptr %36, i32 -1
  store ptr %37, ptr %13, 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 %67

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

48:                                               ; preds = %44
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 -2, ptr %49, align 4, !tbaa !9
  br label %66

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

56:                                               ; preds = %50
  br label %60

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

60:                                               ; preds = %57, %56
  %61 = phi i32 [ 1, %56 ], [ %59, %57 ]
  %62 = icmp slt i32 %52, %61
  br i1 %62, label %63, label %65

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

65:                                               ; preds = %63, %60
  br label %66

66:                                               ; preds = %65, %48
  br label %67

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

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

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

82:                                               ; preds = %76
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i32, ptr %83, align 4, !tbaa !9
  br label %88

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

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

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

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

243:                                              ; preds = %94
  %244 = load i32, ptr %20, align 4, !tbaa !9
  %245 = add nsw i32 %244, -1
  store i32 %245, ptr %20, align 4, !tbaa !9
  br label %91, !llvm.loop !15

246:                                              ; preds = %91
  store i32 1, ptr %23, align 4
  br label %247

247:                                              ; preds = %246, %71
  call void @llvm.lifetime.end.p0(i64 16, 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 16, 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 void @zlarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) #3

declare void @zlarf_(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"="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 = { 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 #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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 8}
!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.doublecomplex = type { double, double }

@.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 @zgeql2_(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.doublecomplex, align 8
  %11 = alloca %struct.doublecomplex, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %narrow = xor i32 %12, -1
  %13 = sext i32 %narrow to i64
  %14 = getelementptr inbounds %struct.doublecomplex, ptr %2, i64 %13
  %15 = getelementptr inbounds i8, ptr %4, i64 -16
  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) #5
  br label %.loopexit

25:                                               ; preds = %21
  %26 = tail call i32 @llvm.umin.i32(i32 %16, i32 %19)
  %invariant.gep = getelementptr i8, ptr %14, i64 16
  %.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 ], [ %66, %28 ]
  %30 = phi i32 [ %16, %.lr.ph ], [ %65, %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.doublecomplex, ptr %14, i64 %39
  %41 = load <2 x double>, ptr %40, align 8, !tbaa !9
  store <2 x double> %41, ptr %11, align 16, !tbaa !9
  store i32 %33, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %37 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %42
  %43 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %indvars.iv
  call void @zlarfg_(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %gep, ptr noundef nonnull @c__1, ptr noundef nonnull %43) #5
  %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.doublecomplex, ptr %14, i64 %52
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %53, align 8, !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 { double, double } @Cd(ptr noundef nonnull %43)
  %56 = extractvalue { double, double } %55, 0
  %57 = extractvalue { double, double } %55, 1
  %58 = fneg double %57
  %59 = call ptr @_pCd(ptr noundef nonnull %10)
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  store double %56, ptr %59, align 8
  store double %58, ptr %60, align 8
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = add i32 %35, %61
  %63 = mul nsw i32 %62, %12
  %64 = sext i32 %63 to i64
  %gep84 = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %64
  call void @zlarf_(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) #5
  %65 = load i32, ptr %0, align 4, !tbaa !5
  %66 = load i32, ptr %1, align 4, !tbaa !5
  %67 = add i32 %35, %66
  %68 = mul nsw i32 %67, %12
  %69 = add i32 %35, %65
  %70 = add nsw i32 %69, %68
  store i32 %70, ptr %8, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.doublecomplex, ptr %14, i64 %71
  %73 = load <2 x double>, ptr %11, align 16, !tbaa !9
  store <2 x double> %73, ptr %72, align 8, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %74 = icmp ugt i64 %indvars.iv, 1
  br i1 %74, label %28, label %.loopexit, !llvm.loop !11

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #3

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

declare void @zlarf_(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) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.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 = { 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 #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 = !{!"double", !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