; LLVM IR from opset/openset :: src/result.ll (ZN7openset6result9ResultSet14makeSortedListEv)

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

%"class.robin_hood::detail::unordered_map<false, 80, openset::result::RowKey, openset::result::Accumulator *, robin_hood::hash<openset::result::RowKey>, std::equal_to<openset::result::RowKey>>::Iter" = type { ptr, ptr }
%"struct.std::pair.312" = type { %"struct.openset::result::RowKey", ptr }
%"struct.openset::result::RowKey" = type { [8 x i64], [8 x i32] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }
%"class.openset::result::ResultSet" = type { %"class.robin_hood::detail::unordered_map", %"class.std::vector", %class.HeapStack, i64, %class.CriticalSection, i8, %"class.robin_hood::detail::unordered_map.295", %"class.std::vector.302", %"class.std::vector.307" }
%"class.robin_hood::detail::unordered_map" = type { %"struct.robin_hood::detail::NodeAllocator", ptr, ptr, i64, i64, i64, i32, i32 }
%"struct.robin_hood::detail::NodeAllocator" = type { %"class.robin_hood::detail::BulkPoolAllocator" }
%"class.robin_hood::detail::BulkPoolAllocator" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<openset::result::RowKey, openset::result::Accumulator *>, std::allocator<std::pair<openset::result::RowKey, openset::result::Accumulator *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.HeapStack = type { i64, i64, i64, i64, i64, ptr, ptr }
%class.CriticalSection = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.robin_hood::detail::unordered_map.295" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"class.std::vector.302" = type { %"struct.std::_Vector_base.303" }
%"struct.std::_Vector_base.303" = type { %"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::result::ResultTypes_e, std::allocator<openset::result::ResultTypes_e>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.307" = type { %"struct.std::_Vector_base.308" }
%"struct.std::_Vector_base.308" = type { %"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Modifiers_e, std::allocator<openset::query::Modifiers_e>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.robin_hood::pair" = type { %"struct.openset::result::RowKey", 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset6result9ResultSet14makeSortedListEv(ptr noundef nonnull align 8 dereferenceable(256) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.robin_hood::detail::unordered_map<false, 80, openset::result::RowKey, openset::result::Accumulator *, robin_hood::hash<openset::result::RowKey>, std::equal_to<openset::result::RowKey>>::Iter", align 8
  %5 = alloca %"class.robin_hood::detail::unordered_map<false, 80, openset::result::RowKey, openset::result::Accumulator *, robin_hood::hash<openset::result::RowKey>, std::equal_to<openset::result::RowKey>>::Iter", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::pair.312", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %class.anon, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 5
  %13 = load i8, ptr %12, align 1, !tbaa !9, !range !34, !noundef !35
  %14 = trunc i8 %13 to i1
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  br label %58

16:                                               ; preds = %1
  %17 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 1
  call void @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %18 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 1
  %19 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 0
  %20 = call noundef i64 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(64) %19) #4
  call void @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %21 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 0
  store ptr %21, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(64) %22)
  %24 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 0
  %25 = extractvalue { ptr, ptr } %23, 0
  store ptr %25, ptr %24, align 8
  %26 = getelementptr inbounds { ptr, ptr }, ptr %4, i32 0, i32 1
  %27 = extractvalue { ptr, ptr } %23, 1
  store ptr %27, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(64) %28)
  %30 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 0
  %31 = extractvalue { ptr, ptr } %29, 0
  store ptr %31, ptr %30, align 8
  %32 = getelementptr inbounds { ptr, ptr }, ptr %5, i32 0, i32 1
  %33 = extractvalue { ptr, ptr } %29, 1
  store ptr %33, ptr %32, align 8
  br label %34

34:                                               ; preds = %45, %16
  %35 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %47

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %38 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 104, ptr %7) #4
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.robin_hood::pair", ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.robin_hood::pair", ptr %42, i32 0, i32 1
  call void @_ZNSt4pairIN7openset6result6RowKeyEPNS1_11AccumulatorEEC2IRKS2_RS4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(104) %7, ptr noundef nonnull align 8 dereferenceable(96) %41, ptr noundef nonnull align 8 dereferenceable(8) %43)
  %44 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(104) %7)
  call void @llvm.lifetime.end.p0(i64 104, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %45

45:                                               ; preds = %37
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  br label %34

47:                                               ; preds = %36
  %48 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 1
  %49 = call ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #4
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  %51 = getelementptr inbounds %"class.openset::result::ResultSet", ptr %11, i32 0, i32 1
  %52 = call ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #4
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8
  %56 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  call void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIN7openset6result6RowKeyEPNS4_11AccumulatorEESt6vectorIS8_SaIS8_EEEEZNS4_9ResultSet14makeSortedListEvE3$_0EvT_SG_T0_"(ptr %55, ptr %57)
  br label %58

58:                                               ; preds = %47, %15
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(64)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(104)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIN7openset6result6RowKeyEPNS1_11AccumulatorEEC2IRKS2_RS4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIN7openset6result6RowKeyEPNS4_11AccumulatorEESt6vectorIS8_SaIS8_EEEEZNS4_9ResultSet14makeSortedListEvE3$_0EvT_SG_T0_"(ptr, ptr) #3

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

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

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 = { 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 #3 = { inlinehint 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !24, i64 153}
!10 = !{!"_ZTSN7openset6result9ResultSetE", !11, i64 0, !16, i64 64, !20, i64 88, !14, i64 144, !21, i64 152, !24, i64 153, !25, i64 160, !26, i64 208, !30, i64 232}
!11 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EEE", !12, i64 0, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !15, i64 60}
!12 = !{!"_ZTSN10robin_hood6detail13NodeAllocatorINS_4pairIKN7openset6result6RowKeyEPNS4_11AccumulatorEEELm4ELm16384ELb0EEE", !13, i64 0}
!13 = !{!"_ZTSN10robin_hood6detail17BulkPoolAllocatorINS_4pairIKN7openset6result6RowKeyEPNS4_11AccumulatorEEELm4ELm16384EEE", !6, i64 0, !6, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTS9HeapStack", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !6, i64 48}
!21 = !{!"_ZTS15CriticalSection", !22, i64 0}
!22 = !{!"_ZTSSt6atomicIbE", !23, i64 0}
!23 = !{!"_ZTSSt13__atomic_baseIbE", !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEEE", !6, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !15, i64 44}
!26 = !{!"_ZTSSt6vectorIN7openset6result13ResultTypes_eESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN7openset6result13ResultTypes_eESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7openset6result13ResultTypes_eESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN7openset6result13ResultTypes_eESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIN7openset5query11Modifiers_eESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN7openset5query11Modifiers_eESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7openset5query11Modifiers_eESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7openset5query11Modifiers_eESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{i8 0, i8 2}
!35 = !{}


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

%"class.robin_hood::detail::unordered_map<false, 80, openset::result::RowKey, openset::result::Accumulator *, robin_hood::hash<openset::result::RowKey>, std::equal_to<openset::result::RowKey>>::Iter" = type { ptr, ptr }
%"struct.std::pair.312" = type { %"struct.openset::result::RowKey", ptr }
%"struct.openset::result::RowKey" = type { [8 x i64], [8 x i32] }

; 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
define dso_local void @_ZN7openset6result9ResultSet14makeSortedListEv(ptr noundef nonnull align 8 dereferenceable(256) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.robin_hood::detail::unordered_map<false, 80, openset::result::RowKey, openset::result::Accumulator *, robin_hood::hash<openset::result::RowKey>, std::equal_to<openset::result::RowKey>>::Iter", align 8
  %3 = alloca %"class.robin_hood::detail::unordered_map<false, 80, openset::result::RowKey, openset::result::Accumulator *, robin_hood::hash<openset::result::RowKey>, std::equal_to<openset::result::RowKey>>::Iter", align 8
  %4 = alloca %"struct.std::pair.312", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 153
  %6 = load i8, ptr %5, align 1, !tbaa !5, !range !33, !noundef !34
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %27, label %8

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %10 = tail call noundef i64 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(64) %0) #4
  tail call void @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  %11 = tail call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %12 = extractvalue { ptr, ptr } %11, 0
  store ptr %12, ptr %2, align 8
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  %14 = extractvalue { ptr, ptr } %11, 1
  store ptr %14, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #4
  %15 = tail call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %16 = extractvalue { ptr, ptr } %15, 0
  store ptr %16, ptr %3, align 8
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  %18 = extractvalue { ptr, ptr } %15, 1
  store ptr %18, ptr %17, align 8
  %19 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  br i1 %19, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  %20 = call ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %21 = call ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIN7openset6result6RowKeyEPNS4_11AccumulatorEESt6vectorIS8_SaIS8_EEEEZNS4_9ResultSet14makeSortedListEvE3$_0EvT_SG_T0_"(ptr %20, ptr %21)
  br label %27

.lr.ph:                                           ; preds = %8, %.lr.ph
  %22 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %4) #4
  %23 = getelementptr inbounds i8, ptr %22, i64 96
  call void @_ZNSt4pairIN7openset6result6RowKeyEPNS1_11AccumulatorEEC2IRKS2_RS4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(104) %4, ptr noundef nonnull align 8 dereferenceable(96) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %24 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(104) %4)
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %4) #4
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  %26 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %3) #4
  br i1 %26, label %.lr.ph, label %._crit_edge

27:                                               ; preds = %1, %._crit_edge
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSC_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNK10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIN7openset6result6RowKeyEPNS1_11AccumulatorEEC2IRKS2_RS4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISB_SC_EEEbE4typeELb1EEEOSB_OSC_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIN7openset6result6RowKeyEPNS4_11AccumulatorEESt6vectorIS8_SaIS8_EEEEZNS4_9ResultSet14makeSortedListEvE3$_0EvT_SG_T0_"(ptr, ptr) local_unnamed_addr #3

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

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

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 = { 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 #3 = { inlinehint 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, !23, i64 153}
!6 = !{!"_ZTSN7openset6result9ResultSetE", !7, i64 0, !15, i64 64, !19, i64 88, !13, i64 144, !20, i64 152, !23, i64 153, !24, i64 160, !25, i64 208, !29, i64 232}
!7 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb0ELm80EN7openset6result6RowKeyEPNS3_11AccumulatorENS_4hashIS4_EESt8equal_toIS4_EEE", !8, i64 0, !10, i64 16, !10, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !14, i64 60}
!8 = !{!"_ZTSN10robin_hood6detail13NodeAllocatorINS_4pairIKN7openset6result6RowKeyEPNS4_11AccumulatorEEELm4ELm16384ELb0EEE", !9, i64 0}
!9 = !{!"_ZTSN10robin_hood6detail17BulkPoolAllocatorINS_4pairIKN7openset6result6RowKeyEPNS4_11AccumulatorEEELm4ELm16384EEE", !10, i64 0, !10, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"long", !11, i64 0}
!14 = !{!"int", !11, i64 0}
!15 = !{!"_ZTSSt6vectorISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7openset6result6RowKeyEPNS2_11AccumulatorEESaIS6_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"_ZTS9HeapStack", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 48}
!20 = !{!"_ZTS15CriticalSection", !21, i64 0}
!21 = !{!"_ZTSSt6atomicIbE", !22, i64 0}
!22 = !{!"_ZTSSt13__atomic_baseIbE", !23, i64 0}
!23 = !{!"bool", !11, i64 0}
!24 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80ElPcNS_4hashIlEESt8equal_toIlEEE", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !14, i64 40, !14, i64 44}
!25 = !{!"_ZTSSt6vectorIN7openset6result13ResultTypes_eESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN7openset6result13ResultTypes_eESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN7openset6result13ResultTypes_eESaIS2_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN7openset6result13ResultTypes_eESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!29 = !{!"_ZTSSt6vectorIN7openset5query11Modifiers_eESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN7openset5query11Modifiers_eESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7openset5query11Modifiers_eESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN7openset5query11Modifiers_eESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!33 = !{i8 0, i8 2}
!34 = !{}


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