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

; 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 [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @clatrz_(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 %struct.complex, align 4
  %22 = alloca i32, align 4
  %23 = alloca { float, float }, align 4
  %24 = alloca { float, float }, align 4
  %25 = alloca { float, float }, align 4
  %26 = 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 8, ptr %21) #5
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %28, ptr %15, align 4, !tbaa !9
  %29 = load i32, ptr %15, align 4, !tbaa !9
  %30 = mul nsw i32 %29, 1
  %31 = add nsw i32 1, %30
  store i32 %31, ptr %16, align 4, !tbaa !9
  %32 = load i32, ptr %16, align 4, !tbaa !9
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = sext i32 %32 to i64
  %35 = sub i64 0, %34
  %36 = getelementptr inbounds %struct.complex, ptr %33, i64 %35
  store ptr %36, ptr %11, 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
  %40 = getelementptr inbounds %struct.complex, ptr %39, i32 -1
  store ptr %40, ptr %14, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %7
  store i32 1, ptr %22, align 4
  br label %246

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

51:                                               ; preds = %45
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %53, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %70, %51
  %55 = load i32, ptr %20, align 4, !tbaa !9
  %56 = load i32, ptr %17, align 4, !tbaa !9
  %57 = icmp sle i32 %55, %56
  br i1 %57, label %58, label %73

58:                                               ; preds = %54
  %59 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %59, ptr %18, align 4, !tbaa !9
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct.complex, ptr %60, i64 %62
  %64 = getelementptr inbounds %struct.complex, ptr %63, i32 0, i32 0
  store float 0.000000e+00, ptr %64, align 4, !tbaa !11
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.complex, ptr %65, i64 %67
  %69 = getelementptr inbounds %struct.complex, ptr %68, i32 0, i32 1
  store float 0.000000e+00, ptr %69, align 4, !tbaa !14
  br label %70

70:                                               ; preds = %58
  %71 = load i32, ptr %20, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %20, align 4, !tbaa !9
  br label %54, !llvm.loop !15

73:                                               ; preds = %54
  store i32 1, ptr %22, align 4
  br label %246

74:                                               ; preds = %45
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  store i32 %77, ptr %20, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %242, %75
  %79 = load i32, ptr %20, align 4, !tbaa !9
  %80 = icmp sge i32 %79, 1
  br i1 %80, label %81, label %245

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

242:                                              ; preds = %81
  %243 = load i32, ptr %20, align 4, !tbaa !9
  %244 = add nsw i32 %243, -1
  store i32 %244, ptr %20, align 4, !tbaa !9
  br label %78, !llvm.loop !17

245:                                              ; preds = %78
  store i32 1, ptr %22, align 4
  br label %246

246:                                              ; preds = %245, %73, %44
  call void @llvm.lifetime.end.p0(i64 8, 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 void @clacgv_(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 @clarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @clarz_(ptr noundef, 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"}
!17 = distinct !{!17, !16}


; 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 [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @clatrz_(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) local_unnamed_addr #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.complex, align 8
  %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 %4, align 4, !tbaa !5
  %narrow = xor i32 %12, -1
  %13 = sext i32 %narrow to i64
  %14 = getelementptr inbounds %struct.complex, ptr %3, i64 %13
  %15 = getelementptr inbounds i8, ptr %5, i64 -8
  %16 = load i32, ptr %0, align 4, !tbaa !5
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %.loopexit71, label %18

18:                                               ; preds = %7
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = icmp eq i32 %16, %19
  br i1 %20, label %25, label %.preheader

.preheader:                                       ; preds = %18
  %invariant.gep = getelementptr i8, ptr %14, i64 8
  %21 = icmp sgt i32 %16, 0
  br i1 %21, label %.lr.ph, label %.loopexit71

.lr.ph:                                           ; preds = %.preheader
  %22 = zext nneg i32 %16 to i64
  %23 = sext i32 %12 to i64
  %24 = add i32 %12, 1
  br label %28

25:                                               ; preds = %18
  %.not74 = icmp slt i32 %16, 1
  br i1 %.not74, label %.loopexit71, label %.lr.ph76.preheader

.lr.ph76.preheader:                               ; preds = %25
  %26 = zext nneg i32 %16 to i64
  %27 = shl nuw nsw i64 %26, 3
  tail call void @llvm.memset.p0.i64(ptr align 4 %5, i8 0, i64 %27, i1 false), !tbaa !9
  br label %.loopexit71

28:                                               ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ %22, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %indvars78 = trunc i64 %indvars.iv to i32
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add i32 %29, 1
  %32 = sub i32 %31, %30
  %33 = mul nsw i32 %32, %12
  %34 = sext i32 %33 to i64
  %35 = getelementptr %struct.complex, ptr %14, i64 %indvars.iv
  %36 = getelementptr %struct.complex, ptr %35, i64 %34
  call void @clacgv_(ptr noundef nonnull %2, ptr noundef %36, ptr noundef nonnull %4) #6
  %37 = mul nsw i64 %indvars.iv, %23
  %38 = mul i32 %24, %indvars78
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct.complex, ptr %14, i64 %39
  %41 = call <2 x float> @Cf(ptr noundef %40)
  %.sroa.03.0.vec.extract = extractelement <2 x float> %41, i64 0
  %.sroa.03.4.vec.extract = extractelement <2 x float> %41, i64 1
  %42 = fneg float %.sroa.03.4.vec.extract
  %43 = call ptr @_pCf(ptr noundef nonnull %10)
  %44 = getelementptr inbounds i8, ptr %43, i64 4
  store float %.sroa.03.0.vec.extract, ptr %43, align 4
  store float %42, ptr %44, align 4
  %45 = load <2 x float>, ptr %10, align 8, !tbaa !9
  store <2 x float> %45, ptr %11, align 8, !tbaa !9
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %8, align 4, !tbaa !5
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %reass.sub = sub i32 %48, %46
  %49 = add i32 %reass.sub, 1
  %50 = mul nsw i32 %49, %12
  %51 = sext i32 %50 to i64
  %52 = getelementptr %struct.complex, ptr %14, i64 %indvars.iv
  %53 = getelementptr %struct.complex, ptr %52, i64 %51
  %54 = getelementptr inbounds %struct.complex, ptr %15, i64 %indvars.iv
  call void @clarfg_(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %53, ptr noundef nonnull %4, ptr noundef nonnull %54) #6
  store i32 %indvars78, ptr %8, align 4, !tbaa !5
  %55 = call <2 x float> @Cf(ptr noundef nonnull %54)
  %.sroa.02.0.vec.extract = extractelement <2 x float> %55, i64 0
  %.sroa.02.4.vec.extract = extractelement <2 x float> %55, i64 1
  %56 = fneg float %.sroa.02.4.vec.extract
  %57 = call ptr @_pCf(ptr noundef nonnull %10)
  %58 = getelementptr inbounds i8, ptr %57, i64 4
  store float %.sroa.02.0.vec.extract, ptr %57, align 4
  store float %56, ptr %58, align 4
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.complex, ptr %15, i64 %60
  %62 = load <2 x float>, ptr %10, align 8, !tbaa !9
  store <2 x float> %62, ptr %61, align 4, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %63 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %63, ptr %8, align 4, !tbaa !5
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %reass.sub77 = sub i32 %64, %indvars78
  %65 = add i32 %reass.sub77, 1
  store i32 %65, ptr %9, align 4, !tbaa !5
  %66 = call <2 x float> @Cf(ptr noundef nonnull %54)
  %.sroa.01.0.vec.extract = extractelement <2 x float> %66, i64 0
  %.sroa.01.4.vec.extract = extractelement <2 x float> %66, i64 1
  %67 = fneg float %.sroa.01.4.vec.extract
  %68 = call ptr @_pCf(ptr noundef nonnull %10)
  %69 = getelementptr inbounds i8, ptr %68, i64 4
  store float %.sroa.01.0.vec.extract, ptr %68, align 4
  store float %67, ptr %69, align 4
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = add i32 %70, 1
  %73 = sub i32 %72, %71
  %74 = mul nsw i32 %73, %12
  %75 = sext i32 %74 to i64
  %76 = getelementptr %struct.complex, ptr %14, i64 %indvars.iv
  %77 = getelementptr %struct.complex, ptr %76, i64 %75
  %gep = getelementptr %struct.complex, ptr %invariant.gep, i64 %37
  call void @clarz_(ptr noundef nonnull @.str, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %2, ptr noundef %77, ptr noundef nonnull %4, ptr noundef nonnull %10, ptr noundef %gep, ptr noundef nonnull %4, ptr noundef %6) #6
  store i32 %38, ptr %8, align 4, !tbaa !5
  %78 = call <2 x float> @Cf(ptr noundef nonnull %11)
  %.sroa.0.0.vec.extract = extractelement <2 x float> %78, i64 0
  %.sroa.0.4.vec.extract = extractelement <2 x float> %78, i64 1
  %79 = fneg float %.sroa.0.4.vec.extract
  %80 = call ptr @_pCf(ptr noundef nonnull %10)
  %81 = getelementptr inbounds i8, ptr %80, i64 4
  store float %.sroa.0.0.vec.extract, ptr %80, align 4
  store float %79, ptr %81, align 4
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %struct.complex, ptr %14, i64 %83
  %85 = load <2 x float>, ptr %10, align 8, !tbaa !9
  store <2 x float> %85, ptr %84, align 4, !tbaa !9
  %86 = icmp ugt i64 %indvars.iv, 1
  br i1 %86, label %28, label %.loopexit71, !llvm.loop !11

.loopexit71:                                      ; preds = %28, %25, %.lr.ph76.preheader, %.preheader, %7
  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 void @clacgv_(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 @clarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @clarz_(ptr noundef, 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nounwind willreturn memory(argmem: write) }
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,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass