; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (clar2v)

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

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

56:                                               ; preds = %326, %8
  %57 = load i64, ptr %25, align 8, !tbaa !9
  %58 = load i64, ptr %17, align 8, !tbaa !9
  %59 = icmp sle i64 %57, %58
  br i1 %59, label %60, label %329

60:                                               ; preds = %56
  %61 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %61, ptr %18, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load i64, ptr %18, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.complex, ptr %62, i64 %63
  %65 = getelementptr inbounds %struct.complex, ptr %64, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !11
  store float %66, ptr %35, align 4, !tbaa !14
  %67 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %67, ptr %18, align 8, !tbaa !9
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = load i64, ptr %18, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.complex, ptr %68, i64 %69
  %71 = getelementptr inbounds %struct.complex, ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 4, !tbaa !11
  store float %72, ptr %36, align 4, !tbaa !14
  %73 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %73, ptr %18, align 8, !tbaa !9
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load i64, ptr %18, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.complex, ptr %74, i64 %75
  %77 = getelementptr inbounds %struct.complex, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = getelementptr inbounds %struct.complex, ptr %37, i32 0, i32 0
  store float %78, ptr %79, align 4, !tbaa !11
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = load i64, ptr %18, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.complex, ptr %80, i64 %81
  %83 = getelementptr inbounds %struct.complex, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = getelementptr inbounds %struct.complex, ptr %37, i32 0, i32 1
  store float %84, ptr %85, align 4, !tbaa !15
  %86 = getelementptr inbounds %struct.complex, ptr %37, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !11
  store float %87, ptr %43, align 4, !tbaa !14
  %88 = call double @r_imag(ptr noundef %37)
  %89 = fptrunc double %88 to float
  store float %89, ptr %41, align 4, !tbaa !14
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load i64, ptr %31, align 8, !tbaa !9
  %92 = getelementptr inbounds float, ptr %90, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !14
  store float %93, ptr %32, align 4, !tbaa !14
  %94 = load i64, ptr %31, align 8, !tbaa !9
  store i64 %94, ptr %18, align 8, !tbaa !9
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = load i64, ptr %18, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.complex, ptr %95, i64 %96
  %98 = getelementptr inbounds %struct.complex, ptr %97, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !11
  %100 = getelementptr inbounds %struct.complex, ptr %33, i32 0, i32 0
  store float %99, ptr %100, align 4, !tbaa !11
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = load i64, ptr %18, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.complex, ptr %101, i64 %102
  %104 = getelementptr inbounds %struct.complex, ptr %103, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !15
  %106 = getelementptr inbounds %struct.complex, ptr %33, i32 0, i32 1
  store float %105, ptr %106, align 4, !tbaa !15
  %107 = getelementptr inbounds %struct.complex, ptr %33, i32 0, i32 0
  %108 = load float, ptr %107, align 4, !tbaa !11
  store float %108, ptr %42, align 4, !tbaa !14
  %109 = call double @r_imag(ptr noundef %33)
  %110 = fptrunc double %109 to float
  store float %110, ptr %40, align 4, !tbaa !14
  %111 = load float, ptr %42, align 4, !tbaa !14
  %112 = load float, ptr %43, align 4, !tbaa !14
  %113 = load float, ptr %40, align 4, !tbaa !14
  %114 = load float, ptr %41, align 4, !tbaa !14
  %115 = fmul float %113, %114
  %116 = fneg float %115
  %117 = call float @llvm.fmuladd.f32(float %111, float %112, float %116)
  store float %117, ptr %39, align 4, !tbaa !14
  %118 = load float, ptr %42, align 4, !tbaa !14
  %119 = load float, ptr %41, align 4, !tbaa !14
  %120 = load float, ptr %40, align 4, !tbaa !14
  %121 = load float, ptr %43, align 4, !tbaa !14
  %122 = fmul float %120, %121
  %123 = call float @llvm.fmuladd.f32(float %118, float %119, float %122)
  store float %123, ptr %38, align 4, !tbaa !14
  %124 = load float, ptr %32, align 4, !tbaa !14
  %125 = getelementptr inbounds %struct.complex, ptr %37, i32 0, i32 0
  %126 = load float, ptr %125, align 4, !tbaa !11
  %127 = fmul float %124, %126
  %128 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %127, ptr %128, align 4, !tbaa !11
  %129 = load float, ptr %32, align 4, !tbaa !14
  %130 = getelementptr inbounds %struct.complex, ptr %37, i32 0, i32 1
  %131 = load float, ptr %130, align 4, !tbaa !15
  %132 = fmul float %129, %131
  %133 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %132, ptr %133, align 4, !tbaa !15
  %134 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 0
  store float %135, ptr %136, align 4, !tbaa !11
  %137 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  %138 = load float, ptr %137, align 4, !tbaa !15
  %139 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 1
  store float %138, ptr %139, align 4, !tbaa !15
  call void @r_cnjg(ptr noundef %22, ptr noundef %33)
  %140 = load float, ptr %35, align 4, !tbaa !14
  %141 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  %142 = load float, ptr %141, align 4, !tbaa !11
  %143 = fmul float %140, %142
  %144 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  store float %143, ptr %144, align 4, !tbaa !11
  %145 = load float, ptr %35, align 4, !tbaa !14
  %146 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  %147 = load float, ptr %146, align 4, !tbaa !15
  %148 = fmul float %145, %147
  %149 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  store float %148, ptr %149, align 4, !tbaa !15
  %150 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 0
  %151 = load float, ptr %150, align 4, !tbaa !11
  %152 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = fsub float %151, %153
  %155 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %154, ptr %155, align 4, !tbaa !11
  %156 = getelementptr inbounds %struct.complex, ptr %26, i32 0, i32 1
  %157 = load float, ptr %156, align 4, !tbaa !15
  %158 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %159 = load float, ptr %158, align 4, !tbaa !15
  %160 = fsub float %157, %159
  %161 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %160, ptr %161, align 4, !tbaa !15
  %162 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  %163 = load float, ptr %162, align 4, !tbaa !11
  %164 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  store float %163, ptr %164, align 4, !tbaa !11
  %165 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  %166 = load float, ptr %165, align 4, !tbaa !15
  %167 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  store float %166, ptr %167, align 4, !tbaa !15
  call void @r_cnjg(ptr noundef %21, ptr noundef %26)
  %168 = load float, ptr %36, align 4, !tbaa !14
  %169 = getelementptr inbounds %struct.complex, ptr %33, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !11
  %171 = fmul float %168, %170
  %172 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float %171, ptr %172, align 4, !tbaa !11
  %173 = load float, ptr %36, align 4, !tbaa !14
  %174 = getelementptr inbounds %struct.complex, ptr %33, i32 0, i32 1
  %175 = load float, ptr %174, align 4, !tbaa !15
  %176 = fmul float %173, %175
  %177 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float %176, ptr %177, align 4, !tbaa !15
  %178 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  %181 = load float, ptr %180, align 4, !tbaa !11
  %182 = fadd float %179, %181
  %183 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %182, ptr %183, align 4, !tbaa !11
  %184 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %185 = load float, ptr %184, align 4, !tbaa !15
  %186 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  %187 = load float, ptr %186, align 4, !tbaa !15
  %188 = fadd float %185, %187
  %189 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %188, ptr %189, align 4, !tbaa !15
  %190 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  %191 = load float, ptr %190, align 4, !tbaa !11
  %192 = getelementptr inbounds %struct.complex, ptr %28, i32 0, i32 0
  store float %191, ptr %192, align 4, !tbaa !11
  %193 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  %194 = load float, ptr %193, align 4, !tbaa !15
  %195 = getelementptr inbounds %struct.complex, ptr %28, i32 0, i32 1
  store float %194, ptr %195, align 4, !tbaa !15
  %196 = load float, ptr %32, align 4, !tbaa !14
  %197 = load float, ptr %35, align 4, !tbaa !14
  %198 = load float, ptr %39, align 4, !tbaa !14
  %199 = call float @llvm.fmuladd.f32(float %196, float %197, float %198)
  store float %199, ptr %29, align 4, !tbaa !14
  %200 = load float, ptr %32, align 4, !tbaa !14
  %201 = load float, ptr %36, align 4, !tbaa !14
  %202 = load float, ptr %39, align 4, !tbaa !14
  %203 = fneg float %202
  %204 = call float @llvm.fmuladd.f32(float %200, float %201, float %203)
  store float %204, ptr %30, align 4, !tbaa !14
  %205 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %205, ptr %18, align 8, !tbaa !9
  %206 = load float, ptr %32, align 4, !tbaa !14
  %207 = load float, ptr %29, align 4, !tbaa !14
  %208 = fmul float %206, %207
  %209 = fpext float %208 to double
  %210 = load float, ptr %42, align 4, !tbaa !14
  %211 = getelementptr inbounds %struct.complex, ptr %28, i32 0, i32 0
  %212 = load float, ptr %211, align 4, !tbaa !11
  %213 = fmul float %210, %212
  %214 = fpext float %213 to double
  %215 = load float, ptr %40, align 4, !tbaa !14
  %216 = fpext float %215 to double
  %217 = call double @r_imag(ptr noundef %28)
  %218 = call double @llvm.fmuladd.f64(double %216, double %217, double %214)
  %219 = fadd double %209, %218
  %220 = fptrunc double %219 to float
  store float %220, ptr %19, align 4, !tbaa !14
  %221 = load float, ptr %19, align 4, !tbaa !14
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = load i64, ptr %18, align 8, !tbaa !9
  %224 = getelementptr inbounds %struct.complex, ptr %222, i64 %223
  %225 = getelementptr inbounds %struct.complex, ptr %224, i32 0, i32 0
  store float %221, ptr %225, align 4, !tbaa !11
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = load i64, ptr %18, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.complex, ptr %226, i64 %227
  %229 = getelementptr inbounds %struct.complex, ptr %228, i32 0, i32 1
  store float 0.000000e+00, ptr %229, align 4, !tbaa !15
  %230 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %230, ptr %18, align 8, !tbaa !9
  %231 = load float, ptr %32, align 4, !tbaa !14
  %232 = load float, ptr %30, align 4, !tbaa !14
  %233 = fmul float %231, %232
  %234 = fpext float %233 to double
  %235 = load float, ptr %42, align 4, !tbaa !14
  %236 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %237 = load float, ptr %236, align 4, !tbaa !11
  %238 = fmul float %235, %237
  %239 = fpext float %238 to double
  %240 = load float, ptr %40, align 4, !tbaa !14
  %241 = fpext float %240 to double
  %242 = call double @r_imag(ptr noundef %27)
  %243 = fneg double %241
  %244 = call double @llvm.fmuladd.f64(double %243, double %242, double %239)
  %245 = fsub double %234, %244
  %246 = fptrunc double %245 to float
  store float %246, ptr %19, align 4, !tbaa !14
  %247 = load float, ptr %19, align 4, !tbaa !14
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  %249 = load i64, ptr %18, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.complex, ptr %248, i64 %249
  %251 = getelementptr inbounds %struct.complex, ptr %250, i32 0, i32 0
  store float %247, ptr %251, align 4, !tbaa !11
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  %253 = load i64, ptr %18, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.complex, ptr %252, i64 %253
  %255 = getelementptr inbounds %struct.complex, ptr %254, i32 0, i32 1
  store float 0.000000e+00, ptr %255, align 4, !tbaa !15
  %256 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %256, ptr %18, align 8, !tbaa !9
  %257 = load float, ptr %32, align 4, !tbaa !14
  %258 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 0
  %259 = load float, ptr %258, align 4, !tbaa !11
  %260 = fmul float %257, %259
  %261 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  store float %260, ptr %261, align 4, !tbaa !11
  %262 = load float, ptr %32, align 4, !tbaa !14
  %263 = getelementptr inbounds %struct.complex, ptr %27, i32 0, i32 1
  %264 = load float, ptr %263, align 4, !tbaa !15
  %265 = fmul float %262, %264
  %266 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  store float %265, ptr %266, align 4, !tbaa !15
  call void @r_cnjg(ptr noundef %23, ptr noundef %33)
  %267 = load float, ptr %30, align 4, !tbaa !14
  %268 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  store float %267, ptr %268, align 4, !tbaa !11
  %269 = load float, ptr %38, align 4, !tbaa !14
  %270 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  store float %269, ptr %270, align 4, !tbaa !15
  %271 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  %272 = load float, ptr %271, align 4, !tbaa !11
  %273 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %274 = load float, ptr %273, align 4, !tbaa !11
  %275 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  %276 = load float, ptr %275, align 4, !tbaa !15
  %277 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %278 = load float, ptr %277, align 4, !tbaa !15
  %279 = fmul float %276, %278
  %280 = fneg float %279
  %281 = call float @llvm.fmuladd.f32(float %272, float %274, float %280)
  %282 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  store float %281, ptr %282, align 4, !tbaa !11
  %283 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 0
  %284 = load float, ptr %283, align 4, !tbaa !11
  %285 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 1
  %286 = load float, ptr %285, align 4, !tbaa !15
  %287 = getelementptr inbounds %struct.complex, ptr %23, i32 0, i32 1
  %288 = load float, ptr %287, align 4, !tbaa !15
  %289 = getelementptr inbounds %struct.complex, ptr %24, i32 0, i32 0
  %290 = load float, ptr %289, align 4, !tbaa !11
  %291 = fmul float %288, %290
  %292 = call float @llvm.fmuladd.f32(float %284, float %286, float %291)
  %293 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  store float %292, ptr %293, align 4, !tbaa !15
  %294 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %295 = load float, ptr %294, align 4, !tbaa !11
  %296 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 0
  %297 = load float, ptr %296, align 4, !tbaa !11
  %298 = fadd float %295, %297
  %299 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  store float %298, ptr %299, align 4, !tbaa !11
  %300 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %301 = load float, ptr %300, align 4, !tbaa !15
  %302 = getelementptr inbounds %struct.complex, ptr %22, i32 0, i32 1
  %303 = load float, ptr %302, align 4, !tbaa !15
  %304 = fadd float %301, %303
  %305 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  store float %304, ptr %305, align 4, !tbaa !15
  %306 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 0
  %307 = load float, ptr %306, align 4, !tbaa !11
  %308 = load ptr, ptr %12, align 8, !tbaa !5
  %309 = load i64, ptr %18, align 8, !tbaa !9
  %310 = getelementptr inbounds %struct.complex, ptr %308, i64 %309
  %311 = getelementptr inbounds %struct.complex, ptr %310, i32 0, i32 0
  store float %307, ptr %311, align 4, !tbaa !11
  %312 = getelementptr inbounds %struct.complex, ptr %20, i32 0, i32 1
  %313 = load float, ptr %312, align 4, !tbaa !15
  %314 = load ptr, ptr %12, align 8, !tbaa !5
  %315 = load i64, ptr %18, align 8, !tbaa !9
  %316 = getelementptr inbounds %struct.complex, ptr %314, i64 %315
  %317 = getelementptr inbounds %struct.complex, ptr %316, i32 0, i32 1
  store float %313, ptr %317, align 4, !tbaa !15
  %318 = load ptr, ptr %13, align 8, !tbaa !5
  %319 = load i64, ptr %318, align 8, !tbaa !9
  %320 = load i64, ptr %34, align 8, !tbaa !9
  %321 = add nsw i64 %320, %319
  store i64 %321, ptr %34, align 8, !tbaa !9
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = load i64, ptr %322, align 8, !tbaa !9
  %324 = load i64, ptr %31, align 8, !tbaa !9
  %325 = add nsw i64 %324, %323
  store i64 %325, ptr %31, align 8, !tbaa !9
  br label %326

326:                                              ; preds = %60
  %327 = load i64, ptr %25, align 8, !tbaa !9
  %328 = add nsw i64 %327, 1
  store i64 %328, ptr %25, align 8, !tbaa !9
  br label %56, !llvm.loop !16

329:                                              ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret i32 0
}

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

declare double @r_imag(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, 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 }

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

.lr.ph:                                           ; preds = %8
  %23 = getelementptr inbounds i8, ptr %11, i64 4
  br label %24

24:                                               ; preds = %.lr.ph, %24
  %.093 = phi i64 [ 1, %.lr.ph ], [ %110, %24 ]
  %.08892 = phi i64 [ 1, %.lr.ph ], [ %109, %24 ]
  %.08991 = phi i64 [ 1, %.lr.ph ], [ %107, %24 ]
  %25 = getelementptr inbounds %struct.complex, ptr %21, i64 %.08991
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = getelementptr inbounds %struct.complex, ptr %20, i64 %.08991
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = getelementptr inbounds %struct.complex, ptr %19, i64 %.08991
  %30 = load <2 x float>, ptr %29, align 4, !tbaa !12
  store <2 x float> %30, ptr %16, align 8, !tbaa !12
  %31 = call double @r_imag(ptr noundef nonnull %16) #5
  %32 = fptrunc double %31 to float
  %33 = getelementptr inbounds float, ptr %18, i64 %.08892
  %34 = load float, ptr %33, align 4, !tbaa !12
  %35 = getelementptr inbounds %struct.complex, ptr %17, i64 %.08892
  %36 = load <2 x float>, ptr %35, align 4, !tbaa !12
  store <2 x float> %36, ptr %15, align 8, !tbaa !12
  %37 = call double @r_imag(ptr noundef nonnull %15) #5
  %38 = fptrunc double %37 to float
  %39 = fneg float %38
  %40 = fmul float %32, %39
  %41 = extractelement <2 x float> %30, i64 0
  %42 = extractelement <2 x float> %36, i64 0
  %43 = call float @llvm.fmuladd.f32(float %42, float %41, float %40)
  %44 = fmul float %41, %38
  %45 = load <2 x float>, ptr %16, align 8, !tbaa !12
  %46 = insertelement <2 x float> poison, float %34, i64 0
  %47 = shufflevector <2 x float> %46, <2 x float> poison, <2 x i32> zeroinitializer
  %48 = fmul <2 x float> %47, %45
  store <2 x float> %48, ptr %12, align 8, !tbaa !12
  call void @r_cnjg(ptr noundef nonnull %10, ptr noundef nonnull %15) #5
  %49 = load <2 x float>, ptr %10, align 8, !tbaa !12
  %50 = insertelement <2 x float> poison, float %26, i64 0
  %51 = shufflevector <2 x float> %50, <2 x float> poison, <2 x i32> zeroinitializer
  %52 = fmul <2 x float> %51, %49
  store <2 x float> %52, ptr %9, align 8, !tbaa !12
  %53 = load <2 x float>, ptr %12, align 8, !tbaa !12
  %54 = fsub <2 x float> %53, %52
  store <2 x float> %54, ptr %13, align 8, !tbaa !12
  call void @r_cnjg(ptr noundef nonnull %9, ptr noundef nonnull %12) #5
  %55 = load <2 x float>, ptr %15, align 8, !tbaa !12
  %56 = insertelement <2 x float> poison, float %28, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  %58 = fmul <2 x float> %57, %55
  store <2 x float> %58, ptr %10, align 8, !tbaa !12
  %59 = load <2 x float>, ptr %9, align 8, !tbaa !12
  %60 = fadd <2 x float> %58, %59
  store <2 x float> %60, ptr %14, align 8, !tbaa !12
  %61 = call float @llvm.fmuladd.f32(float %34, float %26, float %43)
  %62 = fneg float %43
  %63 = fmul float %34, %61
  %64 = fpext float %63 to double
  %65 = fmul <2 x float> %36, %60
  %66 = extractelement <2 x float> %65, i64 0
  %67 = fpext float %66 to double
  %68 = fpext float %38 to double
  %69 = call double @r_imag(ptr noundef nonnull %14) #5
  %70 = call double @llvm.fmuladd.f64(double %68, double %69, double %67)
  %71 = fadd double %70, %64
  %72 = fptrunc double %71 to float
  store float %72, ptr %25, align 4, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %25, i64 4
  store float 0.000000e+00, ptr %73, align 4, !tbaa !13
  %74 = load float, ptr %13, align 8, !tbaa !9
  %75 = fmul float %42, %74
  %76 = fpext float %75 to double
  %77 = call double @r_imag(ptr noundef nonnull %13) #5
  %78 = fneg double %68
  %79 = call double @llvm.fmuladd.f64(double %78, double %77, double %76)
  %80 = getelementptr inbounds i8, ptr %27, i64 4
  store float 0.000000e+00, ptr %80, align 4, !tbaa !13
  %81 = load <2 x float>, ptr %13, align 8, !tbaa !12
  %82 = fmul <2 x float> %47, %81
  store <2 x float> %82, ptr %9, align 8, !tbaa !12
  %83 = shufflevector <2 x float> %36, <2 x float> poison, <2 x i32> <i32 poison, i32 0>
  %84 = insertelement <2 x float> %83, float %34, i64 0
  %85 = insertelement <2 x float> %56, float %32, i64 1
  %86 = insertelement <2 x float> poison, float %62, i64 0
  %87 = insertelement <2 x float> %86, float %44, i64 1
  %88 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %84, <2 x float> %85, <2 x float> %87)
  %89 = extractelement <2 x float> %88, i64 0
  %90 = fmul float %34, %89
  %91 = fpext float %90 to double
  %92 = fsub double %91, %79
  %93 = fptrunc double %92 to float
  store float %93, ptr %27, align 4, !tbaa !9
  call void @r_cnjg(ptr noundef nonnull %11, ptr noundef nonnull %15) #5
  %94 = load float, ptr %11, align 4, !tbaa !9
  %95 = load float, ptr %23, align 4, !tbaa !13
  %96 = fneg float %95
  %97 = insertelement <2 x float> poison, float %95, i64 0
  %98 = insertelement <2 x float> %97, float %96, i64 1
  %99 = fmul <2 x float> %88, %98
  %100 = shufflevector <2 x float> %99, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %101 = insertelement <2 x float> poison, float %94, i64 0
  %102 = shufflevector <2 x float> %101, <2 x float> poison, <2 x i32> zeroinitializer
  %103 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %102, <2 x float> %88, <2 x float> %100)
  store <2 x float> %103, ptr %10, align 8, !tbaa !12
  %104 = load <2 x float>, ptr %9, align 8, !tbaa !12
  %105 = fadd <2 x float> %103, %104
  store <2 x float> %105, ptr %29, align 4, !tbaa !12
  %106 = load i64, ptr %4, align 8, !tbaa !5
  %107 = add nsw i64 %106, %.08991
  %108 = load i64, ptr %7, align 8, !tbaa !5
  %109 = add nsw i64 %108, %.08892
  %110 = add nuw i64 %.093, 1
  %exitcond.not = icmp eq i64 %.093, %22
  br i1 %exitcond.not, label %._crit_edge, label %24, !llvm.loop !14

._crit_edge:                                      ; preds = %24, %8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  ret i32 0
}

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

declare double @r_imag(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; 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 float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass