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

; 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::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.28" }
%"struct.std::_Head_base.28" = type { ptr }
%"class.reflection::ReflectionAnalysis" = type { ptr, %"class.std::unique_ptr", ptr }

@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE = external hidden unnamed_addr constant [123 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::unique_ptr", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %17 = load ptr, ptr %6, align 8
  %18 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %19, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 1
  call void @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %21 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 2
  store ptr null, ptr %21, align 8, !tbaa !17
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %5
  br label %32

25:                                               ; preds = %5
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.29, ptr noundef @.str.30, i32 noundef 1109, ptr noundef @__PRETTY_FUNCTION__._ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE, i32 noundef 2, ptr noundef @.str.31) #9
          to label %26 unwind label %27

26:                                               ; preds = %25
  unreachable

27:                                               ; preds = %25
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %11, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %12, align 4
  br label %92

31:                                               ; No predecessors!
  br label %32

32:                                               ; preds = %31, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = invoke noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %33)
          to label %35 unwind label %39

35:                                               ; preds = %32
  store ptr %34, ptr %13, align 8, !tbaa !5
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %43

38:                                               ; preds = %35
  store i32 1, ptr %14, align 4
  br label %83

39:                                               ; preds = %48, %43, %32
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %11, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %12, align 4
  br label %91

43:                                               ; preds = %35
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = invoke noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32) %44)
          to label %46 unwind label %39

46:                                               ; preds = %43
  br i1 %45, label %47, label %48

47:                                               ; preds = %46
  br label %51

48:                                               ; preds = %46
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.32, ptr noundef @.str.30, i32 noundef 1114, ptr noundef @__PRETTY_FUNCTION__._ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE, i32 noundef 2, ptr noundef @.str.31) #9
          to label %49 unwind label %39

49:                                               ; preds = %48
  unreachable

50:                                               ; No predecessors!
  br label %51

51:                                               ; preds = %50, %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = invoke noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %54 unwind label %66

54:                                               ; preds = %51
  store ptr %53, ptr %15, align 8, !tbaa !5
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %55)
          to label %56 unwind label %66

56:                                               ; preds = %54
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %74, label %59

59:                                               ; preds = %56
  %60 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 176) #10
          to label %61 unwind label %66

61:                                               ; preds = %59
  invoke void @_ZN10reflection13MetadataCacheC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %60)
          to label %62 unwind label %70

62:                                               ; preds = %61
  %63 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 2
  store ptr %60, ptr %63, align 8, !tbaa !17
  %64 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  store ptr %65, ptr %10, align 8, !tbaa !5
  br label %74

66:                                               ; preds = %76, %59, %54, %51
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %11, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %12, align 4
  br label %90

70:                                               ; preds = %61
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %11, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %60, i64 noundef 176) #11
  br label %90

74:                                               ; preds = %62, %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZSt11make_uniqueIN10reflection4impl8AnalyzerEJRP9DexMethodRN3cfg16ControlFlowGraphERPSt8functionIFNS0_20AbstractObjectDomainEPK13IRInstructionEERPKNS0_13MetadataCacheEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(160) %75, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %76 unwind label %86

76:                                               ; preds = %74
  %77 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 1
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %79 = getelementptr inbounds %"class.reflection::ReflectionAnalysis", ptr %17, i32 0, i32 1
  %80 = call noundef ptr @_ZNKSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %79) #8
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN10reflection4impl8Analyzer3runEPN6sparta17AbstractPartitionINS2_15PatriciaTreeMapItNS_20AbstractObjectDomainENS2_20BottomValueInterfaceIS5_EEEEEE(ptr noundef nonnull align 8 dereferenceable(680) %80, ptr noundef %81)
          to label %82 unwind label %66

82:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  store i32 0, ptr %14, align 4
  br label %83

83:                                               ; preds = %82, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %84 = load i32, ptr %14, align 4
  switch i32 %84, label %98 [
    i32 0, label %85
    i32 1, label %85
  ]

85:                                               ; preds = %83, %83
  ret void

86:                                               ; preds = %74
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %90

90:                                               ; preds = %86, %70, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %91

91:                                               ; preds = %90, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %92

92:                                               ; preds = %91, %27
  call void @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %11, align 8
  %95 = load i32, ptr %12, align 4
  %96 = insertvalue { ptr, i32 } poison, ptr %94, 0
  %97 = insertvalue { ptr, i32 } %96, i32 %95, 1
  resume { ptr, i32 } %97

98:                                               ; preds = %83
  unreachable
}

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

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

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

declare noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32)) #5

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

declare void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10reflection13MetadataCacheC2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN10reflection4impl8AnalyzerEJRP9DexMethodRN3cfg16ControlFlowGraphERPSt8functionIFNS0_20AbstractObjectDomainEPK13IRInstructionEERPKNS0_13MetadataCacheEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10reflection4impl8Analyzer3runEPN6sparta17AbstractPartitionINS2_15PatriciaTreeMapItNS_20AbstractObjectDomainENS2_20BottomValueInterfaceIS5_EEEEEE(ptr noundef nonnull align 8 dereferenceable(680), ptr noundef) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "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 = { 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 #4 = { 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 #5 = { "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 = { nobuiltin allocsize(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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"_ZTSN10reflection18ReflectionAnalysisE", !6, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"_ZTSSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN10reflection4impl8AnalyzerESt14default_deleteIS2_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN10reflection4impl8AnalyzerESt14default_deleteIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN10reflection4impl8AnalyzerESt14default_deleteIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN10reflection4impl8AnalyzerESt14default_deleteIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN10reflection4impl8AnalyzerELb0EE", !6, i64 0}
!17 = !{!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::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.28" }
%"struct.std::_Head_base.28" = type { ptr }

@.str.29 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE = external hidden unnamed_addr constant [123 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::unique_ptr", align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !5
  store ptr %4, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %0, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr null, ptr %11, align 8, !tbaa !17
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %12, label %16

12:                                               ; preds = %5
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.30, i32 noundef 1109, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE, i32 noundef 2, ptr noundef nonnull @.str.31) #9
          to label %13 unwind label %14

13:                                               ; preds = %12
  unreachable

14:                                               ; preds = %12
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %44

16:                                               ; preds = %5
  %17 = tail call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %1)
  %18 = icmp eq ptr %17, null
  br i1 %18, label %41, label %21

19:                                               ; preds = %24, %21
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %44

21:                                               ; preds = %16
  %22 = invoke noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %23 unwind label %19

23:                                               ; preds = %21
  br i1 %22, label %26, label %24

24:                                               ; preds = %23
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.30, i32 noundef 1114, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN10reflection18ReflectionAnalysisC2EP9DexMethodPN6sparta17AbstractPartitionINS3_15PatriciaTreeMapItNS_20AbstractObjectDomainENS3_20BottomValueInterfaceIS6_EEEEEEPSt8functionIFS6_PK13IRInstructionEEPKNS_13MetadataCacheE, i32 noundef 2, ptr noundef nonnull @.str.31) #9
          to label %25 unwind label %19

25:                                               ; preds = %24
  unreachable

26:                                               ; preds = %23
  %27 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
  invoke void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %27)
          to label %28 unwind label %33

28:                                               ; preds = %26
  %.not13 = icmp eq ptr %4, null
  br i1 %.not13, label %29, label %37

29:                                               ; preds = %28
  %30 = invoke noalias noundef nonnull dereferenceable(176) ptr @_Znwm(i64 noundef 176) #10
          to label %31 unwind label %33

31:                                               ; preds = %29
  invoke void @_ZN10reflection13MetadataCacheC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %30)
          to label %32 unwind label %35

32:                                               ; preds = %31
  store ptr %30, ptr %11, align 8, !tbaa !17
  store ptr %30, ptr %8, align 8, !tbaa !5
  br label %37

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

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %30, i64 noundef 176) #11
  br label %44

37:                                               ; preds = %32, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  invoke void @_ZSt11make_uniqueIN10reflection4impl8AnalyzerEJRP9DexMethodRN3cfg16ControlFlowGraphERPSt8functionIFNS0_20AbstractObjectDomainEPK13IRInstructionEERPKNS0_13MetadataCacheEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(160) %27, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %38 unwind label %42

38:                                               ; preds = %37
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  invoke void @_ZN10reflection4impl8Analyzer3runEPN6sparta17AbstractPartitionINS2_15PatriciaTreeMapItNS_20AbstractObjectDomainENS2_20BottomValueInterfaceIS5_EEEEEE(ptr noundef nonnull align 8 dereferenceable(680) %40, ptr noundef %2)
          to label %41 unwind label %33

41:                                               ; preds = %38, %16
  ret void

42:                                               ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %44

44:                                               ; preds = %19, %42, %35, %33, %14
  %.pn.pn.pn = phi { ptr, i32 } [ %15, %14 ], [ %20, %19 ], [ %34, %33 ], [ %43, %42 ], [ %36, %35 ]
  call void @_ZNSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

declare noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

declare void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10reflection13MetadataCacheC2Ev(ptr noundef nonnull align 8 dereferenceable(176)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN10reflection4impl8AnalyzerEJRP9DexMethodRN3cfg16ControlFlowGraphERPSt8functionIFNS0_20AbstractObjectDomainEPK13IRInstructionEERPKNS0_13MetadataCacheEEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10reflection4impl8Analyzer3runEPN6sparta17AbstractPartitionINS2_15PatriciaTreeMapItNS_20AbstractObjectDomainENS2_20BottomValueInterfaceIS5_EEEEEE(ptr noundef nonnull align 8 dereferenceable(680), ptr noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin nounwind "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 = { 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 #4 = { 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 #5 = { "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 = { nobuiltin allocsize(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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"_ZTSN10reflection18ReflectionAnalysisE", !6, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"_ZTSSt10unique_ptrIN10reflection4impl8AnalyzerESt14default_deleteIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN10reflection4impl8AnalyzerESt14default_deleteIS2_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN10reflection4impl8AnalyzerESt14default_deleteIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN10reflection4impl8AnalyzerESt14default_deleteIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN10reflection4impl8AnalyzerESt14default_deleteIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN10reflection4impl8AnalyzerELb0EE", !6, i64 0}
!17 = !{!10, !6, i64 16}


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