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

; 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_zscal(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 i64, align 8
  %15 = alloca i64, align 8
  %16 = 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 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.doublecomplex, ptr %17, i32 -1
  store ptr %18, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = icmp sle i64 %20, 0
  br i1 %21, label %26, label %22

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

26:                                               ; preds = %22, %4
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %166

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

31:                                               ; preds = %27
  br label %101

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

35:                                               ; preds = %97, %32
  %36 = load i64, ptr %14, align 8, !tbaa !9
  %37 = load i64, ptr %10, align 8, !tbaa !9
  %38 = icmp sle i64 %36, %37
  br i1 %38, label %39, label %100

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

97:                                               ; preds = %39
  %98 = load i64, ptr %14, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %14, align 8, !tbaa !9
  br label %35, !llvm.loop !15

100:                                              ; preds = %35
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %166

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

104:                                              ; preds = %162, %101
  %105 = load i64, ptr %14, align 8, !tbaa !9
  %106 = load i64, ptr %10, align 8, !tbaa !9
  %107 = icmp sle i64 %105, %106
  br i1 %107, label %108, label %165

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

162:                                              ; preds = %108
  %163 = load i64, ptr %14, align 8, !tbaa !9
  %164 = add nsw i64 %163, 1
  store i64 %164, ptr %14, align 8, !tbaa !9
  br label %104, !llvm.loop !17

165:                                              ; preds = %104
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %166

166:                                              ; preds = %165, %100, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %167 = load i32, ptr %5, align 4
  ret i32 %167
}

; 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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 8}
!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.doublecomplex = type { double, double }

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local noundef i32 @f2c_zscal(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
  %13 = getelementptr i8, ptr %1, i64 8
  br i1 %12, label %.lr.ph64.preheader, label %.lr.ph

.lr.ph64.preheader:                               ; preds = %11
  %min.iters.check98 = icmp ult i64 %6, 6
  br i1 %min.iters.check98, label %.lr.ph64.preheader117, label %vector.memcheck84

.lr.ph64.preheader117:                            ; preds = %middle.block96, %vector.memcheck84, %.lr.ph64.preheader
  %.163.ph = phi i64 [ 1, %vector.memcheck84 ], [ 1, %.lr.ph64.preheader ], [ %ind.end102, %middle.block96 ]
  br label %.lr.ph64

vector.memcheck84:                                ; preds = %.lr.ph64.preheader
  %14 = shl i64 %6, 4
  %15 = getelementptr i8, ptr %2, i64 %14
  %scevgep85 = getelementptr i8, ptr %15, i64 -8
  %scevgep86 = getelementptr i8, ptr %2, i64 8
  %scevgep87 = getelementptr i8, ptr %2, i64 %14
  %scevgep88 = getelementptr i8, ptr %1, i64 16
  %bound089 = icmp ugt ptr %13, %2
  %bound190 = icmp ugt ptr %scevgep85, %1
  %found.conflict91 = and i1 %bound089, %bound190
  %bound092 = icmp ult ptr %scevgep86, %scevgep88
  %bound193 = icmp ult ptr %13, %scevgep87
  %found.conflict94 = and i1 %bound092, %bound193
  %conflict.rdx95 = or i1 %found.conflict91, %found.conflict94
  br i1 %conflict.rdx95, label %.lr.ph64.preheader117, label %vector.ph99

vector.ph99:                                      ; preds = %vector.memcheck84
  %n.vec101 = and i64 %6, 9223372036854775806
  %ind.end102 = or i64 %6, 1
  br label %vector.body104

vector.body104:                                   ; preds = %vector.body104, %vector.ph99
  %index105 = phi i64 [ 0, %vector.ph99 ], [ %index.next115, %vector.body104 ]
  %16 = load double, ptr %1, align 8, !tbaa !9, !alias.scope !12
  %broadcast.splatinsert112 = insertelement <2 x double> poison, double %16, i64 0
  %broadcast.splat113 = shufflevector <2 x double> %broadcast.splatinsert112, <2 x double> poison, <2 x i32> zeroinitializer
  %17 = getelementptr %struct.doublecomplex, ptr %2, i64 %index105
  %wide.vec107 = load <4 x double>, ptr %17, align 8, !tbaa !15
  %strided.vec108 = shufflevector <4 x double> %wide.vec107, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec109 = shufflevector <4 x double> %wide.vec107, <4 x double> poison, <2 x i32> <i32 1, i32 3>
  %18 = load double, ptr %13, align 8, !tbaa !16, !alias.scope !17
  %broadcast.splatinsert110 = insertelement <2 x double> poison, double %18, i64 0
  %broadcast.splat111 = shufflevector <2 x double> %broadcast.splatinsert110, <2 x double> poison, <2 x i32> zeroinitializer
  %19 = fneg <2 x double> %broadcast.splat111
  %20 = fmul <2 x double> %strided.vec109, %19
  %21 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat113, <2 x double> %strided.vec108, <2 x double> %20)
  %22 = fmul <2 x double> %strided.vec108, %broadcast.splat111
  %23 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat113, <2 x double> %strided.vec109, <2 x double> %22)
  %interleaved.vec114 = shufflevector <2 x double> %21, <2 x double> %23, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec114, ptr %17, align 8, !tbaa !15
  %index.next115 = add nuw i64 %index105, 2
  %24 = icmp eq i64 %index.next115, %n.vec101
  br i1 %24, label %middle.block96, label %vector.body104, !llvm.loop !19

middle.block96:                                   ; preds = %vector.body104
  %cmp.n116 = icmp eq i64 %6, %n.vec101
  br i1 %cmp.n116, label %.loopexit, label %.lr.ph64.preheader117

.lr.ph:                                           ; preds = %11, %.lr.ph
  %.061 = phi i64 [ %37, %.lr.ph ], [ 1, %11 ]
  %.05260 = phi i64 [ %38, %.lr.ph ], [ 1, %11 ]
  %25 = load double, ptr %1, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %.061
  %27 = load double, ptr %13, align 8, !tbaa !16
  %28 = fneg double %27
  %29 = load <2 x double>, ptr %26, align 8, !tbaa !15
  %30 = insertelement <2 x double> poison, double %27, i64 0
  %31 = insertelement <2 x double> %30, double %28, i64 1
  %32 = fmul <2 x double> %29, %31
  %33 = shufflevector <2 x double> %32, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %34 = insertelement <2 x double> poison, double %25, i64 0
  %35 = shufflevector <2 x double> %34, <2 x double> poison, <2 x i32> zeroinitializer
  %36 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %35, <2 x double> %29, <2 x double> %33)
  store <2 x double> %36, ptr %26, align 8, !tbaa !15
  %37 = add nuw nsw i64 %.061, %9
  %38 = add nuw i64 %.05260, 1
  %exitcond.not = icmp eq i64 %.05260, %6
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !23

.lr.ph64:                                         ; preds = %.lr.ph64.preheader117, %.lr.ph64
  %.163 = phi i64 [ %51, %.lr.ph64 ], [ %.163.ph, %.lr.ph64.preheader117 ]
  %39 = load double, ptr %1, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.doublecomplex, ptr %5, i64 %.163
  %41 = load double, ptr %13, align 8, !tbaa !16
  %42 = fneg double %41
  %43 = load <2 x double>, ptr %40, align 8, !tbaa !15
  %44 = insertelement <2 x double> poison, double %41, i64 0
  %45 = insertelement <2 x double> %44, double %42, i64 1
  %46 = fmul <2 x double> %43, %45
  %47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %48 = insertelement <2 x double> poison, double %39, i64 0
  %49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
  %50 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> %43, <2 x double> %47)
  store <2 x double> %50, ptr %40, align 8, !tbaa !15
  %51 = add nuw i64 %.163, 1
  %exitcond66.not = icmp eq i64 %.163, %6
  br i1 %exitcond66.not, label %.loopexit, label %.lr.ph64, !llvm.loop !24

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph64, %middle.block96, %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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!13}
!13 = distinct !{!13, !14}
!14 = distinct !{!14, !"LVerDomain"}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 8}
!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 = distinct !{!24, !20, !21}


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