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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.doublecomplex = type { double, double }

; Function Attrs: nounwind uwtable
define dso_local i32 @f2c_zdscal(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %struct.doublecomplex, align 8
  %14 = alloca %struct.doublecomplex, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.doublecomplex, ptr %18, i32 -1
  store ptr %19, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = icmp sle i64 %21, 0
  br i1 %22, label %27, label %23

23:                                               ; preds = %4
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = icmp sle i64 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %23, %4
  store i32 0, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %167

28:                                               ; preds = %23
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = icmp eq i64 %30, 1
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  br label %102

33:                                               ; preds = %28
  store i64 1, ptr %16, align 8, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %35, ptr %10, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %98, %33
  %37 = load i64, ptr %15, align 8, !tbaa !9
  %38 = load i64, ptr %10, align 8, !tbaa !9
  %39 = icmp sle i64 %37, %38
  br i1 %39, label %40, label %101

40:                                               ; preds = %36
  %41 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %41, ptr %11, align 8, !tbaa !9
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 0
  store double %43, ptr %44, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 1
  store double 0.000000e+00, ptr %45, align 8, !tbaa !15
  %46 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %46, ptr %12, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 0
  %48 = load double, ptr %47, align 8, !tbaa !13
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load i64, ptr %12, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.doublecomplex, ptr %49, i64 %50
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %51, i32 0, i32 0
  %53 = load double, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 1
  %55 = load double, ptr %54, align 8, !tbaa !15
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i64, ptr %12, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.doublecomplex, ptr %56, i64 %57
  %59 = getelementptr inbounds %struct.doublecomplex, ptr %58, i32 0, i32 1
  %60 = load double, ptr %59, align 8, !tbaa !15
  %61 = fmul double %55, %60
  %62 = fneg double %61
  %63 = call double @llvm.fmuladd.f64(double %48, double %53, double %62)
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  store double %63, ptr %64, align 8, !tbaa !13
  %65 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 0
  %66 = load double, ptr %65, align 8, !tbaa !13
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i64, ptr %12, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %67, i64 %68
  %70 = getelementptr inbounds %struct.doublecomplex, ptr %69, i32 0, i32 1
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 1
  %73 = load double, ptr %72, align 8, !tbaa !15
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.doublecomplex, ptr %74, i64 %75
  %77 = getelementptr inbounds %struct.doublecomplex, ptr %76, i32 0, i32 0
  %78 = load double, ptr %77, align 8, !tbaa !13
  %79 = fmul double %73, %78
  %80 = call double @llvm.fmuladd.f64(double %66, double %71, double %79)
  %81 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  store double %80, ptr %81, align 8, !tbaa !15
  %82 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %83 = load double, ptr %82, align 8, !tbaa !13
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i64, ptr %11, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.doublecomplex, ptr %84, i64 %85
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %86, i32 0, i32 0
  store double %83, ptr %87, align 8, !tbaa !13
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %89 = load double, ptr %88, align 8, !tbaa !15
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i64, ptr %11, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.doublecomplex, ptr %90, i64 %91
  %93 = getelementptr inbounds %struct.doublecomplex, ptr %92, i32 0, i32 1
  store double %89, ptr %93, align 8, !tbaa !15
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = load i64, ptr %16, align 8, !tbaa !9
  %97 = add nsw i64 %96, %95
  store i64 %97, ptr %16, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %40
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %15, align 8, !tbaa !9
  br label %36, !llvm.loop !16

101:                                              ; preds = %36
  store i32 0, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %167

102:                                              ; preds = %32
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  store i64 %104, ptr %10, align 8, !tbaa !9
  store i64 1, ptr %15, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %163, %102
  %106 = load i64, ptr %15, align 8, !tbaa !9
  %107 = load i64, ptr %10, align 8, !tbaa !9
  %108 = icmp sle i64 %106, %107
  br i1 %108, label %109, label %166

109:                                              ; preds = %105
  %110 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %110, ptr %11, align 8, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load double, ptr %111, align 8, !tbaa !11
  %113 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 0
  store double %112, ptr %113, align 8, !tbaa !13
  %114 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 1
  store double 0.000000e+00, ptr %114, align 8, !tbaa !15
  %115 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %115, ptr %12, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 0
  %117 = load double, ptr %116, align 8, !tbaa !13
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = load i64, ptr %12, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %118, i64 %119
  %121 = getelementptr inbounds %struct.doublecomplex, ptr %120, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !13
  %123 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 1
  %124 = load double, ptr %123, align 8, !tbaa !15
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i64, ptr %12, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %125, i64 %126
  %128 = getelementptr inbounds %struct.doublecomplex, ptr %127, i32 0, i32 1
  %129 = load double, ptr %128, align 8, !tbaa !15
  %130 = fmul double %124, %129
  %131 = fneg double %130
  %132 = call double @llvm.fmuladd.f64(double %117, double %122, double %131)
  %133 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  store double %132, ptr %133, align 8, !tbaa !13
  %134 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 0
  %135 = load double, ptr %134, align 8, !tbaa !13
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load i64, ptr %12, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %136, i64 %137
  %139 = getelementptr inbounds %struct.doublecomplex, ptr %138, i32 0, i32 1
  %140 = load double, ptr %139, align 8, !tbaa !15
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %14, i32 0, i32 1
  %142 = load double, ptr %141, align 8, !tbaa !15
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load i64, ptr %12, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.doublecomplex, ptr %143, i64 %144
  %146 = getelementptr inbounds %struct.doublecomplex, ptr %145, i32 0, i32 0
  %147 = load double, ptr %146, align 8, !tbaa !13
  %148 = fmul double %142, %147
  %149 = call double @llvm.fmuladd.f64(double %135, double %140, double %148)
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  store double %149, ptr %150, align 8, !tbaa !15
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %152 = load double, ptr %151, align 8, !tbaa !13
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i64, ptr %11, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %153, i64 %154
  %156 = getelementptr inbounds %struct.doublecomplex, ptr %155, i32 0, i32 0
  store double %152, ptr %156, align 8, !tbaa !13
  %157 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %158 = load double, ptr %157, align 8, !tbaa !15
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i64, ptr %11, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.doublecomplex, ptr %159, i64 %160
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %161, i32 0, i32 1
  store double %158, ptr %162, align 8, !tbaa !15
  br label %163

163:                                              ; preds = %109
  %164 = load i64, ptr %15, align 8, !tbaa !9
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %15, align 8, !tbaa !9
  br label %105, !llvm.loop !18

166:                                              ; preds = %105
  store i32 0, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %167

167:                                              ; preds = %166, %101, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %168 = load i32, ptr %5, align 4
  ret i32 %168
}

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

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

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

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


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

%struct.doublecomplex = type { double, double }

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local noundef i32 @f2c_zdscal(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %2, i64 -16
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = icmp slt i64 %6, 1
  br i1 %7, label %.loopexit, label %8

8:                                                ; preds = %4
  %9 = load i64, ptr %3, align 8, !tbaa !5
  %10 = icmp slt i64 %9, 1
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %8
  %12 = icmp eq i64 %9, 1
  br i1 %12, label %.lr.ph65.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %11
  %xtraiter = and i64 %6, 1
  %13 = icmp eq i64 %6, 1
  br i1 %13, label %.loopexit.loopexit104.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %6, 9223372036854775806
  br label %.lr.ph

.lr.ph65.preheader:                               ; preds = %11
  %min.iters.check86 = icmp ult i64 %6, 4
  br i1 %min.iters.check86, label %.lr.ph65.preheader103, label %vector.memcheck78

.lr.ph65.preheader103:                            ; preds = %middle.block84, %vector.memcheck78, %.lr.ph65.preheader
  %.164.ph = phi i64 [ 1, %vector.memcheck78 ], [ 1, %.lr.ph65.preheader ], [ %ind.end90, %middle.block84 ]
  %xtraiter105 = and i64 %6, 1
  %lcmp.mod106.not = icmp eq i64 %xtraiter105, 0
  br i1 %lcmp.mod106.not, label %.lr.ph65.prol.loopexit, label %.lr.ph65.prol

.lr.ph65.prol:                                    ; preds = %.lr.ph65.preheader103
  %14 = load double, ptr %1, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %.164.ph
  %16 = load <2 x double>, ptr %15, align 8, !tbaa !9
  %17 = fmul <2 x double> %16, <double 0.000000e+00, double -0.000000e+00>
  %18 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %19 = insertelement <2 x double> poison, double %14, i64 0
  %20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> zeroinitializer
  %21 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %20, <2 x double> %16, <2 x double> %18)
  store <2 x double> %21, ptr %15, align 8, !tbaa !9
  %22 = add nuw i64 %.164.ph, 1
  br label %.lr.ph65.prol.loopexit

.lr.ph65.prol.loopexit:                           ; preds = %.lr.ph65.prol, %.lr.ph65.preheader103
  %.164.unr = phi i64 [ %.164.ph, %.lr.ph65.preheader103 ], [ %22, %.lr.ph65.prol ]
  %23 = icmp eq i64 %6, %.164.ph
  br i1 %23, label %.loopexit, label %.lr.ph65

vector.memcheck78:                                ; preds = %.lr.ph65.preheader
  %24 = shl i64 %6, 4
  %scevgep79 = getelementptr i8, ptr %2, i64 %24
  %scevgep80 = getelementptr i8, ptr %1, i64 8
  %bound081 = icmp ugt ptr %scevgep80, %2
  %bound182 = icmp ugt ptr %scevgep79, %1
  %found.conflict83 = and i1 %bound081, %bound182
  br i1 %found.conflict83, label %.lr.ph65.preheader103, label %vector.ph87

vector.ph87:                                      ; preds = %vector.memcheck78
  %n.vec89 = and i64 %6, 9223372036854775806
  %ind.end90 = or i64 %6, 1
  br label %vector.body92

vector.body92:                                    ; preds = %vector.body92, %vector.ph87
  %index93 = phi i64 [ 0, %vector.ph87 ], [ %index.next101, %vector.body92 ]
  %25 = load double, ptr %1, align 8, !tbaa !9, !alias.scope !11
  %broadcast.splatinsert98 = insertelement <2 x double> poison, double %25, i64 0
  %broadcast.splat99 = shufflevector <2 x double> %broadcast.splatinsert98, <2 x double> poison, <2 x i32> zeroinitializer
  %26 = getelementptr %struct.doublecomplex, ptr %2, i64 %index93
  %wide.vec95 = load <4 x double>, ptr %26, align 8, !tbaa !9
  %strided.vec96 = shufflevector <4 x double> %wide.vec95, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec97 = shufflevector <4 x double> %wide.vec95, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %27 = fmul <2 x double> %strided.vec97, <double -0.000000e+00, double -0.000000e+00>
  %28 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat99, <2 x double> %strided.vec96, <2 x double> %27)
  %29 = fmul <2 x double> %strided.vec96, zeroinitializer
  %30 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat99, <2 x double> %strided.vec97, <2 x double> %29)
  %interleaved.vec100 = shufflevector <2 x double> %28, <2 x double> %30, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec100, ptr %26, align 8, !tbaa !9
  %index.next101 = add nuw i64 %index93, 2
  %31 = icmp eq i64 %index.next101, %n.vec89
  br i1 %31, label %middle.block84, label %vector.body92, !llvm.loop !14

middle.block84:                                   ; preds = %vector.body92
  %cmp.n102 = icmp eq i64 %6, %n.vec89
  br i1 %cmp.n102, label %.loopexit, label %.lr.ph65.preheader103

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.062 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %49, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %32 = load double, ptr %1, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %.062
  %34 = load <2 x double>, ptr %33, align 8, !tbaa !9
  %35 = fmul <2 x double> %34, <double 0.000000e+00, double -0.000000e+00>
  %36 = shufflevector <2 x double> %35, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %37 = insertelement <2 x double> poison, double %32, i64 0
  %38 = shufflevector <2 x double> %37, <2 x double> poison, <2 x i32> zeroinitializer
  %39 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %38, <2 x double> %34, <2 x double> %36)
  store <2 x double> %39, ptr %33, align 8, !tbaa !9
  %40 = add nuw nsw i64 %.062, %9
  %41 = load double, ptr %1, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %40
  %43 = load <2 x double>, ptr %42, align 8, !tbaa !9
  %44 = fmul <2 x double> %43, <double 0.000000e+00, double -0.000000e+00>
  %45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %46 = insertelement <2 x double> poison, double %41, i64 0
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
  %48 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %47, <2 x double> %43, <2 x double> %45)
  store <2 x double> %48, ptr %42, align 8, !tbaa !9
  %49 = add nuw nsw i64 %40, %9
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit104.unr-lcssa, label %.lr.ph, !llvm.loop !18

.lr.ph65:                                         ; preds = %.lr.ph65.prol.loopexit, %.lr.ph65
  %.164 = phi i64 [ %67, %.lr.ph65 ], [ %.164.unr, %.lr.ph65.prol.loopexit ]
  %50 = load double, ptr %1, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %.164
  %52 = load <2 x double>, ptr %51, align 8, !tbaa !9
  %53 = fmul <2 x double> %52, <double 0.000000e+00, double -0.000000e+00>
  %54 = shufflevector <2 x double> %53, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %55 = insertelement <2 x double> poison, double %50, i64 0
  %56 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> zeroinitializer
  %57 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %56, <2 x double> %52, <2 x double> %54)
  store <2 x double> %57, ptr %51, align 8, !tbaa !9
  %58 = add nuw i64 %.164, 1
  %59 = load double, ptr %1, align 8, !tbaa !9
  %60 = getelementptr %struct.doublecomplex, ptr %2, i64 %.164
  %61 = load <2 x double>, ptr %60, align 8, !tbaa !9
  %62 = fmul <2 x double> %61, <double 0.000000e+00, double -0.000000e+00>
  %63 = shufflevector <2 x double> %62, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %64 = insertelement <2 x double> poison, double %59, i64 0
  %65 = shufflevector <2 x double> %64, <2 x double> poison, <2 x i32> zeroinitializer
  %66 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %65, <2 x double> %61, <2 x double> %63)
  store <2 x double> %66, ptr %60, align 8, !tbaa !9
  %67 = add nuw i64 %.164, 2
  %exitcond67.not.1 = icmp eq i64 %58, %6
  br i1 %exitcond67.not.1, label %.loopexit, label %.lr.ph65, !llvm.loop !19

.loopexit.loopexit104.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %.062.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %49, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.loopexit.loopexit104.unr-lcssa
  %68 = load double, ptr %1, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %.062.unr
  %70 = load <2 x double>, ptr %69, align 8, !tbaa !9
  %71 = fmul <2 x double> %70, <double 0.000000e+00, double -0.000000e+00>
  %72 = shufflevector <2 x double> %71, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %73 = insertelement <2 x double> poison, double %68, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %74, <2 x double> %70, <2 x double> %72)
  store <2 x double> %75, ptr %69, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph.epil, %.loopexit.loopexit104.unr-lcssa, %.lr.ph65.prol.loopexit, %.lr.ph65, %middle.block84, %4, %8
  ret i32 0
}

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

attributes #0 = { nofree norecurse nosync nounwind memory(argmem: readwrite) 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 speculatable willreturn memory(none) }

!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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15, !16}
!19 = distinct !{!19, !15, !16}


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