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

; 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__3 = external hidden global i32, align 4
@c__1 = external hidden global i32, align 4
@c_b2 = external hidden global %struct.complex, align 4
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

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

50:                                               ; preds = %6
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 -1, ptr %51, align 4, !tbaa !9
  br label %68

52:                                               ; preds = %6
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = icmp sge i32 1, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %52
  br label %62

59:                                               ; preds = %52
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %59, %58
  %63 = phi i32 [ 1, %58 ], [ %61, %59 ]
  %64 = icmp slt i32 %54, %63
  br i1 %64, label %65, label %67

65:                                               ; preds = %62
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 -3, ptr %66, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %65, %62
  br label %68

68:                                               ; preds = %67, %50
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %77

72:                                               ; preds = %68
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sub nsw i32 0, %74
  store i32 %75, ptr %15, align 4, !tbaa !9
  %76 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %15, i32 noundef 6)
  store i32 1, ptr %23, align 4
  br label %322

77:                                               ; preds = %68
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  store i32 %79, ptr %18, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %318, %77
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = icmp sge i32 %81, 1
  br i1 %82, label %83, label %321

83:                                               ; preds = %80
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = sub nsw i32 %85, %86
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %15, align 4, !tbaa !9
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %89, i64 1
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.complex, ptr %91, i64 1
  call void @clarnv_(ptr noundef @c__3, ptr noundef %90, ptr noundef %15, ptr noundef %92)
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = sub nsw i32 %94, %95
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %15, align 4, !tbaa !9
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.complex, ptr %98, i64 1
  %100 = call float @scnrm2_(ptr noundef %15, ptr noundef %99, ptr noundef @c__1)
  store float %100, ptr %21, align 4, !tbaa !11
  %101 = load float, ptr %21, align 4, !tbaa !11
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.complex, ptr %102, i64 1
  %104 = call <2 x float> @Cf(ptr noundef %103)
  store <2 x float> %104, ptr %24, align 4
  %105 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 0
  %106 = load float, ptr %105, align 4
  %107 = getelementptr inbounds { float, float }, ptr %24, i32 0, i32 1
  %108 = load float, ptr %107, align 4
  %109 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 0
  %110 = getelementptr inbounds { float, float }, ptr %25, i32 0, i32 1
  store float %106, ptr %109, align 4
  store float %108, ptr %110, align 4
  %111 = load <2 x float>, ptr %25, align 4
  %112 = call float @cabsf(<2 x float> noundef %111) #6
  %113 = fdiv float %101, %112
  store float %113, ptr %16, align 4, !tbaa !11
  %114 = load float, ptr %16, align 4, !tbaa !11
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.complex, ptr %115, i64 1
  %117 = getelementptr inbounds %struct.complex, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 4, !tbaa !13
  %119 = fmul float %114, %118
  %120 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %119, ptr %120, align 4, !tbaa !13
  %121 = load float, ptr %16, align 4, !tbaa !11
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.complex, ptr %122, i64 1
  %124 = getelementptr inbounds %struct.complex, ptr %123, i32 0, i32 1
  %125 = load float, ptr %124, align 4, !tbaa !15
  %126 = fmul float %121, %125
  %127 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float %126, ptr %127, align 4, !tbaa !15
  %128 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %129 = load float, ptr %128, align 4, !tbaa !13
  %130 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  store float %129, ptr %130, align 4, !tbaa !13
  %131 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !15
  %133 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  store float %132, ptr %133, align 4, !tbaa !15
  %134 = load float, ptr %21, align 4, !tbaa !11
  %135 = fcmp oeq float %134, 0.000000e+00
  br i1 %135, label %136, label %139

136:                                              ; preds = %83
  %137 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float 0.000000e+00, ptr %137, align 4, !tbaa !13
  %138 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float 0.000000e+00, ptr %138, align 4, !tbaa !15
  br label %215

139:                                              ; preds = %83
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.complex, ptr %140, i64 1
  %142 = getelementptr inbounds %struct.complex, ptr %141, i32 0, i32 0
  %143 = load float, ptr %142, align 4, !tbaa !13
  %144 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !13
  %146 = fadd float %143, %145
  %147 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %146, ptr %147, align 4, !tbaa !13
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.complex, ptr %148, i64 1
  %150 = getelementptr inbounds %struct.complex, ptr %149, i32 0, i32 1
  %151 = load float, ptr %150, align 4, !tbaa !15
  %152 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  %153 = load float, ptr %152, align 4, !tbaa !15
  %154 = fadd float %151, %153
  %155 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float %154, ptr %155, align 4, !tbaa !15
  %156 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %157 = load float, ptr %156, align 4, !tbaa !13
  %158 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %157, ptr %158, align 4, !tbaa !13
  %159 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %160 = load float, ptr %159, align 4, !tbaa !15
  %161 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %160, ptr %161, align 4, !tbaa !15
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = sub nsw i32 %163, %164
  store i32 %165, ptr %15, align 4, !tbaa !9
  %166 = call <2 x float> @Cf(ptr noundef @c_b2)
  store <2 x float> %166, ptr %26, align 4
  %167 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 0
  %168 = load float, ptr %167, align 4
  %169 = getelementptr inbounds { float, float }, ptr %26, i32 0, i32 1
  %170 = load float, ptr %169, align 4
  %171 = call <2 x float> @Cf(ptr noundef %20)
  store <2 x float> %171, ptr %27, align 4
  %172 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 0
  %173 = load float, ptr %172, align 4
  %174 = getelementptr inbounds { float, float }, ptr %27, i32 0, i32 1
  %175 = load float, ptr %174, align 4
  %176 = call <2 x float> @__divsc3(float noundef %168, float noundef %170, float noundef %173, float noundef %175) #6
  store <2 x float> %176, ptr %28, align 4
  %177 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 0
  %178 = load float, ptr %177, align 4
  %179 = getelementptr inbounds { float, float }, ptr %28, i32 0, i32 1
  %180 = load float, ptr %179, align 4
  %181 = call ptr @_pCf(ptr noundef %17)
  %182 = getelementptr inbounds { float, float }, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds { float, float }, ptr %181, i32 0, i32 1
  store float %178, ptr %182, align 4
  store float %180, ptr %183, align 4
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.complex, ptr %184, i64 2
  call void @cscal_(ptr noundef %15, ptr noundef %17, ptr noundef %185, ptr noundef @c__1)
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.complex, ptr %186, i64 1
  %188 = getelementptr inbounds %struct.complex, ptr %187, i32 0, i32 0
  store float 1.000000e+00, ptr %188, align 4, !tbaa !13
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.complex, ptr %189, i64 1
  %191 = getelementptr inbounds %struct.complex, ptr %190, i32 0, i32 1
  store float 0.000000e+00, ptr %191, align 4, !tbaa !15
  %192 = call <2 x float> @Cf(ptr noundef %20)
  store <2 x float> %192, ptr %29, align 4
  %193 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 0
  %194 = load float, ptr %193, align 4
  %195 = getelementptr inbounds { float, float }, ptr %29, i32 0, i32 1
  %196 = load float, ptr %195, align 4
  %197 = call <2 x float> @Cf(ptr noundef %19)
  store <2 x float> %197, ptr %30, align 4
  %198 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 0
  %199 = load float, ptr %198, align 4
  %200 = getelementptr inbounds { float, float }, ptr %30, i32 0, i32 1
  %201 = load float, ptr %200, align 4
  %202 = call <2 x float> @__divsc3(float noundef %194, float noundef %196, float noundef %199, float noundef %201) #6
  store <2 x float> %202, ptr %31, align 4
  %203 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 0
  %204 = load float, ptr %203, align 4
  %205 = getelementptr inbounds { float, float }, ptr %31, i32 0, i32 1
  %206 = load float, ptr %205, align 4
  %207 = call ptr @_pCf(ptr noundef %17)
  %208 = getelementptr inbounds { float, float }, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds { float, float }, ptr %207, i32 0, i32 1
  store float %204, ptr %208, align 4
  store float %206, ptr %209, align 4
  %210 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %211 = load float, ptr %210, align 4, !tbaa !13
  store float %211, ptr %16, align 4, !tbaa !11
  %212 = load float, ptr %16, align 4, !tbaa !11
  %213 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float %212, ptr %213, align 4, !tbaa !13
  %214 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float 0.000000e+00, ptr %214, align 4, !tbaa !15
  br label %215

215:                                              ; preds = %139, %136
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = sub nsw i32 %217, %218
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %15, align 4, !tbaa !9
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = load i32, ptr %18, align 4, !tbaa !9
  %224 = load i32, ptr %13, align 4, !tbaa !9
  %225 = add nsw i32 %223, %224
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %struct.complex, ptr %222, i64 %226
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.complex, ptr %229, i64 1
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load i32, ptr %232, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.complex, ptr %231, i64 %235
  call void @cgemv_(ptr noundef @.str.1, ptr noundef %15, ptr noundef %221, ptr noundef @c_b2, ptr noundef %227, ptr noundef %228, ptr noundef %230, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %236, ptr noundef @c__1)
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = load i32, ptr %18, align 4, !tbaa !9
  %240 = sub nsw i32 %238, %239
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %15, align 4, !tbaa !9
  %242 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  %243 = load float, ptr %242, align 4, !tbaa !13
  %244 = fneg float %243
  %245 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %244, ptr %245, align 4, !tbaa !13
  %246 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  %247 = load float, ptr %246, align 4, !tbaa !15
  %248 = fneg float %247
  %249 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float %248, ptr %249, align 4, !tbaa !15
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.complex, ptr %251, i64 1
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = load i32, ptr %254, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds %struct.complex, ptr %253, i64 %257
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = load i32, ptr %18, align 4, !tbaa !9
  %261 = load i32, ptr %13, align 4, !tbaa !9
  %262 = add nsw i32 %260, %261
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.complex, ptr %259, i64 %263
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  call void @cgerc_(ptr noundef %15, ptr noundef %250, ptr noundef %17, ptr noundef %252, ptr noundef @c__1, ptr noundef %258, ptr noundef @c__1, ptr noundef %264, ptr noundef %265)
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = load i32, ptr %266, align 4, !tbaa !9
  %268 = load i32, ptr %18, align 4, !tbaa !9
  %269 = sub nsw i32 %267, %268
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %15, align 4, !tbaa !9
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = load i32, ptr %18, align 4, !tbaa !9
  %274 = load i32, ptr %13, align 4, !tbaa !9
  %275 = mul nsw i32 %273, %274
  %276 = add nsw i32 %275, 1
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds %struct.complex, ptr %272, i64 %277
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.complex, ptr %280, i64 1
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = load i32, ptr %283, align 4, !tbaa !9
  %285 = add nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds %struct.complex, ptr %282, i64 %286
  call void @cgemv_(ptr noundef @.str.2, ptr noundef %271, ptr noundef %15, ptr noundef @c_b2, ptr noundef %278, ptr noundef %279, ptr noundef %281, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %287, ptr noundef @c__1)
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = load i32, ptr %288, align 4, !tbaa !9
  %290 = load i32, ptr %18, align 4, !tbaa !9
  %291 = sub nsw i32 %289, %290
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %15, align 4, !tbaa !9
  %293 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  %294 = load float, ptr %293, align 4, !tbaa !13
  %295 = fneg float %294
  %296 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  store float %295, ptr %296, align 4, !tbaa !13
  %297 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  %298 = load float, ptr %297, align 4, !tbaa !15
  %299 = fneg float %298
  %300 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  store float %299, ptr %300, align 4, !tbaa !15
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = load ptr, ptr %11, align 8, !tbaa !5
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds %struct.complex, ptr %302, i64 %306
  %308 = load ptr, ptr %11, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.complex, ptr %308, i64 1
  %310 = load ptr, ptr %8, align 8, !tbaa !5
  %311 = load i32, ptr %18, align 4, !tbaa !9
  %312 = load i32, ptr %13, align 4, !tbaa !9
  %313 = mul nsw i32 %311, %312
  %314 = add nsw i32 %313, 1
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds %struct.complex, ptr %310, i64 %315
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  call void @cgerc_(ptr noundef %301, ptr noundef %15, ptr noundef %17, ptr noundef %307, ptr noundef @c__1, ptr noundef %309, ptr noundef @c__1, ptr noundef %316, ptr noundef %317)
  br label %318

318:                                              ; preds = %215
  %319 = load i32, ptr %18, align 4, !tbaa !9
  %320 = add nsw i32 %319, -1
  store i32 %320, ptr %18, align 4, !tbaa !9
  br label %80, !llvm.loop !16

321:                                              ; preds = %80
  store i32 1, ptr %23, align 4
  br label %322

322:                                              ; preds = %321, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  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 @clarnv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare float @scnrm2_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #4

declare <2 x float> @__divsc3(float, float, float, float)

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCf(ptr noundef) #5

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

declare void @cgemv_(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 @cgerc_(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 = { 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"="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 #5 = { 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 #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 = !{!"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 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4}
!15 = !{!14, !12, i64 4}
!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.complex = type { float, float }

@.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.complex, align 4
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@c_b1 = external hidden global %struct.complex, align 4
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @clarge_(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.complex, align 8
  %9 = alloca %struct.complex, align 8
  %10 = alloca %struct.complex, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %narrow = xor i32 %11, -1
  %12 = sext i32 %narrow to i64
  %13 = getelementptr inbounds %struct.complex, 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) #7
  br label %.loopexit

21:                                               ; preds = %16
  %invariant.gep94 = getelementptr i8, ptr %13, i64 8
  %.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 4
  %23 = getelementptr inbounds i8, ptr %4, i64 8
  %24 = zext nneg i32 %14 to i64
  %25 = sext i32 %11 to i64
  %invariant.gep = getelementptr %struct.complex, ptr %13, i64 %25
  br label %26

26:                                               ; preds = %.lr.ph, %54
  %indvars.iv = phi i64 [ %24, %.lr.ph ], [ %indvars.iv.next, %54 ]
  %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 @clarnv_(ptr noundef nonnull @c__3, ptr noundef %3, ptr noundef nonnull %7, ptr noundef %4) #7
  %30 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub103 = sub i32 %30, %28
  %31 = add i32 %reass.sub103, 1
  store i32 %31, ptr %7, align 4, !tbaa !5
  %32 = call float @scnrm2_(ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull @c__1) #7
  %33 = call <2 x float> @Cf(ptr noundef %4)
  %34 = call float @cabsf(<2 x float> noundef %33) #7
  %35 = fdiv float %32, %34
  %36 = load <2 x float>, ptr %4, align 4, !tbaa !9
  %37 = insertelement <2 x float> poison, float %35, i64 0
  %38 = shufflevector <2 x float> %37, <2 x float> poison, <2 x i32> zeroinitializer
  %39 = fmul <2 x float> %38, %36
  store <2 x float> %39, ptr %8, align 8, !tbaa !9
  store <2 x float> %39, ptr %9, align 8, !tbaa !9
  %40 = fcmp oeq float %32, 0.000000e+00
  br i1 %40, label %54, label %41

41:                                               ; preds = %26
  %42 = fadd <2 x float> %36, %39
  store <2 x float> %42, ptr %8, align 8, !tbaa !9
  store <2 x float> %42, ptr %10, align 8, !tbaa !9
  %43 = load i32, ptr %0, align 4, !tbaa !5
  %44 = sub nsw i32 %43, %28
  store i32 %44, ptr %7, align 4, !tbaa !5
  %45 = call <2 x float> @Cf(ptr noundef nonnull @c_b2)
  %.sroa.05.0.vec.extract = extractelement <2 x float> %45, i64 0
  %.sroa.05.4.vec.extract = extractelement <2 x float> %45, i64 1
  %46 = call <2 x float> @Cf(ptr noundef nonnull %10)
  %.sroa.04.0.vec.extract = extractelement <2 x float> %46, i64 0
  %.sroa.04.4.vec.extract = extractelement <2 x float> %46, i64 1
  %47 = call <2 x float> @__divsc3(float noundef %.sroa.05.0.vec.extract, float noundef %.sroa.05.4.vec.extract, float noundef %.sroa.04.0.vec.extract, float noundef %.sroa.04.4.vec.extract) #7
  %48 = call ptr @_pCf(ptr noundef nonnull %8)
  store <2 x float> %47, ptr %48, align 4
  call void @cscal_(ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %23, ptr noundef nonnull @c__1) #7
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %4, align 4, !tbaa !9
  %49 = call <2 x float> @Cf(ptr noundef nonnull %10)
  %.sroa.02.0.vec.extract = extractelement <2 x float> %49, i64 0
  %.sroa.02.4.vec.extract = extractelement <2 x float> %49, i64 1
  %50 = call <2 x float> @Cf(ptr noundef nonnull %9)
  %.sroa.01.0.vec.extract = extractelement <2 x float> %50, i64 0
  %.sroa.01.4.vec.extract = extractelement <2 x float> %50, i64 1
  %51 = call <2 x float> @__divsc3(float noundef %.sroa.02.0.vec.extract, float noundef %.sroa.02.4.vec.extract, float noundef %.sroa.01.0.vec.extract, float noundef %.sroa.01.4.vec.extract) #7
  %52 = call ptr @_pCf(ptr noundef nonnull %8)
  store <2 x float> %51, ptr %52, align 4
  %53 = load float, ptr %8, align 8, !tbaa !11
  br label %54

54:                                               ; preds = %26, %41
  %.sroa.09.0 = phi float [ %53, %41 ], [ 0.000000e+00, %26 ]
  %55 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub104 = sub i32 %55, %28
  %56 = add i32 %reass.sub104, 1
  store i32 %56, ptr %7, align 4, !tbaa !5
  %gep109 = getelementptr %struct.complex, ptr %invariant.gep, i64 %indvars.iv
  %57 = sext i32 %55 to i64
  %gep = getelementptr %struct.complex, ptr %4, i64 %57
  call void @cgemv_(ptr noundef nonnull @.str.1, ptr noundef nonnull %7, ptr noundef nonnull %0, ptr noundef nonnull @c_b2, ptr noundef %gep109, 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) #7
  %58 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub105 = sub i32 %58, %28
  %59 = add i32 %reass.sub105, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  %60 = fneg float %.sroa.09.0
  store float %60, ptr %8, align 8, !tbaa !11
  store float -0.000000e+00, ptr %22, align 4, !tbaa !13
  %61 = sext i32 %58 to i64
  %gep93 = getelementptr %struct.complex, ptr %4, i64 %61
  call void @cgerc_(ptr noundef nonnull %7, ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %gep93, ptr noundef nonnull @c__1, ptr noundef %gep109, ptr noundef nonnull %2) #7
  %62 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub106 = sub i32 %62, %28
  %63 = add i32 %reass.sub106, 1
  store i32 %63, ptr %7, align 4, !tbaa !5
  %64 = mul nsw i64 %indvars.iv, %25
  %gep95 = getelementptr %struct.complex, ptr %invariant.gep94, i64 %64
  %65 = sext i32 %62 to i64
  %gep97 = getelementptr %struct.complex, ptr %4, i64 %65
  call void @cgemv_(ptr noundef nonnull @.str.2, ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull @c_b2, ptr noundef %gep95, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef nonnull @c_b1, ptr noundef %gep97, ptr noundef nonnull @c__1) #7
  %66 = load i32, ptr %0, align 4, !tbaa !5
  %reass.sub107 = sub i32 %66, %28
  %67 = add i32 %reass.sub107, 1
  store i32 %67, ptr %7, align 4, !tbaa !5
  store float %60, ptr %8, align 8, !tbaa !11
  store float -0.000000e+00, ptr %22, align 4, !tbaa !13
  %68 = sext i32 %66 to i64
  %gep99 = getelementptr %struct.complex, ptr %4, i64 %68
  call void @cgerc_(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef %gep99, ptr noundef nonnull @c__1, ptr noundef nonnull %4, ptr noundef nonnull @c__1, ptr noundef %gep95, ptr noundef nonnull %2) #7
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %69 = icmp sgt i64 %indvars.iv, 1
  br i1 %69, label %26, label %.loopexit, !llvm.loop !14

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

declare float @scnrm2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare float @cabsf(<2 x float> noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #4

declare <2 x float> @__divsc3(float, float, float, float) local_unnamed_addr

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

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

declare void @cgemv_(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 @cgerc_(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) #6

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 = { 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"="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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!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