; LLVM IR from GPUOpen-LibrariesAndSDKs/TAN :: tan/tanlibrary/src/clFFT-master/src/library (fft_binary_lookup)

; 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.FFTBinaryLookup::Variant" = type { i32, i64, ptr }
%class.FFTBinaryLookup = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.FFTBinaryLookup::Header_", ptr, ptr, ptr, %"class.std::__cxx11::basic_string", ptr, ptr, %"class.std::vector", i8, [7 x i8] }>
%"struct.FFTBinaryLookup::Header_" = type { [4 x i8], i64, i64, i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<FFTBinaryLookup::Variant, std::allocator<FFTBinaryLookup::Variant>>::_Vector_impl" }
%"struct.std::_Vector_base<FFTBinaryLookup::Variant, std::allocator<FFTBinaryLookup::Variant>>::_Vector_impl" = type { %"struct.std::_Vector_base<FFTBinaryLookup::Variant, std::allocator<FFTBinaryLookup::Variant>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FFTBinaryLookup::Variant, std::allocator<FFTBinaryLookup::Variant>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN15FFTBinaryLookup22loadBinaryAndSignatureERSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(201) %0, ptr noundef nonnull align 8 dereferenceable(256) %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.FFTBinaryLookup::Variant", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 2
  %16 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %15, i32 0, i32 3
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #7
  %19 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 7
  store ptr %18, ptr %19, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 7
  %22 = load ptr, ptr %21, align 8, !tbaa !20
  %23 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 2
  %24 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %23, i32 0, i32 3
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %22, i64 noundef %25)
  store ptr %26, ptr %6, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %27, align 8, !tbaa !21
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %27, i64 %30
  %32 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %31)
  br i1 %32, label %34, label %33

33:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %35

34:                                               ; preds = %2
  store i32 0, ptr %7, align 4
  br label %35

35:                                               ; preds = %34, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %36 = load i32, ptr %7, align 4
  switch i32 %36, label %132 [
    i32 0, label %37
    i32 1, label %125
  ]

37:                                               ; preds = %35
  %38 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 8
  %39 = load ptr, ptr %38, align 8, !tbaa !23
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %48

41:                                               ; preds = %37
  %42 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 8
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = icmp eq ptr %43, null
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @_ZdaPv(ptr noundef %43) #9
  br label %46

46:                                               ; preds = %45, %41
  %47 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 8
  store ptr null, ptr %47, align 8, !tbaa !23
  br label %48

48:                                               ; preds = %46, %37
  %49 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 2
  %50 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %49, i32 0, i32 4
  %51 = load i64, ptr %50, align 8, !tbaa !24
  %52 = call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #7
  %53 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 8
  store ptr %52, ptr %53, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 2
  %58 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %57, i32 0, i32 4
  %59 = load i64, ptr %58, align 8, !tbaa !24
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef %56, i64 noundef %59)
  store ptr %60, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load ptr, ptr %61, align 8, !tbaa !21
  %63 = getelementptr i8, ptr %62, i64 -24
  %64 = load i64, ptr %63, align 8
  %65 = getelementptr inbounds i8, ptr %61, i64 %64
  %66 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %65)
  br i1 %66, label %68, label %67

67:                                               ; preds = %48
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %122

68:                                               ; preds = %48
  %69 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 9
  call void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %70 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 8
  %71 = load ptr, ptr %70, align 8, !tbaa !23
  store ptr %71, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %72

72:                                               ; preds = %114, %68
  %73 = load i64, ptr %10, align 8, !tbaa !25
  %74 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 2
  %75 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %74, i32 0, i32 4
  %76 = load i64, ptr %75, align 8, !tbaa !24
  %77 = icmp ult i64 %73, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %72
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %121

79:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @_ZN15FFTBinaryLookup7VariantC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !26
  %82 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 0
  store i32 %81, ptr %82, align 8, !tbaa !28
  %83 = load i64, ptr %10, align 8, !tbaa !25
  %84 = add i64 %83, 4
  store i64 %84, ptr %10, align 8, !tbaa !25
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 4
  store ptr %86, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !25
  %89 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 1
  store i64 %88, ptr %89, align 8, !tbaa !30
  %90 = load i64, ptr %10, align 8, !tbaa !25
  %91 = add i64 %90, 8
  store i64 %91, ptr %10, align 8, !tbaa !25
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 8
  store ptr %93, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !30
  %96 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %95) #7
          to label %97 unwind label %117

97:                                               ; preds = %79
  %98 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 2
  store ptr %96, ptr %98, align 8, !tbaa !31
  %99 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !31
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 1
  %103 = load i64, ptr %102, align 8, !tbaa !30
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %100, ptr align 1 %101, i64 %103, i1 false)
  %104 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !30
  %106 = load i64, ptr %10, align 8, !tbaa !25
  %107 = add i64 %106, %105
  store i64 %107, ptr %10, align 8, !tbaa !25
  %108 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %11, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !30
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 %109
  store ptr %111, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.FFTBinaryLookup, ptr %14, i32 0, i32 9
  invoke void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %113 unwind label %117

113:                                              ; preds = %97
  call void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  br label %114

114:                                              ; preds = %113
  %115 = load i64, ptr %10, align 8, !tbaa !25
  %116 = add i64 %115, 1
  store i64 %116, ptr %10, align 8, !tbaa !25
  br label %72, !llvm.loop !32

117:                                              ; preds = %97, %79
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %12, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %13, align 4
  call void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %127

121:                                              ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  store i32 0, ptr %7, align 4
  br label %122

122:                                              ; preds = %121, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %123 = load i32, ptr %7, align 4
  switch i32 %123, label %132 [
    i32 0, label %124
    i32 1, label %125
  ]

124:                                              ; preds = %122
  store i1 true, ptr %3, align 1
  br label %125

125:                                              ; preds = %124, %122, %35
  %126 = load i1, ptr %3, align 1
  ret i1 %126

127:                                              ; preds = %117
  %128 = load ptr, ptr %12, align 8
  %129 = load i32, ptr %13, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131

132:                                              ; preds = %122, %35
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

declare void @_ZN15FFTBinaryLookup7VariantC1Ev(ptr)

declare void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "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 = { nobuiltin allocsize(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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { mustprogress 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 #6 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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, !13, i64 88}
!10 = !{!"_ZTS15FFTBinaryLookup", !11, i64 0, !11, i64 32, !14, i64 64, !6, i64 104, !6, i64 112, !6, i64 120, !11, i64 128, !6, i64 160, !6, i64 168, !15, i64 176, !19, i64 200}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN15FFTBinaryLookup7Header_E", !7, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!15 = !{!"_ZTSSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"bool", !7, i64 0}
!20 = !{!10, !6, i64 160}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{!10, !6, i64 168}
!24 = !{!10, !13, i64 96}
!25 = !{!13, !13, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTSN15FFTBinaryLookup11VariantKindE", !7, i64 0}
!28 = !{!29, !27, i64 0}
!29 = !{!"_ZTSN15FFTBinaryLookup7VariantE", !27, i64 0, !13, i64 8, !6, i64 16}
!30 = !{!29, !13, i64 8}
!31 = !{!29, !6, i64 16}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; 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.FFTBinaryLookup::Variant" = type { i32, i64, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN15FFTBinaryLookup22loadBinaryAndSignatureERSt14basic_ifstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(201) %0, ptr noundef nonnull align 8 dereferenceable(256) %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.FFTBinaryLookup::Variant", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 88
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %5) #7
  %7 = getelementptr inbounds i8, ptr %0, i64 160
  store ptr %6, ptr %7, align 8, !tbaa !19
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %6, i64 noundef %5)
  %9 = load ptr, ptr %8, align 8, !tbaa !20
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr %8, i64 %11
  %13 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %12)
  br i1 %13, label %14, label %.loopexit

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %0, i64 168
  %16 = load ptr, ptr %15, align 8, !tbaa !22
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %18, label %17

17:                                               ; preds = %14
  tail call void @_ZdaPv(ptr noundef nonnull %16) #8
  store ptr null, ptr %15, align 8, !tbaa !22
  br label %18

18:                                               ; preds = %17, %14
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  %20 = load i64, ptr %19, align 8, !tbaa !23
  %21 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %20) #7
  store ptr %21, ptr %15, align 8, !tbaa !22
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull %21, i64 noundef %20)
  %23 = load ptr, ptr %22, align 8, !tbaa !20
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr %22, i64 %25
  %27 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264) %26)
  br i1 %27, label %28, label %.loopexit

28:                                               ; preds = %18
  %29 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  %30 = load i64, ptr %19, align 8, !tbaa !23
  %.not27 = icmp eq i64 %30, 0
  br i1 %.not27, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %28
  %31 = load ptr, ptr %15, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  %33 = getelementptr inbounds i8, ptr %3, i64 16
  br label %34

34:                                               ; preds = %.lr.ph, %41
  %.02226 = phi i64 [ 0, %.lr.ph ], [ %44, %41 ]
  %.02325 = phi ptr [ %31, %.lr.ph ], [ %42, %41 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZN15FFTBinaryLookup7VariantC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %35 = load i32, ptr %.02325, align 4, !tbaa !24
  store i32 %35, ptr %3, align 8, !tbaa !26
  %36 = getelementptr inbounds i8, ptr %.02325, i64 4
  %37 = load i64, ptr %36, align 8, !tbaa !28
  store i64 %37, ptr %32, align 8, !tbaa !29
  %38 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %37) #7
          to label %39 unwind label %47

39:                                               ; preds = %34
  %40 = getelementptr inbounds i8, ptr %.02325, i64 12
  store ptr %38, ptr %33, align 8, !tbaa !30
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %38, ptr nonnull align 1 %40, i64 %37, i1 false)
  invoke void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %41 unwind label %47

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %40, i64 %37
  call void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  %43 = add i64 %.02226, 13
  %44 = add i64 %43, %37
  %45 = load i64, ptr %19, align 8, !tbaa !23
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %34, label %.loopexit, !llvm.loop !31

47:                                               ; preds = %39, %34
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  resume { ptr, i32 } %48

.loopexit:                                        ; preds = %41, %28, %18, %2
  %.2 = phi i1 [ false, %2 ], [ false, %18 ], [ true, %28 ], [ true, %41 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4goodEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

declare void @_ZN15FFTBinaryLookup7VariantC1Ev(ptr) local_unnamed_addr

declare void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "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 = { nobuiltin allocsize(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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { mustprogress 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 #6 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }
attributes #9 = { 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, !12, i64 88}
!6 = !{!"_ZTS15FFTBinaryLookup", !7, i64 0, !7, i64 32, !13, i64 64, !9, i64 104, !9, i64 112, !9, i64 120, !7, i64 128, !9, i64 160, !9, i64 168, !14, i64 176, !18, i64 200}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTSN15FFTBinaryLookup7Header_E", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!14 = !{!"_ZTSSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!18 = !{!"bool", !10, i64 0}
!19 = !{!6, !9, i64 160}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !11, i64 0}
!22 = !{!6, !9, i64 168}
!23 = !{!6, !12, i64 96}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTSN15FFTBinaryLookup11VariantKindE", !10, i64 0}
!26 = !{!27, !25, i64 0}
!27 = !{!"_ZTSN15FFTBinaryLookup7VariantE", !25, i64 0, !12, i64 8, !9, i64 16}
!28 = !{!12, !12, i64 0}
!29 = !{!27, !12, i64 8}
!30 = !{!27, !9, i64 16}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass