; LLVM IR from facebook/redex :: libredex/Creators.ll (ZN12ClassCreator6createEv)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.ClassCreator = type { %"class.std::unique_ptr", %"class.std::vector" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.DexClass = type { ptr, ptr, ptr, ptr, %"class.std::unique_ptr.5", ptr, ptr, %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.18", i32, i8, i8, i8, %class.ReferencedState }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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.ReferencedState = type { %"struct.ReferencedState::InnerStruct", i32, %"struct.std::atomic" }
%"struct.ReferencedState::InnerStruct" = type <{ i8, i16, %union.anon.23 }>
%union.anon.23 = type { %struct.anon }
%struct.anon = type { i8 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }

@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZN12ClassCreator6createEv = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@g_redex = external global ptr, align 8

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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; 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 void @_ZN12ClassCreator9show_typeB5cxx11EPK7DexType(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN12ClassCreator6createEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca i1, align 1
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %11 = call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %12 = getelementptr inbounds %class.DexClass, ptr %11, i32 0, i32 1
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  br label %18

16:                                               ; preds = %1
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 43, ptr noundef @__PRETTY_FUNCTION__._ZN12ClassCreator6createEv, i32 noundef 2, ptr noundef @.str.9) #6
  unreachable

17:                                               ; No predecessors!
  br label %18

18:                                               ; preds = %17, %15
  %19 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %20 = call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %21 = getelementptr inbounds %class.DexClass, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !33
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %64

24:                                               ; preds = %18
  %25 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %26 = call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  %27 = getelementptr inbounds %class.DexClass, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call noundef ptr @_ZN4type16java_lang_ObjectEv()
  %30 = icmp ne ptr %28, %29
  br i1 %30, label %31, label %63

31:                                               ; preds = %24
  %32 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %33 = call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  %34 = getelementptr inbounds %class.DexClass, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !33
  %36 = icmp ne ptr %35, null
  store i1 false, ptr %4, align 1
  store i1 false, ptr %5, align 1
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  br label %51

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  store i1 true, ptr %4, align 1
  %39 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %40 = call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #5
  %41 = getelementptr inbounds %class.DexClass, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @_ZN12ClassCreator9show_typeB5cxx11EPK7DexType(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef %42)
  store i1 true, ptr %5, align 1
  %43 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.10, ptr noundef @.str.8, i32 noundef 47, ptr noundef @__PRETTY_FUNCTION__._ZN12ClassCreator6createEv, i32 noundef 2, ptr noundef @.str.11, ptr noundef %43) #6
          to label %44 unwind label %45

44:                                               ; preds = %38
  unreachable

45:                                               ; preds = %38
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %6, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %7, align 4
  %49 = load i1, ptr %5, align 1
  br i1 %49, label %58, label %59

50:                                               ; No predecessors!
  br label %51

51:                                               ; preds = %50, %37
  %52 = load i1, ptr %5, align 1
  br i1 %52, label %53, label %54

53:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %54

54:                                               ; preds = %53, %51
  %55 = load i1, ptr %4, align 1
  br i1 %55, label %56, label %57

56:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  br label %57

57:                                               ; preds = %56, %54
  br label %63

58:                                               ; preds = %45
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %59

59:                                               ; preds = %58, %45
  %60 = load i1, ptr %4, align 1
  br i1 %60, label %61, label %62

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

62:                                               ; preds = %61, %59
  br label %75

63:                                               ; preds = %57, %24
  br label %64

64:                                               ; preds = %63, %18
  %65 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 1
  %66 = call noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %65)
  %67 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %68 = call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #5
  %69 = getelementptr inbounds %class.DexClass, ptr %68, i32 0, i32 2
  store ptr %66, ptr %69, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %70 = getelementptr inbounds %struct.ClassCreator, ptr %9, i32 0, i32 0
  %71 = call noundef ptr @_ZNSt10unique_ptrI8DexClassSt14default_deleteIS0_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %70) #5
  store ptr %71, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr @g_redex, align 8, !tbaa !5
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN12RedexContext13publish_classEP8DexClass(ptr noundef nonnull align 8 dereferenceable(389504) %72, ptr noundef %73)
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  ret ptr %74

75:                                               ; preds = %62
  %76 = load ptr, ptr %6, align 8
  %77 = load i32, ptr %7, align 4
  %78 = insertvalue { ptr, i32 } poison, ptr %76, 0
  %79 = insertvalue { ptr, i32 } %78, i32 %77, 1
  resume { ptr, i32 } %79
}

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

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

declare noundef ptr @_ZN4type16java_lang_ObjectEv() #4

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

declare noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24)) #4

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

declare void @_ZN12RedexContext13publish_classEP8DexClass(ptr noundef nonnull align 8 dereferenceable(389504), ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS8DexClass", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !6, i64 40, !6, i64 48, !17, i64 56, !17, i64 80, !21, i64 104, !21, i64 128, !25, i64 152, !26, i64 156, !27, i64 157, !26, i64 158, !28, i64 160}
!11 = !{!"_ZTSSt10unique_ptrI16DexAnnotationSetSt14default_deleteIS0_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataI16DexAnnotationSetSt14default_deleteIS0_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implI16DexAnnotationSetSt14default_deleteIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJP16DexAnnotationSetSt14default_deleteIS0_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJP16DexAnnotationSetSt14default_deleteIS0_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EP16DexAnnotationSetLb0EE", !6, i64 0}
!17 = !{!"_ZTSSt6vectorIP8DexFieldSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP8DexFieldSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP8DexFieldSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP8DexFieldSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIP9DexMethodSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP9DexMethodSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP9DexMethodSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP9DexMethodSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS14DexAccessFlags", !7, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTS18PerfSensitiveGroup", !7, i64 0}
!28 = !{!"_ZTS15ReferencedState", !29, i64 0, !30, i64 4, !31, i64 8}
!29 = !{!"_ZTSN15ReferencedState11InnerStructE", !7, i64 0, !7, i64 1, !26, i64 1, !26, i64 1, !26, i64 1, !26, i64 1, !26, i64 1, !26, i64 1, !26, i64 2, !26, i64 2, !26, i64 2, !26, i64 2, !26, i64 2, !7, i64 3}
!30 = !{!"int", !7, i64 0}
!31 = !{!"_ZTSSt6atomicIPN15ReferencedState11KeepReasonsEE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseIPN15ReferencedState11KeepReasonsEE", !6, i64 0}
!33 = !{!10, !6, i64 0}
!34 = !{!10, !6, i64 16}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [70 x i8], align 1
@__PRETTY_FUNCTION__._ZN12ClassCreator6createEv = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@g_redex = external local_unnamed_addr global ptr, align 8

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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; 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 void @_ZN12ClassCreator9show_typeB5cxx11EPK7DexType(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN12ClassCreator6createEv(ptr noundef nonnull align 8 dereferenceable(32) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = tail call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %1
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 43, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12ClassCreator6createEv, i32 noundef 2, ptr noundef nonnull @.str.9) #6
  unreachable

7:                                                ; preds = %1
  %8 = tail call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %9 = load ptr, ptr %8, align 8, !tbaa !32
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %27

11:                                               ; preds = %7
  %12 = tail call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %13 = getelementptr inbounds i8, ptr %12, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = tail call noundef ptr @_ZN4type16java_lang_ObjectEv()
  %.not8 = icmp eq ptr %14, %15
  br i1 %.not8, label %27, label %16

16:                                               ; preds = %11
  %17 = tail call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %18 = load ptr, ptr %17, align 8, !tbaa !32
  %.not9 = icmp eq ptr %18, null
  br i1 %.not9, label %19, label %27

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  %20 = tail call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN12ClassCreator9show_typeB5cxx11EPK7DexType(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %2, ptr noundef %22)
  %23 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.8, i32 noundef 47, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN12ClassCreator6createEv, i32 noundef 2, ptr noundef nonnull @.str.11, ptr noundef %23) #6
          to label %24 unwind label %25

24:                                               ; preds = %19
  unreachable

25:                                               ; preds = %19
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  resume { ptr, i32 } %26

27:                                               ; preds = %16, %11, %7
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = tail call noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24) %28)
  %30 = tail call noundef ptr @_ZNKSt10unique_ptrI8DexClassSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store ptr %29, ptr %31, align 8, !tbaa !33
  %32 = tail call noundef ptr @_ZNSt10unique_ptrI8DexClassSt14default_deleteIS0_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  %33 = load ptr, ptr @g_redex, align 8, !tbaa !34
  tail call void @_ZN12RedexContext13publish_classEP8DexClass(ptr noundef nonnull align 8 dereferenceable(389504) %33, ptr noundef %32)
  ret ptr %32
}

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

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

declare noundef ptr @_ZN4type16java_lang_ObjectEv() local_unnamed_addr #4

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

declare noundef ptr @_ZN11DexTypeList14make_type_listEOSt6vectorIP7DexTypeSaIS2_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

declare void @_ZN12RedexContext13publish_classEP8DexClass(ptr noundef nonnull align 8 dereferenceable(389504), ptr noundef) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTS8DexClass", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !16, i64 56, !16, i64 80, !20, i64 104, !20, i64 128, !24, i64 152, !25, i64 156, !26, i64 157, !25, i64 158, !27, i64 160}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt10unique_ptrI16DexAnnotationSetSt14default_deleteIS0_EE", !11, i64 0}
!11 = !{!"_ZTSSt15__uniq_ptr_dataI16DexAnnotationSetSt14default_deleteIS0_ELb1ELb1EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_implI16DexAnnotationSetSt14default_deleteIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt5tupleIJP16DexAnnotationSetSt14default_deleteIS0_EEE", !14, i64 0}
!14 = !{!"_ZTSSt11_Tuple_implILm0EJP16DexAnnotationSetSt14default_deleteIS0_EEE", !15, i64 0}
!15 = !{!"_ZTSSt10_Head_baseILm0EP16DexAnnotationSetLb0EE", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIP8DexFieldSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIP8DexFieldSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP8DexFieldSaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP8DexFieldSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"_ZTSSt6vectorIP9DexMethodSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP9DexMethodSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP9DexMethodSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP9DexMethodSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!24 = !{!"_ZTS14DexAccessFlags", !8, i64 0}
!25 = !{!"bool", !8, i64 0}
!26 = !{!"_ZTS18PerfSensitiveGroup", !8, i64 0}
!27 = !{!"_ZTS15ReferencedState", !28, i64 0, !29, i64 4, !30, i64 8}
!28 = !{!"_ZTSN15ReferencedState11InnerStructE", !8, i64 0, !8, i64 1, !25, i64 1, !25, i64 1, !25, i64 1, !25, i64 1, !25, i64 1, !25, i64 1, !25, i64 2, !25, i64 2, !25, i64 2, !25, i64 2, !25, i64 2, !8, i64 3}
!29 = !{!"int", !8, i64 0}
!30 = !{!"_ZTSSt6atomicIPN15ReferencedState11KeepReasonsEE", !31, i64 0}
!31 = !{!"_ZTSSt13__atomic_baseIPN15ReferencedState11KeepReasonsEE", !7, i64 0}
!32 = !{!6, !7, i64 0}
!33 = !{!6, !7, i64 16}
!34 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass