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

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

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

43:                                               ; preds = %8
  %44 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -1, ptr %44, align 8, !tbaa !9
  br label %107

45:                                               ; preds = %8
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = icmp slt i64 %47, 1
  br i1 %48, label %62, label %49

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

55:                                               ; preds = %49
  br label %59

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

59:                                               ; preds = %56, %55
  %60 = phi i64 [ 1, %55 ], [ %58, %56 ]
  %61 = icmp sgt i64 %51, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %59, %45
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -2, ptr %63, align 8, !tbaa !9
  br label %106

64:                                               ; preds = %59
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = icmp sle i64 %68, %70
  br i1 %71, label %72, label %75

72:                                               ; preds = %64
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  br label %78

75:                                               ; preds = %64
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %75, %72
  %79 = phi i64 [ %74, %72 ], [ %77, %75 ]
  %80 = icmp slt i64 %66, %79
  br i1 %80, label %87, label %81

81:                                               ; preds = %78
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = icmp sgt i64 %83, %85
  br i1 %86, label %87, label %89

87:                                               ; preds = %81, %78
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -3, ptr %88, align 8, !tbaa !9
  br label %105

89:                                               ; preds = %81
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = icmp sge i64 1, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %89
  br label %99

96:                                               ; preds = %89
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %96, %95
  %100 = phi i64 [ 1, %95 ], [ %98, %96 ]
  %101 = icmp slt i64 %91, %100
  br i1 %101, label %102, label %104

102:                                              ; preds = %99
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  store i64 -5, ptr %103, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %102, %99
  br label %105

105:                                              ; preds = %104, %87
  br label %106

106:                                              ; preds = %105, %62
  br label %107

107:                                              ; preds = %106, %43
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %116

111:                                              ; preds = %107
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = sub nsw i64 0, %113
  store i64 %114, ptr %20, align 8, !tbaa !9
  %115 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %20)
  store i32 0, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %267

116:                                              ; preds = %107
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = sub nsw i64 %118, 1
  store i64 %119, ptr %20, align 8, !tbaa !9
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = load i64, ptr %120, align 8, !tbaa !9
  store i64 %121, ptr %24, align 8, !tbaa !9
  br label %122

122:                                              ; preds = %263, %116
  %123 = load i64, ptr %24, align 8, !tbaa !9
  %124 = load i64, ptr %20, align 8, !tbaa !9
  %125 = icmp sle i64 %123, %124
  br i1 %125, label %126, label %266

126:                                              ; preds = %122
  %127 = load i64, ptr %24, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  %129 = load i64, ptr %24, align 8, !tbaa !9
  %130 = load i64, ptr %18, align 8, !tbaa !9
  %131 = mul nsw i64 %129, %130
  %132 = add nsw i64 %128, %131
  store i64 %132, ptr %21, align 8, !tbaa !9
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.complex, ptr %133, i64 %134
  %136 = getelementptr inbounds %struct.complex, ptr %135, i32 0, i32 0
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 0
  store float %137, ptr %138, align 4, !tbaa !11
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load i64, ptr %21, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.complex, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.complex, ptr %141, i32 0, i32 1
  %143 = load float, ptr %142, align 4, !tbaa !14
  %144 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 1
  store float %143, ptr %144, align 4, !tbaa !14
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = load i64, ptr %145, align 8, !tbaa !9
  %147 = load i64, ptr %24, align 8, !tbaa !9
  %148 = sub nsw i64 %146, %147
  store i64 %148, ptr %21, align 8, !tbaa !9
  %149 = load i64, ptr %24, align 8, !tbaa !9
  %150 = add nsw i64 %149, 2
  store i64 %150, ptr %22, align 8, !tbaa !9
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = load i64, ptr %22, align 8, !tbaa !9
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = load i64, ptr %153, align 8, !tbaa !9
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %158

156:                                              ; preds = %126
  %157 = load i64, ptr %22, align 8, !tbaa !9
  br label %161

158:                                              ; preds = %126
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load i64, ptr %159, align 8, !tbaa !9
  br label %161

161:                                              ; preds = %158, %156
  %162 = phi i64 [ %157, %156 ], [ %160, %158 ]
  %163 = load i64, ptr %24, align 8, !tbaa !9
  %164 = load i64, ptr %18, align 8, !tbaa !9
  %165 = mul nsw i64 %163, %164
  %166 = add nsw i64 %162, %165
  %167 = getelementptr inbounds %struct.complex, ptr %151, i64 %166
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = load i64, ptr %24, align 8, !tbaa !9
  %170 = getelementptr inbounds %struct.complex, ptr %168, i64 %169
  %171 = call i32 @clarfg_(ptr noundef %21, ptr noundef %25, ptr noundef %167, ptr noundef @c__1, ptr noundef %170)
  %172 = load i64, ptr %24, align 8, !tbaa !9
  %173 = add nsw i64 %172, 1
  %174 = load i64, ptr %24, align 8, !tbaa !9
  %175 = load i64, ptr %18, align 8, !tbaa !9
  %176 = mul nsw i64 %174, %175
  %177 = add nsw i64 %173, %176
  store i64 %177, ptr %21, align 8, !tbaa !9
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = load i64, ptr %21, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.complex, ptr %178, i64 %179
  %181 = getelementptr inbounds %struct.complex, ptr %180, i32 0, i32 0
  store float 1.000000e+00, ptr %181, align 4, !tbaa !11
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load i64, ptr %21, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct.complex, ptr %182, i64 %183
  %185 = getelementptr inbounds %struct.complex, ptr %184, i32 0, i32 1
  store float 0.000000e+00, ptr %185, align 4, !tbaa !14
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = load i64, ptr %24, align 8, !tbaa !9
  %189 = sub nsw i64 %187, %188
  store i64 %189, ptr %21, align 8, !tbaa !9
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = load i64, ptr %24, align 8, !tbaa !9
  %193 = add nsw i64 %192, 1
  %194 = load i64, ptr %24, align 8, !tbaa !9
  %195 = load i64, ptr %18, align 8, !tbaa !9
  %196 = mul nsw i64 %194, %195
  %197 = add nsw i64 %193, %196
  %198 = getelementptr inbounds %struct.complex, ptr %191, i64 %197
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  %200 = load i64, ptr %24, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.complex, ptr %199, i64 %200
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = load i64, ptr %24, align 8, !tbaa !9
  %204 = add nsw i64 %203, 1
  %205 = load i64, ptr %18, align 8, !tbaa !9
  %206 = mul nsw i64 %204, %205
  %207 = add nsw i64 %206, 1
  %208 = getelementptr inbounds %struct.complex, ptr %202, i64 %207
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = load ptr, ptr %16, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.complex, ptr %210, i64 1
  %212 = call i32 @clarf_(ptr noundef @.str.1, ptr noundef %190, ptr noundef %21, ptr noundef %198, ptr noundef @c__1, ptr noundef %201, ptr noundef %208, ptr noundef %209, ptr noundef %211)
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  %214 = load i64, ptr %213, align 8, !tbaa !9
  %215 = load i64, ptr %24, align 8, !tbaa !9
  %216 = sub nsw i64 %214, %215
  store i64 %216, ptr %21, align 8, !tbaa !9
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = load i64, ptr %24, align 8, !tbaa !9
  %220 = sub nsw i64 %218, %219
  store i64 %220, ptr %22, align 8, !tbaa !9
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = load i64, ptr %24, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct.complex, ptr %221, i64 %222
  call void @r_cnjg(ptr noundef %23, ptr noundef %223)
  %224 = load ptr, ptr %13, align 8, !tbaa !5
  %225 = load i64, ptr %24, align 8, !tbaa !9
  %226 = add nsw i64 %225, 1
  %227 = load i64, ptr %24, align 8, !tbaa !9
  %228 = load i64, ptr %18, align 8, !tbaa !9
  %229 = mul nsw i64 %227, %228
  %230 = add nsw i64 %226, %229
  %231 = getelementptr inbounds %struct.complex, ptr %224, i64 %230
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = load i64, ptr %24, align 8, !tbaa !9
  %234 = add nsw i64 %233, 1
  %235 = load i64, ptr %24, align 8, !tbaa !9
  %236 = add nsw i64 %235, 1
  %237 = load i64, ptr %18, align 8, !tbaa !9
  %238 = mul nsw i64 %236, %237
  %239 = add nsw i64 %234, %238
  %240 = getelementptr inbounds %struct.complex, ptr %232, i64 %239
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.complex, ptr %242, i64 1
  %244 = call i32 @clarf_(ptr noundef @.str.2, ptr noundef %21, ptr noundef %22, ptr noundef %231, ptr noundef @c__1, ptr noundef %23, ptr noundef %240, ptr noundef %241, ptr noundef %243)
  %245 = load i64, ptr %24, align 8, !tbaa !9
  %246 = add nsw i64 %245, 1
  %247 = load i64, ptr %24, align 8, !tbaa !9
  %248 = load i64, ptr %18, align 8, !tbaa !9
  %249 = mul nsw i64 %247, %248
  %250 = add nsw i64 %246, %249
  store i64 %250, ptr %21, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 0
  %252 = load float, ptr %251, align 4, !tbaa !11
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = load i64, ptr %21, align 8, !tbaa !9
  %255 = getelementptr inbounds %struct.complex, ptr %253, i64 %254
  %256 = getelementptr inbounds %struct.complex, ptr %255, i32 0, i32 0
  store float %252, ptr %256, align 4, !tbaa !11
  %257 = getelementptr inbounds %struct.complex, ptr %25, i32 0, i32 1
  %258 = load float, ptr %257, align 4, !tbaa !14
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  %260 = load i64, ptr %21, align 8, !tbaa !9
  %261 = getelementptr inbounds %struct.complex, ptr %259, i64 %260
  %262 = getelementptr inbounds %struct.complex, ptr %261, i32 0, i32 1
  store float %258, ptr %262, align 4, !tbaa !14
  br label %263

263:                                              ; preds = %161
  %264 = load i64, ptr %24, align 8, !tbaa !9
  %265 = add nsw i64 %264, 1
  store i64 %265, ptr %24, align 8, !tbaa !9
  br label %122, !llvm.loop !15

266:                                              ; preds = %122
  store i32 0, ptr %9, align 4
  store i32 1, ptr %26, align 4
  br label %267

267:                                              ; preds = %266, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  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
  %268 = load i32, ptr %9, align 4
  ret i32 %268
}

; 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 @clarfg_(ptr noundef, ptr noundef, ptr noundef, 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

declare void @r_cnjg(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 [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

23:                                               ; preds = %20
  %spec.select = tail call i64 @llvm.umax.i64(i64 %18, i64 1)
  %24 = icmp ugt i64 %21, %spec.select
  br i1 %24, label %.thread, label %25

25:                                               ; preds = %23
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %. = tail call i64 @llvm.umin.i64(i64 %21, i64 %18)
  %27 = icmp slt i64 %26, %.
  %28 = icmp ugt i64 %26, %18
  %or.cond = or i1 %27, %28
  br i1 %or.cond, label %.thread, label %29

29:                                               ; preds = %25
  %30 = load i64, ptr %4, align 8, !tbaa !5
  %31 = icmp slt i64 %30, %spec.select
  br i1 %31, label %.thread, label %33

.thread:                                          ; preds = %29, %25, %20, %23, %8
  %.sink = phi i64 [ -1, %8 ], [ -2, %23 ], [ -2, %20 ], [ -3, %25 ], [ -5, %29 ]
  %.neg = phi i64 [ 1, %8 ], [ 2, %23 ], [ 2, %20 ], [ 3, %25 ], [ 5, %29 ]
  store i64 %.sink, ptr %7, align 8, !tbaa !5
  store i64 %.neg, ptr %9, align 8, !tbaa !5
  %32 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %9) #4
  br label %.loopexit

33:                                               ; preds = %29
  %34 = add nsw i64 %26, -1
  %invariant.gep = getelementptr i8, ptr %16, i64 8
  %.not97102.not = icmp ult i64 %21, %26
  br i1 %.not97102.not, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %33, %.lr.ph
  %.0103 = phi i64 [ %35, %.lr.ph ], [ %21, %33 ]
  %35 = add nuw nsw i64 %.0103, 1
  %36 = mul nsw i64 %.0103, %14
  %37 = add nsw i64 %35, %36
  %38 = getelementptr inbounds %struct.complex, ptr %16, i64 %37
  %39 = load <2 x float>, ptr %38, align 4, !tbaa !9
  store <2 x float> %39, ptr %13, align 8, !tbaa !9
  %40 = load i64, ptr %2, align 8, !tbaa !5
  %41 = sub nsw i64 %40, %.0103
  store i64 %41, ptr %10, align 8, !tbaa !5
  %42 = add nuw nsw i64 %.0103, 2
  store i64 %42, ptr %11, align 8, !tbaa !5
  %43 = load i64, ptr %0, align 8, !tbaa !5
  %.100 = call i64 @llvm.smin.i64(i64 %42, i64 %43)
  %44 = getelementptr %struct.complex, ptr %16, i64 %.100
  %45 = getelementptr %struct.complex, ptr %44, i64 %36
  %46 = getelementptr inbounds %struct.complex, ptr %17, i64 %.0103
  %47 = call i32 @clarfg_(ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef %45, ptr noundef nonnull @c__1, ptr noundef nonnull %46) #4
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %38, align 4, !tbaa !9
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %49 = sub nsw i64 %48, %.0103
  store i64 %49, ptr %10, align 8, !tbaa !5
  %50 = mul nsw i64 %35, %14
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %50
  %51 = call i32 @clarf_(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %10, ptr noundef nonnull %38, ptr noundef nonnull @c__1, ptr noundef nonnull %46, ptr noundef %gep, ptr noundef nonnull %4, ptr noundef %6) #4
  %52 = load i64, ptr %2, align 8, !tbaa !5
  %53 = sub nsw i64 %52, %.0103
  store i64 %53, ptr %10, align 8, !tbaa !5
  %54 = load i64, ptr %0, align 8, !tbaa !5
  %55 = sub nsw i64 %54, %.0103
  store i64 %55, ptr %11, align 8, !tbaa !5
  call void @r_cnjg(ptr noundef nonnull %12, ptr noundef nonnull %46) #4
  %56 = getelementptr %struct.complex, ptr %16, i64 %35
  %57 = getelementptr %struct.complex, ptr %56, i64 %50
  %58 = call i32 @clarf_(ptr noundef nonnull @.str.2, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %38, ptr noundef nonnull @c__1, ptr noundef nonnull %12, ptr noundef %57, ptr noundef nonnull %4, ptr noundef %6) #4
  store i64 %37, ptr %10, align 8, !tbaa !5
  %59 = load <2 x float>, ptr %13, align 8, !tbaa !9
  store <2 x float> %59, ptr %38, align 4, !tbaa !9
  %.not97.not = icmp slt i64 %.0103, %34
  br i1 %.not97.not, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %.lr.ph, %33, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  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
  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 @clarfg_(ptr noundef, ptr noundef, ptr noundef, 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

declare void @r_cnjg(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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.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,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass