; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ/1402(FFT模板题).ll (Z4initPcS_)

; 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 { double, double }

@len = external dso_local global i32, align 4
@va = external dso_local global [500005 x %struct.Complex], align 16
@vb = external dso_local global [500005 x %struct.Complex], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z4initPcS_(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = call i64 @strlen(ptr noundef %8) #4
  %10 = trunc i64 %9 to i32
  store i32 %10, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call i64 @strlen(ptr noundef %11) #4
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %6, align 4, !tbaa !9
  store i32 1, ptr @len, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %26, %2
  %15 = load i32, ptr @len, align 4, !tbaa !9
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = mul nsw i32 2, %16
  %18 = icmp slt i32 %15, %17
  br i1 %18, label %24, label %19

19:                                               ; preds = %14
  %20 = load i32, ptr @len, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = mul nsw i32 2, %21
  %23 = icmp slt i32 %20, %22
  br label %24

24:                                               ; preds = %19, %14
  %25 = phi i1 [ true, %14 ], [ %23, %19 ]
  br i1 %25, label %26, label %29

26:                                               ; preds = %24
  %27 = load i32, ptr @len, align 4, !tbaa !9
  %28 = shl i32 %27, 1
  store i32 %28, ptr @len, align 4, !tbaa !9
  br label %14, !llvm.loop !11

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %54, %29
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %57

34:                                               ; preds = %30
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = sub nsw i32 %36, %37
  %39 = sub nsw i32 %38, 1
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %35, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !13
  %43 = sext i8 %42 to i32
  %44 = sub nsw i32 %43, 48
  %45 = sitofp i32 %44 to double
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.Complex, ptr %48, i32 0, i32 0
  store double %45, ptr %49, align 16, !tbaa !14
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.Complex, ptr %52, i32 0, i32 1
  store double 0.000000e+00, ptr %53, align 8, !tbaa !17
  br label %54

54:                                               ; preds = %34
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %7, align 4, !tbaa !9
  br label %30, !llvm.loop !18

57:                                               ; preds = %30
  br label %58

58:                                               ; preds = %62, %57
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = load i32, ptr @len, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %73

62:                                               ; preds = %58
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.Complex, ptr %65, i32 0, i32 1
  store double 0.000000e+00, ptr %66, align 8, !tbaa !17
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %68
  %70 = getelementptr inbounds %struct.Complex, ptr %69, i32 0, i32 0
  store double 0.000000e+00, ptr %70, align 16, !tbaa !14
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !9
  br label %58, !llvm.loop !19

73:                                               ; preds = %58
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %98, %73
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %78, label %101

78:                                               ; preds = %74
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = sub nsw i32 %80, %81
  %83 = sub nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %79, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !13
  %87 = sext i8 %86 to i32
  %88 = sub nsw i32 %87, 48
  %89 = sitofp i32 %88 to double
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %91
  %93 = getelementptr inbounds %struct.Complex, ptr %92, i32 0, i32 0
  store double %89, ptr %93, align 16, !tbaa !14
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %95
  %97 = getelementptr inbounds %struct.Complex, ptr %96, i32 0, i32 1
  store double 0.000000e+00, ptr %97, align 8, !tbaa !17
  br label %98

98:                                               ; preds = %78
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %7, align 4, !tbaa !9
  br label %74, !llvm.loop !20

101:                                              ; preds = %74
  br label %102

102:                                              ; preds = %106, %101
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = load i32, ptr @len, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %106, label %117

106:                                              ; preds = %102
  %107 = load i32, ptr %7, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %108
  %110 = getelementptr inbounds %struct.Complex, ptr %109, i32 0, i32 1
  store double 0.000000e+00, ptr %110, align 8, !tbaa !17
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %112
  %114 = getelementptr inbounds %struct.Complex, ptr %113, i32 0, i32 0
  store double 0.000000e+00, ptr %114, align 16, !tbaa !14
  %115 = load i32, ptr %7, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %7, align 4, !tbaa !9
  br label %102, !llvm.loop !21

117:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS7Complex", !16, i64 0, !16, i64 8}
!16 = !{!"double", !7, i64 0}
!17 = !{!15, !16, i64 8}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


; 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 { double, double }

@len = external dso_local local_unnamed_addr global i32, align 4
@va = external dso_local local_unnamed_addr global [500005 x %struct.Complex], align 16
@vb = external dso_local local_unnamed_addr global [500005 x %struct.Complex], align 16

; Function Attrs: mustprogress nofree nounwind memory(write, argmem: read, inaccessiblemem: none) uwtable
define dso_local void @_Z4initPcS_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #4
  %4 = trunc i64 %3 to i32
  %5 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #4
  %.fr = freeze i64 %5
  %6 = trunc i64 %.fr to i32
  %7 = shl nsw i32 %4, 1
  %8 = shl i32 %6, 1
  %invariant.smax = tail call i32 @llvm.smax.i32(i32 %7, i32 %8)
  br label %9

9:                                                ; preds = %9, %2
  %storemerge = phi i32 [ 1, %2 ], [ %11, %9 ]
  %10 = icmp slt i32 %storemerge, %invariant.smax
  %11 = shl i32 %storemerge, 1
  br i1 %10, label %9, label %.preheader31, !llvm.loop !5

.preheader31:                                     ; preds = %9
  store i32 %storemerge, ptr @len, align 4, !tbaa !7
  %12 = icmp sgt i32 %4, 0
  br i1 %12, label %.lr.ph.preheader, label %.preheader30

.lr.ph.preheader:                                 ; preds = %.preheader31
  %13 = and i64 %3, 2147483647
  %wide.trip.count = and i64 %3, 2147483647
  %14 = getelementptr i8, ptr %0, i64 %13
  %min.iters.check = icmp ult i64 %wide.trip.count, 4
  br i1 %min.iters.check, label %.lr.ph.preheader77, label %vector.memcheck

.lr.ph.preheader77:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %15 = sub i64 %3, %indvars.iv.ph
  %.neg = add nsw i64 %indvars.iv.ph, 1
  %xtraiter = and i64 %15, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader77
  %16 = xor i64 %indvars.iv.ph, -1
  %17 = getelementptr i8, ptr %14, i64 %16
  %18 = load i8, ptr %17, align 1, !tbaa !11
  %19 = sext i8 %18 to i32
  %20 = add nsw i32 %19, -48
  %21 = sitofp i32 %20 to double
  %22 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %indvars.iv.ph
  store double %21, ptr %22, align 16, !tbaa !12
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  store double 0.000000e+00, ptr %23, align 8, !tbaa !15
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader77
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader77 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %24 = icmp eq i64 %wide.trip.count, %.neg
  br i1 %24, label %.preheader30, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %25 = shl nuw nsw i64 %wide.trip.count, 4
  %scevgep56 = getelementptr i8, ptr @va, i64 %25
  %bound0 = icmp ugt ptr %14, @va
  %bound1 = icmp ugt ptr %scevgep56, %0
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader77, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.mod.vf = and i64 %3, 1
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  %invariant.gep = getelementptr i8, ptr %14, i64 -1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %26 = xor i64 %index, -1
  %gep = getelementptr i8, ptr %invariant.gep, i64 %26
  %wide.load = load <2 x i8>, ptr %gep, align 1, !tbaa !11, !alias.scope !16
  %reverse = shufflevector <2 x i8> %wide.load, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
  %27 = sext <2 x i8> %reverse to <2 x i32>
  %28 = add nsw <2 x i32> %27, <i32 -48, i32 -48>
  %29 = sitofp <2 x i32> %28 to <2 x double>
  %30 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %index
  %interleaved.vec = shufflevector <2 x double> %29, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %30, align 16, !tbaa !19
  %index.next = add nuw i64 %index, 2
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %.preheader30, label %.lr.ph.preheader77

.preheader30:                                     ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.preheader31
  %.0.lcssa = phi i32 [ 0, %.preheader31 ], [ %4, %middle.block ], [ %4, %.lr.ph ], [ %4, %.lr.ph.prol.loopexit ]
  %32 = icmp slt i32 %.0.lcssa, %storemerge
  br i1 %32, label %.lr.ph35.preheader, label %.preheader29

.lr.ph35.preheader:                               ; preds = %.preheader30
  %33 = zext nneg i32 %.0.lcssa to i64
  %34 = shl nuw nsw i64 %33, 4
  %scevgep = getelementptr i8, ptr @va, i64 %34
  %35 = xor i32 %.0.lcssa, -1
  %36 = add i32 %storemerge, %35
  %37 = zext i32 %36 to i64
  %38 = shl nuw nsw i64 %37, 4
  %39 = add nuw nsw i64 %38, 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep, i8 0, i64 %39, i1 false), !tbaa !19
  br label %.preheader29

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %40 = xor i64 %indvars.iv, -1
  %41 = getelementptr i8, ptr %14, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = sext i8 %42 to i32
  %44 = add nsw i32 %43, -48
  %45 = sitofp i32 %44 to double
  %46 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %indvars.iv
  store double %45, ptr %46, align 16, !tbaa !12
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  store double 0.000000e+00, ptr %47, align 8, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = sub i64 -2, %indvars.iv
  %49 = getelementptr i8, ptr %14, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !11
  %51 = sext i8 %50 to i32
  %52 = add nsw i32 %51, -48
  %53 = sitofp i32 %52 to double
  %54 = getelementptr inbounds [500005 x %struct.Complex], ptr @va, i64 0, i64 %indvars.iv.next
  store double %53, ptr %54, align 16, !tbaa !12
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  store double 0.000000e+00, ptr %55, align 8, !tbaa !15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.preheader30, label %.lr.ph, !llvm.loop !23

.preheader29:                                     ; preds = %.lr.ph35.preheader, %.preheader30
  %56 = icmp sgt i32 %6, 0
  br i1 %56, label %.lr.ph37.preheader, label %.preheader

.lr.ph37.preheader:                               ; preds = %.preheader29
  %57 = and i64 %.fr, 2147483647
  %wide.trip.count50 = and i64 %.fr, 2147483647
  %58 = getelementptr i8, ptr %1, i64 %57
  %min.iters.check64 = icmp ult i64 %wide.trip.count50, 4
  br i1 %min.iters.check64, label %.lr.ph37.preheader76, label %vector.memcheck57

.lr.ph37.preheader76:                             ; preds = %middle.block62, %vector.memcheck57, %.lr.ph37.preheader
  %indvars.iv47.ph = phi i64 [ 0, %vector.memcheck57 ], [ 0, %.lr.ph37.preheader ], [ %n.vec67, %middle.block62 ]
  %59 = sub i64 %.fr, %indvars.iv47.ph
  %.neg80 = add nsw i64 %indvars.iv47.ph, 1
  %xtraiter78 = and i64 %59, 1
  %lcmp.mod79.not = icmp eq i64 %xtraiter78, 0
  br i1 %lcmp.mod79.not, label %.lr.ph37.prol.loopexit, label %.lr.ph37.prol

.lr.ph37.prol:                                    ; preds = %.lr.ph37.preheader76
  %60 = xor i64 %indvars.iv47.ph, -1
  %61 = getelementptr i8, ptr %58, i64 %60
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = sext i8 %62 to i32
  %64 = add nsw i32 %63, -48
  %65 = sitofp i32 %64 to double
  %66 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %indvars.iv47.ph
  store double %65, ptr %66, align 16, !tbaa !12
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  store double 0.000000e+00, ptr %67, align 8, !tbaa !15
  %indvars.iv.next48.prol = add nuw nsw i64 %indvars.iv47.ph, 1
  br label %.lr.ph37.prol.loopexit

.lr.ph37.prol.loopexit:                           ; preds = %.lr.ph37.prol, %.lr.ph37.preheader76
  %indvars.iv47.unr = phi i64 [ %indvars.iv47.ph, %.lr.ph37.preheader76 ], [ %indvars.iv.next48.prol, %.lr.ph37.prol ]
  %68 = icmp eq i64 %wide.trip.count50, %.neg80
  br i1 %68, label %.preheader, label %.lr.ph37

vector.memcheck57:                                ; preds = %.lr.ph37.preheader
  %69 = shl nuw nsw i64 %wide.trip.count50, 4
  %scevgep58 = getelementptr i8, ptr @vb, i64 %69
  %bound059 = icmp ugt ptr %58, @vb
  %bound160 = icmp ugt ptr %scevgep58, %1
  %found.conflict61 = and i1 %bound059, %bound160
  br i1 %found.conflict61, label %.lr.ph37.preheader76, label %vector.ph65

vector.ph65:                                      ; preds = %vector.memcheck57
  %n.mod.vf66 = and i64 %.fr, 1
  %n.vec67 = sub nsw i64 %wide.trip.count50, %n.mod.vf66
  %invariant.gep81 = getelementptr i8, ptr %58, i64 -1
  br label %vector.body69

vector.body69:                                    ; preds = %vector.body69, %vector.ph65
  %index70 = phi i64 [ 0, %vector.ph65 ], [ %index.next74, %vector.body69 ]
  %70 = xor i64 %index70, -1
  %gep82 = getelementptr i8, ptr %invariant.gep81, i64 %70
  %wide.load71 = load <2 x i8>, ptr %gep82, align 1, !tbaa !11, !alias.scope !24
  %reverse72 = shufflevector <2 x i8> %wide.load71, <2 x i8> poison, <2 x i32> <i32 1, i32 0>
  %71 = sext <2 x i8> %reverse72 to <2 x i32>
  %72 = add nsw <2 x i32> %71, <i32 -48, i32 -48>
  %73 = sitofp <2 x i32> %72 to <2 x double>
  %74 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %index70
  %interleaved.vec73 = shufflevector <2 x double> %73, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec73, ptr %74, align 16, !tbaa !19
  %index.next74 = add nuw i64 %index70, 2
  %75 = icmp eq i64 %index.next74, %n.vec67
  br i1 %75, label %middle.block62, label %vector.body69, !llvm.loop !27

middle.block62:                                   ; preds = %vector.body69
  %cmp.n75 = icmp eq i64 %n.mod.vf66, 0
  br i1 %cmp.n75, label %.preheader, label %.lr.ph37.preheader76

.preheader:                                       ; preds = %.lr.ph37.prol.loopexit, %.lr.ph37, %middle.block62, %.preheader29
  %.2.lcssa = phi i32 [ 0, %.preheader29 ], [ %6, %middle.block62 ], [ %6, %.lr.ph37 ], [ %6, %.lr.ph37.prol.loopexit ]
  %76 = icmp slt i32 %.2.lcssa, %storemerge
  br i1 %76, label %.lr.ph40.preheader, label %._crit_edge

.lr.ph40.preheader:                               ; preds = %.preheader
  %77 = zext nneg i32 %.2.lcssa to i64
  %78 = shl nuw nsw i64 %77, 4
  %scevgep52 = getelementptr i8, ptr @vb, i64 %78
  %79 = xor i32 %.2.lcssa, -1
  %80 = add i32 %storemerge, %79
  %81 = zext i32 %80 to i64
  %82 = shl nuw nsw i64 %81, 4
  %83 = add nuw nsw i64 %82, 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %scevgep52, i8 0, i64 %83, i1 false), !tbaa !19
  br label %._crit_edge

.lr.ph37:                                         ; preds = %.lr.ph37.prol.loopexit, %.lr.ph37
  %indvars.iv47 = phi i64 [ %indvars.iv.next48.1, %.lr.ph37 ], [ %indvars.iv47.unr, %.lr.ph37.prol.loopexit ]
  %84 = xor i64 %indvars.iv47, -1
  %85 = getelementptr i8, ptr %58, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = sext i8 %86 to i32
  %88 = add nsw i32 %87, -48
  %89 = sitofp i32 %88 to double
  %90 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %indvars.iv47
  store double %89, ptr %90, align 16, !tbaa !12
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  store double 0.000000e+00, ptr %91, align 8, !tbaa !15
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %92 = sub i64 -2, %indvars.iv47
  %93 = getelementptr i8, ptr %58, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = sext i8 %94 to i32
  %96 = add nsw i32 %95, -48
  %97 = sitofp i32 %96 to double
  %98 = getelementptr inbounds [500005 x %struct.Complex], ptr @vb, i64 0, i64 %indvars.iv.next48
  store double %97, ptr %98, align 16, !tbaa !12
  %99 = getelementptr inbounds i8, ptr %98, i64 8
  store double 0.000000e+00, ptr %99, align 8, !tbaa !15
  %indvars.iv.next48.1 = add nuw nsw i64 %indvars.iv47, 2
  %exitcond51.not.1 = icmp eq i64 %indvars.iv.next48.1, %wide.trip.count50
  br i1 %exitcond51.not.1, label %.preheader, label %.lr.ph37, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph40.preheader, %.preheader
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { mustprogress nofree nounwind memory(write, argmem: read, inaccessiblemem: none) 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 nofree nounwind willreturn memory(argmem: read) "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind willreturn memory(read) }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!9, !9, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS7Complex", !14, i64 0, !14, i64 8}
!14 = !{!"double", !9, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !6, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !6, !21}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = distinct !{!27, !6, !21, !22}
!28 = distinct !{!28, !6, !21}


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