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

; 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.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.114" }
%"struct.std::__detail::_Node_iterator.114" = type { %"struct.std::__detail::_Node_iterator_base.115" }
%"struct.std::__detail::_Node_iterator_base.115" = type { ptr }
%"struct.std::pair.116" = type <{ %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", i8, [7 x i8] }>
%struct.DexPosition = type { ptr, ptr, i32, ptr }
%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.119" = type <{ %"class.std::vector.109", i32, [4 x i8] }>
%"class.std::vector.109" = type { %"struct.std::_Vector_base.110" }
%"struct.std::_Vector_base.110" = type { %"struct.std::_Vector_base<DexPosition *, std::allocator<DexPosition *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexPosition *, std::allocator<DexPosition *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexPosition *, std::allocator<DexPosition *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexPosition *, std::allocator<DexPosition *>>::_Vector_impl_data" = type { ptr, ptr, 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.16 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager12make_patternESt6vectorIP11DexPositionSaIS2_EE = external hidden unnamed_addr constant [69 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: 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
declare dso_local noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef) #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
define dso_local noundef i32 @_ZN28PositionPatternSwitchManager12make_patternESt6vectorIP11DexPositionSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", align 8
  %10 = alloca %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", align 8
  %11 = alloca %"struct.std::pair.116", align 8
  %12 = alloca i64, align 8
  %13 = alloca { ptr, i8 }, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call ptr @_ZNSt6vectorIP11DexPositionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %16, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call ptr @_ZNSt6vectorIP11DexPositionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  br label %21

21:                                               ; preds = %39, %2
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11DexPositionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %22, label %24, label %23

23:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %41

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11DexPositionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  store ptr %25, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.DexPosition, ptr %27, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %24
  br label %34

32:                                               ; preds = %24
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.16, ptr noundef @.str.9, i32 noundef 90, ptr noundef @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager12make_patternESt6vectorIP11DexPositionSaIS2_EE, i32 noundef 2, ptr noundef @.str.10) #7
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %31
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = call noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %14, ptr noundef %36)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %37, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %39

39:                                               ; preds = %34
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP11DexPositionSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %21

41:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %42 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 1
  %43 = call ptr @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %42, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %44 = getelementptr inbounds %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", ptr %9, i32 0, i32 0
  %45 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.114", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.115", ptr %45, i32 0, i32 0
  store ptr %43, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %47 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 1
  %48 = call ptr @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %47)
  %49 = getelementptr inbounds %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", ptr %10, i32 0, i32 0
  %50 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.114", ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.115", ptr %50, i32 0, i32 0
  store ptr %48, ptr %51, align 8
  %52 = call noundef zeroext i1 @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratoreqERKSB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br i1 %52, label %53, label %60

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %54 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %55 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 2
  %56 = call noundef i64 @_ZNKSt6vectorIS_IP11DexPositionSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  store i64 %56, ptr %12, align 8, !tbaa !12
  %57 = call { ptr, i8 } @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE7emplaceIJRS4_mEEESt4pairINSA_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %54, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %12)
  store { ptr, i8 } %57, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %13, i64 9, i1 false)
  %58 = getelementptr inbounds %"struct.std::pair.116", ptr %11, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %58, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %59 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 2
  call void @_ZNSt6vectorIS_IP11DexPositionSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(24) %1)
  br label %60

60:                                               ; preds = %53, %41
  %61 = call noundef ptr @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %62 = getelementptr inbounds %"struct.std::pair.119", ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret i32 %63
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPP11DexPositionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(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(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11DexPositionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 }
attributes #7 = { noreturn }

!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 8}
!10 = !{!"_ZTS11DexPosition", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !11, i64 24}
!15 = !{!"_ZTSSt4pairIKSt6vectorIP11DexPositionSaIS2_EEjE", !16, i64 0, !11, i64 24}
!16 = !{!"_ZTSSt6vectorIP11DexPositionSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP11DexPositionSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP11DexPositionSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP11DexPositionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.114" }
%"struct.std::__detail::_Node_iterator.114" = type { %"struct.std::__detail::_Node_iterator_base.115" }
%"struct.std::__detail::_Node_iterator_base.115" = 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.16 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager12make_patternESt6vectorIP11DexPositionSaIS2_EE = external hidden unnamed_addr constant [69 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: 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
declare dso_local noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN28PositionPatternSwitchManager12make_patternESt6vectorIP11DexPositionSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef nonnull %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", align 8
  %6 = alloca %"class.UnorderedMap<std::vector<DexPosition *>, unsigned int, boost::hash<std::vector<DexPosition *>>>::FixedIterator", align 8
  %7 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %8 = tail call ptr @_ZNSt6vectorIP11DexPositionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %8, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %9 = tail call ptr @_ZNSt6vectorIP11DexPositionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %9, ptr %4, align 8
  %10 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11DexPositionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %20, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  %12 = call ptr @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
  store ptr %12, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %13 = call ptr @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %11)
  store ptr %13, ptr %6, align 8
  %14 = call noundef zeroext i1 @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratoreqERKSB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br i1 %14, label %24, label %28

.lr.ph:                                           ; preds = %2, %20
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11DexPositionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %19, label %20

19:                                               ; preds = %.lr.ph
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.9, i32 noundef 90, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager12make_patternESt6vectorIP11DexPositionSaIS2_EE, i32 noundef 2, ptr noundef nonnull @.str.10) #6
  unreachable

20:                                               ; preds = %.lr.ph
  %21 = call noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef nonnull %16)
  store ptr %21, ptr %15, align 8, !tbaa !5
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP11DexPositionSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11DexPositionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %23, label %.lr.ph, label %._crit_edge

24:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %25 = getelementptr inbounds i8, ptr %0, i64 112
  %26 = call noundef i64 @_ZNKSt6vectorIS_IP11DexPositionSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  store i64 %26, ptr %7, align 8, !tbaa !12
  %27 = call { ptr, i8 } @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE7emplaceIJRS4_mEEESt4pairINSA_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %.fca.0.extract = extractvalue { ptr, i8 } %27, 0
  store ptr %.fca.0.extract, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @_ZNSt6vectorIS_IP11DexPositionSaIS1_EESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %1)
  br label %28

28:                                               ; preds = %24, %._crit_edge
  %29 = call noundef ptr @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load i32, ptr %30, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret i32 %31
}

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratoreqERKSB_(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 @_ZN12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK12UnorderedMapISt6vectorIP11DexPositionSaIS2_EEjN5boost4hashIS4_EESt8equal_toIS4_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn }

!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 8}
!10 = !{!"_ZTS11DexPosition", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !11, i64 24}
!15 = !{!"_ZTSSt4pairIKSt6vectorIP11DexPositionSaIS2_EEjE", !16, i64 0, !11, i64 24}
!16 = !{!"_ZTSSt6vectorIP11DexPositionSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP11DexPositionSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP11DexPositionSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP11DexPositionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


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