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

; 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.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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.std::initializer_list" = type { ptr, i64 }
%"class.cfg::InstructionIteratorImpl" = type { ptr, %"struct.std::_Rb_tree_const_iterator", %"class.ir_list::InstructionIteratorImpl" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"struct.std::pair" = type <{ %"class.UnorderedSet<IRInstruction *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<IRInstruction *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator" }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.5 }
%"class.boost::intrusive::list_member_hook" = type { %"class.boost::intrusive::generic_hook" }
%"class.boost::intrusive::generic_hook" = type { %"struct.boost::intrusive::list_node" }
%"struct.boost::intrusive::list_node" = type { ptr, ptr }
%union.anon.5 = type { ptr }
%"class.throw_propagation_impl::ThrowPropagator" = type { ptr, ptr, %"class.boost::optional" }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i32 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN22throw_propagation_impl15ThrowPropagator42will_throw_or_not_terminate_or_unreachableEN3cfg23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.UnorderedSet, align 8
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [1 x ptr], align 8
  %9 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca { ptr, i8 }, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %17 = call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %18 = getelementptr inbounds %struct.MethodItemEntry, ptr %17, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 0
  store ptr %8, ptr %20, align 8, !tbaa !10
  %21 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1
  store i64 1, ptr %21, align 8, !tbaa !13
  %22 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8
  %24 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %25 = load i64, ptr %24, align 8
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr %23, i64 %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %26

26:                                               ; preds = %91, %2
  br label %27

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  %28 = getelementptr inbounds %"class.throw_propagation_impl::ThrowPropagator", ptr %16, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !14
  invoke void @_ZN3cfg16ControlFlowGraph20next_following_gotosERKNS_23InstructionIteratorImplILb0EEE(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %9, ptr noundef nonnull align 8 dereferenceable(160) %29, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %30 unwind label %43

30:                                               ; preds = %27
  %31 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3cfg23InstructionIteratorImplILb0EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %32 unwind label %43

32:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %33 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %34 unwind label %47

34:                                               ; preds = %32
  %35 = getelementptr inbounds %struct.MethodItemEntry, ptr %33, i32 0, i32 2
  %36 = invoke { ptr, i8 } @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %6, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %37 unwind label %47

37:                                               ; preds = %34
  store { ptr, i8 } %36, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %13, i64 9, i1 false)
  %38 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 1
  %39 = load i8, ptr %38, align 8, !tbaa !20, !range !25, !noundef !26
  %40 = trunc i8 %39 to i1
  %41 = xor i1 %40, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br i1 %41, label %42, label %51

42:                                               ; preds = %37
  store i1 true, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %92

43:                                               ; preds = %30, %27
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %10, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  br label %94

47:                                               ; preds = %34, %32
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %10, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %94

51:                                               ; preds = %37
  %52 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %53 unwind label %59

53:                                               ; preds = %51
  %54 = getelementptr inbounds %struct.MethodItemEntry, ptr %52, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = invoke noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %55)
          to label %57 unwind label %59

57:                                               ; preds = %53
  %58 = zext i16 %56 to i32
  switch i32 %58, label %90 [
    i32 12, label %63
    i32 14, label %63
    i32 1, label %63
    i32 0, label %63
    i32 21, label %63
    i32 6, label %63
    i32 164, label %63
    i32 89, label %64
    i32 25, label %89
    i32 168, label %89
  ]

59:                                               ; preds = %53, %51
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %10, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %11, align 4
  br label %94

63:                                               ; preds = %57, %57, %57, %57, %57, %57, %57
  br label %91

64:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %65 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %66 unwind label %82

66:                                               ; preds = %64
  %67 = getelementptr inbounds %struct.MethodItemEntry, ptr %65, i32 0, i32 2
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = invoke noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %68)
          to label %70 unwind label %82

70:                                               ; preds = %66
  store ptr %69, ptr %15, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = invoke noundef zeroext i1 @_ZN6method7is_initEPK12DexMethodRef(ptr noundef %71)
          to label %73 unwind label %82

73:                                               ; preds = %70
  br i1 %72, label %74, label %81

74:                                               ; preds = %73
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = invoke noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %75)
          to label %77 unwind label %82

77:                                               ; preds = %74
  %78 = invoke noundef ptr @_ZN4type26java_lang_RuntimeExceptionEv()
          to label %79 unwind label %82

79:                                               ; preds = %77
  %80 = icmp ne ptr %76, %78
  br i1 %80, label %81, label %86

81:                                               ; preds = %79, %73
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %87

82:                                               ; preds = %77, %74, %70, %66, %64
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %10, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %94

86:                                               ; preds = %79
  store i32 4, ptr %14, align 4
  br label %87

87:                                               ; preds = %86, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  %88 = load i32, ptr %14, align 4
  switch i32 %88, label %92 [
    i32 4, label %91
  ]

89:                                               ; preds = %57, %57
  store i1 true, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %92

90:                                               ; preds = %57
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %92

91:                                               ; preds = %87, %63
  br label %26, !llvm.loop !27

92:                                               ; preds = %90, %89, %87, %42
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #6
  %93 = load i1, ptr %3, align 1
  ret i1 %93

94:                                               ; preds = %82, %59, %47, %43
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %6) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %6) #6
  br label %95

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(56), ptr, i64) unnamed_addr #1 align 2

declare void @_ZN3cfg16ControlFlowGraph20next_following_gotosERKNS_23InstructionIteratorImplILb0EEE(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

declare noundef ptr @_ZN4type26java_lang_RuntimeExceptionEv() #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"_ZTSSt16initializer_listIP13IRInstructionE", !6, i64 0, !12, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!11, !12, i64 8}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN22throw_propagation_impl15ThrowPropagatorE", !6, i64 0, !6, i64 8, !16, i64 16}
!16 = !{!"_ZTSN5boost8optionalIjEE", !17, i64 0}
!17 = !{!"_ZTSN5boost15optional_detail16tc_optional_baseIjEE", !18, i64 0, !19, i64 4}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!21, !18, i64 8}
!21 = !{!"_ZTSSt4pairIN12UnorderedSetIP13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE13FixedIteratorEbE", !22, i64 0, !18, i64 8}
!22 = !{!"_ZTSN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE13FixedIteratorE", !23, i64 0}
!23 = !{!"_ZTSNSt8__detail14_Node_iteratorIP13IRInstructionLb1ELb0EEE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail19_Node_iterator_baseIP13IRInstructionLb0EEE", !6, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !28}
!28 = !{!"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.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = 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.cfg::InstructionIteratorImpl" = type { ptr, %"struct.std::_Rb_tree_const_iterator", %"class.ir_list::InstructionIteratorImpl" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN22throw_propagation_impl15ThrowPropagator42will_throw_or_not_terminate_or_unreachableEN3cfg23InstructionIteratorImplILb0EEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, ptr noundef nonnull %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.UnorderedSet, align 8
  %4 = alloca [1 x ptr], align 8
  %5 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %6 = tail call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %8, ptr %4, align 8, !tbaa !8
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr nonnull %4, i64 1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.backedge, %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %9 = load ptr, ptr %0, align 8, !tbaa !10
  invoke void @_ZN3cfg16ControlFlowGraph20next_following_gotosERKNS_23InstructionIteratorImplILb0EEE(ptr dead_on_unwind nonnull writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %5, ptr noundef nonnull align 8 dereferenceable(160) %9, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %10 unwind label %19

10:                                               ; preds = %.critedge
  %11 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN3cfg23InstructionIteratorImplILb0EEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %12 unwind label %19

12:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  %13 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %14 unwind label %21

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %13, i64 24
  %16 = invoke { ptr, i8 } @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %17 unwind label %21

17:                                               ; preds = %14
  %.fca.1.extract = extractvalue { ptr, i8 } %16, 1
  %18 = trunc i8 %.fca.1.extract to i1
  br i1 %18, label %23, label %.loopexit13

19:                                               ; preds = %10, %.critedge
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %46

21:                                               ; preds = %14, %12
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %46

23:                                               ; preds = %17
  %24 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %25 unwind label %29

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %24, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
  switch i16 %28, label %.loopexit13 [
    i16 12, label %.critedge.backedge
    i16 14, label %.critedge.backedge
    i16 1, label %.critedge.backedge
    i16 0, label %.critedge.backedge
    i16 21, label %.critedge.backedge
    i16 6, label %.critedge.backedge
    i16 164, label %.critedge.backedge
    i16 89, label %31
    i16 25, label %.loopexit
    i16 168, label %.loopexit
  ]

29:                                               ; preds = %23
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %46

31:                                               ; preds = %25
  %32 = invoke noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %33 unwind label %44

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %32, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = invoke noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %35)
          to label %37 unwind label %44

37:                                               ; preds = %33
  %38 = invoke noundef zeroext i1 @_ZN6method7is_initEPK12DexMethodRef(ptr noundef %36)
          to label %39 unwind label %44

39:                                               ; preds = %37
  br i1 %38, label %40, label %.loopexit13

40:                                               ; preds = %39
  %41 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %36)
  %42 = invoke noundef ptr @_ZN4type26java_lang_RuntimeExceptionEv()
          to label %43 unwind label %44

43:                                               ; preds = %40
  %.not = icmp eq ptr %41, %42
  br i1 %.not, label %.critedge.backedge, label %.loopexit13

.critedge.backedge:                               ; preds = %43, %25, %25, %25, %25, %25, %25, %25
  br label %.critedge, !llvm.loop !16

44:                                               ; preds = %40, %37, %33, %31
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %46

.loopexit13:                                      ; preds = %25, %17, %39, %43
  %.3.ph = xor i1 %18, true
  br label %.loopexit

.loopexit:                                        ; preds = %25, %25, %.loopexit13
  %.3 = phi i1 [ %.3.ph, %.loopexit13 ], [ true, %25 ], [ true, %25 ]
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #5
  ret i1 %.3

46:                                               ; preds = %44, %29, %21, %19
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %30, %29 ], [ %22, %21 ], [ %20, %19 ]
  call void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EEC2ESt16initializer_listIS1_E(ptr noundef nonnull align 8 dereferenceable(56), ptr, i64) unnamed_addr #1 align 2

declare void @_ZN3cfg16ControlFlowGraph20next_following_gotosERKNS_23InstructionIteratorImplILb0EEE(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE6insertERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 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
declare dso_local noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; 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 @_ZN4type26java_lang_RuntimeExceptionEv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !9, i64 0}
!11 = !{!"_ZTSN22throw_propagation_impl15ThrowPropagatorE", !9, i64 0, !9, i64 8, !12, i64 16}
!12 = !{!"_ZTSN5boost8optionalIjEE", !13, i64 0}
!13 = !{!"_ZTSN5boost15optional_detail16tc_optional_baseIjEE", !14, i64 0, !15, i64 4}
!14 = !{!"bool", !6, i64 0}
!15 = !{!"int", !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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