; 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.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const DexString *, std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>, std::_Select1st<std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>>, dexstrings_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexString *, std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>, std::_Select1st<std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>>, dexstrings_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 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"struct.std::pair.23" = type <{ %"struct.std::_Rb_tree_const_iterator.25", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.25" = type { ptr }
%"struct.std::pair" = type { ptr, %"class.std::map.8" }
%"class.std::map.8" = type { %"class.std::_Rb_tree.9" }
%"class.std::_Rb_tree.9" = type { %"struct.std::_Rb_tree<const DexProto *, std::pair<const DexProto *const, std::vector<virt_scope::VirtualScope>>, std::_Select1st<std::pair<const DexProto *const, std::vector<virt_scope::VirtualScope>>>, dexprotos_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexProto *, std::pair<const DexProto *const, std::vector<virt_scope::VirtualScope>>, std::_Select1st<std::pair<const DexProto *const, std::vector<virt_scope::VirtualScope>>>, dexprotos_comparator>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::pair.14" = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<virt_scope::VirtualScope, std::allocator<virt_scope::VirtualScope>>::_Vector_impl" }
%"struct.std::_Vector_base<virt_scope::VirtualScope, std::allocator<virt_scope::VirtualScope>>::_Vector_impl" = type { %"struct.std::_Vector_base<virt_scope::VirtualScope, std::allocator<virt_scope::VirtualScope>>::_Vector_impl_data" }
%"struct.std::_Vector_base<virt_scope::VirtualScope, std::allocator<virt_scope::VirtualScope>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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 uwtable
define dso_local void @_ZN10virt_scope14load_base_sigsERSt3mapIPK9DexStringS0_IPK8DexProtoSt6vectorINS_12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS6_SA_EEE21dexstrings_comparatorSaISC_IKS3_SG_EEE(ptr dead_on_unwind noalias writable sret(%"class.std::map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::pair.23", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %18, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call ptr @_ZNSt3mapIPK9DexStringS_IPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS5_SA_EEE21dexstrings_comparatorSaISC_IKS2_SG_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %19) #3
  %21 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %7, i32 0, i32 0
  store ptr %20, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call ptr @_ZNSt3mapIPK9DexStringS_IPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS5_SA_EEE21dexstrings_comparatorSaISC_IKS2_SG_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #3
  %24 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %8, i32 0, i32 0
  store ptr %23, ptr %24, align 8
  br label %25

25:                                               ; preds = %62, %2
  %26 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEESM_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  br i1 %26, label %28, label %27

27:                                               ; preds = %25
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %64

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %29 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  store ptr %29, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.std::pair", ptr %30, i32 0, i32 1
  store ptr %31, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = call ptr @_ZNKSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS5_EE20dexprotos_comparatorSaISt4pairIKS2_S7_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %32) #3
  %34 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %12, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = call ptr @_ZNKSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS5_EE20dexprotos_comparatorSaISt4pairIKS2_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %35) #3
  %37 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %13, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  br label %38

38:                                               ; preds = %55, %28
  %39 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %61

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #3
  store ptr %42, ptr %14, align 8, !tbaa !5
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.std::pair", ptr %43, i32 0, i32 0
  %45 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %46 unwind label %57

46:                                               ; preds = %41
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.std::pair.14", ptr %47, i32 0, i32 0
  %49 = invoke { ptr, i8 } @_ZNSt3setIPK8DexProto20dexprotos_comparatorSaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %45, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %50 unwind label %57

50:                                               ; preds = %46
  %51 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 0
  %52 = extractvalue { ptr, i8 } %49, 0
  store ptr %52, ptr %51, align 8
  %53 = getelementptr inbounds { ptr, i8 }, ptr %17, i32 0, i32 1
  %54 = extractvalue { ptr, i8 } %49, 1
  store i8 %54, ptr %53, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %55

55:                                               ; preds = %50
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #3
  br label %38

57:                                               ; preds = %46, %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %15, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #3
  br label %68

61:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %62

62:                                               ; preds = %61
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br label %25

64:                                               ; preds = %27
  store i1 true, ptr %5, align 1
  store i32 1, ptr %9, align 4
  %65 = load i1, ptr %5, align 1
  br i1 %65, label %67, label %66

66:                                               ; preds = %64
  call void @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #3
  br label %67

67:                                               ; preds = %66, %64
  ret void

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<const DexString *, std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>, std::_Select1st<std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>>, dexstrings_comparator>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<const DexString *, std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>, std::_Select1st<std::pair<const DexString *const, std::set<const DexProto *, dexprotos_comparator>>>, dexstrings_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 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

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 uwtable
define dso_local void @_ZN10virt_scope14load_base_sigsERSt3mapIPK9DexStringS0_IPK8DexProtoSt6vectorINS_12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS6_SA_EEE21dexstrings_comparatorSaISC_IKS3_SG_EEE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::map") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  tail call void @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %7 = tail call ptr @_ZNSt3mapIPK9DexStringS_IPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS5_SA_EEE21dexstrings_comparatorSaISC_IKS2_SG_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #3
  store ptr %7, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %8 = tail call ptr @_ZNSt3mapIPK9DexStringS_IPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS8_EE20dexprotos_comparatorSaISt4pairIKS5_SA_EEE21dexstrings_comparatorSaISC_IKS2_SG_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %1) #3
  store ptr %8, ptr %4, align 8
  %9 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEESM_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %9, label %.lr.ph11, label %._crit_edge12

._crit_edge12:                                    ; preds = %._crit_edge, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void

.lr.ph11:                                         ; preds = %2, %._crit_edge
  %10 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %12 = call ptr @_ZNKSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS5_EE20dexprotos_comparatorSaISt4pairIKS2_S7_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #3
  store ptr %12, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %13 = call ptr @_ZNKSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS5_EE20dexprotos_comparatorSaISt4pairIKS2_S7_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #3
  store ptr %13, ptr %6, align 8
  %14 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %21, %.lr.ph11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %16 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPK9DexStringSt3mapIPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaISB_EE20dexprotos_comparatorSaIS0_IKS8_SD_EEEEESM_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  br i1 %16, label %.lr.ph11, label %._crit_edge12

.lr.ph:                                           ; preds = %.lr.ph11, %21
  %17 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %18 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %19 unwind label %24

19:                                               ; preds = %.lr.ph
  %20 = invoke { ptr, i8 } @_ZNSt3setIPK8DexProto20dexprotos_comparatorSaIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %21 unwind label %24

21:                                               ; preds = %19
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %23 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKPK8DexProtoSt6vectorIN10virt_scope12VirtualScopeESaIS7_EEEESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  br i1 %23, label %.lr.ph, label %._crit_edge

24:                                               ; preds = %19, %.lr.ph
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @_ZNSt3mapIPK9DexStringSt3setIPK8DexProto20dexprotos_comparatorSaIS6_EE21dexstrings_comparatorSaISt4pairIKS2_S9_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #3
  resume { ptr, i32 } %25
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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