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

; 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::vector.220" = type { %"struct.std::_Vector_base.221" }
%"struct.std::_Vector_base.221" = type { %"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.230" = type { ptr }
%class.anon.231 = type { ptr }
%"class.std::vector.225" = type { %"struct.std::_Vector_base.226" }
%"struct.std::_Vector_base.226" = type { %"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.232" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.248 = type { 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
declare dso_local noundef zeroext i1 @_ZNK10RefChecker10check_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS6_EE(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.220", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.230", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.230", align 8
  %11 = alloca %class.anon.231, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.225", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.232", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.232", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::function", align 8
  %21 = alloca %class.anon.248, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %23)
  %25 = call noundef zeroext i1 @_ZNK10RefChecker10check_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016) %22, ptr noundef %24)
  br i1 %25, label %27, label %26

26:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  br label %109

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK8DexClass14get_all_fieldsEv(ptr dead_on_unwind writable sret(%"class.std::vector.220") align 8 %8, ptr noundef nonnull align 8 dereferenceable(176) %28)
  %29 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.230", ptr %9, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.230", ptr %10, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  %33 = getelementptr inbounds %class.anon.231, ptr %11, i32 0, i32 0
  store ptr %22, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.230", ptr %9, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.230", ptr %10, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8
  %38 = getelementptr inbounds %class.anon.231, ptr %11, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS3_SaIS3_EEEEZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISH_EEE3$_1EbT_SO_T0_"(ptr %35, ptr %37, ptr %39)
          to label %41 unwind label %43

41:                                               ; preds = %27
  br i1 %40, label %42, label %47

42:                                               ; preds = %41
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %107

43:                                               ; preds = %27
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %12, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %13, align 4
  br label %108

47:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK8DexClass15get_all_methodsEv(ptr dead_on_unwind writable sret(%"class.std::vector.225") align 8 %15, ptr noundef nonnull align 8 dereferenceable(176) %48)
          to label %49 unwind label %59

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store ptr %15, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.232", ptr %17, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.232", ptr %18, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  br label %56

56:                                               ; preds = %99, %49
  %57 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9DexMethodSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %57, label %63, label %58

58:                                               ; preds = %56
  store i32 2, ptr %14, align 4
  br label %102

59:                                               ; preds = %47
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %12, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %13, align 4
  br label %106

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  store ptr %65, ptr %19, align 8, !tbaa !5
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  %67 = invoke noundef zeroext i1 @_ZNK10RefChecker21check_method_and_codeEPK9DexMethod(ptr noundef nonnull align 8 dereferenceable(8016) %22, ptr noundef %66)
          to label %68 unwind label %70

68:                                               ; preds = %63
  br i1 %67, label %74, label %69

69:                                               ; preds = %68
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %96

70:                                               ; preds = %77, %63
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  br label %101

74:                                               ; preds = %68
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZNKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %75) #6
  br i1 %76, label %77, label %95

77:                                               ; preds = %74
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = invoke noundef zeroext i1 @_ZNK9DexMethod10is_virtualEv(ptr noundef nonnull align 8 dereferenceable(88) %78)
          to label %80 unwind label %70

80:                                               ; preds = %77
  br i1 %79, label %81, label %95

81:                                               ; preds = %80
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(5984) ptr @_ZNKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %82) #6
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %85 = getelementptr inbounds %class.anon.248, ptr %21, i32 0, i32 0
  store ptr %22, ptr %85, align 8, !tbaa !11
  %86 = getelementptr inbounds %class.anon.248, ptr %21, i32 0, i32 1
  store ptr %19, ptr %86, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbPK9DexMethodEEC2IZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISD_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  %87 = invoke noundef zeroext i1 @_ZN21method_override_graph22any_overridden_methodsERKNS_5GraphEPK9DexMethodRKSt8functionIFbS5_EEb(ptr noundef nonnull align 8 dereferenceable(5984) %83, ptr noundef %84, ptr noundef nonnull align 8 dereferenceable(32) %20, i1 noundef zeroext true)
          to label %88 unwind label %90

88:                                               ; preds = %81
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br i1 %87, label %89, label %94

89:                                               ; preds = %88
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %96

90:                                               ; preds = %81
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %12, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %101

94:                                               ; preds = %88
  br label %95

95:                                               ; preds = %94, %80, %74
  store i32 0, ptr %14, align 4
  br label %96

96:                                               ; preds = %95, %89, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %97 = load i32, ptr %14, align 4
  switch i32 %97, label %102 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %56

101:                                              ; preds = %90, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZNSt6vectorIP9DexMethodSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %106

102:                                              ; preds = %96, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %103 = load i32, ptr %14, align 4
  switch i32 %103, label %105 [
    i32 2, label %104
  ]

104:                                              ; preds = %102
  store i1 true, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %105

105:                                              ; preds = %104, %102
  call void @_ZNSt6vectorIP9DexMethodSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %107

106:                                              ; preds = %101, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %108

107:                                              ; preds = %105, %42
  call void @_ZNSt6vectorIP8DexFieldSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %109

108:                                              ; preds = %106, %43
  call void @_ZNSt6vectorIP8DexFieldSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %111

109:                                              ; preds = %107, %26
  %110 = load i1, ptr %4, align 1
  ret i1 %110

111:                                              ; preds = %108
  %112 = load ptr, ptr %12, align 8
  %113 = load i32, ptr %13, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

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

declare void @_ZNK8DexClass14get_all_fieldsEv(ptr dead_on_unwind writable sret(%"class.std::vector.220") align 8, ptr noundef nonnull align 8 dereferenceable(176)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS3_SaIS3_EEEEZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISH_EEE3$_1EbT_SO_T0_"(ptr, ptr, ptr) #4

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

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

declare void @_ZNK8DexClass15get_all_methodsEv(ptr dead_on_unwind writable sret(%"class.std::vector.225") align 8, ptr noundef nonnull align 8 dereferenceable(176)) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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)) #5

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

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

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

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

declare noundef zeroext i1 @_ZN21method_override_graph22any_overridden_methodsERKNS_5GraphEPK9DexMethodRKSt8functionIFbS5_EEb(ptr noundef nonnull align 8 dereferenceable(5984), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbPK9DexMethodEEC2IZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISD_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP8DexFieldSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "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 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 }

!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 = !{!"_ZTSZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS6_EEE3$_1", !6, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS6_EEE3$_0", !6, i64 0, !6, i64 8}


; 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::vector.220" = type { %"struct.std::_Vector_base.221" }
%"struct.std::_Vector_base.221" = type { %"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexField *, std::allocator<DexField *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.225" = type { %"struct.std::_Vector_base.226" }
%"struct.std::_Vector_base.226" = type { %"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexMethod *, std::allocator<DexMethod *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.232" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.248 = type { ptr, 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
declare dso_local noundef zeroext i1 @_ZNK10RefChecker10check_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS6_EE(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(8) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.220", align 8
  %5 = alloca %"class.std::vector.225", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.232", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.232", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca %class.anon.248, align 8
  %11 = tail call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %1)
  %12 = tail call noundef zeroext i1 @_ZNK10RefChecker10check_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef %11)
  br i1 %12, label %13, label %55

13:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNK8DexClass14get_all_fieldsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.220") align 8 %4, ptr noundef nonnull align 8 dereferenceable(176) %1)
  %14 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %15 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %16 = invoke noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS3_SaIS3_EEEEZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISH_EEE3$_1EbT_SO_T0_"(ptr %14, ptr %15, ptr nonnull %0)
          to label %17 unwind label %18

17:                                               ; preds = %13
  br i1 %16, label %53, label %20

18:                                               ; preds = %13
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %54

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  invoke void @_ZNK8DexClass15get_all_methodsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.225") align 8 %5, ptr noundef nonnull align 8 dereferenceable(176) %1)
          to label %21 unwind label %26

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %22 = call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %22, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %23 = call ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store ptr %23, ptr %7, align 8
  %24 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9DexMethodSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %24, label %.lr.ph, label %.critedge27

.lr.ph:                                           ; preds = %21
  %25 = getelementptr inbounds i8, ptr %10, i64 8
  br label %28

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %52

28:                                               ; preds = %.lr.ph, %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = invoke noundef zeroext i1 @_ZNK10RefChecker21check_method_and_codeEPK9DexMethod(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef %30)
          to label %32 unwind label %33

32:                                               ; preds = %28
  br i1 %31, label %35, label %49

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

35:                                               ; preds = %32
  %36 = call noundef zeroext i1 @_ZNKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS2_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  br i1 %36, label %37, label %.critedge

37:                                               ; preds = %35
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZNK9DexMethod10is_virtualEv(ptr noundef nonnull align 8 dereferenceable(88) %38)
  br i1 %39, label %40, label %.critedge

40:                                               ; preds = %37
  %41 = call noundef nonnull align 8 dereferenceable(5984) ptr @_ZNKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  store ptr %0, ptr %10, align 8, !tbaa !9
  store ptr %8, ptr %25, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbPK9DexMethodEEC2IZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISD_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  %43 = invoke noundef zeroext i1 @_ZN21method_override_graph22any_overridden_methodsERKNS_5GraphEPK9DexMethodRKSt8functionIFbS5_EEb(ptr noundef nonnull align 8 dereferenceable(5984) %41, ptr noundef %42, ptr noundef nonnull align 8 dereferenceable(32) %9, i1 noundef zeroext true)
          to label %44 unwind label %45

44:                                               ; preds = %40
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br i1 %43, label %49, label %.critedge

45:                                               ; preds = %40
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %50

.critedge:                                        ; preds = %44, %37, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP9DexMethodSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP9DexMethodSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %48, label %28, label %.critedge27

49:                                               ; preds = %44, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %51

50:                                               ; preds = %45, %33
  %.pn = phi { ptr, i32 } [ %46, %45 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorIP9DexMethodSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %52

.critedge27:                                      ; preds = %.critedge, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %51

51:                                               ; preds = %49, %.critedge27
  %.3 = phi i1 [ false, %49 ], [ true, %.critedge27 ]
  call void @_ZNSt6vectorIP9DexMethodSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %53

52:                                               ; preds = %50, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %50 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %54

53:                                               ; preds = %17, %51
  %.4 = phi i1 [ %.3, %51 ], [ false, %17 ]
  call void @_ZNSt6vectorIP8DexFieldSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %55

54:                                               ; preds = %52, %18
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %52 ], [ %19, %18 ]
  call void @_ZNSt6vectorIP8DexFieldSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn.pn

55:                                               ; preds = %3, %53
  %.5 = phi i1 [ %.4, %53 ], [ false, %3 ]
  ret i1 %.5
}

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

declare void @_ZNK8DexClass14get_all_fieldsEv(ptr dead_on_unwind writable sret(%"class.std::vector.220") align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6any_ofIN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS3_SaIS3_EEEEZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISH_EEE3$_1EbT_SO_T0_"(ptr, ptr, ptr) local_unnamed_addr #4

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

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

declare void @_ZNK8DexClass15get_all_methodsEv(ptr dead_on_unwind writable sret(%"class.std::vector.225") align 8, ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIP9DexMethodSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #5

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

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

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

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

declare noundef zeroext i1 @_ZN21method_override_graph22any_overridden_methodsERKNS_5GraphEPK9DexMethodRKSt8functionIFbS5_EEb(ptr noundef nonnull align 8 dereferenceable(5984), ptr noundef, ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbPK9DexMethodEEC2IZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteISD_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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 #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP8DexFieldSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "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 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 }

!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 = !{!"_ZTSZNK10RefChecker11check_classEPK8DexClassRKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS6_EEE3$_0", !6, i64 0, !6, i64 8}


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