; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (cgeqr2)

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

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

42:                                               ; preds = %7
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -1, ptr %43, align 8, !tbaa !9
  br label %67

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

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

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

56:                                               ; preds = %50
  br label %60

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

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

63:                                               ; preds = %60
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 -4, ptr %64, align 8, !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 %15, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = icmp ne i64 %69, 0
  br i1 %70, label %71, label %76

71:                                               ; preds = %67
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = sub nsw i64 0, %73
  store i64 %74, ptr %18, align 8, !tbaa !9
  %75 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %18)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %219

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

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

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

88:                                               ; preds = %85, %82
  %89 = phi i64 [ %84, %82 ], [ %87, %85 ]
  store i64 %89, ptr %23, align 8, !tbaa !9
  %90 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %90, ptr %18, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  br label %91

91:                                               ; preds = %215, %88
  %92 = load i64, ptr %22, align 8, !tbaa !9
  %93 = load i64, ptr %18, align 8, !tbaa !9
  %94 = icmp sle i64 %92, %93
  br i1 %94, label %95, label %218

95:                                               ; preds = %91
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = load i64, ptr %22, align 8, !tbaa !9
  %99 = sub nsw i64 %97, %98
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %19, align 8, !tbaa !9
  %101 = load i64, ptr %22, align 8, !tbaa !9
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %20, align 8, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load i64, ptr %22, align 8, !tbaa !9
  %105 = load i64, ptr %22, align 8, !tbaa !9
  %106 = load i64, ptr %16, align 8, !tbaa !9
  %107 = mul nsw i64 %105, %106
  %108 = add nsw i64 %104, %107
  %109 = getelementptr inbounds %struct.complex, ptr %103, i64 %108
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i64, ptr %20, align 8, !tbaa !9
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp sle i64 %111, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %95
  %116 = load i64, ptr %20, align 8, !tbaa !9
  br label %120

117:                                              ; preds = %95
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %117, %115
  %121 = phi i64 [ %116, %115 ], [ %119, %117 ]
  %122 = load i64, ptr %22, align 8, !tbaa !9
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = mul nsw i64 %122, %123
  %125 = add nsw i64 %121, %124
  %126 = getelementptr inbounds %struct.complex, ptr %110, i64 %125
  %127 = load ptr, ptr %13, align 8, !tbaa !5
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.complex, ptr %127, i64 %128
  %130 = call i32 @clarfp_(ptr noundef %19, ptr noundef %109, ptr noundef %126, ptr noundef @c__1, ptr noundef %129)
  %131 = load i64, ptr %22, align 8, !tbaa !9
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = icmp slt i64 %131, %133
  br i1 %134, label %135, label %214

135:                                              ; preds = %120
  %136 = load i64, ptr %22, align 8, !tbaa !9
  %137 = load i64, ptr %22, align 8, !tbaa !9
  %138 = load i64, ptr %16, align 8, !tbaa !9
  %139 = mul nsw i64 %137, %138
  %140 = add nsw i64 %136, %139
  store i64 %140, ptr %19, align 8, !tbaa !9
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i64, ptr %19, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.complex, ptr %141, i64 %142
  %144 = getelementptr inbounds %struct.complex, ptr %143, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  store float %145, ptr %146, align 4, !tbaa !11
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load i64, ptr %19, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct.complex, ptr %147, i64 %148
  %150 = getelementptr inbounds %struct.complex, ptr %149, i32 0, i32 1
  %151 = load float, ptr %150, align 4, !tbaa !14
  %152 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  store float %151, ptr %152, align 4, !tbaa !14
  %153 = load i64, ptr %22, align 8, !tbaa !9
  %154 = load i64, ptr %22, align 8, !tbaa !9
  %155 = load i64, ptr %16, align 8, !tbaa !9
  %156 = mul nsw i64 %154, %155
  %157 = add nsw i64 %153, %156
  store i64 %157, ptr %19, align 8, !tbaa !9
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = load i64, ptr %19, align 8, !tbaa !9
  %160 = getelementptr inbounds %struct.complex, ptr %158, i64 %159
  %161 = getelementptr inbounds %struct.complex, ptr %160, i32 0, i32 0
  store float 1.000000e+00, ptr %161, align 4, !tbaa !11
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = load i64, ptr %19, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.complex, ptr %162, i64 %163
  %165 = getelementptr inbounds %struct.complex, ptr %164, i32 0, i32 1
  store float 0.000000e+00, ptr %165, align 4, !tbaa !14
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = load i64, ptr %22, align 8, !tbaa !9
  %169 = sub nsw i64 %167, %168
  %170 = add nsw i64 %169, 1
  store i64 %170, ptr %19, align 8, !tbaa !9
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = load i64, ptr %171, align 8, !tbaa !9
  %173 = load i64, ptr %22, align 8, !tbaa !9
  %174 = sub nsw i64 %172, %173
  store i64 %174, ptr %20, align 8, !tbaa !9
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  %176 = load i64, ptr %22, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct.complex, ptr %175, i64 %176
  call void @r_cnjg(ptr noundef %21, ptr noundef %177)
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = load i64, ptr %22, align 8, !tbaa !9
  %181 = load i64, ptr %16, align 8, !tbaa !9
  %182 = mul nsw i64 %180, %181
  %183 = add nsw i64 %179, %182
  %184 = getelementptr inbounds %struct.complex, ptr %178, i64 %183
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load i64, ptr %22, align 8, !tbaa !9
  %187 = load i64, ptr %22, align 8, !tbaa !9
  %188 = add nsw i64 %187, 1
  %189 = load i64, ptr %16, align 8, !tbaa !9
  %190 = mul nsw i64 %188, %189
  %191 = add nsw i64 %186, %190
  %192 = getelementptr inbounds %struct.complex, ptr %185, i64 %191
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.complex, ptr %194, i64 1
  %196 = call i32 @clarf_(ptr noundef @.str.1, ptr noundef %19, ptr noundef %20, ptr noundef %184, ptr noundef @c__1, ptr noundef %21, ptr noundef %192, ptr noundef %193, ptr noundef %195)
  %197 = load i64, ptr %22, align 8, !tbaa !9
  %198 = load i64, ptr %22, align 8, !tbaa !9
  %199 = load i64, ptr %16, align 8, !tbaa !9
  %200 = mul nsw i64 %198, %199
  %201 = add nsw i64 %197, %200
  store i64 %201, ptr %19, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %203 = load float, ptr %202, align 4, !tbaa !11
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load i64, ptr %19, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.complex, ptr %204, i64 %205
  %207 = getelementptr inbounds %struct.complex, ptr %206, i32 0, i32 0
  store float %203, ptr %207, align 4, !tbaa !11
  %208 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %209 = load float, ptr %208, align 4, !tbaa !14
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = load i64, ptr %19, align 8, !tbaa !9
  %212 = getelementptr inbounds %struct.complex, ptr %210, i64 %211
  %213 = getelementptr inbounds %struct.complex, ptr %212, i32 0, i32 1
  store float %209, ptr %213, align 4, !tbaa !14
  br label %214

214:                                              ; preds = %135, %120
  br label %215

215:                                              ; preds = %214
  %216 = load i64, ptr %22, align 8, !tbaa !9
  %217 = add nsw i64 %216, 1
  store i64 %217, ptr %22, align 8, !tbaa !9
  br label %91, !llvm.loop !15

218:                                              ; preds = %91
  store i32 0, ptr %8, align 4
  store i32 1, ptr %25, align 4
  br label %219

219:                                              ; preds = %218, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %220 = load i32, ptr %8, align 4
  ret i32 %220
}

; 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) #2

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

declare void @r_cnjg(ptr noundef, ptr noundef) #2

declare i32 @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"="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 }

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @cgeqr2_(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 i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %struct.complex, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %12 = load i64, ptr %3, align 8, !tbaa !5
  %13 = xor i64 %12, -1
  %14 = getelementptr inbounds %struct.complex, ptr %2, i64 %13
  %15 = getelementptr inbounds i8, ptr %4, i64 -8
  store i64 0, ptr %6, align 8, !tbaa !5
  %16 = load i64, ptr %0, align 8, !tbaa !5
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %.thread, label %18

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

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

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

25:                                               ; preds = %21
  %26 = tail call i64 @llvm.umin.i64(i64 %16, i64 %19)
  %.not7882 = icmp eq i64 %26, 0
  br i1 %.not7882, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %25, %49
  %.071.neg84 = phi i64 [ %.071.neg, %49 ], [ -1, %25 ]
  %.07183 = phi i64 [ %30, %49 ], [ 1, %25 ]
  %27 = load i64, ptr %0, align 8, !tbaa !5
  %28 = add nsw i64 %.071.neg84, 1
  %29 = add i64 %28, %27
  store i64 %29, ptr %9, align 8, !tbaa !5
  %30 = add nuw nsw i64 %.07183, 1
  store i64 %30, ptr %10, align 8, !tbaa !5
  %31 = mul nsw i64 %.07183, %12
  %32 = add nsw i64 %31, %.07183
  %33 = getelementptr inbounds %struct.complex, ptr %14, i64 %32
  %.not79.not = icmp slt i64 %.07183, %27
  %.80 = select i1 %.not79.not, i64 %30, i64 %27
  %34 = getelementptr %struct.complex, ptr %14, i64 %.80
  %35 = getelementptr %struct.complex, ptr %34, i64 %31
  %36 = getelementptr inbounds %struct.complex, ptr %15, i64 %.07183
  %37 = call i32 @clarfp_(ptr noundef nonnull %9, ptr noundef %33, ptr noundef %35, ptr noundef nonnull @c__1, ptr noundef nonnull %36) #4
  %38 = load i64, ptr %1, align 8, !tbaa !5
  %39 = icmp slt i64 %.07183, %38
  br i1 %39, label %40, label %49

40:                                               ; preds = %.lr.ph
  %41 = load i64, ptr %0, align 8, !tbaa !5
  %42 = add i64 %28, %41
  store i64 %42, ptr %9, align 8, !tbaa !5
  %43 = sub nsw i64 %38, %.07183
  store i64 %43, ptr %10, align 8, !tbaa !5
  %44 = mul nsw i64 %30, %12
  %45 = getelementptr %struct.complex, ptr %14, i64 %.07183
  %46 = getelementptr %struct.complex, ptr %45, i64 %44
  %47 = load <2 x float>, ptr %33, align 4, !tbaa !9
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %33, align 4, !tbaa !9
  call void @r_cnjg(ptr noundef nonnull %11, ptr noundef nonnull %36) #4
  %48 = call i32 @clarf_(ptr noundef nonnull @.str.1, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %33, ptr noundef nonnull @c__1, ptr noundef nonnull %11, ptr noundef %46, ptr noundef nonnull %3, ptr noundef %5) #4
  store i64 %32, ptr %9, align 8, !tbaa !5
  store <2 x float> %47, ptr %33, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %.lr.ph, %40
  %.071.neg = xor i64 %.07183, -1
  %.not78.not = icmp slt i64 %.07183, %26
  br i1 %.not78.not, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %49, %25, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret i32 0
}

; 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) local_unnamed_addr #2

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

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

declare i32 @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 i64 @llvm.umax.i64(i64, i64) #3

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !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: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass