; LLVM IR from opset/openset :: src/queryindexing.ll (ZN7openset5query8Indexing5mountEPNS_2db5TableERNS0_7Macro_sEii)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.openset::db::IndexBits" = type <{ ptr, i32, i8, [3 x i8] }>
%"class.openset::query::Indexing" = type { %"class.std::vector", %"struct.openset::query::Macro_s", ptr, ptr, i32, i32, %"class.std::vector.344" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<openset::query::Indexing::StackItem_s, std::allocator<openset::query::Indexing::StackItem_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Indexing::StackItem_s, std::allocator<openset::query::Indexing::StackItem_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Indexing::StackItem_s, std::allocator<openset::query::Indexing::StackItem_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Indexing::StackItem_s, std::allocator<openset::query::Indexing::StackItem_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.openset::query::Macro_s" = type { %"struct.openset::query::Variables_S", %"class.std::vector.297", %"class.std::vector.297", %"class.std::vector.322", %"class.std::vector.327", %"class.std::vector.332", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::vector.337", i8, %"class.std::__cxx11::basic_string", %"class.std::vector.342", %"class.std::unordered_set.200", i64, i64, i32, i64, %"class.std::__cxx11::basic_string", i8, i8, i8, i8, i8, i8, i8, i8, i8, i32 }
%"struct.openset::query::Variables_S" = type { %"class.std::vector.292", %"class.std::vector.292", %"class.std::vector.292", %"class.std::vector.297", %"class.std::vector.302", %"class.std::vector.307", %"class.std::vector.312", %"class.std::vector.317" }
%"class.std::vector.292" = type { %"struct.std::_Vector_base.293" }
%"struct.std::_Vector_base.293" = type { %"struct.std::_Vector_base<openset::query::Variable_s, std::allocator<openset::query::Variable_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Variable_s, std::allocator<openset::query::Variable_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Variable_s, std::allocator<openset::query::Variable_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Variable_s, std::allocator<openset::query::Variable_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.302" = type { %"struct.std::_Vector_base.303" }
%"struct.std::_Vector_base.303" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_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::Function_s, std::allocator<openset::query::Function_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Function_s, std::allocator<openset::query::Function_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Function_s, std::allocator<openset::query::Function_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Function_s, std::allocator<openset::query::Function_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.312" = type { %"struct.std::_Vector_base.313" }
%"struct.std::_Vector_base.313" = type { %"struct.std::_Vector_base<openset::query::TextLiteral_s, std::allocator<openset::query::TextLiteral_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::TextLiteral_s, std::allocator<openset::query::TextLiteral_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::TextLiteral_s, std::allocator<openset::query::TextLiteral_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::TextLiteral_s, std::allocator<openset::query::TextLiteral_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.317" = type { %"struct.std::_Vector_base.318" }
%"struct.std::_Vector_base.318" = type { %"struct.std::_Vector_base<openset::query::Count_S, std::allocator<openset::query::Count_S>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Count_S, std::allocator<openset::query::Count_S>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Count_S, std::allocator<openset::query::Count_S>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Count_S, std::allocator<openset::query::Count_S>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.297" = type { %"struct.std::_Vector_base.298" }
%"struct.std::_Vector_base.298" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.322" = type { %"struct.std::_Vector_base.323" }
%"struct.std::_Vector_base.323" = type { %"struct.std::_Vector_base<openset::query::Filter_s, std::allocator<openset::query::Filter_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Filter_s, std::allocator<openset::query::Filter_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Filter_s, std::allocator<openset::query::Filter_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Filter_s, std::allocator<openset::query::Filter_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.327" = type { %"struct.std::_Vector_base.328" }
%"struct.std::_Vector_base.328" = type { %"struct.std::_Vector_base<openset::query::Instruction_s, std::allocator<openset::query::Instruction_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::Instruction_s, std::allocator<openset::query::Instruction_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::Instruction_s, std::allocator<openset::query::Instruction_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::Instruction_s, std::allocator<openset::query::Instruction_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.332" = type { %"struct.std::_Vector_base.333" }
%"struct.std::_Vector_base.333" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::vector<openset::query::HintOp_s>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.337" = type { %"struct.std::_Vector_base.338" }
%"struct.std::_Vector_base.338" = type { %"struct.std::_Vector_base<openset::query::HintOp_s, std::allocator<openset::query::HintOp_s>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::query::HintOp_s, std::allocator<openset::query::HintOp_s>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::query::HintOp_s, std::allocator<openset::query::HintOp_s>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::query::HintOp_s, std::allocator<openset::query::HintOp_s>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.342" = type { %"struct.std::_Vector_base.343" }
%"struct.std::_Vector_base.343" = 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::unordered_set.200" = type { %"class.std::_Hashtable.201" }
%"class.std::_Hashtable.201" = 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::__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.344" = type { %"struct.std::_Vector_base.345" }
%"struct.std::_Vector_base.345" = type { %"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>, std::allocator<std::tuple<std::__cxx11::basic_string<char>, openset::db::IndexBits, bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.480" = type { %"class.std::__cxx11::basic_string", %"class.std::vector.337" }

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN7openset5query8Indexing5mountEPNS_2db5TableERNS0_7Macro_sEii(ptr noundef nonnull align 8 dereferenceable(672) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(600) %2, i32 noundef %3, i32 noundef %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.openset::db::IndexBits", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8
  %19 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 6
  call void @_ZNSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 2
  store ptr %20, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 1
  %24 = call noundef nonnull align 8 dereferenceable(600) ptr @_ZN7openset5query7Macro_saSERKS1_(ptr noundef nonnull align 8 dereferenceable(600) %23, ptr noundef nonnull align 8 dereferenceable(600) %22)
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 4
  store i32 %25, ptr %26, align 8, !tbaa !76
  %27 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 4
  %30 = load i32, ptr %29, align 8, !tbaa !76
  %31 = call noundef ptr @_ZN7openset2db5Table19getPartitionObjectsEib(ptr noundef nonnull align 8 dereferenceable(197600) %28, i32 noundef %30, i1 noundef zeroext false)
  %32 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 3
  store ptr %31, ptr %32, align 8, !tbaa !77
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 5
  store i32 %33, ptr %34, align 4, !tbaa !78
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.openset::query::Macro_s", ptr %35, i32 0, i32 5
  store ptr %36, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = call ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IN7openset5query8HintOp_sESaIS9_EEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = call ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IN7openset5query8HintOp_sESaIS9_EEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  br label %43

43:                                               ; preds = %61, %5
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br i1 %44, label %46, label %45

45:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %67

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %47 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  store ptr %47, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.std::pair.480", ptr %48, i32 0, i32 1
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.openset::query::Macro_s", ptr %50, i32 0, i32 9
  %52 = load i8, ptr %51, align 8, !tbaa !79, !range !80, !noundef !81
  %53 = trunc i8 %52 to i1
  call void @_ZN7openset5query8Indexing10buildIndexERSt6vectorINS0_8HintOp_sESaIS3_EEb(ptr dead_on_unwind writable sret(%"class.openset::db::IndexBits") align 8 %15, ptr noundef nonnull align 8 dereferenceable(672) %18, ptr noundef nonnull align 8 dereferenceable(24) %49, i1 noundef zeroext %53)
  %54 = getelementptr inbounds %"class.openset::query::Indexing", ptr %18, i32 0, i32 6
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.std::pair.480", ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.openset::query::Macro_s", ptr %57, i32 0, i32 9
  %59 = invoke noundef nonnull align 1 ptr @_ZNSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE12emplace_backIJRS6_RKS9_RbEEERSA_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef nonnull align 8 dereferenceable(13) %15, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %60 unwind label %63

60:                                               ; preds = %46
  call void @_ZN7openset2db9IndexBitsD1Ev(ptr noundef nonnull align 8 dereferenceable(13) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %61

61:                                               ; preds = %60
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %43

63:                                               ; preds = %46
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %16, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %17, align 4
  call void @_ZN7openset2db9IndexBitsD1Ev(ptr noundef nonnull align 8 dereferenceable(13) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %68

67:                                               ; preds = %45
  ret void

68:                                               ; preds = %63
  %69 = load ptr, ptr %16, align 8
  %70 = load i32, ptr %17, align 4
  %71 = insertvalue { ptr, i32 } poison, ptr %69, 0
  %72 = insertvalue { ptr, i32 } %71, i32 %70, 1
  resume { ptr, i32 } %72
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(600) ptr @_ZN7openset5query7Macro_saSERKS1_(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef nonnull align 8 dereferenceable(600)) #3 align 2

declare noundef ptr @_ZN7openset2db5Table19getPartitionObjectsEib(ptr noundef nonnull align 8 dereferenceable(197600), i32 noundef, i1 noundef zeroext) #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7openset5query8Indexing10buildIndexERSt6vectorINS0_8HintOp_sESaIS3_EEb(ptr dead_on_unwind noalias writable sret(%"class.openset::db::IndexBits") align 8, ptr noundef nonnull align 8 dereferenceable(672), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #1 align 2

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

; Function Attrs: nounwind
declare void @_ZN7openset2db9IndexBitsD1Ev(ptr noundef nonnull align 8 dereferenceable(13)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { "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 = { inlinehint 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 = { 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 #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 624}
!12 = !{!"_ZTSN7openset5query8IndexingE", !13, i64 0, !17, i64 24, !6, i64 624, !6, i64 632, !10, i64 640, !10, i64 644, !72, i64 648}
!13 = !{!"_ZTSSt6vectorIN7openset5query8Indexing11StackItem_sESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN7openset5query8Indexing11StackItem_sESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Indexing11StackItem_sESaIS3_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Indexing11StackItem_sESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN7openset5query7Macro_sE", !18, i64 0, !23, i64 192, !23, i64 216, !43, i64 240, !47, i64 264, !51, i64 288, !55, i64 312, !55, i64 344, !58, i64 376, !62, i64 400, !55, i64 408, !63, i64 440, !67, i64 464, !57, i64 520, !57, i64 528, !10, i64 536, !57, i64 544, !55, i64 552, !62, i64 584, !62, i64 585, !62, i64 586, !62, i64 587, !62, i64 588, !62, i64 589, !62, i64 590, !62, i64 591, !62, i64 592, !10, i64 596}
!18 = !{!"_ZTSN7openset5query11Variables_SE", !19, i64 0, !19, i64 24, !19, i64 48, !23, i64 72, !27, i64 96, !31, i64 120, !35, i64 144, !39, i64 168}
!19 = !{!"_ZTSSt6vectorIN7openset5query10Variable_sESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7openset5query10Variable_sESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Variable_sESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Variable_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIiSaIiEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIlSaIlEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIN7openset5query10Function_sESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN7openset5query10Function_sESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Function_sESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Function_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorIN7openset5query13TextLiteral_sESaIS2_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN7openset5query13TextLiteral_sESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13TextLiteral_sESaIS2_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13TextLiteral_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSSt6vectorIN7openset5query7Count_SESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIN7openset5query7Count_SESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN7openset5query7Count_SESaIS2_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN7openset5query7Count_SESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt6vectorIN7openset5query8Filter_sESaIS2_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIN7openset5query8Filter_sESaIS2_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Filter_sESaIS2_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Filter_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!"_ZTSSt6vectorIN7openset5query13Instruction_sESaIS2_EE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIN7openset5query13Instruction_sESaIS2_EE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13Instruction_sESaIS2_EE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13Instruction_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IN7openset5query8HintOp_sESaIS9_EEESaISC_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISA_EEESaISD_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISA_EEESaISD_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISA_EEESaISD_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !56, i64 0, !57, i64 8, !7, i64 16}
!56 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!57 = !{!"long", !7, i64 0}
!58 = !{!"_ZTSSt6vectorIN7openset5query8HintOp_sESaIS2_EE", !59, i64 0}
!59 = !{!"_ZTSSt12_Vector_baseIN7openset5query8HintOp_sESaIS2_EE", !60, i64 0}
!60 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8HintOp_sESaIS2_EE12_Vector_implE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8HintOp_sESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!62 = !{!"bool", !7, i64 0}
!63 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !64, i64 0}
!64 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !66, i64 0}
!66 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!67 = !{!"_ZTSSt13unordered_setIN7openset5query10Marshals_eESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !68, i64 0}
!68 = !{!"_ZTSSt10_HashtableIN7openset5query10Marshals_eES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !57, i64 8, !69, i64 16, !57, i64 24, !70, i64 32, !6, i64 48}
!69 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!70 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !71, i64 0, !57, i64 8}
!71 = !{!"float", !7, i64 0}
!72 = !{!"_ZTSSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE", !73, i64 0}
!73 = !{!"_ZTSSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE", !74, i64 0}
!74 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE12_Vector_implE", !75, i64 0}
!75 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!76 = !{!12, !10, i64 640}
!77 = !{!12, !6, i64 632}
!78 = !{!12, !10, i64 644}
!79 = !{!17, !62, i64 400}
!80 = !{i8 0, i8 2}
!81 = !{}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.openset::db::IndexBits" = type <{ ptr, i32, i8, [3 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN7openset5query8Indexing5mountEPNS_2db5TableERNS0_7Macro_sEii(ptr noundef nonnull align 8 dereferenceable(672) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(600) %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.openset::db::IndexBits", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 648
  tail call void @_ZNSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 624
  store ptr %1, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = tail call noundef nonnull align 8 dereferenceable(600) ptr @_ZN7openset5query7Macro_saSERKS1_(ptr noundef nonnull align 8 dereferenceable(600) %11, ptr noundef nonnull align 8 dereferenceable(600) %2)
  %13 = getelementptr inbounds i8, ptr %0, i64 640
  store i32 %3, ptr %13, align 8, !tbaa !74
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %15 = tail call noundef ptr @_ZN7openset2db5Table19getPartitionObjectsEib(ptr noundef nonnull align 8 dereferenceable(197600) %14, i32 noundef %3, i1 noundef zeroext false)
  %16 = getelementptr inbounds i8, ptr %0, i64 632
  store ptr %15, ptr %16, align 8, !tbaa !75
  %17 = getelementptr inbounds i8, ptr %0, i64 644
  store i32 %4, ptr %17, align 4, !tbaa !76
  %18 = getelementptr inbounds i8, ptr %2, i64 288
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %19 = tail call ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IN7openset5query8HintOp_sESaIS9_EEESaISC_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  store ptr %19, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %20 = tail call ptr @_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IN7openset5query8HintOp_sESaIS9_EEESaISC_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  store ptr %20, ptr %7, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %22 = getelementptr inbounds i8, ptr %2, i64 400
  br label %23

._crit_edge:                                      ; preds = %29, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret void

23:                                               ; preds = %.lr.ph, %29
  %24 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %25 = getelementptr inbounds i8, ptr %24, i64 32
  %26 = load i8, ptr %22, align 8, !tbaa !77, !range !78, !noundef !79
  %27 = trunc nuw i8 %26 to i1
  call void @_ZN7openset5query8Indexing10buildIndexERSt6vectorINS0_8HintOp_sESaIS3_EEb(ptr dead_on_unwind nonnull writable sret(%"class.openset::db::IndexBits") align 8 %8, ptr noundef nonnull align 8 dereferenceable(672) %0, ptr noundef nonnull align 8 dereferenceable(24) %25, i1 noundef zeroext %27)
  %28 = invoke noundef nonnull align 1 ptr @_ZNSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE12emplace_backIJRS6_RKS9_RbEEERSA_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(13) %8, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %29 unwind label %32

29:                                               ; preds = %23
  call void @_ZN7openset2db9IndexBitsD1Ev(ptr noundef nonnull align 8 dereferenceable(13) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %31, label %23, label %._crit_edge

32:                                               ; preds = %23
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7openset2db9IndexBitsD1Ev(ptr noundef nonnull align 8 dereferenceable(13) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  resume { ptr, i32 } %33
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(600) ptr @_ZN7openset5query7Macro_saSERKS1_(ptr noundef nonnull align 8 dereferenceable(600), ptr noundef nonnull align 8 dereferenceable(600)) local_unnamed_addr #3 align 2

declare noundef ptr @_ZN7openset2db5Table19getPartitionObjectsEib(ptr noundef nonnull align 8 dereferenceable(197600), i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEEbRKNS_17__normal_iteratorIT_T0_EESN_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7openset5query8Indexing10buildIndexERSt6vectorINS0_8HintOp_sESaIS3_EEb(ptr dead_on_unwind noalias writable sret(%"class.openset::db::IndexBits") align 8, ptr noundef nonnull align 8 dereferenceable(672), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #1 align 2

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

; Function Attrs: nounwind
declare void @_ZN7openset2db9IndexBitsD1Ev(ptr noundef nonnull align 8 dereferenceable(13)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISB_EEES8_ISE_SaISE_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) 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 = { "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 = { inlinehint 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 = { 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 #7 = { 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, !11, i64 624}
!6 = !{!"_ZTSN7openset5query8IndexingE", !7, i64 0, !14, i64 24, !11, i64 624, !11, i64 632, !69, i64 640, !69, i64 644, !70, i64 648}
!7 = !{!"_ZTSSt6vectorIN7openset5query8Indexing11StackItem_sESaIS3_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN7openset5query8Indexing11StackItem_sESaIS3_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Indexing11StackItem_sESaIS3_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Indexing11StackItem_sESaIS3_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSN7openset5query7Macro_sE", !15, i64 0, !20, i64 192, !20, i64 216, !40, i64 240, !44, i64 264, !48, i64 288, !52, i64 312, !52, i64 344, !55, i64 376, !59, i64 400, !52, i64 408, !60, i64 440, !64, i64 464, !54, i64 520, !54, i64 528, !69, i64 536, !54, i64 544, !52, i64 552, !59, i64 584, !59, i64 585, !59, i64 586, !59, i64 587, !59, i64 588, !59, i64 589, !59, i64 590, !59, i64 591, !59, i64 592, !69, i64 596}
!15 = !{!"_ZTSN7openset5query11Variables_SE", !16, i64 0, !16, i64 24, !16, i64 48, !20, i64 72, !24, i64 96, !28, i64 120, !32, i64 144, !36, i64 168}
!16 = !{!"_ZTSSt6vectorIN7openset5query10Variable_sESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7openset5query10Variable_sESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Variable_sESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Variable_sESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!24 = !{!"_ZTSSt6vectorIlSaIlEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!28 = !{!"_ZTSSt6vectorIN7openset5query10Function_sESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIN7openset5query10Function_sESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Function_sESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN7openset5query10Function_sESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!32 = !{!"_ZTSSt6vectorIN7openset5query13TextLiteral_sESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN7openset5query13TextLiteral_sESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13TextLiteral_sESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13TextLiteral_sESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!36 = !{!"_ZTSSt6vectorIN7openset5query7Count_SESaIS2_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN7openset5query7Count_SESaIS2_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7openset5query7Count_SESaIS2_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN7openset5query7Count_SESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!40 = !{!"_ZTSSt6vectorIN7openset5query8Filter_sESaIS2_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIN7openset5query8Filter_sESaIS2_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Filter_sESaIS2_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8Filter_sESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!44 = !{!"_ZTSSt6vectorIN7openset5query13Instruction_sESaIS2_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseIN7openset5query13Instruction_sESaIS2_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13Instruction_sESaIS2_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN7openset5query13Instruction_sESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!48 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IN7openset5query8HintOp_sESaIS9_EEESaISC_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISA_EEESaISD_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISA_EEESaISD_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIN7openset5query8HintOp_sESaISA_EEESaISD_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!52 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !53, i64 0, !54, i64 8, !12, i64 16}
!53 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!54 = !{!"long", !12, i64 0}
!55 = !{!"_ZTSSt6vectorIN7openset5query8HintOp_sESaIS2_EE", !56, i64 0}
!56 = !{!"_ZTSSt12_Vector_baseIN7openset5query8HintOp_sESaIS2_EE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8HintOp_sESaIS2_EE12_Vector_implE", !58, i64 0}
!58 = !{!"_ZTSNSt12_Vector_baseIN7openset5query8HintOp_sESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!59 = !{!"bool", !12, i64 0}
!60 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !61, i64 0}
!61 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !63, i64 0}
!63 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!64 = !{!"_ZTSSt13unordered_setIN7openset5query10Marshals_eESt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !65, i64 0}
!65 = !{!"_ZTSSt10_HashtableIN7openset5query10Marshals_eES2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb1ELb1ELb1EEEE", !11, i64 0, !54, i64 8, !66, i64 16, !54, i64 24, !67, i64 32, !11, i64 48}
!66 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!67 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !68, i64 0, !54, i64 8}
!68 = !{!"float", !12, i64 0}
!69 = !{!"int", !12, i64 0}
!70 = !{!"_ZTSSt6vectorISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE", !71, i64 0}
!71 = !{!"_ZTSSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE", !72, i64 0}
!72 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE12_Vector_implE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db9IndexBitsEbEESaISA_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!74 = !{!6, !69, i64 640}
!75 = !{!6, !11, i64 632}
!76 = !{!6, !69, i64 644}
!77 = !{!14, !59, i64 400}
!78 = !{i8 0, i8 2}
!79 = !{}


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