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

; 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.301" = type { ptr }
%class.RefChecker = type { ptr, i64, ptr, %class.InsertOnlyConcurrentMap, %class.InsertOnlyConcurrentMap.202, %class.InsertOnlyConcurrentMap.210 }
%class.InsertOnlyConcurrentMap = type { %class.ConcurrentContainer }
%class.ConcurrentContainer = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable"] }
%"class.cc_impl::ConcurrentHashtable" = type { %"struct.std::atomic.193", %"struct.std::atomic.195", %"struct.std::atomic.197", %"struct.std::atomic.199" }
%"struct.std::atomic.193" = type { %"struct.std::__atomic_base.194" }
%"struct.std::__atomic_base.194" = type { ptr }
%"struct.std::atomic.195" = type { %"struct.std::__atomic_base.196" }
%"struct.std::__atomic_base.196" = type { i64 }
%"struct.std::atomic.197" = type { %"struct.std::__atomic_base.198" }
%"struct.std::__atomic_base.198" = type { i8 }
%"struct.std::atomic.199" = type { %"struct.std::__atomic_base.200" }
%"struct.std::__atomic_base.200" = type { ptr }
%class.InsertOnlyConcurrentMap.202 = type { %class.ConcurrentContainer.203 }
%class.ConcurrentContainer.203 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.204"] }
%"class.cc_impl::ConcurrentHashtable.204" = type { %"struct.std::atomic.205", %"struct.std::atomic.195", %"struct.std::atomic.197", %"struct.std::atomic.207" }
%"struct.std::atomic.205" = type { %"struct.std::__atomic_base.206" }
%"struct.std::__atomic_base.206" = type { ptr }
%"struct.std::atomic.207" = type { %"struct.std::__atomic_base.208" }
%"struct.std::__atomic_base.208" = type { ptr }
%class.InsertOnlyConcurrentMap.210 = type { %class.ConcurrentContainer.211 }
%class.ConcurrentContainer.211 = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable.212"] }
%"class.cc_impl::ConcurrentHashtable.212" = type { %"struct.std::atomic.213", %"struct.std::atomic.195", %"struct.std::atomic.197", %"struct.std::atomic.215" }
%"struct.std::atomic.213" = type { %"struct.std::__atomic_base.214" }
%"struct.std::__atomic_base.214" = type { ptr }
%"struct.std::atomic.215" = type { %"struct.std::__atomic_base.216" }
%"struct.std::__atomic_base.216" = type { ptr }

; 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 @_ZNK10RefChecker19check_type_internalEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.301", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.301", align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef %14)
  store ptr %15, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef %16)
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  store i1 true, ptr %3, align 1
  br label %143

19:                                               ; preds = %2
  br label %20

20:                                               ; preds = %142, %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %21)
  store ptr %22, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %83

25:                                               ; preds = %20
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = call noundef ptr @_ZN4type16java_lang_StringEv()
  %28 = icmp eq ptr %26, %27
  br i1 %28, label %81, label %29

29:                                               ; preds = %25
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef ptr @_ZN4type15java_lang_ClassEv()
  %32 = icmp eq ptr %30, %31
  br i1 %32, label %81, label %33

33:                                               ; preds = %29
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN4type14java_lang_EnumEv()
  %36 = icmp eq ptr %34, %35
  br i1 %36, label %81, label %37

37:                                               ; preds = %33
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = call noundef ptr @_ZN4type16java_lang_ObjectEv()
  %40 = icmp eq ptr %38, %39
  br i1 %40, label %81, label %41

41:                                               ; preds = %37
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call noundef ptr @_ZN4type14java_lang_VoidEv()
  %44 = icmp eq ptr %42, %43
  br i1 %44, label %81, label %45

45:                                               ; preds = %41
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call noundef ptr @_ZN4type19java_lang_ThrowableEv()
  %48 = icmp eq ptr %46, %47
  br i1 %48, label %81, label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call noundef ptr @_ZN4type17java_lang_BooleanEv()
  %52 = icmp eq ptr %50, %51
  br i1 %52, label %81, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = call noundef ptr @_ZN4type14java_lang_ByteEv()
  %56 = icmp eq ptr %54, %55
  br i1 %56, label %81, label %57

57:                                               ; preds = %53
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call noundef ptr @_ZN4type15java_lang_ShortEv()
  %60 = icmp eq ptr %58, %59
  br i1 %60, label %81, label %61

61:                                               ; preds = %57
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call noundef ptr @_ZN4type19java_lang_CharacterEv()
  %64 = icmp eq ptr %62, %63
  br i1 %64, label %81, label %65

65:                                               ; preds = %61
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call noundef ptr @_ZN4type17java_lang_IntegerEv()
  %68 = icmp eq ptr %66, %67
  br i1 %68, label %81, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call noundef ptr @_ZN4type14java_lang_LongEv()
  %72 = icmp eq ptr %70, %71
  br i1 %72, label %81, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = call noundef ptr @_ZN4type15java_lang_FloatEv()
  %76 = icmp eq ptr %74, %75
  br i1 %76, label %81, label %77

77:                                               ; preds = %73
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = call noundef ptr @_ZN4type16java_lang_DoubleEv()
  %80 = icmp eq ptr %78, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %77, %73, %69, %65, %61, %57, %53, %49, %45, %41, %37, %33, %29, %25
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

82:                                               ; preds = %77
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

83:                                               ; preds = %20
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZNK8DexClass11is_externalEv(ptr noundef nonnull align 8 dereferenceable(176) %84)
  br i1 %85, label %86, label %97

86:                                               ; preds = %83
  %87 = getelementptr inbounds %class.RefChecker, ptr %13, i32 0, i32 2
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %95

90:                                               ; preds = %86
  %91 = getelementptr inbounds %class.RefChecker, ptr %13, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call noundef zeroext i1 @_ZNK3api10AndroidSDK8has_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(88) %92, ptr noundef %93)
  br label %95

95:                                               ; preds = %90, %86
  %96 = phi i1 [ false, %86 ], [ %94, %90 ]
  store i1 %96, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

97:                                               ; preds = %83
  %98 = getelementptr inbounds %class.RefChecker, ptr %13, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %109

101:                                              ; preds = %97
  %102 = getelementptr inbounds %class.RefChecker, ptr %13, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !18
  %104 = getelementptr inbounds %class.RefChecker, ptr %13, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !19
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = call noundef zeroext i1 @_ZNK10XStoreRefs11illegal_refEmPK7DexType(ptr noundef nonnull align 8 dereferenceable(2840) %103, i64 noundef %105, ptr noundef %106)
  br i1 %107, label %108, label %109

108:                                              ; preds = %101
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %140

109:                                              ; preds = %101, %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = call noundef ptr @_ZNK8DexClass14get_interfacesEv(ptr noundef nonnull align 8 dereferenceable(176) %110)
  store ptr %111, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %112, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = call ptr @_ZNK11DexTypeList5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.301", ptr %10, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = call ptr @_ZNK11DexTypeList3endEv(ptr noundef nonnull align 8 dereferenceable(24) %116)
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.301", ptr %11, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  br label %119

119:                                              ; preds = %132, %109
  %120 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7DexTypeSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %120, label %122, label %121

121:                                              ; preds = %119
  store i32 4, ptr %7, align 4
  br label %134

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7DexTypeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  store ptr %124, ptr %12, align 8, !tbaa !5
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = call noundef zeroext i1 @_ZNK10RefChecker10check_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016) %13, ptr noundef %125)
  br i1 %126, label %128, label %127

127:                                              ; preds = %122
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %129

128:                                              ; preds = %122
  store i32 0, ptr %7, align 4
  br label %129

129:                                              ; preds = %128, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %130 = load i32, ptr %7, align 4
  switch i32 %130, label %134 [
    i32 0, label %131
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7DexTypeSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br label %119

134:                                              ; preds = %129, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %135 = load i32, ptr %7, align 4
  switch i32 %135, label %139 [
    i32 4, label %136
  ]

136:                                              ; preds = %134
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = call noundef ptr @_ZNK8DexClass15get_super_classEv(ptr noundef nonnull align 8 dereferenceable(176) %137)
  store ptr %138, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %7, align 4
  br label %139

139:                                              ; preds = %136, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %140

140:                                              ; preds = %139, %108, %95, %82, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %141 = load i32, ptr %7, align 4
  switch i32 %141, label %145 [
    i32 0, label %142
    i32 1, label %143
  ]

142:                                              ; preds = %140
  br label %20, !llvm.loop !20

143:                                              ; preds = %140, %18
  %144 = load i1, ptr %3, align 1
  ret i1 %144

145:                                              ; preds = %140
  unreachable
}

declare noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef) #2

declare noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef) #2

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #2

declare noundef ptr @_ZN4type16java_lang_StringEv() #2

declare noundef ptr @_ZN4type15java_lang_ClassEv() #2

declare noundef ptr @_ZN4type14java_lang_EnumEv() #2

declare noundef ptr @_ZN4type16java_lang_ObjectEv() #2

declare noundef ptr @_ZN4type14java_lang_VoidEv() #2

declare noundef ptr @_ZN4type19java_lang_ThrowableEv() #2

declare noundef ptr @_ZN4type17java_lang_BooleanEv() #2

declare noundef ptr @_ZN4type14java_lang_ByteEv() #2

declare noundef ptr @_ZN4type15java_lang_ShortEv() #2

declare noundef ptr @_ZN4type19java_lang_CharacterEv() #2

declare noundef ptr @_ZN4type17java_lang_IntegerEv() #2

declare noundef ptr @_ZN4type14java_lang_LongEv() #2

declare noundef ptr @_ZN4type15java_lang_FloatEv() #2

declare noundef ptr @_ZN4type16java_lang_DoubleEv() #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8DexClass15get_super_classEv(ptr noundef nonnull align 8 dereferenceable(176)) #3 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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 16}
!10 = !{!"_ZTS10RefChecker", !6, i64 0, !11, i64 8, !6, i64 16, !12, i64 24, !14, i64 2688, !16, i64 5352}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTS23InsertOnlyConcurrentMapIPK7DexTypebSt4hashIS2_ESt8equal_toIS2_ELm83EE", !13, i64 0}
!13 = !{!"_ZTS19ConcurrentContainerISt13unordered_mapIPK7DexTypebSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_bEEELm83EE", !7, i64 8}
!14 = !{!"_ZTS23InsertOnlyConcurrentMapIPK9DexMethodbSt4hashIS2_ESt8equal_toIS2_ELm83EE", !15, i64 0}
!15 = !{!"_ZTS19ConcurrentContainerISt13unordered_mapIPK9DexMethodbSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_bEEELm83EE", !7, i64 8}
!16 = !{!"_ZTS23InsertOnlyConcurrentMapIPK8DexFieldbSt4hashIS2_ESt8equal_toIS2_ELm83EE", !17, i64 0}
!17 = !{!"_ZTS19ConcurrentContainerISt13unordered_mapIPK8DexFieldbSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_bEEELm83EE", !7, i64 8}
!18 = !{!10, !6, i64 0}
!19 = !{!10, !11, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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.301" = type { ptr }

; 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 @_ZNK10RefChecker19check_type_internalEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.301", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.301", align 8
  %5 = tail call noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef %1)
  %6 = tail call noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef %5)
  br i1 %6, label %.thread45, label %.preheader

.preheader:                                       ; preds = %2
  %7 = tail call noundef ptr @_Z10type_classPK7DexType(ptr noundef %5)
  %8 = icmp eq ptr %7, null
  br i1 %8, label %._crit_edge55, label %.lr.ph54

.lr.ph54:                                         ; preds = %.preheader
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  br label %51

._crit_edge55:                                    ; preds = %._crit_edge, %.preheader
  %.032.lcssa = phi ptr [ %5, %.preheader ], [ %75, %._crit_edge ]
  %10 = call noundef ptr @_ZN4type16java_lang_StringEv()
  %11 = icmp eq ptr %.032.lcssa, %10
  br i1 %11, label %.thread45, label %12

12:                                               ; preds = %._crit_edge55
  %13 = call noundef ptr @_ZN4type15java_lang_ClassEv()
  %14 = icmp eq ptr %.032.lcssa, %13
  br i1 %14, label %.thread45, label %15

15:                                               ; preds = %12
  %16 = call noundef ptr @_ZN4type14java_lang_EnumEv()
  %17 = icmp eq ptr %.032.lcssa, %16
  br i1 %17, label %.thread45, label %18

18:                                               ; preds = %15
  %19 = call noundef ptr @_ZN4type16java_lang_ObjectEv()
  %20 = icmp eq ptr %.032.lcssa, %19
  br i1 %20, label %.thread45, label %21

21:                                               ; preds = %18
  %22 = call noundef ptr @_ZN4type14java_lang_VoidEv()
  %23 = icmp eq ptr %.032.lcssa, %22
  br i1 %23, label %.thread45, label %24

24:                                               ; preds = %21
  %25 = call noundef ptr @_ZN4type19java_lang_ThrowableEv()
  %26 = icmp eq ptr %.032.lcssa, %25
  br i1 %26, label %.thread45, label %27

27:                                               ; preds = %24
  %28 = call noundef ptr @_ZN4type17java_lang_BooleanEv()
  %29 = icmp eq ptr %.032.lcssa, %28
  br i1 %29, label %.thread45, label %30

30:                                               ; preds = %27
  %31 = call noundef ptr @_ZN4type14java_lang_ByteEv()
  %32 = icmp eq ptr %.032.lcssa, %31
  br i1 %32, label %.thread45, label %33

33:                                               ; preds = %30
  %34 = call noundef ptr @_ZN4type15java_lang_ShortEv()
  %35 = icmp eq ptr %.032.lcssa, %34
  br i1 %35, label %.thread45, label %36

36:                                               ; preds = %33
  %37 = call noundef ptr @_ZN4type19java_lang_CharacterEv()
  %38 = icmp eq ptr %.032.lcssa, %37
  br i1 %38, label %.thread45, label %39

39:                                               ; preds = %36
  %40 = call noundef ptr @_ZN4type17java_lang_IntegerEv()
  %41 = icmp eq ptr %.032.lcssa, %40
  br i1 %41, label %.thread45, label %42

42:                                               ; preds = %39
  %43 = call noundef ptr @_ZN4type14java_lang_LongEv()
  %44 = icmp eq ptr %.032.lcssa, %43
  br i1 %44, label %.thread45, label %45

45:                                               ; preds = %42
  %46 = call noundef ptr @_ZN4type15java_lang_FloatEv()
  %47 = icmp eq ptr %.032.lcssa, %46
  br i1 %47, label %.thread45, label %48

48:                                               ; preds = %45
  %49 = call noundef ptr @_ZN4type16java_lang_DoubleEv()
  %50 = icmp eq ptr %.032.lcssa, %49
  br label %.thread45

51:                                               ; preds = %.lr.ph54, %._crit_edge
  %52 = phi ptr [ %7, %.lr.ph54 ], [ %76, %._crit_edge ]
  %.03253 = phi ptr [ %5, %.lr.ph54 ], [ %75, %._crit_edge ]
  %53 = call noundef zeroext i1 @_ZNK8DexClass11is_externalEv(ptr noundef nonnull align 8 dereferenceable(176) %52)
  br i1 %53, label %54, label %59

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %.not42 = icmp eq ptr %56, null
  br i1 %.not42, label %.thread45, label %57

57:                                               ; preds = %54
  %58 = call noundef zeroext i1 @_ZNK3api10AndroidSDK8has_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(88) %56, ptr noundef %.03253)
  br label %.thread45

59:                                               ; preds = %51
  %60 = load ptr, ptr %0, align 8, !tbaa !17
  %.not = icmp eq ptr %60, null
  br i1 %.not, label %64, label %61

61:                                               ; preds = %59
  %62 = load i64, ptr %9, align 8, !tbaa !18
  %63 = call noundef zeroext i1 @_ZNK10XStoreRefs11illegal_refEmPK7DexType(ptr noundef nonnull align 8 dereferenceable(2840) %60, i64 noundef %62, ptr noundef %.03253)
  br i1 %63, label %.thread45, label %64

64:                                               ; preds = %61, %59
  %65 = call noundef ptr @_ZNK8DexClass14get_interfacesEv(ptr noundef nonnull align 8 dereferenceable(176) %52)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %66 = call ptr @_ZNK11DexTypeList5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  store ptr %66, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %67 = call ptr @_ZNK11DexTypeList3endEv(ptr noundef nonnull align 8 dereferenceable(24) %65)
  store ptr %67, ptr %4, align 8
  %68 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7DexTypeSt6vectorIS2_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 %68, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %64, %72
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP7DexTypeSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %70 = load ptr, ptr %69, align 8, !tbaa !19
  %71 = call noundef zeroext i1 @_ZNK10RefChecker10check_typeEPK7DexType(ptr noundef nonnull align 8 dereferenceable(8016) %0, ptr noundef %70)
  br i1 %71, label %72, label %.thread

.thread:                                          ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %.thread45

72:                                               ; preds = %.lr.ph
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP7DexTypeSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP7DexTypeSt6vectorIS2_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 %74, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %72, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %75 = call noundef ptr @_ZNK8DexClass15get_super_classEv(ptr noundef nonnull align 8 dereferenceable(176) %52)
  %76 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %75)
  %77 = icmp eq ptr %76, null
  br i1 %77, label %._crit_edge55, label %51

.thread45:                                        ; preds = %61, %.thread, %48, %54, %57, %._crit_edge55, %12, %15, %18, %21, %24, %27, %30, %33, %36, %39, %42, %45, %2
  %.5 = phi i1 [ true, %2 ], [ false, %.thread ], [ %50, %48 ], [ %58, %57 ], [ false, %54 ], [ true, %._crit_edge55 ], [ true, %12 ], [ true, %15 ], [ true, %18 ], [ true, %21 ], [ true, %24 ], [ true, %27 ], [ true, %30 ], [ true, %33 ], [ true, %36 ], [ true, %39 ], [ true, %42 ], [ true, %45 ], [ false, %61 ]
  ret i1 %.5
}

declare noundef ptr @_ZN4type25get_element_type_if_arrayEPK7DexType(ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN4type12is_primitiveEPK7DexType(ptr noundef) local_unnamed_addr #2

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) local_unnamed_addr #2

declare noundef ptr @_ZN4type16java_lang_StringEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type15java_lang_ClassEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type14java_lang_EnumEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type16java_lang_ObjectEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type14java_lang_VoidEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type19java_lang_ThrowableEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type17java_lang_BooleanEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type14java_lang_ByteEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type15java_lang_ShortEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type19java_lang_CharacterEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type17java_lang_IntegerEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type14java_lang_LongEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type15java_lang_FloatEv() local_unnamed_addr #2

declare noundef ptr @_ZN4type16java_lang_DoubleEv() local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK8DexClass15get_super_classEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #3 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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, !7, i64 16}
!6 = !{!"_ZTS10RefChecker", !7, i64 0, !10, i64 8, !7, i64 16, !11, i64 24, !13, i64 2688, !15, i64 5352}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTS23InsertOnlyConcurrentMapIPK7DexTypebSt4hashIS2_ESt8equal_toIS2_ELm83EE", !12, i64 0}
!12 = !{!"_ZTS19ConcurrentContainerISt13unordered_mapIPK7DexTypebSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_bEEELm83EE", !8, i64 8}
!13 = !{!"_ZTS23InsertOnlyConcurrentMapIPK9DexMethodbSt4hashIS2_ESt8equal_toIS2_ELm83EE", !14, i64 0}
!14 = !{!"_ZTS19ConcurrentContainerISt13unordered_mapIPK9DexMethodbSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_bEEELm83EE", !8, i64 8}
!15 = !{!"_ZTS23InsertOnlyConcurrentMapIPK8DexFieldbSt4hashIS2_ESt8equal_toIS2_ELm83EE", !16, i64 0}
!16 = !{!"_ZTS19ConcurrentContainerISt13unordered_mapIPK8DexFieldbSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_bEEELm83EE", !8, i64 8}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !10, i64 8}
!19 = !{!7, !7, i64 0}


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