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

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

31:                                               ; preds = %6
  store i32 0, ptr %7, align 4
  store i32 1, ptr %23, align 4
  br label %248

32:                                               ; preds = %6
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call double @scabs1_(ptr noundef %33)
  %35 = fcmp oeq double %34, 0.000000e+00
  br i1 %35, label %36, label %37

36:                                               ; preds = %32
  store i32 0, ptr %7, align 4
  store i32 1, ptr %23, align 4
  br label %248

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

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

45:                                               ; preds = %41
  br label %164

46:                                               ; preds = %41, %37
  store i64 1, ptr %21, align 8, !tbaa !9
  store i64 1, ptr %22, align 8, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %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 !9
  %53 = sub nsw i64 0, %52
  %54 = add nsw i64 %53, 1
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = mul nsw i64 %54, %56
  %58 = add nsw i64 %57, 1
  store i64 %58, ptr %21, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %50, %46
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %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 !9
  %66 = sub nsw i64 0, %65
  %67 = add nsw i64 %66, 1
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = mul nsw i64 %67, %69
  %71 = add nsw i64 %70, 1
  store i64 %71, ptr %22, align 8, !tbaa !9
  br label %72

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

75:                                               ; preds = %160, %72
  %76 = load i64, ptr %20, align 8, !tbaa !9
  %77 = load i64, ptr %14, align 8, !tbaa !9
  %78 = icmp sle i64 %76, %77
  br i1 %78, label %79, label %163

79:                                               ; preds = %75
  %80 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %80, ptr %15, align 8, !tbaa !9
  %81 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %81, ptr %16, align 8, !tbaa !9
  %82 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %82, ptr %17, align 8, !tbaa !9
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.complex, ptr %83, i32 0, i32 0
  %85 = load float, ptr %84, align 4, !tbaa !11
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load i64, ptr %17, align 8, !tbaa !9
  %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 !11
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.complex, ptr %91, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !14
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load i64, ptr %17, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.complex, ptr %94, i64 %95
  %97 = getelementptr inbounds %struct.complex, ptr %96, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !14
  %99 = fmul float %93, %98
  %100 = fneg float %99
  %101 = call float @llvm.fmuladd.f32(float %85, float %90, float %100)
  %102 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  store float %101, ptr %102, align 4, !tbaa !11
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.complex, ptr %103, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !11
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i64, ptr %17, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.complex, ptr %106, i64 %107
  %109 = getelementptr inbounds %struct.complex, ptr %108, i32 0, i32 1
  %110 = load float, ptr %109, align 4, !tbaa !14
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.complex, ptr %111, i32 0, i32 1
  %113 = load float, ptr %112, align 4, !tbaa !14
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load i64, ptr %17, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.complex, ptr %114, i64 %115
  %117 = getelementptr inbounds %struct.complex, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 4, !tbaa !11
  %119 = fmul float %113, %118
  %120 = call float @llvm.fmuladd.f32(float %105, float %110, float %119)
  %121 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  store float %120, ptr %121, align 4, !tbaa !14
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load i64, ptr %16, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.complex, ptr %122, i64 %123
  %125 = getelementptr inbounds %struct.complex, ptr %124, i32 0, i32 0
  %126 = load float, ptr %125, align 4, !tbaa !11
  %127 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  %128 = load float, ptr %127, align 4, !tbaa !11
  %129 = fadd float %126, %128
  %130 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float %129, ptr %130, align 4, !tbaa !11
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i64, ptr %16, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.complex, ptr %131, i64 %132
  %134 = getelementptr inbounds %struct.complex, ptr %133, i32 0, i32 1
  %135 = load float, ptr %134, align 4, !tbaa !14
  %136 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  %137 = load float, ptr %136, align 4, !tbaa !14
  %138 = fadd float %135, %137
  %139 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float %138, ptr %139, align 4, !tbaa !14
  %140 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load i64, ptr %15, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.complex, ptr %142, i64 %143
  %145 = getelementptr inbounds %struct.complex, ptr %144, i32 0, i32 0
  store float %141, ptr %145, align 4, !tbaa !11
  %146 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %147 = load float, ptr %146, align 4, !tbaa !14
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = load i64, ptr %15, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.complex, ptr %148, i64 %149
  %151 = getelementptr inbounds %struct.complex, ptr %150, i32 0, i32 1
  store float %147, ptr %151, align 4, !tbaa !14
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = load i64, ptr %21, align 8, !tbaa !9
  %155 = add nsw i64 %154, %153
  store i64 %155, ptr %21, align 8, !tbaa !9
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = load i64, ptr %156, align 8, !tbaa !9
  %158 = load i64, ptr %22, align 8, !tbaa !9
  %159 = add nsw i64 %158, %157
  store i64 %159, ptr %22, align 8, !tbaa !9
  br label %160

160:                                              ; preds = %79
  %161 = load i64, ptr %20, align 8, !tbaa !9
  %162 = add nsw i64 %161, 1
  store i64 %162, ptr %20, align 8, !tbaa !9
  br label %75, !llvm.loop !15

163:                                              ; preds = %75
  store i32 0, ptr %7, align 4
  store i32 1, ptr %23, align 4
  br label %248

164:                                              ; preds = %45
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = load i64, ptr %165, align 8, !tbaa !9
  store i64 %166, ptr %14, align 8, !tbaa !9
  store i64 1, ptr %20, align 8, !tbaa !9
  br label %167

167:                                              ; preds = %244, %164
  %168 = load i64, ptr %20, align 8, !tbaa !9
  %169 = load i64, ptr %14, align 8, !tbaa !9
  %170 = icmp sle i64 %168, %169
  br i1 %170, label %171, label %247

171:                                              ; preds = %167
  %172 = load i64, ptr %20, align 8, !tbaa !9
  store i64 %172, ptr %15, align 8, !tbaa !9
  %173 = load i64, ptr %20, align 8, !tbaa !9
  store i64 %173, ptr %16, align 8, !tbaa !9
  %174 = load i64, ptr %20, align 8, !tbaa !9
  store i64 %174, ptr %17, align 8, !tbaa !9
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.complex, ptr %175, i32 0, i32 0
  %177 = load float, ptr %176, align 4, !tbaa !11
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = load i64, ptr %17, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.complex, ptr %178, i64 %179
  %181 = getelementptr inbounds %struct.complex, ptr %180, i32 0, i32 0
  %182 = load float, ptr %181, align 4, !tbaa !11
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.complex, ptr %183, i32 0, i32 1
  %185 = load float, ptr %184, align 4, !tbaa !14
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  %187 = load i64, ptr %17, align 8, !tbaa !9
  %188 = getelementptr inbounds %struct.complex, ptr %186, i64 %187
  %189 = getelementptr inbounds %struct.complex, ptr %188, i32 0, i32 1
  %190 = load float, ptr %189, align 4, !tbaa !14
  %191 = fmul float %185, %190
  %192 = fneg float %191
  %193 = call float @llvm.fmuladd.f32(float %177, float %182, float %192)
  %194 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  store float %193, ptr %194, align 4, !tbaa !11
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.complex, ptr %195, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !11
  %198 = load ptr, ptr %10, align 8, !tbaa !5
  %199 = load i64, ptr %17, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.complex, ptr %198, i64 %199
  %201 = getelementptr inbounds %struct.complex, ptr %200, i32 0, i32 1
  %202 = load float, ptr %201, align 4, !tbaa !14
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.complex, ptr %203, i32 0, i32 1
  %205 = load float, ptr %204, align 4, !tbaa !14
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = load i64, ptr %17, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.complex, ptr %206, i64 %207
  %209 = getelementptr inbounds %struct.complex, ptr %208, i32 0, i32 0
  %210 = load float, ptr %209, align 4, !tbaa !11
  %211 = fmul float %205, %210
  %212 = call float @llvm.fmuladd.f32(float %197, float %202, float %211)
  %213 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  store float %212, ptr %213, align 4, !tbaa !14
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = load i64, ptr %16, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.complex, ptr %214, i64 %215
  %217 = getelementptr inbounds %struct.complex, ptr %216, i32 0, i32 0
  %218 = load float, ptr %217, align 4, !tbaa !11
  %219 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 0
  %220 = load float, ptr %219, align 4, !tbaa !11
  %221 = fadd float %218, %220
  %222 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  store float %221, ptr %222, align 4, !tbaa !11
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = load i64, ptr %16, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct.complex, ptr %223, i64 %224
  %226 = getelementptr inbounds %struct.complex, ptr %225, i32 0, i32 1
  %227 = load float, ptr %226, align 4, !tbaa !14
  %228 = getelementptr inbounds %struct.complex, ptr %19, i32 0, i32 1
  %229 = load float, ptr %228, align 4, !tbaa !14
  %230 = fadd float %227, %229
  %231 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  store float %230, ptr %231, align 4, !tbaa !14
  %232 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 0
  %233 = load float, ptr %232, align 4, !tbaa !11
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = load i64, ptr %15, align 8, !tbaa !9
  %236 = getelementptr inbounds %struct.complex, ptr %234, i64 %235
  %237 = getelementptr inbounds %struct.complex, ptr %236, i32 0, i32 0
  store float %233, ptr %237, align 4, !tbaa !11
  %238 = getelementptr inbounds %struct.complex, ptr %18, i32 0, i32 1
  %239 = load float, ptr %238, align 4, !tbaa !14
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = load i64, ptr %15, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.complex, ptr %240, i64 %241
  %243 = getelementptr inbounds %struct.complex, ptr %242, i32 0, i32 1
  store float %239, ptr %243, align 4, !tbaa !14
  br label %244

244:                                              ; preds = %171
  %245 = load i64, ptr %20, align 8, !tbaa !9
  %246 = add nsw i64 %245, 1
  store i64 %246, ptr %20, align 8, !tbaa !9
  br label %167, !llvm.loop !17

247:                                              ; preds = %167
  store i32 0, ptr %7, align 4
  store i32 1, ptr %23, align 4
  br label %248

248:                                              ; preds = %247, %163, %36, %31
  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 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
  %249 = load i32, ptr %7, align 4
  ret i32 %249
}

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

declare double @scabs1_(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, !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 = !{!12, !13, i64 4}
!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 noundef i32 @f2c_caxpy(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4, ptr nocapture noundef readonly %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %4, i64 -8
  %8 = getelementptr inbounds i8, ptr %2, i64 -8
  %9 = load i64, ptr %0, align 8, !tbaa !5
  %10 = icmp slt i64 %9, 1
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %6
  %12 = tail call double @scabs1_(ptr noundef %1) #3
  %13 = fcmp oeq double %12, 0.000000e+00
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %11
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = icmp eq i64 %15, 1
  br i1 %16, label %17, label %thread-pre-split

17:                                               ; preds = %14
  %18 = load i64, ptr %5, align 8, !tbaa !5
  %19 = icmp eq i64 %18, 1
  %.pre.pre94 = load i64, ptr %0, align 8, !tbaa !5
  br i1 %19, label %91, label %.thread

thread-pre-split:                                 ; preds = %14
  %20 = icmp slt i64 %15, 0
  %.pre.pre.pre = load i64, ptr %0, align 8, !tbaa !5
  %21 = sub i64 1, %.pre.pre.pre
  %22 = mul nsw i64 %21, %15
  %23 = add nsw i64 %22, 1
  %.076.ph = select i1 %20, i64 %23, i64 1
  %.pr = load i64, ptr %5, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %17, %thread-pre-split
  %.pre = phi i64 [ %.pre.pre.pre, %thread-pre-split ], [ %.pre.pre94, %17 ]
  %24 = phi i64 [ %.pr, %thread-pre-split ], [ %18, %17 ]
  %.076 = phi i64 [ %.076.ph, %thread-pre-split ], [ 1, %17 ]
  %.not85 = icmp slt i64 %.pre, 1
  br i1 %.not85, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.thread
  %25 = icmp slt i64 %24, 0
  %26 = sub nsw i64 1, %.pre
  %27 = mul nsw i64 %26, %24
  %28 = add nsw i64 %27, 1
  %.0 = select i1 %25, i64 %28, i64 1
  %29 = getelementptr i8, ptr %1, i64 4
  %min.iters.check = icmp ult i64 %.pre, 20
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.lr.ph
  %ident.check = icmp ne i64 %24, 1
  %ident.check98 = icmp ne i64 %15, 1
  %30 = add nsw i64 %.pre, -1
  %31 = shl i64 %.0, 3
  %32 = getelementptr i8, ptr %4, i64 %31
  %scevgep = getelementptr i8, ptr %32, i64 -8
  %mul.result = shl i64 %30, 3
  %mul.overflow = icmp ugt i64 %30, 2305843009213693951
  %33 = getelementptr i8, ptr %scevgep, i64 %mul.result
  %34 = icmp ult ptr %33, %scevgep
  %35 = or i1 %34, %mul.overflow
  %36 = getelementptr i8, ptr %4, i64 %31
  %scevgep99 = getelementptr i8, ptr %36, i64 -4
  %mul.result101 = shl i64 %30, 3
  %37 = getelementptr i8, ptr %scevgep99, i64 %mul.result101
  %38 = icmp ult ptr %37, %scevgep99
  %39 = or i1 %ident.check, %ident.check98
  %40 = or i1 %39, %35
  %41 = or i1 %38, %40
  br i1 %41, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %42 = shl i64 %.0, 3
  %43 = getelementptr i8, ptr %4, i64 %42
  %scevgep103 = getelementptr i8, ptr %43, i64 -8
  %44 = shl i64 %.pre, 3
  %45 = getelementptr i8, ptr %4, i64 %42
  %46 = getelementptr i8, ptr %45, i64 %44
  %scevgep104 = getelementptr i8, ptr %46, i64 -12
  %47 = shl i64 %.076, 3
  %48 = getelementptr i8, ptr %2, i64 %47
  %scevgep105 = getelementptr i8, ptr %48, i64 -8
  %49 = getelementptr i8, ptr %2, i64 %44
  %50 = getelementptr i8, ptr %49, i64 %47
  %scevgep106 = getelementptr i8, ptr %50, i64 -12
  %51 = getelementptr i8, ptr %4, i64 %42
  %scevgep107 = getelementptr i8, ptr %51, i64 -4
  %52 = getelementptr i8, ptr %4, i64 %42
  %53 = getelementptr i8, ptr %52, i64 %44
  %scevgep108 = getelementptr i8, ptr %53, i64 -8
  %scevgep109 = getelementptr i8, ptr %1, i64 8
  %54 = getelementptr i8, ptr %2, i64 %47
  %scevgep110 = getelementptr i8, ptr %54, i64 -4
  %55 = getelementptr i8, ptr %2, i64 %44
  %56 = getelementptr i8, ptr %55, i64 %47
  %scevgep111 = getelementptr i8, ptr %56, i64 -8
  %bound0 = icmp ult ptr %scevgep103, %29
  %bound1 = icmp ugt ptr %scevgep104, %1
  %found.conflict = and i1 %bound0, %bound1
  %bound0112 = icmp ult ptr %scevgep103, %scevgep106
  %bound1113 = icmp ult ptr %scevgep105, %scevgep104
  %found.conflict114 = and i1 %bound0112, %bound1113
  %conflict.rdx = or i1 %found.conflict, %found.conflict114
  %bound0115 = icmp ult ptr %scevgep107, %scevgep109
  %bound1116 = icmp ult ptr %29, %scevgep108
  %found.conflict117 = and i1 %bound0115, %bound1116
  %conflict.rdx118 = or i1 %conflict.rdx, %found.conflict117
  %bound0119 = icmp ult ptr %scevgep107, %scevgep111
  %bound1120 = icmp ult ptr %scevgep110, %scevgep108
  %found.conflict121 = and i1 %bound0119, %bound1120
  %conflict.rdx122 = or i1 %conflict.rdx118, %found.conflict121
  br i1 %conflict.rdx122, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %.pre, 4611686018427387900
  %57 = mul nuw i64 %n.vec, %24
  %ind.end = add i64 %.0, %57
  %58 = mul nuw nsw i64 %n.vec, %15
  %ind.end123 = add i64 %.076, %58
  %ind.end125 = or disjoint i64 %n.vec, 1
  %59 = getelementptr %struct.complex, ptr %8, i64 %.076
  %60 = getelementptr %struct.complex, ptr %7, i64 %.0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %61 = load float, ptr %1, align 4, !tbaa !9, !alias.scope !12
  %broadcast.splatinsert129 = insertelement <4 x float> poison, float %61, i64 0
  %broadcast.splat130 = shufflevector <4 x float> %broadcast.splatinsert129, <4 x float> poison, <4 x i32> zeroinitializer
  %62 = getelementptr %struct.complex, ptr %59, i64 %index
  %wide.vec = load <8 x float>, ptr %62, align 4, !tbaa !15
  %strided.vec = shufflevector <8 x float> %wide.vec, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec128 = shufflevector <8 x float> %wide.vec, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %63 = load float, ptr %29, align 4, !tbaa !16, !alias.scope !17
  %broadcast.splatinsert = insertelement <4 x float> poison, float %63, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %64 = fneg <4 x float> %broadcast.splat
  %65 = fmul <4 x float> %strided.vec128, %64
  %66 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat130, <4 x float> %strided.vec, <4 x float> %65)
  %67 = fmul <4 x float> %strided.vec, %broadcast.splat
  %68 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat130, <4 x float> %strided.vec128, <4 x float> %67)
  %69 = getelementptr %struct.complex, ptr %60, i64 %index
  %wide.vec131 = load <8 x float>, ptr %69, align 4, !tbaa !15
  %strided.vec132 = shufflevector <8 x float> %wide.vec131, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec133 = shufflevector <8 x float> %wide.vec131, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %70 = fadd <4 x float> %strided.vec132, %66
  %71 = fadd <4 x float> %68, %strided.vec133
  %interleaved.vec = shufflevector <4 x float> %70, <4 x float> %71, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
  store <8 x float> %interleaved.vec, ptr %69, align 4, !tbaa !15
  %index.next = add nuw i64 %index, 4
  %72 = icmp eq i64 %index.next, %n.vec
  br i1 %72, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.pre, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph
  %.188.ph = phi i64 [ %.0, %vector.memcheck ], [ %.0, %vector.scevcheck ], [ %.0, %.lr.ph ], [ %ind.end, %middle.block ]
  %.17787.ph = phi i64 [ %.076, %vector.memcheck ], [ %.076, %vector.scevcheck ], [ %.076, %.lr.ph ], [ %ind.end123, %middle.block ]
  %.07886.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %vector.scevcheck ], [ 1, %.lr.ph ], [ %ind.end125, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.188 = phi i64 [ %89, %scalar.ph ], [ %.188.ph, %scalar.ph.preheader ]
  %.17787 = phi i64 [ %88, %scalar.ph ], [ %.17787.ph, %scalar.ph.preheader ]
  %.07886 = phi i64 [ %90, %scalar.ph ], [ %.07886.ph, %scalar.ph.preheader ]
  %73 = load float, ptr %1, align 4, !tbaa !9
  %74 = getelementptr inbounds %struct.complex, ptr %8, i64 %.17787
  %75 = load float, ptr %29, align 4, !tbaa !16
  %76 = fneg float %75
  %77 = getelementptr inbounds %struct.complex, ptr %7, i64 %.188
  %78 = load <2 x float>, ptr %74, align 4, !tbaa !15
  %79 = insertelement <2 x float> poison, float %75, i64 0
  %80 = insertelement <2 x float> %79, float %76, i64 1
  %81 = fmul <2 x float> %78, %80
  %82 = shufflevector <2 x float> %81, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %83 = insertelement <2 x float> poison, float %73, i64 0
  %84 = shufflevector <2 x float> %83, <2 x float> poison, <2 x i32> zeroinitializer
  %85 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %84, <2 x float> %78, <2 x float> %82)
  %86 = load <2 x float>, ptr %77, align 4, !tbaa !15
  %87 = fadd <2 x float> %86, %85
  store <2 x float> %87, ptr %77, align 4, !tbaa !15
  %88 = add nsw i64 %.17787, %15
  %89 = add nsw i64 %.188, %24
  %90 = add nuw i64 %.07886, 1
  %exitcond.not = icmp eq i64 %.07886, %.pre
  br i1 %exitcond.not, label %.loopexit, label %scalar.ph, !llvm.loop !23

91:                                               ; preds = %17
  %.not8389 = icmp slt i64 %.pre.pre94, 1
  br i1 %.not8389, label %.loopexit, label %.lr.ph91

.lr.ph91:                                         ; preds = %91
  %92 = getelementptr inbounds i8, ptr %1, i64 4
  %min.iters.check159 = icmp ult i64 %.pre.pre94, 8
  br i1 %min.iters.check159, label %scalar.ph158.preheader, label %vector.memcheck134

vector.memcheck134:                               ; preds = %.lr.ph91
  %93 = shl i64 %.pre.pre94, 3
  %94 = add i64 %93, -4
  %scevgep135 = getelementptr i8, ptr %4, i64 %94
  %scevgep136 = getelementptr i8, ptr %2, i64 %94
  %scevgep137 = getelementptr i8, ptr %4, i64 4
  %scevgep138 = getelementptr i8, ptr %4, i64 %93
  %scevgep139 = getelementptr i8, ptr %1, i64 8
  %scevgep140 = getelementptr i8, ptr %2, i64 4
  %scevgep141 = getelementptr i8, ptr %2, i64 %93
  %bound0142 = icmp ugt ptr %92, %4
  %bound1143 = icmp ugt ptr %scevgep135, %1
  %found.conflict144 = and i1 %bound0142, %bound1143
  %bound0145 = icmp ugt ptr %scevgep136, %4
  %bound1146 = icmp ugt ptr %scevgep135, %2
  %found.conflict147 = and i1 %bound0145, %bound1146
  %conflict.rdx148 = or i1 %found.conflict144, %found.conflict147
  %bound0149 = icmp ult ptr %scevgep137, %scevgep139
  %bound1150 = icmp ult ptr %92, %scevgep138
  %found.conflict151 = and i1 %bound0149, %bound1150
  %conflict.rdx152 = or i1 %conflict.rdx148, %found.conflict151
  %bound0153 = icmp ult ptr %scevgep137, %scevgep141
  %bound1154 = icmp ult ptr %scevgep140, %scevgep138
  %found.conflict155 = and i1 %bound0153, %bound1154
  %conflict.rdx156 = or i1 %conflict.rdx152, %found.conflict155
  br i1 %conflict.rdx156, label %scalar.ph158.preheader, label %vector.ph160

vector.ph160:                                     ; preds = %vector.memcheck134
  %n.vec162 = and i64 %.pre.pre94, 9223372036854775804
  %ind.end163 = or disjoint i64 %n.vec162, 1
  br label %vector.body165

vector.body165:                                   ; preds = %vector.body165, %vector.ph160
  %index166 = phi i64 [ 0, %vector.ph160 ], [ %index.next179, %vector.body165 ]
  %95 = load float, ptr %1, align 4, !tbaa !9, !alias.scope !24
  %broadcast.splatinsert173 = insertelement <4 x float> poison, float %95, i64 0
  %broadcast.splat174 = shufflevector <4 x float> %broadcast.splatinsert173, <4 x float> poison, <4 x i32> zeroinitializer
  %96 = getelementptr %struct.complex, ptr %2, i64 %index166
  %wide.vec168 = load <8 x float>, ptr %96, align 4, !tbaa !15
  %strided.vec169 = shufflevector <8 x float> %wide.vec168, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec170 = shufflevector <8 x float> %wide.vec168, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %97 = load float, ptr %92, align 4, !tbaa !16, !alias.scope !27
  %broadcast.splatinsert171 = insertelement <4 x float> poison, float %97, i64 0
  %broadcast.splat172 = shufflevector <4 x float> %broadcast.splatinsert171, <4 x float> poison, <4 x i32> zeroinitializer
  %98 = fneg <4 x float> %broadcast.splat172
  %99 = fmul <4 x float> %strided.vec170, %98
  %100 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat174, <4 x float> %strided.vec169, <4 x float> %99)
  %101 = fmul <4 x float> %strided.vec169, %broadcast.splat172
  %102 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat174, <4 x float> %strided.vec170, <4 x float> %101)
  %103 = getelementptr %struct.complex, ptr %4, i64 %index166
  %wide.vec175 = load <8 x float>, ptr %103, align 4, !tbaa !15
  %strided.vec176 = shufflevector <8 x float> %wide.vec175, <8 x float> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec177 = shufflevector <8 x float> %wide.vec175, <8 x float> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %104 = fadd <4 x float> %strided.vec176, %100
  %105 = fadd <4 x float> %102, %strided.vec177
  %interleaved.vec178 = shufflevector <4 x float> %104, <4 x float> %105, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
  store <8 x float> %interleaved.vec178, ptr %103, align 4, !tbaa !15
  %index.next179 = add nuw i64 %index166, 4
  %106 = icmp eq i64 %index.next179, %n.vec162
  br i1 %106, label %middle.block157, label %vector.body165, !llvm.loop !29

middle.block157:                                  ; preds = %vector.body165
  %cmp.n180 = icmp eq i64 %.pre.pre94, %n.vec162
  br i1 %cmp.n180, label %.loopexit, label %scalar.ph158.preheader

scalar.ph158.preheader:                           ; preds = %middle.block157, %vector.memcheck134, %.lr.ph91
  %.17990.ph = phi i64 [ 1, %vector.memcheck134 ], [ 1, %.lr.ph91 ], [ %ind.end163, %middle.block157 ]
  br label %scalar.ph158

scalar.ph158:                                     ; preds = %scalar.ph158.preheader, %scalar.ph158
  %.17990 = phi i64 [ %122, %scalar.ph158 ], [ %.17990.ph, %scalar.ph158.preheader ]
  %107 = load float, ptr %1, align 4, !tbaa !9
  %108 = getelementptr inbounds %struct.complex, ptr %8, i64 %.17990
  %109 = load float, ptr %92, align 4, !tbaa !16
  %110 = fneg float %109
  %111 = getelementptr inbounds %struct.complex, ptr %7, i64 %.17990
  %112 = load <2 x float>, ptr %108, align 4, !tbaa !15
  %113 = insertelement <2 x float> poison, float %109, i64 0
  %114 = insertelement <2 x float> %113, float %110, i64 1
  %115 = fmul <2 x float> %112, %114
  %116 = shufflevector <2 x float> %115, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %117 = insertelement <2 x float> poison, float %107, i64 0
  %118 = shufflevector <2 x float> %117, <2 x float> poison, <2 x i32> zeroinitializer
  %119 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %118, <2 x float> %112, <2 x float> %116)
  %120 = load <2 x float>, ptr %111, align 4, !tbaa !15
  %121 = fadd <2 x float> %120, %119
  store <2 x float> %121, ptr %111, align 4, !tbaa !15
  %122 = add nuw i64 %.17990, 1
  %exitcond93.not = icmp eq i64 %.17990, %.pre.pre94
  br i1 %exitcond93.not, label %.loopexit, label %scalar.ph158, !llvm.loop !30

.loopexit:                                        ; preds = %scalar.ph, %scalar.ph158, %middle.block, %middle.block157, %.thread, %91, %11, %6
  ret i32 0
}

declare double @scabs1_(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #2

; 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>) #2

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 = { "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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 = !{!13}
!13 = distinct !{!13, !14}
!14 = distinct !{!14, !"LVerDomain"}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 4}
!17 = !{!18}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !20, !21}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !20, !21, !22}
!30 = distinct !{!30, !20, !21}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass