; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/BLAS/SRC (cdotc)

; 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 void @f2c_cdotc(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 i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %struct.complex, align 4
  %16 = alloca %struct.complex, align 4
  %17 = alloca %struct.complex, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %struct.complex, align 4
  %22 = alloca i32, 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 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  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 8, 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
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.complex, ptr %23, i32 -1
  store ptr %24, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.complex, ptr %25, i32 -1
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  store float 0.000000e+00, ptr %27, align 4, !tbaa !9
  %28 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  store float 0.000000e+00, ptr %28, align 4, !tbaa !12
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.complex, ptr %29, i32 0, i32 0
  store float 0.000000e+00, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.complex, ptr %31, i32 0, i32 1
  store float 0.000000e+00, ptr %32, align 4, !tbaa !12
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !13
  %35 = icmp sle i64 %34, 0
  br i1 %35, label %36, label %37

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

37:                                               ; preds = %6
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !13
  %40 = icmp eq i64 %39, 1
  br i1 %40, label %41, label %46

41:                                               ; preds = %37
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !13
  %44 = icmp eq i64 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  br label %157

46:                                               ; preds = %41, %37
  store i64 1, ptr %19, align 8, !tbaa !13
  store i64 1, ptr %20, align 8, !tbaa !13
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !13
  %49 = icmp slt i64 %48, 0
  br i1 %49, label %50, label %59

50:                                               ; preds = %46
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i64, ptr %51, align 8, !tbaa !13
  %53 = sub nsw i64 0, %52
  %54 = add nsw i64 %53, 1
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load i64, ptr %55, align 8, !tbaa !13
  %57 = mul nsw i64 %54, %56
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %19, align 8, !tbaa !13
  br label %59

59:                                               ; preds = %50, %46
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !13
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %63, label %72

63:                                               ; preds = %59
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i64, ptr %64, align 8, !tbaa !13
  %66 = sub nsw i64 0, %65
  %67 = add nsw i64 %66, 1
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !13
  %70 = mul nsw i64 %67, %69
  %71 = add nsw i64 %70, 1
  store i64 %71, ptr %20, align 8, !tbaa !13
  br label %72

72:                                               ; preds = %63, %59
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !13
  store i64 %74, ptr %13, align 8, !tbaa !13
  store i64 1, ptr %18, align 8, !tbaa !13
  br label %75

75:                                               ; preds = %145, %72
  %76 = load i64, ptr %18, align 8, !tbaa !13
  %77 = load i64, ptr %13, align 8, !tbaa !13
  %78 = icmp sle i64 %76, %77
  br i1 %78, label %79, label %148

79:                                               ; preds = %75
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i64, ptr %19, align 8, !tbaa !13
  %82 = getelementptr inbounds %struct.complex, ptr %80, i64 %81
  call void @r_cnjg(ptr noundef %17, ptr noundef %82)
  %83 = load i64, ptr %20, align 8, !tbaa !13
  store i64 %83, ptr %14, align 8, !tbaa !13
  %84 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !9
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = load i64, ptr %14, align 8, !tbaa !13
  %88 = getelementptr inbounds %struct.complex, ptr %86, i64 %87
  %89 = getelementptr inbounds %struct.complex, ptr %88, i32 0, i32 0
  %90 = load float, ptr %89, align 4, !tbaa !9
  %91 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !12
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i64, ptr %14, align 8, !tbaa !13
  %95 = getelementptr inbounds %struct.complex, ptr %93, i64 %94
  %96 = getelementptr inbounds %struct.complex, ptr %95, i32 0, i32 1
  %97 = load float, ptr %96, align 4, !tbaa !12
  %98 = fmul float %92, %97
  %99 = fneg float %98
  %100 = call float @llvm.fmuladd.f32(float %85, float %90, float %99)
  %101 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 0
  store float %100, ptr %101, align 4, !tbaa !9
  %102 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load i64, ptr %14, align 8, !tbaa !13
  %106 = getelementptr inbounds %struct.complex, ptr %104, i64 %105
  %107 = getelementptr inbounds %struct.complex, ptr %106, i32 0, i32 1
  %108 = load float, ptr %107, align 4, !tbaa !12
  %109 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %110 = load float, ptr %109, align 4, !tbaa !12
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = load i64, ptr %14, align 8, !tbaa !13
  %113 = getelementptr inbounds %struct.complex, ptr %111, i64 %112
  %114 = getelementptr inbounds %struct.complex, ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !9
  %116 = fmul float %110, %115
  %117 = call float @llvm.fmuladd.f32(float %103, float %108, float %116)
  %118 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 1
  store float %117, ptr %118, align 4, !tbaa !12
  %119 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %120 = load float, ptr %119, align 4, !tbaa !9
  %121 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 0
  %122 = load float, ptr %121, align 4, !tbaa !9
  %123 = fadd float %120, %122
  %124 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  store float %123, ptr %124, align 4, !tbaa !9
  %125 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !12
  %127 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 1
  %128 = load float, ptr %127, align 4, !tbaa !12
  %129 = fadd float %126, %128
  %130 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  store float %129, ptr %130, align 4, !tbaa !12
  %131 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  %132 = load float, ptr %131, align 4, !tbaa !9
  %133 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  store float %132, ptr %133, align 4, !tbaa !9
  %134 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  %135 = load float, ptr %134, align 4, !tbaa !12
  %136 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  store float %135, ptr %136, align 4, !tbaa !12
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !13
  %139 = load i64, ptr %19, align 8, !tbaa !13
  %140 = add nsw i64 %139, %138
  store i64 %140, ptr %19, align 8, !tbaa !13
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load i64, ptr %141, align 8, !tbaa !13
  %143 = load i64, ptr %20, align 8, !tbaa !13
  %144 = add nsw i64 %143, %142
  store i64 %144, ptr %20, align 8, !tbaa !13
  br label %145

145:                                              ; preds = %79
  %146 = load i64, ptr %18, align 8, !tbaa !13
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %18, align 8, !tbaa !13
  br label %75, !llvm.loop !15

148:                                              ; preds = %75
  %149 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %150 = load float, ptr %149, align 4, !tbaa !9
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.complex, ptr %151, i32 0, i32 0
  store float %150, ptr %152, align 4, !tbaa !9
  %153 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %154 = load float, ptr %153, align 4, !tbaa !12
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.complex, ptr %155, i32 0, i32 1
  store float %154, ptr %156, align 4, !tbaa !12
  store i32 1, ptr %22, align 4
  br label %234

157:                                              ; preds = %45
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load i64, ptr %158, align 8, !tbaa !13
  store i64 %159, ptr %13, align 8, !tbaa !13
  store i64 1, ptr %18, align 8, !tbaa !13
  br label %160

160:                                              ; preds = %222, %157
  %161 = load i64, ptr %18, align 8, !tbaa !13
  %162 = load i64, ptr %13, align 8, !tbaa !13
  %163 = icmp sle i64 %161, %162
  br i1 %163, label %164, label %225

164:                                              ; preds = %160
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = load i64, ptr %18, align 8, !tbaa !13
  %167 = getelementptr inbounds %struct.complex, ptr %165, i64 %166
  call void @r_cnjg(ptr noundef %17, ptr noundef %167)
  %168 = load i64, ptr %18, align 8, !tbaa !13
  store i64 %168, ptr %14, align 8, !tbaa !13
  %169 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %170 = load float, ptr %169, align 4, !tbaa !9
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load i64, ptr %14, align 8, !tbaa !13
  %173 = getelementptr inbounds %struct.complex, ptr %171, i64 %172
  %174 = getelementptr inbounds %struct.complex, ptr %173, i32 0, i32 0
  %175 = load float, ptr %174, align 4, !tbaa !9
  %176 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %177 = load float, ptr %176, align 4, !tbaa !12
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = load i64, ptr %14, align 8, !tbaa !13
  %180 = getelementptr inbounds %struct.complex, ptr %178, i64 %179
  %181 = getelementptr inbounds %struct.complex, ptr %180, i32 0, i32 1
  %182 = load float, ptr %181, align 4, !tbaa !12
  %183 = fmul float %177, %182
  %184 = fneg float %183
  %185 = call float @llvm.fmuladd.f32(float %170, float %175, float %184)
  %186 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 0
  store float %185, ptr %186, align 4, !tbaa !9
  %187 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 0
  %188 = load float, ptr %187, align 4, !tbaa !9
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i64, ptr %14, align 8, !tbaa !13
  %191 = getelementptr inbounds %struct.complex, ptr %189, i64 %190
  %192 = getelementptr inbounds %struct.complex, ptr %191, i32 0, i32 1
  %193 = load float, ptr %192, align 4, !tbaa !12
  %194 = getelementptr inbounds %struct.complex, ptr %17, i32 0, i32 1
  %195 = load float, ptr %194, align 4, !tbaa !12
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load i64, ptr %14, align 8, !tbaa !13
  %198 = getelementptr inbounds %struct.complex, ptr %196, i64 %197
  %199 = getelementptr inbounds %struct.complex, ptr %198, i32 0, i32 0
  %200 = load float, ptr %199, align 4, !tbaa !9
  %201 = fmul float %195, %200
  %202 = call float @llvm.fmuladd.f32(float %188, float %193, float %201)
  %203 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 1
  store float %202, ptr %203, align 4, !tbaa !12
  %204 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %205 = load float, ptr %204, align 4, !tbaa !9
  %206 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 0
  %207 = load float, ptr %206, align 4, !tbaa !9
  %208 = fadd float %205, %207
  %209 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  store float %208, ptr %209, align 4, !tbaa !9
  %210 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %211 = load float, ptr %210, align 4, !tbaa !12
  %212 = getelementptr inbounds %struct.complex, ptr %16, i32 0, i32 1
  %213 = load float, ptr %212, align 4, !tbaa !12
  %214 = fadd float %211, %213
  %215 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  store float %214, ptr %215, align 4, !tbaa !12
  %216 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 0
  %217 = load float, ptr %216, align 4, !tbaa !9
  %218 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  store float %217, ptr %218, align 4, !tbaa !9
  %219 = getelementptr inbounds %struct.complex, ptr %15, i32 0, i32 1
  %220 = load float, ptr %219, align 4, !tbaa !12
  %221 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  store float %220, ptr %221, align 4, !tbaa !12
  br label %222

222:                                              ; preds = %164
  %223 = load i64, ptr %18, align 8, !tbaa !13
  %224 = add nsw i64 %223, 1
  store i64 %224, ptr %18, align 8, !tbaa !13
  br label %160, !llvm.loop !17

225:                                              ; preds = %160
  %226 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 0
  %227 = load float, ptr %226, align 4, !tbaa !9
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.complex, ptr %228, i32 0, i32 0
  store float %227, ptr %229, align 4, !tbaa !9
  %230 = getelementptr inbounds %struct.complex, ptr %21, i32 0, i32 1
  %231 = load float, ptr %230, align 4, !tbaa !12
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.complex, ptr %232, i32 0, i32 1
  store float %231, ptr %233, align 4, !tbaa !12
  store i32 1, ptr %22, align 4
  br label %234

234:                                              ; preds = %225, %148, %36
  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 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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

%struct.complex = type { float, float }

; Function Attrs: nounwind uwtable
define dso_local void @f2c_cdotc(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5) local_unnamed_addr #0 {
  %7 = alloca %struct.complex, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %8 = getelementptr inbounds i8, ptr %4, i64 -8
  %9 = getelementptr inbounds i8, ptr %2, i64 -8
  store <2 x float> zeroinitializer, ptr %0, align 4, !tbaa !5
  %10 = load i64, ptr %1, align 8, !tbaa !9
  %11 = icmp slt i64 %10, 1
  br i1 %11, label %68, label %12

12:                                               ; preds = %6
  %13 = load i64, ptr %3, align 8, !tbaa !9
  %14 = icmp eq i64 %13, 1
  br i1 %14, label %15, label %thread-pre-split

15:                                               ; preds = %12
  %16 = load i64, ptr %5, align 8, !tbaa !9
  %17 = icmp eq i64 %16, 1
  br i1 %17, label %.lr.ph82, label %.lr.ph

.lr.ph82:                                         ; preds = %15
  %18 = getelementptr inbounds i8, ptr %7, i64 4
  br label %50

thread-pre-split:                                 ; preds = %12
  %19 = icmp slt i64 %13, 0
  %20 = sub nsw i64 1, %10
  %21 = mul nsw i64 %13, %20
  %22 = add nuw nsw i64 %21, 1
  %.063.ph = select i1 %19, i64 %22, i64 1
  %.pr = load i64, ptr %5, align 8, !tbaa !9
  br label %.lr.ph

.lr.ph:                                           ; preds = %thread-pre-split, %15
  %23 = phi i64 [ %.pr, %thread-pre-split ], [ %16, %15 ]
  %.063 = phi i64 [ %.063.ph, %thread-pre-split ], [ 1, %15 ]
  %24 = icmp slt i64 %23, 0
  %25 = sub nsw i64 1, %10
  %26 = mul nsw i64 %23, %25
  %27 = add nuw nsw i64 %26, 1
  %.0 = select i1 %24, i64 %27, i64 1
  %28 = getelementptr inbounds i8, ptr %7, i64 4
  br label %29

29:                                               ; preds = %.lr.ph, %29
  %.174 = phi i64 [ %.0, %.lr.ph ], [ %48, %29 ]
  %.16473 = phi i64 [ %.063, %.lr.ph ], [ %46, %29 ]
  %.06572 = phi i64 [ 1, %.lr.ph ], [ %49, %29 ]
  %30 = phi <2 x float> [ zeroinitializer, %.lr.ph ], [ %44, %29 ]
  %31 = getelementptr inbounds %struct.complex, ptr %9, i64 %.16473
  call void @r_cnjg(ptr noundef nonnull %7, ptr noundef nonnull %31) #4
  %32 = load float, ptr %7, align 4, !tbaa !11
  %33 = getelementptr inbounds %struct.complex, ptr %8, i64 %.174
  %34 = load float, ptr %28, align 4, !tbaa !13
  %35 = fneg float %34
  %36 = load <2 x float>, ptr %33, align 4, !tbaa !5
  %37 = insertelement <2 x float> poison, float %34, i64 0
  %38 = insertelement <2 x float> %37, float %35, i64 1
  %39 = fmul <2 x float> %36, %38
  %40 = shufflevector <2 x float> %39, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %41 = insertelement <2 x float> poison, float %32, i64 0
  %42 = shufflevector <2 x float> %41, <2 x float> poison, <2 x i32> zeroinitializer
  %43 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %42, <2 x float> %36, <2 x float> %40)
  %44 = fadd <2 x float> %30, %43
  %45 = load i64, ptr %3, align 8, !tbaa !9
  %46 = add nsw i64 %45, %.16473
  %47 = load i64, ptr %5, align 8, !tbaa !9
  %48 = add nsw i64 %47, %.174
  %49 = add nuw i64 %.06572, 1
  %exitcond.not = icmp eq i64 %.06572, %10
  br i1 %exitcond.not, label %.sink.split, label %29, !llvm.loop !14

50:                                               ; preds = %.lr.ph82, %50
  %.16679 = phi i64 [ 1, %.lr.ph82 ], [ %66, %50 ]
  %51 = phi <2 x float> [ zeroinitializer, %.lr.ph82 ], [ %65, %50 ]
  %52 = getelementptr inbounds %struct.complex, ptr %9, i64 %.16679
  call void @r_cnjg(ptr noundef nonnull %7, ptr noundef nonnull %52) #4
  %53 = load float, ptr %7, align 4, !tbaa !11
  %54 = getelementptr inbounds %struct.complex, ptr %8, i64 %.16679
  %55 = load float, ptr %18, align 4, !tbaa !13
  %56 = fneg float %55
  %57 = load <2 x float>, ptr %54, align 4, !tbaa !5
  %58 = insertelement <2 x float> poison, float %55, i64 0
  %59 = insertelement <2 x float> %58, float %56, i64 1
  %60 = fmul <2 x float> %57, %59
  %61 = shufflevector <2 x float> %60, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %62 = insertelement <2 x float> poison, float %53, i64 0
  %63 = shufflevector <2 x float> %62, <2 x float> poison, <2 x i32> zeroinitializer
  %64 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %63, <2 x float> %57, <2 x float> %61)
  %65 = fadd <2 x float> %51, %64
  %66 = add nuw i64 %.16679, 1
  %exitcond89.not = icmp eq i64 %.16679, %10
  br i1 %exitcond89.not, label %.sink.split, label %50, !llvm.loop !16

.sink.split:                                      ; preds = %29, %50
  %67 = phi <2 x float> [ %65, %50 ], [ %44, %29 ]
  store <2 x float> %67, ptr %0, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %.sink.split, %6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #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

declare void @r_cnjg(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 <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #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 = { "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 = !{!"float", !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, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 4}
!13 = !{!12, !6, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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