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

; 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 @_ZN4sptk5world11bitrv208negEPd(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
  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
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds double, ptr %17, i64 2
  %19 = load double, ptr %18, align 8, !tbaa !9
  store double %19, ptr %3, align 8, !tbaa !9
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds double, ptr %20, i64 3
  %22 = load double, ptr %21, align 8, !tbaa !9
  store double %22, ptr %4, align 8, !tbaa !9
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds double, ptr %23, i64 4
  %25 = load double, ptr %24, align 8, !tbaa !9
  store double %25, ptr %5, align 8, !tbaa !9
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %26, i64 5
  %28 = load double, ptr %27, align 8, !tbaa !9
  store double %28, ptr %6, align 8, !tbaa !9
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds double, ptr %29, i64 6
  %31 = load double, ptr %30, align 8, !tbaa !9
  store double %31, ptr %7, align 8, !tbaa !9
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %32, i64 7
  %34 = load double, ptr %33, align 8, !tbaa !9
  store double %34, ptr %8, align 8, !tbaa !9
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds double, ptr %35, i64 8
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %9, align 8, !tbaa !9
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds double, ptr %38, i64 9
  %40 = load double, ptr %39, align 8, !tbaa !9
  store double %40, ptr %10, align 8, !tbaa !9
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 10
  %43 = load double, ptr %42, align 8, !tbaa !9
  store double %43, ptr %11, align 8, !tbaa !9
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 11
  %46 = load double, ptr %45, align 8, !tbaa !9
  store double %46, ptr %12, align 8, !tbaa !9
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 12
  %49 = load double, ptr %48, align 8, !tbaa !9
  store double %49, ptr %13, align 8, !tbaa !9
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 13
  %52 = load double, ptr %51, align 8, !tbaa !9
  store double %52, ptr %14, align 8, !tbaa !9
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 14
  %55 = load double, ptr %54, align 8, !tbaa !9
  store double %55, ptr %15, align 8, !tbaa !9
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 15
  %58 = load double, ptr %57, align 8, !tbaa !9
  store double %58, ptr %16, align 8, !tbaa !9
  %59 = load double, ptr %15, align 8, !tbaa !9
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i64 2
  store double %59, ptr %61, align 8, !tbaa !9
  %62 = load double, ptr %16, align 8, !tbaa !9
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 3
  store double %62, ptr %64, align 8, !tbaa !9
  %65 = load double, ptr %7, align 8, !tbaa !9
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 4
  store double %65, ptr %67, align 8, !tbaa !9
  %68 = load double, ptr %8, align 8, !tbaa !9
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 5
  store double %68, ptr %70, align 8, !tbaa !9
  %71 = load double, ptr %11, align 8, !tbaa !9
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 6
  store double %71, ptr %73, align 8, !tbaa !9
  %74 = load double, ptr %12, align 8, !tbaa !9
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %75, i64 7
  store double %74, ptr %76, align 8, !tbaa !9
  %77 = load double, ptr %3, align 8, !tbaa !9
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 8
  store double %77, ptr %79, align 8, !tbaa !9
  %80 = load double, ptr %4, align 8, !tbaa !9
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i64 9
  store double %80, ptr %82, align 8, !tbaa !9
  %83 = load double, ptr %13, align 8, !tbaa !9
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 10
  store double %83, ptr %85, align 8, !tbaa !9
  %86 = load double, ptr %14, align 8, !tbaa !9
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 11
  store double %86, ptr %88, align 8, !tbaa !9
  %89 = load double, ptr %5, align 8, !tbaa !9
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 12
  store double %89, ptr %91, align 8, !tbaa !9
  %92 = load double, ptr %6, align 8, !tbaa !9
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 13
  store double %92, ptr %94, align 8, !tbaa !9
  %95 = load double, ptr %9, align 8, !tbaa !9
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 14
  store double %95, ptr %97, align 8, !tbaa !9
  %98 = load double, ptr %10, align 8, !tbaa !9
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds double, ptr %99, i64 15
  store double %98, ptr %100, align 8, !tbaa !9
  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 @_ZN4sptk5world11bitrv208negEPd(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 96
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  %9 = load <2 x double>, ptr %8, align 8, !tbaa !5
  %10 = load <2 x double>, ptr %4, align 8, !tbaa !5
  %11 = load <2 x double>, ptr %6, align 8, !tbaa !5
  store <2 x double> %11, ptr %4, align 8, !tbaa !5
  %12 = load <2 x double>, ptr %2, align 8, !tbaa !5
  store <2 x double> %9, ptr %2, align 8, !tbaa !5
  %13 = load <2 x double>, ptr %7, align 8, !tbaa !5
  store <2 x double> %13, ptr %6, align 8, !tbaa !5
  %14 = load <2 x double>, ptr %3, align 8, !tbaa !5
  store <2 x double> %10, ptr %3, align 8, !tbaa !5
  store <2 x double> %14, ptr %7, align 8, !tbaa !5
  %15 = load <2 x double>, ptr %5, align 8, !tbaa !5
  store <2 x double> %12, ptr %5, align 8, !tbaa !5
  store <2 x double> %15, ptr %8, 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