; LLVM IR from facebook/redex :: service/cse (CommonSubexpressionElimination)

; 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.cse_impl::SharedState" = type { %class.UnorderedSet.6, %class.UnorderedSet.6, %class.UnorderedSet.26, ptr, ptr, %class.UnorderedSet.48, %"class.std::unique_ptr", %class.UnorderedMap, %class.UnorderedMap, %"class.std::unique_ptr.86", %"struct.cse_impl::SharedStateStats", %class.UnorderedMap.94, %class.UnorderedMap.94 }
%class.UnorderedSet.6 = type { %"class.std::unordered_set.8" }
%"class.std::unordered_set.8" = type { %"class.std::_Hashtable.9" }
%"class.std::_Hashtable.9" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.UnorderedSet.26 = type { %"class.std::unordered_set.28" }
%"class.std::unordered_set.28" = type { %"class.std::_Hashtable.29" }
%"class.std::_Hashtable.29" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedSet.48 = type { %"class.std::unordered_set.50" }
%"class.std::unordered_set.50" = type { %"class.std::_Hashtable.51" }
%"class.std::_Hashtable.51" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"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.71" }
%"struct.std::_Head_base.71" = type { ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.73" }
%"class.std::_Hashtable.73" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unique_ptr.86" = type { %"struct.std::__uniq_ptr_data.87" }
%"struct.std::__uniq_ptr_data.87" = type { %"class.std::__uniq_ptr_impl.88" }
%"class.std::__uniq_ptr_impl.88" = type { %"class.std::tuple.89" }
%"class.std::tuple.89" = type { %"struct.std::_Tuple_impl.90" }
%"struct.std::_Tuple_impl.90" = type { %"struct.std::_Head_base.93" }
%"struct.std::_Head_base.93" = type { ptr }
%"struct.cse_impl::SharedStateStats" = type { i64, i64, i64, i64, i64 }
%class.UnorderedMap.94 = type { %"class.std::unordered_map.96" }
%"class.std::unordered_map.96" = type { %"class.std::_Hashtable.97" }
%"class.std::_Hashtable.97" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@.str.108 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__._ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType = external hidden unnamed_addr constant [77 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [4 x i8], align 1

; 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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType(ptr noundef nonnull align 8 dereferenceable(520) %0, ptr noundef %1, ptr noundef %2) #4 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i16, align 2
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  %20 = call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %19)
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  br label %24

22:                                               ; preds = %3
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.111, ptr noundef @.str.108, i32 noundef 1336, ptr noundef @__PRETTY_FUNCTION__._ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType, i32 noundef 2, ptr noundef @.str.109) #7
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %25)
  store ptr %26, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #8
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
  store i16 %28, ptr %9, align 2, !tbaa !9
  %29 = load i16, ptr %9, align 2, !tbaa !9
  %30 = zext i16 %29 to i32
  %31 = icmp eq i32 %30, 90
  br i1 %31, label %36, label %32

32:                                               ; preds = %24
  %33 = load i16, ptr %9, align 2, !tbaa !9
  %34 = zext i16 %33 to i32
  %35 = icmp eq i32 %34, 89
  br i1 %35, label %36, label %41

36:                                               ; preds = %32, %24
  %37 = getelementptr inbounds %"class.cse_impl::SharedState", ptr %17, i32 0, i32 1
  %38 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %37, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %39 = icmp ne i64 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %116

41:                                               ; preds = %36, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef %43)
  %45 = call noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef %42, i32 noundef %44, ptr noundef null)
  store ptr %45, ptr %11, align 8, !tbaa !5
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %49, label %48

48:                                               ; preds = %41
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %115

49:                                               ; preds = %41
  %50 = load i16, ptr %9, align 2, !tbaa !9
  %51 = zext i16 %50 to i32
  %52 = icmp eq i32 %51, 90
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  br i1 %52, label %57, label %53

53:                                               ; preds = %49
  %54 = load i16, ptr %9, align 2, !tbaa !9
  %55 = zext i16 %54 to i32
  %56 = icmp eq i32 %55, 89
  br i1 %56, label %57, label %62

57:                                               ; preds = %53, %49
  %58 = getelementptr inbounds %"class.cse_impl::SharedState", ptr %17, i32 0, i32 1
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %59, ptr %12, align 8, !tbaa !5
  %60 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %58, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %61 = icmp ne i64 %60, 0
  br label %62

62:                                               ; preds = %57, %53
  %63 = phi i1 [ false, %53 ], [ %61, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br i1 %63, label %64, label %65

64:                                               ; preds = %62
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %115

65:                                               ; preds = %62
  %66 = load i16, ptr %9, align 2, !tbaa !9
  %67 = zext i16 %66 to i32
  %68 = icmp eq i32 %67, 87
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  br i1 %68, label %69, label %74

69:                                               ; preds = %65
  %70 = getelementptr inbounds %"class.cse_impl::SharedState", ptr %17, i32 0, i32 1
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %71, ptr %13, align 8, !tbaa !5
  %72 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %70, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %73 = icmp ne i64 %72, 0
  br label %74

74:                                               ; preds = %69, %65
  %75 = phi i1 [ false, %65 ], [ %73, %69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br i1 %75, label %76, label %102

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %77)
  store ptr %78, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %79)
  store ptr %80, ptr %15, align 8, !tbaa !5
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %84

83:                                               ; preds = %76
  br label %86

84:                                               ; preds = %76
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.112, ptr noundef @.str.108, i32 noundef 1358, ptr noundef @__PRETTY_FUNCTION__._ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType, i32 noundef 2, ptr noundef @.str.109) #7
  unreachable

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %83
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_Z8is_finalI8DexClassEbPT_(ptr noundef %87)
  br i1 %88, label %92, label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = call noundef zeroext i1 @_Z8is_finalI9DexMethodEbPT_(ptr noundef %90)
  br i1 %91, label %92, label %93

92:                                               ; preds = %89, %86
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %99

93:                                               ; preds = %89
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = icmp eq ptr %94, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %93
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %99

98:                                               ; preds = %93
  store i32 0, ptr %10, align 4
  br label %99

99:                                               ; preds = %98, %97, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %100 = load i32, ptr %10, align 4
  switch i32 %100, label %115 [
    i32 0, label %101
  ]

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101, %74
  %103 = load i16, ptr %9, align 2, !tbaa !9
  %104 = zext i16 %103 to i32
  %105 = icmp eq i32 %104, 91
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  br i1 %105, label %106, label %111

106:                                              ; preds = %102
  %107 = getelementptr inbounds %"class.cse_impl::SharedState", ptr %17, i32 0, i32 1
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %108, ptr %16, align 8, !tbaa !5
  %109 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %107, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %110 = icmp ne i64 %109, 0
  br label %111

111:                                              ; preds = %106, %102
  %112 = phi i1 [ false, %102 ], [ %110, %106 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br i1 %112, label %113, label %114

113:                                              ; preds = %111
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %115

114:                                              ; preds = %111
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %115

115:                                              ; preds = %114, %113, %99, %64, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %116

116:                                              ; preds = %115, %40
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %117 = load i1, ptr %4, align 1
  ret i1 %117
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef) #5

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

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8is_finalI8DexClassEbPT_(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8is_finalI9DexMethodEbPT_(ptr noundef) #4

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


; 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"

@.str.108 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__._ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType = external hidden unnamed_addr constant [77 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [4 x i8], align 1

; 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: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType(ptr noundef nonnull align 8 dereferenceable(520) %0, ptr noundef nonnull %1, ptr noundef readnone %2) local_unnamed_addr #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %9 = tail call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %8)
  br i1 %9, label %11, label %10

10:                                               ; preds = %3
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.111, ptr noundef nonnull @.str.108, i32 noundef 1336, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType, i32 noundef 2, ptr noundef nonnull @.str.109) #7
  unreachable

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %12 = tail call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  store ptr %12, ptr %4, align 8, !tbaa !5
  %13 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %14 = add i16 %13, -89
  %or.cond = icmp ult i16 %14, 2
  br i1 %or.cond, label %15, label %18

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge, label %.critedge40

._crit_edge:                                      ; preds = %15
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %._crit_edge, %11
  %19 = phi ptr [ %.pre, %._crit_edge ], [ %12, %11 ]
  %20 = call noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef nonnull %1)
  %21 = call noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef %19, i32 noundef %20, ptr noundef null)
  %.not34 = icmp eq ptr %21, null
  br i1 %.not34, label %.critedge40, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  br i1 %or.cond, label %23, label %26

23:                                               ; preds = %22
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %21, ptr %5, align 8, !tbaa !5
  %25 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %.not35 = icmp eq i64 %25, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br i1 %.not35, label %.thread44, label %.critedge40

.thread44:                                        ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  br label %.critedge9

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %27 = icmp eq i16 %13, 87
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  br i1 %27, label %28, label %40

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %21, ptr %6, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %.not36 = icmp eq i64 %30, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %.not36, label %.thread43, label %31

31:                                               ; preds = %28
  %32 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %21)
  %33 = call noundef ptr @_Z10type_classPK7DexType(ptr noundef %32)
  %.not37 = icmp eq ptr %33, null
  br i1 %.not37, label %34, label %35

34:                                               ; preds = %31
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.112, ptr noundef nonnull @.str.108, i32 noundef 1358, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8cse_impl11SharedState14is_invoke_safeEPK13IRInstructionP7DexType, i32 noundef 2, ptr noundef nonnull @.str.109) #7
  unreachable

35:                                               ; preds = %31
  %36 = call noundef zeroext i1 @_Z8is_finalI8DexClassEbPT_(ptr noundef nonnull %33)
  br i1 %36, label %.critedge40, label %37

37:                                               ; preds = %35
  %38 = call noundef zeroext i1 @_Z8is_finalI9DexMethodEbPT_(ptr noundef nonnull %21)
  %39 = icmp eq ptr %32, %2
  %or.cond42.not = or i1 %39, %38
  br i1 %or.cond42.not, label %.critedge40, label %.thread43

.thread43:                                        ; preds = %37, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  br label %.critedge9

40:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %41 = icmp eq i16 %13, 91
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  br i1 %41, label %42, label %.critedge9

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %21, ptr %7, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %43, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %.not38 = icmp eq i64 %44, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %.not38, label %45, label %.critedge40

.critedge9:                                       ; preds = %.thread44, %.thread43, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %45

45:                                               ; preds = %.critedge9, %42
  br label %.critedge40

.critedge40:                                      ; preds = %45, %18, %23, %42, %35, %37, %15
  %.2 = phi i1 [ true, %15 ], [ false, %45 ], [ false, %18 ], [ true, %23 ], [ true, %42 ], [ true, %35 ], [ true, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  ret i1 %.2
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK12UnorderedSetIP12DexMethodRefSt4hashIS1_ESt8equal_toIS1_EE5countERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8is_finalI8DexClassEbPT_(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8is_finalI9DexMethodEbPT_(ptr noundef) local_unnamed_addr #4

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


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