; LLVM IR from facebook/redex :: libredex/DexPosition.ll (ZN28PositionPatternSwitchManager11internalizeEP11DexPosition)

; 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.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"struct.std::pair.107" = type <{ %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", i8, [7 x i8] }>
%class.PositionPatternSwitchManager = type { %class.UnorderedMap, %class.UnorderedMap.51, %"class.std::vector.74", %class.UnorderedMap.79, %"class.std::vector.102", ptr, ptr, ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"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.UnorderedMap.51 = type { %"class.std::unordered_map.53" }
%"class.std::unordered_map.53" = type { %"class.std::_Hashtable.54" }
%"class.std::_Hashtable.54" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.74" = type { %"struct.std::_Vector_base.75" }
%"struct.std::_Vector_base.75" = type { %"struct.std::_Vector_base<std::vector<DexPosition *>, std::allocator<std::vector<DexPosition *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<DexPosition *>, std::allocator<std::vector<DexPosition *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<DexPosition *>, std::allocator<std::vector<DexPosition *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<DexPosition *>, std::allocator<std::vector<DexPosition *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedMap.79 = type { %"class.std::unordered_map.81" }
%"class.std::unordered_map.81" = type { %"class.std::_Hashtable.82" }
%"class.std::_Hashtable.82" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.102" = type { %"struct.std::_Vector_base.103" }
%"struct.std::_Vector_base.103" = type { %"struct.std::_Vector_base<std::vector<PositionCase>, std::allocator<std::vector<PositionCase>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<PositionCase>, std::allocator<std::vector<PositionCase>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<PositionCase>, std::allocator<std::vector<PositionCase>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<PositionCase>, std::allocator<std::vector<PositionCase>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { ptr, %"class.std::unique_ptr" }
%struct.DexPosition = type { ptr, ptr, i32, ptr }

@.str.9 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11internalizeEP11DexPosition = external hidden unnamed_addr constant [70 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

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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", align 8
  %7 = alloca %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::unique_ptr", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair.107", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %20

18:                                               ; preds = %2
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.15, ptr noundef @.str.9, i32 noundef 72, ptr noundef @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11internalizeEP11DexPosition, i32 noundef 2, ptr noundef @.str.10) #6
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %21 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 0
  %22 = call ptr @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE4findERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %23 = getelementptr inbounds %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", ptr %6, i32 0, i32 0
  %24 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %23, i32 0, i32 0
  %25 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %24, i32 0, i32 0
  store ptr %22, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %26 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 0
  %27 = call ptr @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %26)
  %28 = getelementptr inbounds %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", ptr %7, i32 0, i32 0
  %29 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %29, i32 0, i32 0
  store ptr %27, ptr %30, align 8
  %31 = call noundef zeroext i1 @_ZNK12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE13FixedIteratorneERKSD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br i1 %31, label %32, label %36

32:                                               ; preds = %20
  %33 = call noundef ptr @_ZNK12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %34 = getelementptr inbounds %"struct.std::pair", ptr %33, i32 0, i32 1
  %35 = call noundef ptr @_ZNKSt10unique_ptrI11DexPositionSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  store ptr %35, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %64

36:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %37 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #8
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 8 %38, i64 32, i1 false), !tbaa.struct !9
  store ptr %37, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.DexPosition, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !12
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %50

43:                                               ; preds = %36
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.DexPosition, ptr %44, i32 0, i32 3
  %46 = load ptr, ptr %45, align 8, !tbaa !12
  %47 = call noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %14, ptr noundef %46)
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.DexPosition, ptr %48, i32 0, i32 3
  store ptr %47, ptr %49, align 8, !tbaa !12
  br label %50

50:                                               ; preds = %43, %36
  %51 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNSt10unique_ptrI11DexPositionSt14default_deleteIS0_EEC2IS2_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %52) #7
  %53 = invoke { ptr, i8 } @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE7emplaceIJRPS0_S6_EEESt4pairINSC_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %51, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %54 unwind label %60

54:                                               ; preds = %50
  %55 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %56 = extractvalue { ptr, i8 } %53, 0
  store ptr %56, ptr %55, align 8
  %57 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %58 = extractvalue { ptr, i8 } %53, 1
  store i8 %58, ptr %57, align 8
  call void @_ZNSt10unique_ptrI11DexPositionSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %59, ptr %3, align 8
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %64

60:                                               ; preds = %50
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %11, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %12, align 4
  call void @_ZNSt10unique_ptrI11DexPositionSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %66

64:                                               ; preds = %54, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %65 = load ptr, ptr %3, align 8
  ret ptr %65

66:                                               ; preds = %60
  %67 = load ptr, ptr %11, align 8
  %68 = load i32, ptr %12, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

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

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE7emplaceIJRPS0_S6_EEESt4pairINSC_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 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 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 #4 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { noreturn }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 4, !10, i64 24, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 24}
!13 = !{!"_ZTS11DexPosition", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}


; 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.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }

@.str.9 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [4 x i8], align 1
@__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11internalizeEP11DexPosition = external hidden unnamed_addr constant [70 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

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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", align 8
  %5 = alloca %"class.UnorderedMap<const DexPosition *, std::unique_ptr<DexPosition>, boost::hash<const DexPosition *>>::FixedIterator", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::unique_ptr", align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.9, i32 noundef 72, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11internalizeEP11DexPosition, i32 noundef 2, ptr noundef nonnull @.str.10) #6
  unreachable

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %10 = call ptr @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE4findERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %11 = call ptr @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0)
  store ptr %11, ptr %5, align 8
  %12 = call noundef zeroext i1 @_ZNK12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE13FixedIteratorneERKSD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br i1 %12, label %13, label %17

13:                                               ; preds = %9
  %14 = call noundef ptr @_ZNK12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = call noundef ptr @_ZNKSt10unique_ptrI11DexPositionSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %31

17:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #8
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19, i64 32, i1 false), !tbaa.struct !9
  store ptr %18, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  %.not4 = icmp eq ptr %21, null
  br i1 %.not4, label %25, label %22

22:                                               ; preds = %17
  %23 = call noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef nonnull %21)
  %24 = getelementptr inbounds i8, ptr %18, i64 24
  store ptr %23, ptr %24, align 8, !tbaa !12
  br label %25

25:                                               ; preds = %22, %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZNSt10unique_ptrI11DexPositionSt14default_deleteIS0_EEC2IS2_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull %18) #7
  %26 = invoke { ptr, i8 } @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE7emplaceIJRPS0_S6_EEESt4pairINSC_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %27 unwind label %29

27:                                               ; preds = %25
  call void @_ZNSt10unique_ptrI11DexPositionSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %31

29:                                               ; preds = %25
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrI11DexPositionSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  resume { ptr, i32 } %30

31:                                               ; preds = %27, %13
  %.0 = phi ptr [ %16, %13 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret ptr %.0
}

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

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress 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) #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedMapIPK11DexPositionSt10unique_ptrIS0_St14default_deleteIS0_EEN5boost4hashIS2_EESt8equal_toIS2_EE7emplaceIJRPS0_S6_EEESt4pairINSC_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 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 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 #4 = { nobuiltin allocsize(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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { noreturn }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 4, !10, i64 24, i64 8, !5}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 24}
!13 = !{!"_ZTS11DexPosition", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass