; LLVM IR from hasseily/SuperDuperDisplay :: extras/ImGuiFileDialog.ll (ZN4IGFD10FileDialog14m_DrawOkButtonEv)

; 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.ImVec2 = type { float, float }
%"class.IGFD::FileDialog" = type <{ ptr, %"class.IGFD::FileDialogInternal", %struct.ImGuiListClipper, %struct.ImGuiListClipper, float, [4 x i8] }>
%"class.IGFD::FileDialogInternal" = type { %"class.IGFD::FileManager", %"class.IGFD::FilterManager", %"class.IGFD::SearchManager", %"class.std::__cxx11::basic_string", i8, %struct.ImVec2, i32, float, i8, i8, i8, i8, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8, i32, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"struct.IGFD::FileDialogConfig" }
%"class.IGFD::FileManager" = type { %"class.std::__cxx11::basic_string", %"class.std::vector", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector.46", %"class.std::vector.46", %"class.__gnu_cxx::__normal_iterator.51", %"class.std::__cxx11::basic_string", %"class.std::set", i8, %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", i8, i8, i8, [1024 x i8], [1024 x i8], [1024 x i8], [1024 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", [4 x i8], i32, i8, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, i8, %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<IGFD::FileInfos>, std::allocator<std::shared_ptr<IGFD::FileInfos>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.51" = type { ptr }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.56" }
%"struct.std::_Head_base.56" = type { ptr }
%"class.IGFD::FilterManager" = type { %"class.std::vector.57", %"class.std::unordered_map", %"class.std::vector.67", %"class.IGFD::FilterInfos", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::vector.57" = type { %"struct.std::_Vector_base.58" }
%"struct.std::_Vector_base.58" = type { %"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl" }
%"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl" = type { %"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IGFD::FilterInfos, std::allocator<IGFD::FilterInfos>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::vector.67" = type { %"struct.std::_Vector_base.68" }
%"struct.std::_Vector_base.68" = type { %"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>, std::allocator<std::function<bool (const IGFD::FileInfos &, IGFD::FileStyle &)>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.IGFD::FilterInfos" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.IGFD::SearchableVector", %"class.IGFD::SearchableVector", %"class.std::vector.92", i64 }
%"class.IGFD::SearchableVector" = type { %"class.std::unordered_map.72", %"class.std::vector" }
%"class.std::unordered_map.72" = type { %"class.std::_Hashtable.73" }
%"class.std::_Hashtable.73" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.92" = type { %"struct.std::_Vector_base.93" }
%"struct.std::_Vector_base.93" = type { %"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_regex<char>, std::allocator<std::__cxx11::basic_regex<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.IGFD::SearchManager" = type <{ %"class.std::__cxx11::basic_string", [1024 x i8], i8, [7 x i8] }>
%"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] }
%"struct.IGFD::FileDialogConfig" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, ptr, i32, %"class.std::function", float, %"class.std::function.97" }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.97" = type { %"class.std::_Function_base", ptr }
%struct.ImGuiListClipper = type { ptr, i32, i32, i32, float, float, ptr }

@.str.46 = external hidden unnamed_addr constant [21 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

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

declare noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8)) #3

declare void @_ZN5ImGui8SameLineEff(float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4IGFD10FileDialog14m_DrawOkButtonEv(ptr noundef nonnull align 8 dereferenceable(6620) %0) unnamed_addr #4 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %8 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %7, i32 0, i32 1
  %9 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %8, i32 0, i32 0
  store ptr %9, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %7, i32 0, i32 1
  %11 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %10, i32 0, i32 8
  %12 = load i8, ptr %11, align 4, !tbaa !9, !range !71, !noundef !72
  %13 = trunc i8 %12 to i1
  br i1 %13, label %14, label %33

14:                                               ; preds = %1
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.IGFD::FileManager", ptr %15, i32 0, i32 17
  %17 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %18 = call i64 @strlen(ptr noundef %17) #6
  %19 = icmp ne i64 %18, 0
  br i1 %19, label %20, label %33

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %21 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef @.str.46, ptr noundef nonnull align 4 dereferenceable(8) %5)
  br i1 %21, label %27, label %22

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %7, i32 0, i32 1
  %24 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %23, i32 0, i32 10
  %25 = load i8, ptr %24, align 2, !tbaa !73, !range !71, !noundef !72
  %26 = trunc i8 %25 to i1
  br label %27

27:                                               ; preds = %22, %20
  %28 = phi i1 [ true, %20 ], [ %26, %22 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br i1 %28, label %29, label %32

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"class.IGFD::FileDialog", ptr %7, i32 0, i32 1
  %31 = getelementptr inbounds %"class.IGFD::FileDialogInternal", ptr %30, i32 0, i32 10
  store i8 1, ptr %31, align 2, !tbaa !73
  store i1 true, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %34

32:                                               ; preds = %27
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  br label %33

33:                                               ; preds = %32, %14, %1
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %34

34:                                               ; preds = %33, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %35 = load i1, ptr %2, align 1
  ret i1 %35
}

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 = { "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 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 #5 = { nounwind }
attributes #6 = { 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, !33, i64 6196}
!10 = !{!"_ZTSN4IGFD10FileDialogE", !11, i64 8, !70, i64 6536, !70, i64 6576, !50, i64 6616}
!11 = !{!"_ZTSN4IGFD18FileDialogInternalE", !12, i64 0, !41, i64 4648, !63, i64 5072, !13, i64 6136, !33, i64 6168, !64, i64 6172, !65, i64 6180, !50, i64 6184, !33, i64 6188, !33, i64 6189, !33, i64 6190, !33, i64 6191, !33, i64 6192, !13, i64 6200, !13, i64 6232, !33, i64 6264, !33, i64 6265, !65, i64 6268, !13, i64 6272, !13, i64 6304, !66, i64 6336}
!12 = !{!"_ZTSN4IGFD11FileManagerE", !13, i64 0, !16, i64 32, !20, i64 56, !20, i64 80, !20, i64 104, !20, i64 128, !24, i64 152, !13, i64 160, !25, i64 192, !33, i64 240, !13, i64 248, !34, i64 280, !33, i64 288, !33, i64 289, !33, i64 290, !7, i64 291, !7, i64 1315, !7, i64 2339, !7, i64 3363, !13, i64 4392, !13, i64 4424, !13, i64 4456, !13, i64 4488, !7, i64 4520, !40, i64 4524, !33, i64 4528, !13, i64 4536, !13, i64 4568, !15, i64 4600, !33, i64 4608, !13, i64 4616}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEE", !6, i64 0}
!25 = !{!"_ZTSSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !28, i64 0, !30, i64 8}
!28 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !29, i64 0}
!29 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!30 = !{!"_ZTSSt15_Rb_tree_header", !31, i64 0, !15, i64 32}
!31 = !{!"_ZTSSt18_Rb_tree_node_base", !32, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSSt10unique_ptrIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIN4IGFD11IFileSystemESt14default_deleteIS1_ELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPN4IGFD11IFileSystemELb0EE", !6, i64 0}
!40 = !{!"_ZTSN4IGFD11FileManager16SortingFieldEnumE", !7, i64 0}
!41 = !{!"_ZTSN4IGFD13FilterManagerE", !42, i64 0, !46, i64 24, !51, i64 80, !55, i64 104, !13, i64 360, !13, i64 392}
!42 = !{!"_ZTSSt6vectorIN4IGFD11FilterInfosESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt13unordered_mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEESA_IiESC_IiESaISE_IKiSI_EEE", !47, i64 0}
!47 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS8_ESt8equal_toIS8_ESaIS0_IKS8_SC_EEEESaISL_ENSt8__detail10_Select1stESF_IiESD_IiENSN_18_Mod_range_hashingENSN_20_Default_ranged_hashENSN_20_Prime_rehash_policyENSN_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !48, i64 16, !15, i64 24, !49, i64 32, !6, i64 48}
!48 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!49 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !50, i64 0, !15, i64 8}
!50 = !{!"float", !7, i64 0}
!51 = !{!"_ZTSSt6vectorISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!"_ZTSN4IGFD11FilterInfosE", !13, i64 0, !13, i64 32, !56, i64 64, !56, i64 144, !59, i64 224, !15, i64 248}
!56 = !{!"_ZTSN4IGFD16SearchableVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !57, i64 0, !16, i64 56}
!57 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEE", !58, i64 0}
!58 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !15, i64 8, !48, i64 16, !15, i64 24, !49, i64 32, !6, i64 48}
!59 = !{!"_ZTSSt6vectorINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!63 = !{!"_ZTSN4IGFD13SearchManagerE", !13, i64 0, !7, i64 32, !33, i64 1056}
!64 = !{!"_ZTS6ImVec2", !50, i64 0, !50, i64 4}
!65 = !{!"int", !7, i64 0}
!66 = !{!"_ZTSN4IGFD16FileDialogConfigE", !13, i64 0, !13, i64 32, !13, i64 64, !65, i64 96, !6, i64 104, !65, i64 112, !67, i64 120, !50, i64 152, !69, i64 160}
!67 = !{!"_ZTSSt8functionIFvPKcPvPbEE", !68, i64 0, !6, i64 24}
!68 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!69 = !{!"_ZTSSt8functionIFbPN4IGFD9FileInfosEPvEE", !68, i64 0, !6, i64 24}
!70 = !{!"_ZTS16ImGuiListClipper", !6, i64 0, !65, i64 8, !65, i64 12, !65, i64 16, !50, i64 20, !50, i64 24, !6, i64 32}
!71 = !{i8 0, i8 2}
!72 = !{}
!73 = !{!10, !33, i64 6198}


; 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.ImVec2 = type { float, float }

@.str.46 = external hidden unnamed_addr constant [21 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 nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

declare noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

declare void @_ZN5ImGui8SameLineEff(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4IGFD10FileDialog14m_DrawOkButtonEv(ptr nocapture noundef nonnull align 8 dereferenceable(6620) %0) unnamed_addr #3 align 2 {
  %2 = alloca %struct.ImVec2, align 4
  %3 = getelementptr inbounds i8, ptr %0, i64 6196
  %4 = load i8, ptr %3, align 4, !tbaa !5, !range !70, !noundef !71
  %5 = trunc nuw i8 %4 to i1
  %6 = getelementptr inbounds i8, ptr %0, i64 2347
  %char0 = load i8, ptr %6, align 1
  %.not = icmp ne i8 %char0, 0
  %or.cond.not = select i1 %5, i1 %.not, i1 false
  br i1 %or.cond.not, label %7, label %16

7:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %8 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef nonnull @.str.46, ptr noundef nonnull align 4 dereferenceable(8) %2)
  br i1 %8, label %.critedge, label %9

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 6198
  %11 = load i8, ptr %10, align 2, !tbaa !72, !range !70, !noundef !71
  %12 = trunc nuw i8 %11 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br i1 %12, label %13, label %15

.critedge:                                        ; preds = %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  br label %13

13:                                               ; preds = %.critedge, %9
  %14 = getelementptr inbounds i8, ptr %0, i64 6198
  store i8 1, ptr %14, align 2, !tbaa !72
  br label %16

15:                                               ; preds = %9
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  br label %16

16:                                               ; preds = %1, %15, %13
  %.0 = phi i1 [ true, %13 ], [ false, %15 ], [ false, %1 ]
  ret i1 %.0
}

attributes #0 = { mustprogress 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 = { "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 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 #4 = { 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, !32, i64 6196}
!6 = !{!"_ZTSN4IGFD10FileDialogE", !7, i64 8, !69, i64 6536, !69, i64 6576, !49, i64 6616}
!7 = !{!"_ZTSN4IGFD18FileDialogInternalE", !8, i64 0, !40, i64 4648, !62, i64 5072, !9, i64 6136, !32, i64 6168, !63, i64 6172, !64, i64 6180, !49, i64 6184, !32, i64 6188, !32, i64 6189, !32, i64 6190, !32, i64 6191, !32, i64 6192, !9, i64 6200, !9, i64 6232, !32, i64 6264, !32, i64 6265, !64, i64 6268, !9, i64 6272, !9, i64 6304, !65, i64 6336}
!8 = !{!"_ZTSN4IGFD11FileManagerE", !9, i64 0, !15, i64 32, !19, i64 56, !19, i64 80, !19, i64 104, !19, i64 128, !23, i64 152, !9, i64 160, !24, i64 192, !32, i64 240, !9, i64 248, !33, i64 280, !32, i64 288, !32, i64 289, !32, i64 290, !12, i64 291, !12, i64 1315, !12, i64 2339, !12, i64 3363, !9, i64 4392, !9, i64 4424, !9, i64 4456, !9, i64 4488, !12, i64 4520, !39, i64 4524, !32, i64 4528, !9, i64 4536, !9, i64 4568, !14, i64 4600, !32, i64 4608, !9, i64 4616}
!9 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !10, i64 0, !14, i64 8, !12, i64 16}
!10 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"long", !12, i64 0}
!15 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!19 = !{!"_ZTSSt6vectorISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN4IGFD9FileInfosEESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!23 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEE", !11, i64 0}
!24 = !{!"_ZTSSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St9_IdentityIS5_ESt4lessIS5_ESaIS5_EE13_Rb_tree_implIS9_Lb1EEE", !27, i64 0, !29, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!29 = !{!"_ZTSSt15_Rb_tree_header", !30, i64 0, !14, i64 32}
!30 = !{!"_ZTSSt18_Rb_tree_node_base", !31, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!31 = !{!"_ZTSSt14_Rb_tree_color", !12, i64 0}
!32 = !{!"bool", !12, i64 0}
!33 = !{!"_ZTSSt10unique_ptrIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_dataIN4IGFD11IFileSystemESt14default_deleteIS1_ELb1ELb1EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_implIN4IGFD11IFileSystemESt14default_deleteIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt5tupleIJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !37, i64 0}
!37 = !{!"_ZTSSt11_Tuple_implILm0EJPN4IGFD11IFileSystemESt14default_deleteIS1_EEE", !38, i64 0}
!38 = !{!"_ZTSSt10_Head_baseILm0EPN4IGFD11IFileSystemELb0EE", !11, i64 0}
!39 = !{!"_ZTSN4IGFD11FileManager16SortingFieldEnumE", !12, i64 0}
!40 = !{!"_ZTSN4IGFD13FilterManagerE", !41, i64 0, !45, i64 24, !50, i64 80, !54, i64 104, !9, i64 360, !9, i64 392}
!41 = !{!"_ZTSSt6vectorIN4IGFD11FilterInfosESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN4IGFD11FilterInfosESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!45 = !{!"_ZTSSt13unordered_mapIiS_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEESA_IiESC_IiESaISE_IKiSI_EEE", !46, i64 0}
!46 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN4IGFD9FileStyleEESt4hashIS8_ESt8equal_toIS8_ESaIS0_IKS8_SC_EEEESaISL_ENSt8__detail10_Select1stESF_IiESD_IiENSN_18_Mod_range_hashingENSN_20_Default_ranged_hashENSN_20_Prime_rehash_policyENSN_17_Hashtable_traitsILb0ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !47, i64 16, !14, i64 24, !48, i64 32, !11, i64 48}
!47 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!48 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !49, i64 0, !14, i64 8}
!49 = !{!"float", !12, i64 0}
!50 = !{!"_ZTSSt6vectorISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt8functionIFbRKN4IGFD9FileInfosERNS1_9FileStyleEEESaIS8_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!54 = !{!"_ZTSN4IGFD11FilterInfosE", !9, i64 0, !9, i64 32, !55, i64 64, !55, i64 144, !58, i64 224, !14, i64 248}
!55 = !{!"_ZTSN4IGFD16SearchableVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !56, i64 0, !15, i64 56}
!56 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEE", !57, i64 0}
!57 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !11, i64 0, !14, i64 8, !47, i64 16, !14, i64 24, !48, i64 32, !11, i64 48}
!58 = !{!"_ZTSSt6vectorINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1111basic_regexIcNS0_12regex_traitsIcEEEESaIS4_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!62 = !{!"_ZTSN4IGFD13SearchManagerE", !9, i64 0, !12, i64 32, !32, i64 1056}
!63 = !{!"_ZTS6ImVec2", !49, i64 0, !49, i64 4}
!64 = !{!"int", !12, i64 0}
!65 = !{!"_ZTSN4IGFD16FileDialogConfigE", !9, i64 0, !9, i64 32, !9, i64 64, !64, i64 96, !11, i64 104, !64, i64 112, !66, i64 120, !49, i64 152, !68, i64 160}
!66 = !{!"_ZTSSt8functionIFvPKcPvPbEE", !67, i64 0, !11, i64 24}
!67 = !{!"_ZTSSt14_Function_base", !12, i64 0, !11, i64 16}
!68 = !{!"_ZTSSt8functionIFbPN4IGFD9FileInfosEPvEE", !67, i64 0, !11, i64 24}
!69 = !{!"_ZTS16ImGuiListClipper", !11, i64 0, !64, i64 8, !64, i64 12, !64, i64 16, !49, i64 20, !49, i64 24, !11, i64 32}
!70 = !{i8 0, i8 2}
!71 = !{}
!72 = !{!6, !32, i64 6198}


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