; LLVM IR from EricZinda/InductorHtn :: src/FXPlatform/Prolog (HtnTermFactory)

; 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.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%class.HtnTermFactory = type { %"class.std::enable_shared_from_this", %"class.std::map", %"class.std::shared_ptr", %"class.std::shared_ptr", %"class.std::unordered_map", %"class.std::unordered_map.5", i64, i8, i64, %"class.std::map.21", i32, %"class.std::shared_ptr", [4096 x ptr], ptr, i64 }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<HtnCustomData>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<HtnCustomData>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<HtnCustomData>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::shared_ptr<HtnCustomData>>>, 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::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::unordered_map.5" = type { %"class.std::_Hashtable.6" }
%"class.std::_Hashtable.6" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::map.21" = type { %"class.std::_Rb_tree.22" }
%"class.std::_Rb_tree.22" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::pair<int, int>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::pair<int, int>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::pair<int, int>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::pair<int, int>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.48" = type { ptr, %"class.std::weak_ptr.30" }
%"class.std::weak_ptr.30" = type { %"class.std::__weak_ptr.31" }
%"class.std::__weak_ptr.31" = type { ptr, %"class.std::__weak_count" }

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

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

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

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

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

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

declare void @_ZNK7HtnTerm11GetUniqueIDEPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, ptr noundef) #3

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

declare void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef, i1 noundef zeroext, ptr noundef, i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14HtnTermFactory19ReleaseInternedTermEP7HtnTerm(ptr noundef nonnull align 8 dereferenceable(33088) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 12
  %15 = getelementptr inbounds [4096 x ptr], ptr %14, i64 0, i64 0
  %16 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 13
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  call void @_ZNK7HtnTerm11GetUniqueIDEPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_(ptr noundef nonnull align 8 dereferenceable(72) %13, ptr noundef %15, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %18 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 12
  %19 = getelementptr inbounds [4096 x ptr], ptr %18, i64 0, i64 0
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = ptrtoint ptr %20 to i64
  store i64 %21, ptr %5, align 8, !tbaa !39
  %22 = load i64, ptr %5, align 8, !tbaa !39
  %23 = mul i64 %22, 8
  %24 = add i64 24, %23
  %25 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 6
  %26 = load i64, ptr %25, align 8, !tbaa !40
  %27 = sub i64 %26, %24
  store i64 %27, ptr %25, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %28 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %29 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 12
  %30 = getelementptr inbounds [4096 x ptr], ptr %29, i64 0, i64 0
  store ptr %30, ptr %7, align 8, !tbaa !5
  %31 = call ptr @_ZNSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE4findERSG_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %32 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %6, i32 0, i32 0
  %33 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %32, i32 0, i32 0
  store ptr %31, ptr %33, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %34 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 5
  %35 = call ptr @_ZNSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %34) #6
  %36 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %8, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %36, i32 0, i32 0
  store ptr %35, ptr %37, align 8
  %38 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEELb1EEESI_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef %12, i1 noundef zeroext %38, ptr noundef @.str.3, i64 noundef 212)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %39 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %40 = getelementptr inbounds %"struct.std::pair.48", ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !41
  store ptr %41, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.HtnTermFactory, ptr %12, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %6, i64 8, i1 false)
  %43 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = call ptr @_ZNSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE5eraseENSt8__detail14_Node_iteratorISH_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56) %42, ptr %45)
  %47 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %11, i32 0, i32 0
  %48 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %47, i32 0, i32 0
  store ptr %46, ptr %48, align 8
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %52, label %51

51:                                               ; preds = %2
  call void @_ZdaPv(ptr noundef %49) #7
  br label %52

52:                                               ; preds = %51, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 33072}
!10 = !{!"_ZTS14HtnTermFactory", !11, i64 0, !15, i64 16, !24, i64 64, !24, i64 80, !27, i64 96, !32, i64 152, !23, i64 208, !34, i64 216, !23, i64 224, !35, i64 232, !38, i64 280, !24, i64 288, !7, i64 304, !6, i64 33072, !23, i64 33080}
!11 = !{!"_ZTSSt23enable_shared_from_thisI14HtnTermFactoryE", !12, i64 0}
!12 = !{!"_ZTSSt8weak_ptrI14HtnTermFactoryE", !13, i64 0}
!13 = !{!"_ZTSSt10__weak_ptrI14HtnTermFactoryLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!15 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13HtnCustomDataESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !16, i64 0}
!16 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !17, i64 0}
!17 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !19, i64 0}
!19 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !23, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt10shared_ptrI7HtnTermE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrI7HtnTermLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!27 = !{!"_ZTSSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS7_iESaISA_ENSt8__detail10_Select1stEN14HtnTermFactory14stringPtrEqualENSE_13stringPtrHashENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !29, i64 16, !23, i64 24, !30, i64 32, !6, i64 48}
!29 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!30 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !31, i64 0, !23, i64 8}
!31 = !{!"float", !7, i64 0}
!32 = !{!"_ZTSSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS8_St8weak_ptrI7HtnTermEESaISE_ENSt8__detail10_Select1stEN14HtnTermFactory16uniqueIDPtrEqualENSI_15uniqueIDPtrHashENSG_18_Mod_range_hashingENSG_20_Default_ranged_hashENSG_20_Prime_rehash_policyENSG_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !29, i64 16, !23, i64 24, !30, i64 32, !6, i64 48}
!34 = !{!"bool", !7, i64 0}
!35 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIiiESt4lessIS5_ESaIS6_IKS5_S7_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE13_Rb_tree_implISD_Lb1EEE", !18, i64 0, !20, i64 8}
!38 = !{!"int", !7, i64 0}
!39 = !{!23, !23, i64 0}
!40 = !{!10, !23, i64 208}
!41 = !{!42, !6, i64 0}
!42 = !{!"_ZTSSt4pairIKPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEE", !6, i64 0, !43, i64 8}
!43 = !{!"_ZTSSt8weak_ptrI7HtnTermE", !44, i64 0}
!44 = !{!"_ZTSSt10__weak_ptrI7HtnTermLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}


; 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.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

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

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

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

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

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

declare void @_ZNK7HtnTerm11GetUniqueIDEPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef, i1 noundef zeroext, ptr noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14HtnTermFactory19ReleaseInternedTermEP7HtnTerm(ptr noundef nonnull align 8 dereferenceable(33088) %0, ptr noundef nonnull %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 304
  %7 = getelementptr inbounds i8, ptr %0, i64 33072
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  tail call void @_ZNK7HtnTerm11GetUniqueIDEPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_(ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull %6, ptr noundef %8)
  %9 = load ptr, ptr %6, align 8, !tbaa !38
  %10 = ptrtoint ptr %9 to i64
  %11 = getelementptr inbounds i8, ptr %0, i64 208
  %12 = load i64, ptr %11, align 8, !tbaa !39
  %.neg4 = add i64 %12, -24
  %13 = shl i64 %10, 3
  %14 = sub i64 %.neg4, %13
  store i64 %14, ptr %11, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store ptr %6, ptr %4, align 8, !tbaa !38
  %16 = call ptr @_ZNSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE4findERSG_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 8 dereferenceable(8) %4)
  store ptr %16, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %17 = call ptr @_ZNSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %15) #5
  store ptr %17, ptr %5, align 8
  %18 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEELb1EEESI_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef nonnull %0, i1 noundef zeroext %18, ptr noundef nonnull @.str.3, i64 noundef 212)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %19 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %20 = load ptr, ptr %19, align 8, !tbaa !40
  %.sroa.01.0.copyload = load ptr, ptr %3, align 8
  %21 = call ptr @_ZNSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE5eraseENSt8__detail14_Node_iteratorISH_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr %.sroa.01.0.copyload)
  %22 = icmp eq ptr %20, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %2
  call void @_ZdaPv(ptr noundef nonnull %20) #6
  br label %24

24:                                               ; preds = %23, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void
}

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

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

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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 33072}
!6 = !{!"_ZTS14HtnTermFactory", !7, i64 0, !14, i64 16, !23, i64 64, !23, i64 80, !26, i64 96, !31, i64 152, !22, i64 208, !33, i64 216, !22, i64 224, !34, i64 232, !37, i64 280, !23, i64 288, !11, i64 304, !10, i64 33072, !22, i64 33080}
!7 = !{!"_ZTSSt23enable_shared_from_thisI14HtnTermFactoryE", !8, i64 0}
!8 = !{!"_ZTSSt8weak_ptrI14HtnTermFactoryE", !9, i64 0}
!9 = !{!"_ZTSSt10__weak_ptrI14HtnTermFactoryLN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!14 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13HtnCustomDataESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !22, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!22 = !{!"long", !11, i64 0}
!23 = !{!"_ZTSSt10shared_ptrI7HtnTermE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrI7HtnTermLN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !25, i64 8}
!25 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!26 = !{!"_ZTSSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE", !27, i64 0}
!27 = !{!"_ZTSSt10_HashtableIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS7_iESaISA_ENSt8__detail10_Select1stEN14HtnTermFactory14stringPtrEqualENSE_13stringPtrHashENSC_18_Mod_range_hashingENSC_20_Default_ranged_hashENSC_20_Prime_rehash_policyENSC_17_Hashtable_traitsILb1ELb0ELb1EEEE", !10, i64 0, !22, i64 8, !28, i64 16, !22, i64 24, !29, i64 32, !10, i64 48}
!28 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!29 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !30, i64 0, !22, i64 8}
!30 = !{!"float", !11, i64 0}
!31 = !{!"_ZTSSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_HashtableIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS8_St8weak_ptrI7HtnTermEESaISE_ENSt8__detail10_Select1stEN14HtnTermFactory16uniqueIDPtrEqualENSI_15uniqueIDPtrHashENSG_18_Mod_range_hashingENSG_20_Default_ranged_hashENSG_20_Prime_rehash_policyENSG_17_Hashtable_traitsILb1ELb0ELb1EEEE", !10, i64 0, !22, i64 8, !28, i64 16, !22, i64 24, !29, i64 32, !10, i64 48}
!33 = !{!"bool", !11, i64 0}
!34 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIiiESt4lessIS5_ESaIS6_IKS5_S7_EEE", !35, i64 0}
!35 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE", !36, i64 0}
!36 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE13_Rb_tree_implISD_Lb1EEE", !17, i64 0, !19, i64 8}
!37 = !{!"int", !11, i64 0}
!38 = !{!10, !10, i64 0}
!39 = !{!6, !22, i64 208}
!40 = !{!41, !10, i64 0}
!41 = !{!"_ZTSSt4pairIKPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEE", !10, i64 0, !42, i64 8}
!42 = !{!"_ZTSSt8weak_ptrI7HtnTermE", !43, i64 0}
!43 = !{!"_ZTSSt10__weak_ptrI7HtnTermLN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !13, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass