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

; 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 }

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

41:                                               ; preds = %254, %8
  %42 = load i32, ptr %25, align 4, !tbaa !9
  %43 = load i32, ptr %17, align 4, !tbaa !9
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %45, label %257

45:                                               ; preds = %41
  %46 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %46, ptr %18, align 4, !tbaa !9
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load i32, ptr %18, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.doublecomplex, ptr %47, i64 %49
  %51 = getelementptr inbounds %struct.doublecomplex, ptr %50, i32 0, i32 0
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 0
  store double %52, ptr %53, align 8, !tbaa !11
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.doublecomplex, ptr %54, i64 %56
  %58 = getelementptr inbounds %struct.doublecomplex, ptr %57, i32 0, i32 1
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 1
  store double %59, ptr %60, align 8, !tbaa !14
  %61 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %61, ptr %18, align 4, !tbaa !9
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %62, i64 %64
  %66 = getelementptr inbounds %struct.doublecomplex, ptr %65, i32 0, i32 0
  %67 = load double, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  store double %67, ptr %68, align 8, !tbaa !11
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.doublecomplex, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.doublecomplex, ptr %72, i32 0, i32 1
  %74 = load double, ptr %73, align 8, !tbaa !14
  %75 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  store double %74, ptr %75, align 8, !tbaa !14
  %76 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %76, ptr %18, align 4, !tbaa !9
  %77 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %77, ptr %19, align 4, !tbaa !9
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %78, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !15
  %83 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 0
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = fmul double %82, %84
  %86 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  store double %85, ptr %86, align 8, !tbaa !11
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %87, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !15
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 1
  %93 = load double, ptr %92, align 8, !tbaa !14
  %94 = fmul double %91, %93
  %95 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  store double %94, ptr %95, align 8, !tbaa !14
  %96 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %96, ptr %20, align 4, !tbaa !9
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %97, i64 %99
  %101 = getelementptr inbounds %struct.doublecomplex, ptr %100, i32 0, i32 0
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load i32, ptr %20, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds %struct.doublecomplex, ptr %105, i64 %107
  %109 = getelementptr inbounds %struct.doublecomplex, ptr %108, i32 0, i32 1
  %110 = load double, ptr %109, align 8, !tbaa !14
  %111 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %112 = load double, ptr %111, align 8, !tbaa !14
  %113 = fmul double %110, %112
  %114 = fneg double %113
  %115 = call double @llvm.fmuladd.f64(double %102, double %104, double %114)
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %115, ptr %116, align 8, !tbaa !11
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i32, ptr %20, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.doublecomplex, ptr %120, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !14
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load i32, ptr %20, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.doublecomplex, ptr %125, i64 %127
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %128, i32 0, i32 1
  %130 = load double, ptr %129, align 8, !tbaa !14
  %131 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = fmul double %130, %132
  %134 = call double @llvm.fmuladd.f64(double %122, double %124, double %133)
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %134, ptr %135, align 8, !tbaa !14
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %139 = load double, ptr %138, align 8, !tbaa !11
  %140 = fadd double %137, %139
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %140, ptr %141, align 8, !tbaa !11
  %142 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  %143 = load double, ptr %142, align 8, !tbaa !14
  %144 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %145 = load double, ptr %144, align 8, !tbaa !14
  %146 = fadd double %143, %145
  %147 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %146, ptr %147, align 8, !tbaa !14
  %148 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds %struct.doublecomplex, ptr %150, i64 %152
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %153, i32 0, i32 0
  store double %149, ptr %154, align 8, !tbaa !11
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %156 = load double, ptr %155, align 8, !tbaa !14
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %struct.doublecomplex, ptr %157, i64 %159
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %160, i32 0, i32 1
  store double %156, ptr %161, align 8, !tbaa !14
  %162 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %162, ptr %18, align 4, !tbaa !9
  %163 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %163, ptr %19, align 4, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load i32, ptr %19, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !15
  %169 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 0
  %170 = load double, ptr %169, align 8, !tbaa !11
  %171 = fmul double %168, %170
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  store double %171, ptr %172, align 8, !tbaa !11
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !15
  %178 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 0, i32 1
  %179 = load double, ptr %178, align 8, !tbaa !14
  %180 = fmul double %177, %179
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  store double %180, ptr %181, align 8, !tbaa !14
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.doublecomplex, ptr %182, i64 %184
  %186 = call { double, double } @Cd(ptr noundef %185)
  %187 = extractvalue { double, double } %186, 0
  %188 = extractvalue { double, double } %186, 1
  %189 = fneg double %188
  %190 = call ptr @_pCd(ptr noundef %24)
  %191 = getelementptr inbounds { double, double }, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds { double, double }, ptr %190, i32 0, i32 1
  store double %187, ptr %191, align 8
  store double %189, ptr %192, align 8
  %193 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %194 = load double, ptr %193, align 8, !tbaa !11
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 0
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %198 = load double, ptr %197, align 8, !tbaa !14
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 1
  %200 = load double, ptr %199, align 8, !tbaa !14
  %201 = fmul double %198, %200
  %202 = fneg double %201
  %203 = call double @llvm.fmuladd.f64(double %194, double %196, double %202)
  %204 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  store double %203, ptr %204, align 8, !tbaa !11
  %205 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %206 = load double, ptr %205, align 8, !tbaa !11
  %207 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 1
  %208 = load double, ptr %207, align 8, !tbaa !14
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %210 = load double, ptr %209, align 8, !tbaa !14
  %211 = getelementptr inbounds %struct.doublecomplex, ptr %29, i32 0, i32 0
  %212 = load double, ptr %211, align 8, !tbaa !11
  %213 = fmul double %210, %212
  %214 = call double @llvm.fmuladd.f64(double %206, double %208, double %213)
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  store double %214, ptr %215, align 8, !tbaa !14
  %216 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  %217 = load double, ptr %216, align 8, !tbaa !11
  %218 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 0
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = fsub double %217, %219
  %221 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %220, ptr %221, align 8, !tbaa !11
  %222 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  %223 = load double, ptr %222, align 8, !tbaa !14
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %23, i32 0, i32 1
  %225 = load double, ptr %224, align 8, !tbaa !14
  %226 = fsub double %223, %225
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %226, ptr %227, align 8, !tbaa !14
  %228 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %229 = load double, ptr %228, align 8, !tbaa !11
  %230 = load ptr, ptr %12, align 8, !tbaa !5
  %231 = load i32, ptr %18, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %230, i64 %232
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %233, i32 0, i32 0
  store double %229, ptr %234, align 8, !tbaa !11
  %235 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %236 = load double, ptr %235, align 8, !tbaa !14
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = load i32, ptr %18, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds %struct.doublecomplex, ptr %237, i64 %239
  %241 = getelementptr inbounds %struct.doublecomplex, ptr %240, i32 0, i32 1
  store double %236, ptr %241, align 8, !tbaa !14
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = load i32, ptr %242, align 4, !tbaa !9
  %244 = load i32, ptr %27, align 4, !tbaa !9
  %245 = add nsw i32 %244, %243
  store i32 %245, ptr %27, align 4, !tbaa !9
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  %247 = load i32, ptr %246, align 4, !tbaa !9
  %248 = load i32, ptr %28, align 4, !tbaa !9
  %249 = add nsw i32 %248, %247
  store i32 %249, ptr %28, align 4, !tbaa !9
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = load i32, ptr %250, align 4, !tbaa !9
  %252 = load i32, ptr %26, align 4, !tbaa !9
  %253 = add nsw i32 %252, %251
  store i32 %253, ptr %26, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %45
  %255 = load i32, ptr %25, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %25, align 4, !tbaa !9
  br label %41, !llvm.loop !16

257:                                              ; preds = %41
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  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 4, 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
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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

; 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!13, !13, i64 0}
!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 }

; Function Attrs: nounwind uwtable
define dso_local void @zlartv_(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 {
  %9 = alloca %struct.doublecomplex, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %10 = getelementptr inbounds i8, ptr %6, i64 -16
  %11 = getelementptr inbounds i8, ptr %5, i64 -8
  %12 = getelementptr inbounds i8, ptr %3, i64 -16
  %13 = getelementptr inbounds i8, ptr %1, i64 -16
  %14 = load i32, ptr %0, align 4, !tbaa !5
  %.not79 = icmp slt i32 %14, 1
  br i1 %.not79, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %15 = getelementptr inbounds i8, ptr %9, i64 8
  br label %16

16:                                               ; preds = %.lr.ph, %16
  %.083 = phi i32 [ 1, %.lr.ph ], [ %65, %16 ]
  %.07682 = phi i32 [ 1, %.lr.ph ], [ %63, %16 ]
  %.07781 = phi i32 [ 1, %.lr.ph ], [ %67, %16 ]
  %.07880 = phi i32 [ 1, %.lr.ph ], [ %68, %16 ]
  %17 = sext i32 %.07682 to i64
  %18 = getelementptr inbounds %struct.doublecomplex, ptr %13, i64 %17
  %19 = sext i32 %.083 to i64
  %20 = getelementptr inbounds %struct.doublecomplex, ptr %12, i64 %19
  %21 = sext i32 %.07781 to i64
  %22 = getelementptr inbounds double, ptr %11, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %21
  %25 = load double, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds i8, ptr %24, i64 8
  %27 = load double, ptr %26, align 8, !tbaa !13
  %28 = fneg double %27
  %29 = load <2 x double>, ptr %18, align 8, !tbaa !9
  %30 = load <2 x double>, ptr %20, align 8, !tbaa !9
  %31 = insertelement <2 x double> poison, double %23, i64 0
  %32 = shufflevector <2 x double> %31, <2 x double> poison, <2 x i32> zeroinitializer
  %33 = fmul <2 x double> %29, %32
  %34 = insertelement <2 x double> poison, double %27, i64 0
  %35 = insertelement <2 x double> %34, double %28, i64 1
  %36 = fmul <2 x double> %30, %35
  %37 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %38 = insertelement <2 x double> poison, double %25, i64 0
  %39 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> zeroinitializer
  %40 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %30, <2 x double> %37)
  %41 = fadd <2 x double> %33, %40
  store <2 x double> %41, ptr %18, align 8, !tbaa !9
  %42 = load double, ptr %22, align 8, !tbaa !9
  %43 = call { double, double } @Cd(ptr noundef nonnull %24)
  %44 = extractvalue { double, double } %43, 0
  %45 = extractvalue { double, double } %43, 1
  %46 = fneg double %45
  %47 = call ptr @_pCd(ptr noundef nonnull %9)
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  store double %44, ptr %47, align 8
  store double %46, ptr %48, align 8
  %49 = load <2 x double>, ptr %9, align 16
  %50 = load double, ptr %15, align 8, !tbaa !13
  %51 = fneg double %50
  %52 = insertelement <2 x double> poison, double %42, i64 0
  %53 = shufflevector <2 x double> %52, <2 x double> poison, <2 x i32> zeroinitializer
  %54 = fmul <2 x double> %30, %53
  %55 = insertelement <2 x double> poison, double %50, i64 0
  %56 = insertelement <2 x double> %55, double %51, i64 1
  %57 = fmul <2 x double> %29, %56
  %58 = shufflevector <2 x double> %57, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %59 = shufflevector <2 x double> %49, <2 x double> poison, <2 x i32> zeroinitializer
  %60 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %59, <2 x double> %29, <2 x double> %58)
  %61 = fsub <2 x double> %54, %60
  store <2 x double> %61, ptr %20, align 8, !tbaa !9
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = add nsw i32 %62, %.07682
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = add nsw i32 %64, %.083
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = add nsw i32 %66, %.07781
  %68 = add nuw i32 %.07880, 1
  %exitcond.not = icmp eq i32 %.07880, %14
  br i1 %exitcond.not, label %._crit_edge, label %16, !llvm.loop !14

._crit_edge:                                      ; preds = %16, %8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  ret void
}

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(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 <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass