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

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

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

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

41:                                               ; preds = %7
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = icmp eq i32 %43, %45
  br i1 %46, label %47, label %70

47:                                               ; preds = %41
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i32, ptr %48, align 4, !tbaa !9
  store i32 %49, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %66, %47
  %51 = load i32, ptr %20, align 4, !tbaa !9
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %54, label %69

54:                                               ; preds = %50
  %55 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %55, ptr %18, align 4, !tbaa !9
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = load i32, ptr %18, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct.doublecomplex, ptr %56, i64 %58
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %59, i32 0, i32 0
  store double 0.000000e+00, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = load i32, ptr %18, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %61, i64 %63
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %64, i32 0, i32 1
  store double 0.000000e+00, ptr %65, align 8, !tbaa !14
  br label %66

66:                                               ; preds = %54
  %67 = load i32, ptr %20, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %20, align 4, !tbaa !9
  br label %50, !llvm.loop !15

69:                                               ; preds = %50
  store i32 1, ptr %22, align 4
  br label %234

70:                                               ; preds = %41
  br label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  store i32 %73, ptr %20, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %230, %71
  %75 = load i32, ptr %20, align 4, !tbaa !9
  %76 = icmp sge i32 %75, 1
  br i1 %76, label %77, label %233

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

230:                                              ; preds = %77
  %231 = load i32, ptr %20, align 4, !tbaa !9
  %232 = add nsw i32 %231, -1
  store i32 %232, ptr %20, align 4, !tbaa !9
  br label %74, !llvm.loop !17

233:                                              ; preds = %74
  store i32 1, ptr %22, align 4
  br label %234

234:                                              ; preds = %233, %69, %40
  call void @llvm.lifetime.end.p0(i64 16, 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 void @zlacgv_(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 @zlarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @zlarz_(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"="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"}
!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.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @zlatrz_(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.doublecomplex, align 16
  %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 %4, align 4, !tbaa !5
  %narrow = xor i32 %12, -1
  %13 = sext i32 %narrow to i64
  %14 = getelementptr inbounds %struct.doublecomplex, ptr %3, i64 %13
  %15 = getelementptr inbounds i8, ptr %5, i64 -16
  %16 = load i32, ptr %0, align 4, !tbaa !5
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %.loopexit68, 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 16
  %21 = icmp sgt i32 %16, 0
  br i1 %21, label %.lr.ph, label %.loopexit68

.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
  %.not71 = icmp slt i32 %16, 1
  br i1 %.not71, label %.loopexit68, label %.lr.ph73.preheader

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

28:                                               ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ %22, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %indvars75 = 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.doublecomplex, ptr %14, i64 %indvars.iv
  %36 = getelementptr %struct.doublecomplex, ptr %35, i64 %34
  call void @zlacgv_(ptr noundef nonnull %2, ptr noundef %36, ptr noundef nonnull %4) #5
  %37 = mul nsw i64 %indvars.iv, %23
  %38 = mul i32 %24, %indvars75
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct.doublecomplex, ptr %14, i64 %39
  %41 = call { double, double } @Cd(ptr noundef %40)
  %42 = extractvalue { double, double } %41, 0
  %43 = extractvalue { double, double } %41, 1
  %44 = fneg double %43
  %45 = call ptr @_pCd(ptr noundef nonnull %10)
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  store double %42, ptr %45, align 8
  store double %44, ptr %46, align 8
  %47 = load <2 x double>, ptr %10, align 16, !tbaa !9
  store <2 x double> %47, ptr %11, align 16, !tbaa !9
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %8, align 4, !tbaa !5
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %reass.sub = sub i32 %50, %48
  %51 = add i32 %reass.sub, 1
  %52 = mul nsw i32 %51, %12
  %53 = sext i32 %52 to i64
  %54 = getelementptr %struct.doublecomplex, ptr %14, i64 %indvars.iv
  %55 = getelementptr %struct.doublecomplex, ptr %54, i64 %53
  %56 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %indvars.iv
  call void @zlarfg_(ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef %55, ptr noundef nonnull %4, ptr noundef nonnull %56) #5
  store i32 %indvars75, ptr %8, align 4, !tbaa !5
  %57 = call { double, double } @Cd(ptr noundef nonnull %56)
  %58 = extractvalue { double, double } %57, 0
  %59 = extractvalue { double, double } %57, 1
  %60 = fneg double %59
  %61 = call ptr @_pCd(ptr noundef nonnull %10)
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  store double %58, ptr %61, align 8
  store double %60, ptr %62, align 8
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %15, i64 %64
  %66 = load <2 x double>, ptr %10, align 16, !tbaa !9
  store <2 x double> %66, ptr %65, align 8, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %67 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %67, ptr %8, align 4, !tbaa !5
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %reass.sub74 = sub i32 %68, %indvars75
  %69 = add i32 %reass.sub74, 1
  store i32 %69, ptr %9, align 4, !tbaa !5
  %70 = call { double, double } @Cd(ptr noundef nonnull %56)
  %71 = extractvalue { double, double } %70, 0
  %72 = extractvalue { double, double } %70, 1
  %73 = fneg double %72
  %74 = call ptr @_pCd(ptr noundef nonnull %10)
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  store double %71, ptr %74, align 8
  store double %73, ptr %75, align 8
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = add i32 %76, 1
  %79 = sub i32 %78, %77
  %80 = mul nsw i32 %79, %12
  %81 = sext i32 %80 to i64
  %82 = getelementptr %struct.doublecomplex, ptr %14, i64 %indvars.iv
  %83 = getelementptr %struct.doublecomplex, ptr %82, i64 %81
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %37
  call void @zlarz_(ptr noundef nonnull @.str, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %2, ptr noundef %83, ptr noundef nonnull %4, ptr noundef nonnull %10, ptr noundef %gep, ptr noundef nonnull %4, ptr noundef %6) #5
  store i32 %38, ptr %8, align 4, !tbaa !5
  %84 = call { double, double } @Cd(ptr noundef nonnull %11)
  %85 = extractvalue { double, double } %84, 0
  %86 = extractvalue { double, double } %84, 1
  %87 = fneg double %86
  %88 = call ptr @_pCd(ptr noundef nonnull %10)
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  store double %85, ptr %88, align 8
  store double %87, ptr %89, align 8
  %90 = load i32, ptr %8, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %14, i64 %91
  %93 = load <2 x double>, ptr %10, align 16, !tbaa !9
  store <2 x double> %93, ptr %92, align 8, !tbaa !9
  %94 = icmp ugt i64 %indvars.iv, 1
  br i1 %94, label %28, label %.loopexit68, !llvm.loop !11

.loopexit68:                                      ; preds = %28, %25, %.lr.ph73.preheader, %.preheader, %7
  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 void @zlacgv_(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 @zlarfg_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @zlarz_(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) #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 nounwind willreturn memory(argmem: write) }
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,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass