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

; 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.110" = type { ptr }
%"struct.virt_scope::VirtualScope" = type { ptr, %"class.std::vector.26", %"class.std::set.31" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.31" = type { %"class.std::_Rb_tree.32" }
%"class.std::_Rb_tree.32" = type { %"struct.std::_Rb_tree<const DexType *, const DexType *, std::_Identity<const DexType *>, dextypes_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexType *, const DexType *, std::_Identity<const DexType *>, dextypes_comparator>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@.str.10 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._ZN10virt_scope12load_methodsEPK7DexTypeRSt3mapIPK9DexStringS3_IPK8DexProtoSt6vectorINS_12VirtualScopeESaISB_EE20dexprotos_comparatorSaISt4pairIKS9_SD_EEE21dexstrings_comparatorSaISF_IKS6_SJ_EEE = external hidden unnamed_addr constant [63 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10virt_scope12load_methodsEPK7DexTypeRSt3mapIPK9DexStringS3_IPK8DexProtoSt6vectorINS_12VirtualScopeESaISB_EE20dexprotos_comparatorSaISt4pairIKS9_SD_EEE21dexstrings_comparatorSaISF_IKS6_SJ_EEE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.110", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.110", align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.virt_scope::VirtualScope", align 8
  %15 = alloca i16, align 2
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN10virt_scope12get_vmethodsEPK7DexType(ptr noundef %18)
  store ptr %19, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %20, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %23 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.110", ptr %7, i32 0, i32 0
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %26 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.110", ptr %8, i32 0, i32 0
  store ptr %25, ptr %26, align 8
  br label %27

27:                                               ; preds = %57, %2
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9DexMethodSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  store ptr %31, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNK12DexMethodRef8get_nameEv(ptr noundef nonnull align 8 dereferenceable(26) %34)
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIPK9DexStringS_IPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS5_SA_EEE21dexstrings_comparatorSaISC_IKS2_SG_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  store ptr %36, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %39)
  store ptr %40, ptr %13, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS5_EE20dexprotos_comparatorSaISt4pairIKS2_S7_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  store ptr %41, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZNKSt6vectorIN10virt_scope12VirtualScopeESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  br i1 %43, label %44, label %45

44:                                               ; preds = %30
  br label %47

45:                                               ; preds = %30
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.35, ptr noundef @.str.10, i32 noundef 608, ptr noundef @__PRETTY_FUNCTION__._ZN10virt_scope12load_methodsEPK7DexTypeRSt3mapIPK9DexStringS3_IPK8DexProtoSt6vectorINS_12VirtualScopeESaISB_EE20dexprotos_comparatorSaISt4pairIKS9_SD_EEE21dexstrings_comparatorSaISF_IKS6_SJ_EEE, i32 noundef 2, ptr noundef @.str.11) #6
  unreachable

46:                                               ; No predecessors!
  br label %47

47:                                               ; preds = %46, %44
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #5
  call void @_ZN10virt_scope12VirtualScopeC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #5
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.virt_scope::VirtualScope", ptr %14, i32 0, i32 0
  store ptr %48, ptr %49, align 8, !tbaa !9
  %50 = getelementptr inbounds %"struct.virt_scope::VirtualScope", ptr %14, i32 0, i32 1
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  store i16 0, ptr %15, align 2, !tbaa !24
  %52 = invoke noundef nonnull align 8 dereferenceable(10) ptr @_ZNSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE12emplace_backIJRKS2_S4_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 2 dereferenceable(2) %15)
          to label %53 unwind label %59

53:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN10virt_scope12VirtualScopeESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(80) %14)
          to label %56 unwind label %63

56:                                               ; preds = %53
  call void @_ZN10virt_scope12VirtualScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %57

57:                                               ; preds = %56
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br label %27

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %16, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %67

63:                                               ; preds = %53
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %16, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %17, align 4
  br label %67

67:                                               ; preds = %63, %59
  call void @_ZN10virt_scope12VirtualScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %69

68:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

69:                                               ; preds = %67
  %70 = load ptr, ptr %16, align 8
  %71 = load i32, ptr %17, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 0}
!10 = !{!"_ZTSN10virt_scope12VirtualScopeE", !6, i64 0, !11, i64 8, !15, i64 32}
!11 = !{!"_ZTSSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt3setIPK7DexType19dextypes_comparatorSaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE13_Rb_tree_implIS5_Lb1EEE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareI19dextypes_comparatorE", !19, i64 0}
!19 = !{!"_ZTS19dextypes_comparator"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !23, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTSN10virt_scope12VirtualFlagsE", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.110" = type { ptr }
%"struct.virt_scope::VirtualScope" = type { ptr, %"class.std::vector.26", %"class.std::set.31" }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<DexMethod *, virt_scope::VirtualFlags>, std::allocator<std::pair<DexMethod *, virt_scope::VirtualFlags>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::set.31" = type { %"class.std::_Rb_tree.32" }
%"class.std::_Rb_tree.32" = type { %"struct.std::_Rb_tree<const DexType *, const DexType *, std::_Identity<const DexType *>, dextypes_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexType *, const DexType *, std::_Identity<const DexType *>, dextypes_comparator>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@.str.10 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._ZN10virt_scope12load_methodsEPK7DexTypeRSt3mapIPK9DexStringS3_IPK8DexProtoSt6vectorINS_12VirtualScopeESaISB_EE20dexprotos_comparatorSaISt4pairIKS9_SD_EEE21dexstrings_comparatorSaISF_IKS6_SJ_EEE = external hidden unnamed_addr constant [63 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; 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 #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10virt_scope12load_methodsEPK7DexTypeRSt3mapIPK9DexStringS3_IPK8DexProtoSt6vectorINS_12VirtualScopeESaISB_EE20dexprotos_comparatorSaISt4pairIKS9_SD_EEE21dexstrings_comparatorSaISF_IKS6_SJ_EEE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.110", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.110", align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.virt_scope::VirtualScope", align 8
  %8 = alloca i16, align 2
  %9 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN10virt_scope12get_vmethodsEPK7DexType(ptr noundef %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %10 = tail call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  store ptr %10, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %11 = tail call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  store ptr %11, ptr %4, align 8
  %12 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9DexMethodSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  br label %14

._crit_edge:                                      ; preds = %28, %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
  ret void

14:                                               ; preds = %.lr.ph, %28
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = call noundef ptr @_ZNK12DexMethodRef8get_nameEv(ptr noundef nonnull align 8 dereferenceable(26) %16)
  store ptr %17, ptr %5, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIPK9DexStringS_IPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS5_SA_EEE21dexstrings_comparatorSaISC_IKS2_SG_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %19 = load ptr, ptr %15, align 8, !tbaa !5
  %20 = call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %19)
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS5_EE20dexprotos_comparatorSaISt4pairIKS2_S7_EEEixEOS2_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %22 = call noundef zeroext i1 @_ZNKSt6vectorIN10virt_scope12VirtualScopeESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  br i1 %22, label %24, label %23

23:                                               ; preds = %14
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.10, i32 noundef 608, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN10virt_scope12load_methodsEPK7DexTypeRSt3mapIPK9DexStringS3_IPK8DexProtoSt6vectorINS_12VirtualScopeESaISB_EE20dexprotos_comparatorSaISt4pairIKS9_SD_EEE21dexstrings_comparatorSaISF_IKS6_SJ_EEE, i32 noundef 2, ptr noundef nonnull @.str.11) #6
  unreachable

24:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #5
  call void @_ZN10virt_scope12VirtualScopeC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #5
  store ptr %0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #5
  store i16 0, ptr %8, align 2, !tbaa !24
  %25 = invoke noundef nonnull align 8 dereferenceable(10) ptr @_ZNSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE12emplace_backIJRKS2_S4_EEERS5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 2 dereferenceable(2) %8)
          to label %26 unwind label %31

26:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #5
  %27 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN10virt_scope12VirtualScopeESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(80) %7)
          to label %28 unwind label %33

28:                                               ; preds = %26
  call void @_ZN10virt_scope12VirtualScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9DexMethodSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %30, label %14, label %._crit_edge

31:                                               ; preds = %24
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #5
  br label %35

33:                                               ; preds = %26
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @_ZN10virt_scope12VirtualScopeD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 0}
!10 = !{!"_ZTSN10virt_scope12VirtualScopeE", !6, i64 0, !11, i64 8, !15, i64 32}
!11 = !{!"_ZTSSt6vectorISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt4pairIP9DexMethodN10virt_scope12VirtualFlagsEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_ZTSSt3setIPK7DexType19dextypes_comparatorSaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt8_Rb_treeIPK7DexTypeS2_St9_IdentityIS2_E19dextypes_comparatorSaIS2_EE13_Rb_tree_implIS5_Lb1EEE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareI19dextypes_comparatorE", !19, i64 0}
!19 = !{!"_ZTS19dextypes_comparator"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !23, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTSN10virt_scope12VirtualFlagsE", !7, i64 0}


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