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

@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

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

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

; 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) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15FFTBinaryLookup15finalizeVariantEv(ptr noundef nonnull align 8 dereferenceable(201) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"struct.FFTBinaryLookup::Variant", align 8
  %9 = alloca [33 x i8], align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !9
  %11 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 9
  %12 = call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %13 = mul i64 %12, 4
  %14 = load i64, ptr %3, align 8, !tbaa !9
  %15 = add i64 %14, %13
  store i64 %15, ptr %3, align 8, !tbaa !9
  %16 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 9
  %17 = call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  %18 = mul i64 %17, 8
  %19 = load i64, ptr %3, align 8, !tbaa !9
  %20 = add i64 %19, %18
  store i64 %20, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %21

21:                                               ; preds = %36, %1
  %22 = load i64, ptr %4, align 8, !tbaa !9
  %23 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 9
  %24 = call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %25 = icmp ult i64 %22, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %39

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %28 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 9
  %29 = load i64, ptr %4, align 8, !tbaa !9
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %29) #7
  store ptr %30, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = load i64, ptr %3, align 8, !tbaa !9
  %35 = add i64 %34, %33
  store i64 %35, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %36

36:                                               ; preds = %27
  %37 = load i64, ptr %4, align 8, !tbaa !9
  %38 = add i64 %37, 1
  store i64 %38, ptr %4, align 8, !tbaa !9
  br label %21, !llvm.loop !14

39:                                               ; preds = %26
  %40 = load i64, ptr %3, align 8, !tbaa !9
  %41 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 2
  %42 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %41, i32 0, i32 4
  store i64 %40, ptr %42, align 8, !tbaa !16
  %43 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 8
  %44 = load ptr, ptr %43, align 8, !tbaa !26
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %53

46:                                               ; preds = %39
  %47 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 8
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = icmp eq ptr %48, null
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  call void @_ZdaPv(ptr noundef %48) #8
  br label %51

51:                                               ; preds = %50, %46
  %52 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 8
  store ptr null, ptr %52, align 8, !tbaa !26
  br label %53

53:                                               ; preds = %51, %39
  %54 = load i64, ptr %3, align 8, !tbaa !9
  %55 = call noalias noundef nonnull ptr @_Znam(i64 noundef %54) #9
  %56 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 8
  store ptr %55, ptr %56, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %57 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 8
  %58 = load ptr, ptr %57, align 8, !tbaa !26
  store ptr %58, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %59

59:                                               ; preds = %86, %53
  %60 = load i64, ptr %7, align 8, !tbaa !9
  %61 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 9
  %62 = call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %63 = icmp ult i64 %60, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %89

65:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  %66 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 9
  %67 = load i64, ptr %7, align 8, !tbaa !9
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %67) #7
  call void @_ZN15FFTBinaryLookup7VariantC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %68)
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %8, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %69, ptr align 8 %70, i64 4, i1 false)
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 4
  store ptr %72, ptr %6, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %8, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %73, ptr align 8 %74, i64 8, i1 false)
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 8
  store ptr %76, ptr %6, align 8, !tbaa !5
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %8, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !27
  %80 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %8, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %77, ptr align 1 %79, i64 %81, i1 false)
  %82 = getelementptr inbounds %"struct.FFTBinaryLookup::Variant", ptr %8, i32 0, i32 1
  %83 = load i64, ptr %82, align 8, !tbaa !11
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 %83
  store ptr %85, ptr %6, align 8, !tbaa !5
  call void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  br label %86

86:                                               ; preds = %65
  %87 = load i64, ptr %7, align 8, !tbaa !9
  %88 = add i64 %87, 1
  store i64 %88, ptr %7, align 8, !tbaa !9
  br label %59, !llvm.loop !28

89:                                               ; preds = %64
  %90 = load i64, ptr %3, align 8, !tbaa !9
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %102

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 33, ptr %9) #7
  %93 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 8
  %94 = load ptr, ptr %93, align 8, !tbaa !26
  %95 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 2
  %96 = getelementptr inbounds %"struct.FFTBinaryLookup::Header_", ptr %95, i32 0, i32 4
  %97 = load i64, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds [33 x i8], ptr %9, i64 0, i64 0
  call void @md5sum(ptr noundef %94, i64 noundef %97, ptr noundef %98)
  %99 = getelementptr inbounds [33 x i8], ptr %9, i64 0, i64 0
  %100 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 0
  %101 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %100, ptr noundef %99)
  call void @llvm.lifetime.end.p0(i64 33, ptr %9) #7
  br label %105

102:                                              ; preds = %89
  %103 = getelementptr inbounds %class.FFTBinaryLookup, ptr %10, i32 0, i32 0
  %104 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %103, ptr noundef @.str.4)
  br label %105

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

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

declare void @md5sum(ptr noundef, i64 noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1 align 2

declare void @_ZN15FFTBinaryLookup7VariantC1ERKS0_(ptr, ptr)

declare void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { "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 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin allocsize(0) }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN15FFTBinaryLookup7VariantE", !13, i64 0, !10, i64 8, !6, i64 16}
!13 = !{!"_ZTSN15FFTBinaryLookup11VariantKindE", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !10, i64 96}
!17 = !{!"_ZTS15FFTBinaryLookup", !18, i64 0, !18, i64 32, !20, i64 64, !6, i64 104, !6, i64 112, !6, i64 120, !18, i64 128, !6, i64 160, !6, i64 168, !21, i64 176, !25, i64 200}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !10, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN15FFTBinaryLookup7Header_E", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!21 = !{!"_ZTSSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN15FFTBinaryLookup7VariantESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"bool", !7, i64 0}
!26 = !{!17, !6, i64 168}
!27 = !{!12, !6, i64 16}
!28 = distinct !{!28, !15}


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

@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; 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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

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

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

; 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) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15FFTBinaryLookup15finalizeVariantEv(ptr noundef nonnull align 8 dereferenceable(201) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.FFTBinaryLookup::Variant", align 8
  %3 = alloca [33 x i8], align 16
  %4 = getelementptr inbounds i8, ptr %0, i64 176
  %5 = tail call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %6 = shl i64 %5, 2
  %7 = tail call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %8 = shl i64 %7, 3
  %9 = add i64 %8, %6
  %10 = tail call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not31 = icmp eq i64 %10, 0
  br i1 %.not31, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  %.020.lcssa = phi i64 [ %9, %1 ], [ %17, %.lr.ph ]
  %11 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %.020.lcssa, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 168
  %13 = load ptr, ptr %12, align 8, !tbaa !19
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %22, label %21

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.02025 = phi i64 [ %17, %.lr.ph ], [ %9, %1 ]
  %.02124 = phi i64 [ %18, %.lr.ph ], [ 0, %1 ]
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02124) #7
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load i64, ptr %15, align 8, !tbaa !20
  %17 = add i64 %16, %.02025
  %18 = add nuw i64 %.02124, 1
  %19 = tail call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %20 = icmp ult i64 %18, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !23

21:                                               ; preds = %._crit_edge
  tail call void @_ZdaPv(ptr noundef nonnull %13) #8
  store ptr null, ptr %12, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %21, %._crit_edge
  %23 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %.020.lcssa) #9
  store ptr %23, ptr %12, align 8, !tbaa !19
  %24 = tail call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not32 = icmp eq i64 %24, 0
  br i1 %.not32, label %._crit_edge30, label %.lr.ph29

.lr.ph29:                                         ; preds = %22
  %25 = getelementptr inbounds i8, ptr %2, i64 8
  %26 = getelementptr inbounds i8, ptr %2, i64 16
  br label %27

._crit_edge30:                                    ; preds = %27, %22
  %.not23 = icmp eq i64 %.020.lcssa, 0
  br i1 %.not23, label %42, label %38

27:                                               ; preds = %.lr.ph29, %27
  %.027 = phi i64 [ 0, %.lr.ph29 ], [ %35, %27 ]
  %.01926 = phi ptr [ %23, %.lr.ph29 ], [ %34, %27 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.027) #7
  call void @_ZN15FFTBinaryLookup7VariantC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %28)
  %29 = load i32, ptr %2, align 8
  store i32 %29, ptr %.01926, align 1
  %30 = getelementptr inbounds i8, ptr %.01926, i64 4
  %31 = load i64, ptr %25, align 8
  store i64 %31, ptr %30, align 1
  %32 = getelementptr inbounds i8, ptr %.01926, i64 12
  %33 = load ptr, ptr %26, align 8, !tbaa !25
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %32, ptr align 1 %33, i64 %31, i1 false)
  %34 = getelementptr inbounds i8, ptr %32, i64 %31
  call void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  %35 = add nuw i64 %.027, 1
  %36 = call noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %37 = icmp ult i64 %35, %36
  br i1 %37, label %27, label %._crit_edge30, !llvm.loop !26

38:                                               ; preds = %._crit_edge30
  call void @llvm.lifetime.start.p0(i64 33, ptr nonnull %3) #7
  %39 = load ptr, ptr %12, align 8, !tbaa !19
  %40 = load i64, ptr %11, align 8, !tbaa !5
  call void @md5sum(ptr noundef %39, i64 noundef %40, ptr noundef nonnull %3)
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 33, ptr nonnull %3) #7
  br label %44

42:                                               ; preds = %._crit_edge30
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.4)
  br label %44

44:                                               ; preds = %42, %38
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN15FFTBinaryLookup7VariantESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

declare void @md5sum(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1 align 2

declare void @_ZN15FFTBinaryLookup7VariantC1ERKS0_(ptr, ptr) local_unnamed_addr

declare void @_ZN15FFTBinaryLookup7VariantD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { "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 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin allocsize(0) }

!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 96}
!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 168}
!20 = !{!21, !12, i64 8}
!21 = !{!"_ZTSN15FFTBinaryLookup7VariantE", !22, i64 0, !12, i64 8, !9, i64 16}
!22 = !{!"_ZTSN15FFTBinaryLookup11VariantKindE", !10, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!21, !9, i64 16}
!26 = distinct !{!26, !24}


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