; 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.127" = type { ptr }
%"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.128" }
%"struct.std::__detail::_Node_iterator.128" = type { %"struct.std::__detail::_Node_iterator_base.129" }
%"struct.std::__detail::_Node_iterator_base.129" = type { ptr }
%"struct.std::pair.130" = type <{ %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", i8, [7 x i8] }>
%struct.PositionCase = type { i32, ptr }
%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.133" = type <{ %"class.std::vector.122", i32, [4 x i8] }>
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<PositionCase, std::allocator<PositionCase>>::_Vector_impl" }
%"struct.std::_Vector_base<PositionCase, std::allocator<PositionCase>>::_Vector_impl" = type { %"struct.std::_Vector_base<PositionCase, std::allocator<PositionCase>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PositionCase, std::allocator<PositionCase>>::_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.17 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_EE = external hidden unnamed_addr constant [67 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 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 @_ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_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.127", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.127", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", align 8
  %10 = alloca %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", align 8
  %11 = alloca %"struct.std::pair.130", 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 @_ZNSt6vectorI12PositionCaseSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.127", 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 @_ZNSt6vectorI12PositionCaseSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.127", ptr %7, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  br label %21

21:                                               ; preds = %50, %2
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP12PositionCaseSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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 %52

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_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 = getelementptr inbounds %struct.PositionCase, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %31

30:                                               ; preds = %24
  br label %33

31:                                               ; preds = %24
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.17, ptr noundef @.str.9, i32 noundef 103, ptr noundef @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_EE, i32 noundef 2, ptr noundef @.str.10) #7
  unreachable

32:                                               ; No predecessors!
  br label %33

33:                                               ; preds = %32, %30
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.PositionCase, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.DexPosition, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %41

40:                                               ; preds = %33
  br label %43

41:                                               ; preds = %33
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.18, ptr noundef @.str.9, i32 noundef 104, ptr noundef @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_EE, i32 noundef 2, ptr noundef @.str.10) #7
  unreachable

42:                                               ; No predecessors!
  br label %43

43:                                               ; preds = %42, %40
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.PositionCase, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %14, ptr noundef %46)
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.PositionCase, ptr %48, i32 0, i32 1
  store ptr %47, ptr %49, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %50

50:                                               ; preds = %43
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %21

52:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %53 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 3
  %54 = call ptr @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE4findERKS3_(ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %55 = getelementptr inbounds %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", ptr %9, i32 0, i32 0
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.128", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.129", ptr %56, i32 0, i32 0
  store ptr %54, ptr %57, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %58 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 3
  %59 = call ptr @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %58)
  %60 = getelementptr inbounds %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", ptr %10, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.128", ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.129", ptr %61, i32 0, i32 0
  store ptr %59, ptr %62, align 8
  %63 = call noundef zeroext i1 @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE13FixedIteratoreqERKSA_(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 %63, label %64, label %71

64:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %65 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %66 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 4
  %67 = call noundef i64 @_ZNKSt6vectorIS_I12PositionCaseSaIS0_EESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #6
  store i64 %67, ptr %12, align 8, !tbaa !14
  %68 = call { ptr, i8 } @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE7emplaceIJRS3_mEEESt4pairINS9_13FixedIteratorEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %65, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(8) %12)
  store { ptr, i8 } %68, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %13, i64 9, i1 false)
  %69 = getelementptr inbounds %"struct.std::pair.130", ptr %11, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %69, 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
  %70 = getelementptr inbounds %class.PositionPatternSwitchManager, ptr %14, i32 0, i32 4
  call void @_ZNSt6vectorIS_I12PositionCaseSaIS0_EESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(24) %1)
  br label %71

71:                                               ; preds = %64, %52
  %72 = call noundef ptr @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %73 = getelementptr inbounds %"struct.std::pair.133", ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret i32 %74
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI12PositionCaseSaIS0_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_cxxneIP12PositionCaseSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_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_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE4findERKS3_(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 @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE13FixedIteratoreqERKSA_(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 @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE7emplaceIJRS3_mEEESt4pairINS9_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_I12PositionCaseSaIS0_EESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_I12PositionCaseSaIS0_EESaIS2_EE9push_backEOS2_(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 @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_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 = !{!"_ZTS12PositionCase", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTS11DexPosition", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !11, i64 24}
!17 = !{!"_ZTSSt4pairIKSt6vectorI12PositionCaseSaIS1_EEjE", !18, i64 0, !11, i64 24}
!18 = !{!"_ZTSSt6vectorI12PositionCaseSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI12PositionCaseSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI12PositionCaseSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI12PositionCaseSaIS0_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.127" = type { ptr }
%"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.128" }
%"struct.std::__detail::_Node_iterator.128" = type { %"struct.std::__detail::_Node_iterator_base.129" }
%"struct.std::__detail::_Node_iterator_base.129" = 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.17 = external hidden unnamed_addr constant [11 x i8], align 1
@__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_EE = external hidden unnamed_addr constant [67 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [17 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 @_ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_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.127", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.127", align 8
  %5 = alloca %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", align 8
  %6 = alloca %"class.UnorderedMap<std::vector<PositionCase>, unsigned int, boost::hash<std::vector<PositionCase>>>::FixedIterator", align 8
  %7 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %8 = tail call ptr @_ZNSt6vectorI12PositionCaseSaIS0_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 @_ZNSt6vectorI12PositionCaseSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  store ptr %9, ptr %4, align 8
  %10 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP12PositionCaseSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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 = %23, %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 136
  %12 = call ptr @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE4findERKS3_(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 @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %11)
  store ptr %13, ptr %6, align 8
  %14 = call noundef zeroext i1 @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE13FixedIteratoreqERKSA_(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 %27, label %31

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

18:                                               ; preds = %.lr.ph
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.9, i32 noundef 103, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_EE, i32 noundef 2, ptr noundef nonnull @.str.10) #6
  unreachable

19:                                               ; preds = %.lr.ph
  %20 = getelementptr inbounds i8, ptr %17, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %.not8 = icmp eq ptr %21, null
  br i1 %.not8, label %22, label %23

22:                                               ; preds = %19
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.9, i32 noundef 104, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN28PositionPatternSwitchManager11make_switchESt6vectorI12PositionCaseSaIS1_EE, i32 noundef 2, ptr noundef nonnull @.str.10) #6
  unreachable

23:                                               ; preds = %19
  %24 = call noundef ptr @_ZN28PositionPatternSwitchManager11internalizeEP11DexPosition(ptr noundef nonnull align 8 dereferenceable(240) %0, ptr noundef nonnull %17)
  store ptr %24, ptr %16, align 8, !tbaa !5
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %26 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP12PositionCaseSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %26, label %.lr.ph, label %._crit_edge

27:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %28 = getelementptr inbounds i8, ptr %0, i64 192
  %29 = call noundef i64 @_ZNKSt6vectorIS_I12PositionCaseSaIS0_EESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  store i64 %29, ptr %7, align 8, !tbaa !13
  %30 = call { ptr, i8 } @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE7emplaceIJRS3_mEEESt4pairINS9_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 } %30, 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_I12PositionCaseSaIS0_EESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %1)
  br label %31

31:                                               ; preds = %27, %._crit_edge
  %32 = call noundef ptr @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %33 = getelementptr inbounds i8, ptr %32, i64 24
  %34 = load i32, ptr %33, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret i32 %34
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI12PositionCaseSaIS0_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_cxxneIP12PositionCaseSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_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_iteratorIP12PositionCaseSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE4findERKS3_(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 @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE13FixedIteratoreqERKSA_(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 @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_EE7emplaceIJRS3_mEEESt4pairINS9_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_I12PositionCaseSaIS0_EESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_I12PositionCaseSaIS0_EESaIS2_EE9push_backEOS2_(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 @_ZNK12UnorderedMapISt6vectorI12PositionCaseSaIS1_EEjN5boost4hashIS3_EESt8equal_toIS3_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, !10, i64 8}
!6 = !{!"_ZTS12PositionCase", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS11DexPosition", !10, i64 0, !10, i64 8, !7, i64 16, !10, i64 24}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!16, !7, i64 24}
!16 = !{!"_ZTSSt4pairIKSt6vectorI12PositionCaseSaIS1_EEjE", !17, i64 0, !7, i64 24}
!17 = !{!"_ZTSSt6vectorI12PositionCaseSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI12PositionCaseSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI12PositionCaseSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI12PositionCaseSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}


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