; LLVM IR from sp-nitech/SPTK :: third_party/WORLD/fft_world.ll (ZN4sptk5world8bitrv216EPd)

; 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"

; 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 @_ZN4sptk5world8bitrv216EPd(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #2
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 2
  %29 = load double, ptr %28, align 8, !tbaa !9
  store double %29, ptr %3, align 8, !tbaa !9
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 3
  %32 = load double, ptr %31, align 8, !tbaa !9
  store double %32, ptr %4, align 8, !tbaa !9
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %33, i64 4
  %35 = load double, ptr %34, align 8, !tbaa !9
  store double %35, ptr %5, align 8, !tbaa !9
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i64 5
  %38 = load double, ptr %37, align 8, !tbaa !9
  store double %38, ptr %6, align 8, !tbaa !9
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i64 6
  %41 = load double, ptr %40, align 8, !tbaa !9
  store double %41, ptr %7, align 8, !tbaa !9
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 7
  %44 = load double, ptr %43, align 8, !tbaa !9
  store double %44, ptr %8, align 8, !tbaa !9
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !9
  store double %47, ptr %9, align 8, !tbaa !9
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 9
  %50 = load double, ptr %49, align 8, !tbaa !9
  store double %50, ptr %10, align 8, !tbaa !9
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds double, ptr %51, i64 10
  %53 = load double, ptr %52, align 8, !tbaa !9
  store double %53, ptr %11, align 8, !tbaa !9
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %54, i64 11
  %56 = load double, ptr %55, align 8, !tbaa !9
  store double %56, ptr %12, align 8, !tbaa !9
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i64 14
  %59 = load double, ptr %58, align 8, !tbaa !9
  store double %59, ptr %13, align 8, !tbaa !9
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i64 15
  %62 = load double, ptr %61, align 8, !tbaa !9
  store double %62, ptr %14, align 8, !tbaa !9
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 16
  %65 = load double, ptr %64, align 8, !tbaa !9
  store double %65, ptr %15, align 8, !tbaa !9
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 17
  %68 = load double, ptr %67, align 8, !tbaa !9
  store double %68, ptr %16, align 8, !tbaa !9
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 20
  %71 = load double, ptr %70, align 8, !tbaa !9
  store double %71, ptr %17, align 8, !tbaa !9
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 21
  %74 = load double, ptr %73, align 8, !tbaa !9
  store double %74, ptr %18, align 8, !tbaa !9
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %75, i64 22
  %77 = load double, ptr %76, align 8, !tbaa !9
  store double %77, ptr %19, align 8, !tbaa !9
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 23
  %80 = load double, ptr %79, align 8, !tbaa !9
  store double %80, ptr %20, align 8, !tbaa !9
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i64 24
  %83 = load double, ptr %82, align 8, !tbaa !9
  store double %83, ptr %21, align 8, !tbaa !9
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 25
  %86 = load double, ptr %85, align 8, !tbaa !9
  store double %86, ptr %22, align 8, !tbaa !9
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 26
  %89 = load double, ptr %88, align 8, !tbaa !9
  store double %89, ptr %23, align 8, !tbaa !9
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 27
  %92 = load double, ptr %91, align 8, !tbaa !9
  store double %92, ptr %24, align 8, !tbaa !9
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 28
  %95 = load double, ptr %94, align 8, !tbaa !9
  store double %95, ptr %25, align 8, !tbaa !9
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 29
  %98 = load double, ptr %97, align 8, !tbaa !9
  store double %98, ptr %26, align 8, !tbaa !9
  %99 = load double, ptr %15, align 8, !tbaa !9
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds double, ptr %100, i64 2
  store double %99, ptr %101, align 8, !tbaa !9
  %102 = load double, ptr %16, align 8, !tbaa !9
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds double, ptr %103, i64 3
  store double %102, ptr %104, align 8, !tbaa !9
  %105 = load double, ptr %9, align 8, !tbaa !9
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds double, ptr %106, i64 4
  store double %105, ptr %107, align 8, !tbaa !9
  %108 = load double, ptr %10, align 8, !tbaa !9
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds double, ptr %109, i64 5
  store double %108, ptr %110, align 8, !tbaa !9
  %111 = load double, ptr %21, align 8, !tbaa !9
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds double, ptr %112, i64 6
  store double %111, ptr %113, align 8, !tbaa !9
  %114 = load double, ptr %22, align 8, !tbaa !9
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds double, ptr %115, i64 7
  store double %114, ptr %116, align 8, !tbaa !9
  %117 = load double, ptr %5, align 8, !tbaa !9
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %118, i64 8
  store double %117, ptr %119, align 8, !tbaa !9
  %120 = load double, ptr %6, align 8, !tbaa !9
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds double, ptr %121, i64 9
  store double %120, ptr %122, align 8, !tbaa !9
  %123 = load double, ptr %17, align 8, !tbaa !9
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds double, ptr %124, i64 10
  store double %123, ptr %125, align 8, !tbaa !9
  %126 = load double, ptr %18, align 8, !tbaa !9
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds double, ptr %127, i64 11
  store double %126, ptr %128, align 8, !tbaa !9
  %129 = load double, ptr %25, align 8, !tbaa !9
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds double, ptr %130, i64 14
  store double %129, ptr %131, align 8, !tbaa !9
  %132 = load double, ptr %26, align 8, !tbaa !9
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  %134 = getelementptr inbounds double, ptr %133, i64 15
  store double %132, ptr %134, align 8, !tbaa !9
  %135 = load double, ptr %3, align 8, !tbaa !9
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 16
  store double %135, ptr %137, align 8, !tbaa !9
  %138 = load double, ptr %4, align 8, !tbaa !9
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 17
  store double %138, ptr %140, align 8, !tbaa !9
  %141 = load double, ptr %11, align 8, !tbaa !9
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds double, ptr %142, i64 20
  store double %141, ptr %143, align 8, !tbaa !9
  %144 = load double, ptr %12, align 8, !tbaa !9
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 21
  store double %144, ptr %146, align 8, !tbaa !9
  %147 = load double, ptr %23, align 8, !tbaa !9
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds double, ptr %148, i64 22
  store double %147, ptr %149, align 8, !tbaa !9
  %150 = load double, ptr %24, align 8, !tbaa !9
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %151, i64 23
  store double %150, ptr %152, align 8, !tbaa !9
  %153 = load double, ptr %7, align 8, !tbaa !9
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 24
  store double %153, ptr %155, align 8, !tbaa !9
  %156 = load double, ptr %8, align 8, !tbaa !9
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  %158 = getelementptr inbounds double, ptr %157, i64 25
  store double %156, ptr %158, align 8, !tbaa !9
  %159 = load double, ptr %19, align 8, !tbaa !9
  %160 = load ptr, ptr %2, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 26
  store double %159, ptr %161, align 8, !tbaa !9
  %162 = load double, ptr %20, align 8, !tbaa !9
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds double, ptr %163, i64 27
  store double %162, ptr %164, align 8, !tbaa !9
  %165 = load double, ptr %13, align 8, !tbaa !9
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds double, ptr %166, i64 28
  store double %165, ptr %167, align 8, !tbaa !9
  %168 = load double, ptr %14, align 8, !tbaa !9
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds double, ptr %169, i64 29
  store double %168, ptr %170, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret void
}

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 }

!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 = !{!"double", !7, i64 0}


; 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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @_ZN4sptk5world8bitrv216EPd(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = getelementptr inbounds i8, ptr %0, i64 128
  %9 = getelementptr inbounds i8, ptr %0, i64 160
  %10 = getelementptr inbounds i8, ptr %0, i64 176
  %11 = getelementptr inbounds i8, ptr %0, i64 192
  %12 = getelementptr inbounds i8, ptr %0, i64 208
  %13 = getelementptr inbounds i8, ptr %0, i64 224
  %14 = load <2 x double>, ptr %8, align 8, !tbaa !5
  %15 = load <2 x double>, ptr %5, align 8, !tbaa !5
  %16 = load <2 x double>, ptr %11, align 8, !tbaa !5
  %17 = load <2 x double>, ptr %3, align 8, !tbaa !5
  store <2 x double> %15, ptr %3, align 8, !tbaa !5
  store <2 x double> %17, ptr %5, align 8, !tbaa !5
  %18 = load <2 x double>, ptr %9, align 8, !tbaa !5
  %19 = load <2 x double>, ptr %13, align 8, !tbaa !5
  %20 = load <2 x double>, ptr %2, align 8, !tbaa !5
  store <2 x double> %14, ptr %2, align 8, !tbaa !5
  store <2 x double> %20, ptr %8, align 8, !tbaa !5
  %21 = load <2 x double>, ptr %6, align 8, !tbaa !5
  store <2 x double> %18, ptr %6, align 8, !tbaa !5
  store <2 x double> %21, ptr %9, align 8, !tbaa !5
  %22 = load <2 x double>, ptr %12, align 8, !tbaa !5
  %23 = load <2 x double>, ptr %4, align 8, !tbaa !5
  store <2 x double> %16, ptr %4, align 8, !tbaa !5
  store <2 x double> %23, ptr %11, align 8, !tbaa !5
  %24 = load <2 x double>, ptr %10, align 8, !tbaa !5
  store <2 x double> %22, ptr %10, align 8, !tbaa !5
  store <2 x double> %24, ptr %12, align 8, !tbaa !5
  %25 = load <2 x double>, ptr %7, align 8, !tbaa !5
  store <2 x double> %19, ptr %7, align 8, !tbaa !5
  store <2 x double> %25, ptr %13, align 8, !tbaa !5
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn 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" }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass