; 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.53" = type { %"struct.std::__detail::_Node_iterator_base.54" }
%"struct.std::__detail::_Node_iterator_base.54" = 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.55" = type <{ ptr, i32, [4 x i8] }>

@.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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14HtnTermFactory21ReleaseInternedStringEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(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 %"struct.std::__detail::_Node_iterator.53", align 8
  %6 = alloca %"struct.std::__detail::_Node_iterator.53", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator.53", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.53", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %11 = getelementptr inbounds %class.HtnTermFactory, ptr %10, i32 0, i32 4
  %12 = call ptr @_ZNSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %13 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.53", ptr %5, i32 0, i32 0
  %14 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.54", ptr %13, i32 0, i32 0
  store ptr %12, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %15 = getelementptr inbounds %class.HtnTermFactory, ptr %10, i32 0, i32 4
  %16 = call ptr @_ZNSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %15) #6
  %17 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.53", ptr %6, i32 0, i32 0
  %18 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.54", ptr %17, i32 0, i32 0
  store ptr %16, ptr %18, align 8
  %19 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br i1 %19, label %20, label %55

20:                                               ; preds = %2
  %21 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %22 = getelementptr inbounds %"struct.std::pair.55", ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %49

25:                                               ; preds = %20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  %28 = add i64 32, %27
  %29 = getelementptr inbounds %class.HtnTermFactory, ptr %10, i32 0, i32 8
  %30 = load i64, ptr %29, align 8, !tbaa !12
  %31 = sub i64 %30, %28
  store i64 %31, ptr %29, align 8, !tbaa !12
  %32 = getelementptr inbounds %class.HtnTermFactory, ptr %10, i32 0, i32 8
  %33 = load i64, ptr %32, align 8, !tbaa !12
  %34 = icmp sge i64 %33, 0
  call void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef %10, i1 noundef zeroext %34, ptr noundef @.str.3, i64 noundef 189)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %35 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %36 = getelementptr inbounds %"struct.std::pair.55", ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !41
  store ptr %37, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.HtnTermFactory, ptr %10, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %5, i64 8, i1 false)
  %39 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.53", ptr %8, i32 0, i32 0
  %40 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.54", ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  %42 = call ptr @_ZNSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE5eraseENSt8__detail14_Node_iteratorISD_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr %41)
  %43 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.53", ptr %9, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.54", ptr %43, i32 0, i32 0
  store ptr %42, ptr %44, align 8
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %48, label %47

47:                                               ; preds = %25
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #6
  call void @_ZdlPvm(ptr noundef %45, i64 noundef 32) #7
  br label %48

48:                                               ; preds = %47, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %54

49:                                               ; preds = %20
  %50 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %51 = getelementptr inbounds %"struct.std::pair.55", ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 8, !tbaa !9
  %53 = sub nsw i32 %52, 1
  store i32 %53, ptr %51, align 8, !tbaa !9
  br label %54

54:                                               ; preds = %49, %48
  br label %56

55:                                               ; preds = %2
  call void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef %10, i1 noundef zeroext false, ptr noundef @.str.3, i64 noundef 201)
  br label %56

56:                                               ; preds = %55, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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, !11, i64 8}
!10 = !{!"_ZTSSt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !26, i64 224}
!13 = !{!"_ZTS14HtnTermFactory", !14, i64 0, !18, i64 16, !27, i64 64, !27, i64 80, !30, i64 96, !35, i64 152, !26, i64 208, !37, i64 216, !26, i64 224, !38, i64 232, !11, i64 280, !27, i64 288, !7, i64 304, !6, i64 33072, !26, i64 33080}
!14 = !{!"_ZTSSt23enable_shared_from_thisI14HtnTermFactoryE", !15, i64 0}
!15 = !{!"_ZTSSt8weak_ptrI14HtnTermFactoryE", !16, i64 0}
!16 = !{!"_ZTSSt10__weak_ptrI14HtnTermFactoryLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13HtnCustomDataESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !26, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSSt10shared_ptrI7HtnTermE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrI7HtnTermLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !29, i64 8}
!29 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!30 = !{!"_ZTSSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE", !31, i64 0}
!31 = !{!"_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, !26, i64 8, !32, i64 16, !26, i64 24, !33, i64 32, !6, i64 48}
!32 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!33 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !34, i64 0, !26, i64 8}
!34 = !{!"float", !7, i64 0}
!35 = !{!"_ZTSSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE", !36, i64 0}
!36 = !{!"_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, !26, i64 8, !32, i64 16, !26, i64 24, !33, i64 32, !6, i64 48}
!37 = !{!"bool", !7, i64 0}
!38 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIiiESt4lessIS5_ESaIS6_IKS5_S7_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE13_Rb_tree_implISD_Lb1EEE", !21, i64 0, !23, i64 8}
!41 = !{!10, !6, i64 0}


; 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.53" = type { %"struct.std::__detail::_Node_iterator_base.54" }
%"struct.std::__detail::_Node_iterator_base.54" = 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: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14HtnTermFactory21ReleaseInternedStringEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(33088) %0, ptr noundef %1) local_unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator.53", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator.53", align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 96
  %7 = call ptr @_ZNSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %7, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %8 = call ptr @_ZNSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %6) #5
  store ptr %8, ptr %5, align 8
  %9 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb1EEESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br i1 %9, label %10, label %32

10:                                               ; preds = %2
  %11 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %27

15:                                               ; preds = %10
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 224
  %19 = load i64, ptr %18, align 8, !tbaa !12
  %reass.sub = sub i64 %19, %17
  %20 = add i64 %reass.sub, -32
  store i64 %20, ptr %18, align 8, !tbaa !12
  %21 = icmp sgt i64 %20, -1
  call void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef nonnull %0, i1 noundef zeroext %21, ptr noundef nonnull @.str.3, i64 noundef 189)
  %22 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %23 = load ptr, ptr %22, align 8, !tbaa !41
  %.sroa.01.0.copyload = load ptr, ptr %4, align 8
  %24 = call ptr @_ZNSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE5eraseENSt8__detail14_Node_iteratorISD_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr %.sroa.01.0.copyload)
  %25 = icmp eq ptr %23, null
  br i1 %25, label %33, label %26

26:                                               ; preds = %15
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 32) #6
  br label %33

27:                                               ; preds = %10
  %28 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %29, align 8, !tbaa !9
  br label %33

32:                                               ; preds = %2
  call void @_Z39failfastThis_uncaught_exception_handlerPvbPKcl(ptr noundef nonnull %0, i1 noundef zeroext false, ptr noundef nonnull @.str.3, i64 noundef 201)
  br label %33

33:                                               ; preds = %15, %26, %27, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTSSt4pairIKPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiE", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !26, i64 224}
!13 = !{!"_ZTS14HtnTermFactory", !14, i64 0, !18, i64 16, !27, i64 64, !27, i64 80, !30, i64 96, !35, i64 152, !26, i64 208, !37, i64 216, !26, i64 224, !38, i64 232, !11, i64 280, !27, i64 288, !7, i64 304, !6, i64 33072, !26, i64 33080}
!14 = !{!"_ZTSSt23enable_shared_from_thisI14HtnTermFactoryE", !15, i64 0}
!15 = !{!"_ZTSSt8weak_ptrI14HtnTermFactoryE", !16, i64 0}
!16 = !{!"_ZTSSt10__weak_ptrI14HtnTermFactoryLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrI13HtnCustomDataESt4lessIS5_ESaISt4pairIKS5_S8_EEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_St10shared_ptrI13HtnCustomDataEESt10_Select1stISB_ESt4lessIS5_ESaISB_EE13_Rb_tree_implISF_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !26, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!"_ZTSSt10shared_ptrI7HtnTermE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrI7HtnTermLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !29, i64 8}
!29 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!30 = !{!"_ZTSSt13unordered_mapIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiN14HtnTermFactory13stringPtrHashENS8_14stringPtrEqualESaISt4pairIKS7_iEEE", !31, i64 0}
!31 = !{!"_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, !26, i64 8, !32, i64 16, !26, i64 24, !33, i64 32, !6, i64 48}
!32 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!33 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !34, i64 0, !26, i64 8}
!34 = !{!"float", !7, i64 0}
!35 = !{!"_ZTSSt13unordered_mapIPPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8weak_ptrI7HtnTermEN14HtnTermFactory15uniqueIDPtrHashENSC_16uniqueIDPtrEqualESaISt4pairIKS8_SB_EEE", !36, i64 0}
!36 = !{!"_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, !26, i64 8, !32, i64 16, !26, i64 24, !33, i64 32, !6, i64 48}
!37 = !{!"bool", !7, i64 0}
!38 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIiiESt4lessIS5_ESaIS6_IKS5_S7_EEE", !39, i64 0}
!39 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE", !40, i64 0}
!40 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S6_IiiEESt10_Select1stIS9_ESt4lessIS5_ESaIS9_EE13_Rb_tree_implISD_Lb1EEE", !21, i64 0, !23, i64 8}
!41 = !{!10, !6, i64 0}


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