; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/TESTING/MATGEN (zlarge)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@c__3 = external hidden global i32, align 4
@c__1 = external hidden global i32, align 4
@c_b2 = external hidden global %struct.doublecomplex, align 8
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

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

43:                                               ; preds = %6
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 -1, ptr %44, align 4, !tbaa !9
  br label %61

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

51:                                               ; preds = %45
  br label %55

52:                                               ; preds = %45
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load i32, ptr %53, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %52, %51
  %56 = phi i32 [ 1, %51 ], [ %54, %52 ]
  %57 = icmp slt i32 %47, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 -3, ptr %59, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %58, %55
  br label %61

61:                                               ; preds = %60, %43
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = sub nsw i32 0, %67
  store i32 %68, ptr %15, align 4, !tbaa !9
  %69 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %15, i32 noundef 6)
  store i32 1, ptr %23, align 4
  br label %304

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

73:                                               ; preds = %300, %70
  %74 = load i32, ptr %18, align 4, !tbaa !9
  %75 = icmp sge i32 %74, 1
  br i1 %75, label %76, label %303

76:                                               ; preds = %73
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = sub nsw i32 %78, %79
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %15, align 4, !tbaa !9
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds i32, ptr %82, i64 1
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.doublecomplex, ptr %84, i64 1
  call void @zlarnv_(ptr noundef @c__3, ptr noundef %83, ptr noundef %15, ptr noundef %85)
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = sub nsw i32 %87, %88
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %91, i64 1
  %93 = call double @dznrm2_(ptr noundef %15, ptr noundef %92, ptr noundef @c__1)
  store double %93, ptr %21, align 8, !tbaa !11
  %94 = load double, ptr %21, align 8, !tbaa !11
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.doublecomplex, ptr %95, i64 1
  %97 = call { double, double } @Cd(ptr noundef %96)
  %98 = extractvalue { double, double } %97, 0
  %99 = extractvalue { double, double } %97, 1
  %100 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %101 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  store double %98, ptr %100, align 8
  store double %99, ptr %101, align 8
  %102 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %103 = load double, ptr %102, align 8
  %104 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  %106 = call double @cabs(double noundef %103, double noundef %105) #5
  %107 = fdiv double %94, %106
  store double %107, ptr %16, align 8, !tbaa !11
  %108 = load double, ptr %16, align 8, !tbaa !11
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.doublecomplex, ptr %109, i64 1
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %110, i32 0, i32 0
  %112 = load double, ptr %111, align 8, !tbaa !13
  %113 = fmul double %108, %112
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %113, ptr %114, align 8, !tbaa !13
  %115 = load double, ptr %16, align 8, !tbaa !11
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.doublecomplex, ptr %116, i64 1
  %118 = getelementptr inbounds %struct.doublecomplex, ptr %117, i32 0, i32 1
  %119 = load double, ptr %118, align 8, !tbaa !15
  %120 = fmul double %115, %119
  %121 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %120, ptr %121, align 8, !tbaa !15
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %123 = load double, ptr %122, align 8, !tbaa !13
  %124 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 0
  store double %123, ptr %124, align 8, !tbaa !13
  %125 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %126 = load double, ptr %125, align 8, !tbaa !15
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 1
  store double %126, ptr %127, align 8, !tbaa !15
  %128 = load double, ptr %21, align 8, !tbaa !11
  %129 = fcmp oeq double %128, 0.000000e+00
  br i1 %129, label %130, label %133

130:                                              ; preds = %76
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  store double 0.000000e+00, ptr %131, align 8, !tbaa !13
  %132 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  store double 0.000000e+00, ptr %132, align 8, !tbaa !15
  br label %197

133:                                              ; preds = %76
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %134, i64 1
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %135, i32 0, i32 0
  %137 = load double, ptr %136, align 8, !tbaa !13
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 0
  %139 = load double, ptr %138, align 8, !tbaa !13
  %140 = fadd double %137, %139
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %140, ptr %141, align 8, !tbaa !13
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.doublecomplex, ptr %142, i64 1
  %144 = getelementptr inbounds %struct.doublecomplex, ptr %143, i32 0, i32 1
  %145 = load double, ptr %144, align 8, !tbaa !15
  %146 = getelementptr inbounds %struct.doublecomplex, ptr %19, i32 0, i32 1
  %147 = load double, ptr %146, align 8, !tbaa !15
  %148 = fadd double %145, %147
  %149 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %148, ptr %149, align 8, !tbaa !15
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %151 = load double, ptr %150, align 8, !tbaa !13
  %152 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  store double %151, ptr %152, align 8, !tbaa !13
  %153 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  %154 = load double, ptr %153, align 8, !tbaa !15
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  store double %154, ptr %155, align 8, !tbaa !15
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = sub nsw i32 %157, %158
  store i32 %159, ptr %15, align 4, !tbaa !9
  %160 = call { double, double } @Cd(ptr noundef @c_b2)
  %161 = extractvalue { double, double } %160, 0
  %162 = extractvalue { double, double } %160, 1
  %163 = call { double, double } @Cd(ptr noundef %20)
  %164 = extractvalue { double, double } %163, 0
  %165 = extractvalue { double, double } %163, 1
  %166 = call { double, double } @__divdc3(double noundef %161, double noundef %162, double noundef %164, double noundef %165) #5
  %167 = extractvalue { double, double } %166, 0
  %168 = extractvalue { double, double } %166, 1
  %169 = call ptr @_pCd(ptr noundef %17)
  %170 = getelementptr inbounds { double, double }, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds { double, double }, ptr %169, i32 0, i32 1
  store double %167, ptr %170, align 8
  store double %168, ptr %171, align 8
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.doublecomplex, ptr %172, i64 2
  call void @zscal_(ptr noundef %15, ptr noundef %17, ptr noundef %173, ptr noundef @c__1)
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.doublecomplex, ptr %174, i64 1
  %176 = getelementptr inbounds %struct.doublecomplex, ptr %175, i32 0, i32 0
  store double 1.000000e+00, ptr %176, align 8, !tbaa !13
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.doublecomplex, ptr %177, i64 1
  %179 = getelementptr inbounds %struct.doublecomplex, ptr %178, i32 0, i32 1
  store double 0.000000e+00, ptr %179, align 8, !tbaa !15
  %180 = call { double, double } @Cd(ptr noundef %20)
  %181 = extractvalue { double, double } %180, 0
  %182 = extractvalue { double, double } %180, 1
  %183 = call { double, double } @Cd(ptr noundef %19)
  %184 = extractvalue { double, double } %183, 0
  %185 = extractvalue { double, double } %183, 1
  %186 = call { double, double } @__divdc3(double noundef %181, double noundef %182, double noundef %184, double noundef %185) #5
  %187 = extractvalue { double, double } %186, 0
  %188 = extractvalue { double, double } %186, 1
  %189 = call ptr @_pCd(ptr noundef %17)
  %190 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 0
  %191 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 1
  store double %187, ptr %190, align 8
  store double %188, ptr %191, align 8
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  %193 = load double, ptr %192, align 8, !tbaa !13
  store double %193, ptr %16, align 8, !tbaa !11
  %194 = load double, ptr %16, align 8, !tbaa !11
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  store double %194, ptr %195, align 8, !tbaa !13
  %196 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  store double 0.000000e+00, ptr %196, align 8, !tbaa !15
  br label %197

197:                                              ; preds = %133, %130
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = sub nsw i32 %199, %200
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %15, align 4, !tbaa !9
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = add nsw i32 %205, %206
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %204, i64 %208
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.doublecomplex, ptr %211, i64 1
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %struct.doublecomplex, ptr %213, i64 %217
  call void @zgemv_(ptr noundef @.str.1, ptr noundef %15, ptr noundef %203, ptr noundef @c_b2, ptr noundef %209, ptr noundef %210, ptr noundef %212, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %218, ptr noundef @c__1)
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = load i32, ptr %18, align 4, !tbaa !9
  %222 = sub nsw i32 %220, %221
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %15, align 4, !tbaa !9
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  %225 = load double, ptr %224, align 8, !tbaa !13
  %226 = fneg double %225
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %226, ptr %227, align 8, !tbaa !13
  %228 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  %229 = load double, ptr %228, align 8, !tbaa !15
  %230 = fneg double %229
  %231 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %230, ptr %231, align 8, !tbaa !15
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %233, i64 1
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = load i32, ptr %236, align 4, !tbaa !9
  %238 = add nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %struct.doublecomplex, ptr %235, i64 %239
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = load i32, ptr %18, align 4, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = add nsw i32 %242, %243
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds %struct.doublecomplex, ptr %241, i64 %245
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  call void @zgerc_(ptr noundef %15, ptr noundef %232, ptr noundef %17, ptr noundef %234, ptr noundef @c__1, ptr noundef %240, ptr noundef @c__1, ptr noundef %246, ptr noundef %247)
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = load i32, ptr %248, align 4, !tbaa !9
  %250 = load i32, ptr %18, align 4, !tbaa !9
  %251 = sub nsw i32 %249, %250
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %15, align 4, !tbaa !9
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = load i32, ptr %18, align 4, !tbaa !9
  %256 = load i32, ptr %13, align 4, !tbaa !9
  %257 = mul nsw i32 %255, %256
  %258 = add nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %254, i64 %259
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.doublecomplex, ptr %262, i64 1
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load i32, ptr %265, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds %struct.doublecomplex, ptr %264, i64 %268
  call void @zgemv_(ptr noundef @.str.2, ptr noundef %253, ptr noundef %15, ptr noundef @c_b2, ptr noundef %260, ptr noundef %261, ptr noundef %263, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %269, ptr noundef @c__1)
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  %271 = load i32, ptr %270, align 4, !tbaa !9
  %272 = load i32, ptr %18, align 4, !tbaa !9
  %273 = sub nsw i32 %271, %272
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %15, align 4, !tbaa !9
  %275 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  %276 = load double, ptr %275, align 8, !tbaa !13
  %277 = fneg double %276
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 0
  store double %277, ptr %278, align 8, !tbaa !13
  %279 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  %280 = load double, ptr %279, align 8, !tbaa !15
  %281 = fneg double %280
  %282 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 0, i32 1
  store double %281, ptr %282, align 8, !tbaa !15
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = load ptr, ptr %7, align 8, !tbaa !5
  %286 = load i32, ptr %285, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %struct.doublecomplex, ptr %284, i64 %288
  %290 = load ptr, ptr %11, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.doublecomplex, ptr %290, i64 1
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = load i32, ptr %18, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = mul nsw i32 %293, %294
  %296 = add nsw i32 %295, 1
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds %struct.doublecomplex, ptr %292, i64 %297
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  call void @zgerc_(ptr noundef %283, ptr noundef %15, ptr noundef %17, ptr noundef %289, ptr noundef @c__1, ptr noundef %291, ptr noundef @c__1, ptr noundef %298, ptr noundef %299)
  br label %300

300:                                              ; preds = %197
  %301 = load i32, ptr %18, align 4, !tbaa !9
  %302 = add nsw i32 %301, -1
  store i32 %302, ptr %18, align 4, !tbaa !9
  br label %73, !llvm.loop !16

303:                                              ; preds = %73
  store i32 1, ptr %23, align 4
  br label %304

304:                                              ; preds = %303, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #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 i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

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

declare double @dznrm2_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #3

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

declare { double, double } @__divdc3(double, double, double, double)

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

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

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

declare void @zgerc_(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 "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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@c__3 = external hidden global i32, align 4
@c__1 = external hidden global i32, align 4
@c_b2 = external hidden global %struct.doublecomplex, align 8
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @zlarge_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = alloca %struct.doublecomplex, align 16
  %9 = alloca %struct.doublecomplex, align 16
  %10 = alloca %struct.doublecomplex, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %narrow = xor i32 %11, -1
  %12 = sext i32 %narrow to i64
  %13 = getelementptr inbounds %struct.doublecomplex, ptr %1, i64 %12
  store i32 0, ptr %5, align 4, !tbaa !5
  %14 = load i32, ptr %0, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %.thread, label %16

16:                                               ; preds = %6
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %14, i32 1)
  %18 = icmp slt i32 %17, %spec.select
  br i1 %18, label %.thread, label %21

.thread:                                          ; preds = %16, %6
  %storemerge = phi i32 [ -1, %6 ], [ -3, %16 ]
  store i32 %storemerge, ptr %5, align 4, !tbaa !5
  %19 = sub nsw i32 0, %storemerge
  store i32 %19, ptr %7, align 4, !tbaa !5
  %20 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %7, i32 noundef 6) #6
  br label %.loopexit

21:                                               ; preds = %16
  %invariant.gep86 = getelementptr i8, ptr %13, i64 16
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %21
  %22 = getelementptr inbounds i8, ptr %8, i64 8
  %23 = getelementptr inbounds i8, ptr %4, i64 16
  %24 = zext nneg i32 %14 to i64
  %25 = sext i32 %11 to i64
  %invariant.gep = getelementptr %struct.doublecomplex, ptr %13, i64 %25
  br label %26

26:                                               ; preds = %.lr.ph, %70
  %indvars.iv = phi i64 [ %24, %.lr.ph ], [ %indvars.iv.next, %70 ]
  %27 = load i32, ptr %0, align 4, !tbaa !5
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %reass.sub = sub i32 %27, %28
  %29 = add i32 %reass.sub, 1
  store i32 %29, ptr %7, align 4, !tbaa !5
  call void @zlarnv_(ptr noundef nonnull @c__3, ptr noundef %3, ptr noundef nonnull %7, ptr noundef %4) #6
  %30 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub95 = sub i32 %30, %28
  %31 = add i32 %reass.sub95, 1
  store i32 %31, ptr %7, align 4, !tbaa !5
  %32 = call double @dznrm2_(ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull @c__1) #6
  %33 = call { double, double } @Cd(ptr noundef %4)
  %34 = extractvalue { double, double } %33, 0
  %35 = extractvalue { double, double } %33, 1
  %36 = call double @cabs(double noundef %34, double noundef %35) #6
  %37 = fdiv double %32, %36
  %38 = load <2 x double>, ptr %4, align 8, !tbaa !9
  %39 = insertelement <2 x double> poison, double %37, i64 0
  %40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> zeroinitializer
  %41 = fmul <2 x double> %40, %38
  store <2 x double> %41, ptr %8, align 16, !tbaa !9
  store <2 x double> %41, ptr %9, align 16, !tbaa !9
  %42 = fcmp oeq double %32, 0.000000e+00
  br i1 %42, label %70, label %43

43:                                               ; preds = %26
  %44 = fadd <2 x double> %38, %41
  store <2 x double> %44, ptr %8, align 16, !tbaa !9
  store <2 x double> %44, ptr %10, align 16, !tbaa !9
  %45 = load i32, ptr %0, align 4, !tbaa !5
  %46 = sub nsw i32 %45, %28
  store i32 %46, ptr %7, align 4, !tbaa !5
  %47 = call { double, double } @Cd(ptr noundef nonnull @c_b2)
  %48 = extractvalue { double, double } %47, 0
  %49 = extractvalue { double, double } %47, 1
  %50 = call { double, double } @Cd(ptr noundef nonnull %10)
  %51 = extractvalue { double, double } %50, 0
  %52 = extractvalue { double, double } %50, 1
  %53 = call { double, double } @__divdc3(double noundef %48, double noundef %49, double noundef %51, double noundef %52) #6
  %54 = extractvalue { double, double } %53, 0
  %55 = extractvalue { double, double } %53, 1
  %56 = call ptr @_pCd(ptr noundef nonnull %8)
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  store double %54, ptr %56, align 8
  store double %55, ptr %57, align 8
  call void @zscal_(ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %23, ptr noundef nonnull @c__1) #6
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %4, align 8, !tbaa !9
  %58 = call { double, double } @Cd(ptr noundef nonnull %10)
  %59 = extractvalue { double, double } %58, 0
  %60 = extractvalue { double, double } %58, 1
  %61 = call { double, double } @Cd(ptr noundef nonnull %9)
  %62 = extractvalue { double, double } %61, 0
  %63 = extractvalue { double, double } %61, 1
  %64 = call { double, double } @__divdc3(double noundef %59, double noundef %60, double noundef %62, double noundef %63) #6
  %65 = extractvalue { double, double } %64, 0
  %66 = extractvalue { double, double } %64, 1
  %67 = call ptr @_pCd(ptr noundef nonnull %8)
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  store double %65, ptr %67, align 8
  store double %66, ptr %68, align 8
  %69 = load double, ptr %8, align 16, !tbaa !11
  br label %70

70:                                               ; preds = %26, %43
  %.sroa.01.0 = phi double [ %69, %43 ], [ 0.000000e+00, %26 ]
  %71 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub96 = sub i32 %71, %28
  %72 = add i32 %reass.sub96, 1
  store i32 %72, ptr %7, align 4, !tbaa !5
  %gep101 = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %indvars.iv
  %73 = sext i32 %71 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %4, i64 %73
  call void @zgemv_(ptr noundef nonnull @.str.1, ptr noundef nonnull %7, ptr noundef nonnull %0, ptr noundef nonnull @c_b2, ptr noundef %gep101, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef nonnull @c_b1, ptr noundef %gep, ptr noundef nonnull @c__1) #6
  %74 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub97 = sub i32 %74, %28
  %75 = add i32 %reass.sub97, 1
  store i32 %75, ptr %7, align 4, !tbaa !5
  %76 = fneg double %.sroa.01.0
  store double %76, ptr %8, align 16, !tbaa !11
  store double -0.000000e+00, ptr %22, align 8, !tbaa !13
  %77 = sext i32 %74 to i64
  %gep85 = getelementptr %struct.doublecomplex, ptr %4, i64 %77
  call void @zgerc_(ptr noundef nonnull %7, ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %gep85, ptr noundef nonnull @c__1, ptr noundef %gep101, ptr noundef nonnull %2) #6
  %78 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub98 = sub i32 %78, %28
  %79 = add i32 %reass.sub98, 1
  store i32 %79, ptr %7, align 4, !tbaa !5
  %80 = mul nsw i64 %indvars.iv, %25
  %gep87 = getelementptr %struct.doublecomplex, ptr %invariant.gep86, i64 %80
  %81 = sext i32 %78 to i64
  %gep89 = getelementptr %struct.doublecomplex, ptr %4, i64 %81
  call void @zgemv_(ptr noundef nonnull @.str.2, ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull @c_b2, ptr noundef %gep87, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef nonnull @c_b1, ptr noundef %gep89, ptr noundef nonnull @c__1) #6
  %82 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub99 = sub i32 %82, %28
  %83 = add i32 %reass.sub99, 1
  store i32 %83, ptr %7, align 4, !tbaa !5
  store double %76, ptr %8, align 16, !tbaa !11
  store double -0.000000e+00, ptr %22, align 8, !tbaa !13
  %84 = sext i32 %82 to i64
  %gep91 = getelementptr %struct.doublecomplex, ptr %4, i64 %84
  call void @zgerc_(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %gep91, ptr noundef nonnull @c__1, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %gep87, ptr noundef nonnull %2) #6
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %85 = icmp sgt i64 %indvars.iv, 1
  br i1 %85, label %26, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %70, %21, %.thread
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #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 i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare double @dznrm2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #3

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

declare { double, double } @__divdc3(double, double, double, double) local_unnamed_addr

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #5

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 = { nofree nounwind "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 nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass