; LLVM IR from facebook/redex :: service/type-analysis (TypeAnalysisTransform)

; 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.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%class.DexTypeDomain = type { %"class.sparta::ReducedProductAbstractDomain" }
%"class.sparta::ReducedProductAbstractDomain" = type { %"class.sparta::DirectProductAbstractDomain" }
%"class.sparta::DirectProductAbstractDomain" = type { %"class.std::tuple.33" }
%"class.std::tuple.33" = type { %"struct.std::_Tuple_impl.base", [7 x i8] }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.35", %"struct.std::_Head_base.45" }>
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Tuple_impl.36", %"struct.std::_Head_base.44" }
%"struct.std::_Tuple_impl.36" = type { %"struct.std::_Tuple_impl.37", %"struct.std::_Head_base.41" }
%"struct.std::_Tuple_impl.37" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { %class.SingletonDexTypeDomain }
%class.SingletonDexTypeDomain = type { %"class.sparta::AbstractDomainScaffolding" }
%"class.sparta::AbstractDomainScaffolding" = type { i32, %"class.dtv_impl::DexTypeValue" }
%"class.dtv_impl::DexTypeValue" = type { ptr }
%"struct.std::_Head_base.41" = type { %class.SmallSetDexTypeDomain }
%class.SmallSetDexTypeDomain = type <{ %"class.sparta::PatriciaTreeSet", i32, [4 x i8] }>
%"class.sparta::PatriciaTreeSet" = type { %"class.sparta::pt_core::PatriciaTreeCore" }
%"class.sparta::pt_core::PatriciaTreeCore" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"struct.std::_Head_base.44" = type { %class.SingletonDexTypeDomain }
%"struct.std::_Head_base.45" = type { %"class.sparta::FiniteAbstractDomain" }
%"class.sparta::FiniteAbstractDomain" = type { %"class.boost::multiprecision::number" }
%"class.boost::multiprecision::number" = type { %"struct.boost::multiprecision::backends::cpp_int_backend" }
%"struct.boost::multiprecision::backends::cpp_int_backend" = type { %"struct.boost::multiprecision::backends::cpp_int_base" }
%"struct.boost::multiprecision::backends::cpp_int_base" = type { i8 }
%"struct.std::pair.122" = type { %"class.cfg::InstructionIteratorImpl", ptr }
%"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" }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.12 }
%"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.12 = type { ptr }
%"class.type_analyzer::Transform" = type { %"struct.type_analyzer::Transform::Config", %class.ConcurrentSet, %"class.std::vector.112", %"class.std::vector.117" }
%"struct.type_analyzer::Transform::Config" = type { i8, i8, i8 }
%class.ConcurrentSet = type { %class.ConcurrentContainer }
%class.ConcurrentContainer = type { ptr, [83 x %"class.cc_impl::ConcurrentHashtable"] }
%"class.cc_impl::ConcurrentHashtable" = type { %"struct.std::atomic", %"struct.std::atomic.106", %"struct.std::atomic.108", %"struct.std::atomic.110" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }
%"struct.std::atomic.106" = type { %"struct.std::__atomic_base.107" }
%"struct.std::__atomic_base.107" = type { i64 }
%"struct.std::atomic.108" = type { %"struct.std::__atomic_base.109" }
%"struct.std::__atomic_base.109" = type { i8 }
%"struct.std::atomic.110" = type { %"struct.std::__atomic_base.111" }
%"struct.std::__atomic_base.111" = type { ptr }
%"class.std::vector.112" = type { %"struct.std::_Vector_base.113" }
%"struct.std::_Vector_base.113" = type { %"struct.std::_Vector_base<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>, std::allocator<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>, std::allocator<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>, std::allocator<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>, std::allocator<std::pair<cfg::InstructionIteratorImpl<false>, IRInstruction *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.117" = type { %"struct.std::_Vector_base.118" }
%"struct.std::_Vector_base.118" = type { %"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.type_analyzer::Transform::Stats" = type { i64, i64, i64, i64, i64 }

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 void @_ZN13type_analyzer9Transform28remove_redundant_null_checksERK18DexTypeEnvironmentPN3cfg5BlockERNS0_5StatsE(ptr noundef nonnull align 8 dereferenceable(2720) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(40) %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.boost::intrusive::list_iterator", align 8
  %10 = alloca %"class.boost::intrusive::list_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %class.DexTypeDomain, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.sparta::FiniteAbstractDomain", align 1
  %18 = alloca %"struct.std::pair.122", align 8
  %19 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.cfg::InstructionIteratorImpl", 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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(104) %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(104) %24)
  %25 = call noundef zeroext i1 @_ZN5boost9intrusiveeqERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br i1 %25, label %26, label %27

26:                                               ; preds = %4
  store i32 1, ptr %11, align 4
  br label %133

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %28 = call noundef ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %29 = getelementptr inbounds %struct.MethodItemEntry, ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  store ptr %30, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %31)
  %33 = call noundef zeroext i1 @_ZN6opcode17is_a_testz_branchE8IROpcode(i16 noundef zeroext %32)
  br i1 %33, label %35, label %34

34:                                               ; preds = %27
  store i32 1, ptr %11, align 4
  br label %132

35:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #8
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %37, i16 noundef zeroext 0)
  call void @_ZNK18DexTypeEnvironment3getEj(ptr dead_on_unwind writable sret(%class.DexTypeDomain) align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %36, i32 noundef %38)
  %39 = invoke noundef zeroext i1 @_ZNK6sparta28ReducedProductAbstractDomainI13DexTypeDomainJNS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS3_Lm5EvvEEN5boost14multiprecision6numberINS7_8backends15cpp_int_backendILj5ELj5ELNS7_16cpp_integer_typeE0ELNS7_18cpp_int_check_typeE0EvEELNS7_26expression_template_optionE0EEEXadL_Z7latticeEEEE22SingletonDexTypeDomain21SmallSetDexTypeDomainSH_EE9is_bottomEv(ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %40 unwind label %45

40:                                               ; preds = %35
  br i1 %39, label %44, label %41

41:                                               ; preds = %40
  %42 = invoke noundef zeroext i1 @_ZNK13DexTypeDomain11is_nullableEv(ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %43 unwind label %45

43:                                               ; preds = %41
  br i1 %42, label %44, label %49

44:                                               ; preds = %43, %40
  store i32 1, ptr %11, align 4
  br label %131

45:                                               ; preds = %41, %35
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %14, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %15, align 4
  br label %137

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = invoke noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %50)
          to label %52 unwind label %73

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #8
  invoke void @_ZNK13DexTypeDomain12get_nullnessEv(ptr dead_on_unwind writable sret(%"class.sparta::FiniteAbstractDomain") align 1 %17, ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %53 unwind label %77

53:                                               ; preds = %52
  %54 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS1_Lm5EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj5ELj5ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_Z7latticeEEE7elementEv(ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %55 unwind label %81

55:                                               ; preds = %53
  %56 = invoke noundef i32 @_ZN12_GLOBAL__N_115evaluate_branchE8IROpcode8Nullness(i16 noundef zeroext %51, i32 noundef %54)
          to label %57 unwind label %81

57:                                               ; preds = %55
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS2_Lm5EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj5ELj5ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_Z7latticeEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  store i32 %56, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %100

60:                                               ; preds = %57
  %61 = getelementptr inbounds %"class.type_analyzer::Transform", ptr %22, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %19, ptr noundef nonnull align 8 dereferenceable(104) %62, ptr noundef nonnull align 8 dereferenceable(8) %9, i1 noundef zeroext false)
          to label %63 unwind label %86

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %64 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #9
          to label %65 unwind label %90

65:                                               ; preds = %63
  invoke void @_ZN13IRInstructionC1E8IROpcode(ptr noundef nonnull align 8 dereferenceable(32) %64, i16 noundef zeroext 26)
          to label %66 unwind label %94

66:                                               ; preds = %65
  store ptr %64, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt4pairIN3cfg23InstructionIteratorImplILb0EEEP13IRInstructionEC2IS2_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %67 unwind label %90

67:                                               ; preds = %66
  invoke void @_ZNSt6vectorISt4pairIN3cfg23InstructionIteratorImplILb0EEEP13IRInstructionESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %68 unwind label %90

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #8
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.type_analyzer::Transform::Stats", ptr %69, i32 0, i32 0
  %71 = load i64, ptr %70, align 8, !tbaa !10
  %72 = add i64 %71, 1
  store i64 %72, ptr %70, align 8, !tbaa !10
  br label %130

73:                                               ; preds = %120, %117, %49
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %14, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %15, align 4
  br label %136

77:                                               ; preds = %52
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %14, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %15, align 4
  br label %85

81:                                               ; preds = %55, %53
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %14, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %15, align 4
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS2_Lm5EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj5ELj5ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_Z7latticeEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #8
  br label %85

85:                                               ; preds = %81, %77
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #8
  br label %136

86:                                               ; preds = %60
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %14, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %15, align 4
  br label %99

90:                                               ; preds = %67, %66, %63
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %14, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %15, align 4
  br label %98

94:                                               ; preds = %65
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %14, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %15, align 4
  call void @_ZdlPvm(ptr noundef %64, i64 noundef 32) #10
  br label %98

98:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %99

99:                                               ; preds = %98, %86
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #8
  br label %136

100:                                              ; preds = %57
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = icmp eq i32 %101, 1
  br i1 %102, label %103, label %117

103:                                              ; preds = %100
  %104 = getelementptr inbounds %"class.type_analyzer::Transform", ptr %22, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %21, ptr noundef nonnull align 8 dereferenceable(104) %105, ptr noundef nonnull align 8 dereferenceable(8) %9, i1 noundef zeroext false)
          to label %106 unwind label %113

106:                                              ; preds = %103
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %108 unwind label %113

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.type_analyzer::Transform::Stats", ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !10
  %112 = add i64 %111, 1
  store i64 %112, ptr %110, align 8, !tbaa !10
  br label %129

113:                                              ; preds = %106, %103
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %14, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %136

117:                                              ; preds = %100
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = invoke noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %118)
          to label %120 unwind label %73

120:                                              ; preds = %117
  %121 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_124is_supported_branch_typeE8IROpcode(i16 noundef zeroext %119)
          to label %122 unwind label %73

122:                                              ; preds = %120
  br i1 %121, label %128, label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.type_analyzer::Transform::Stats", ptr %124, i32 0, i32 1
  %126 = load i64, ptr %125, align 8, !tbaa !13
  %127 = add i64 %126, 1
  store i64 %127, ptr %125, align 8, !tbaa !13
  br label %128

128:                                              ; preds = %123, %122
  br label %129

129:                                              ; preds = %128, %108
  br label %130

130:                                              ; preds = %129, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  store i32 0, ptr %11, align 4
  br label %131

131:                                              ; preds = %130, %44
  call void @_ZN6sparta28ReducedProductAbstractDomainI13DexTypeDomainJNS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS3_Lm5EvvEEN5boost14multiprecision6numberINS7_8backends15cpp_int_backendILj5ELj5ELNS7_16cpp_integer_typeE0ELNS7_18cpp_int_check_typeE0EvEELNS7_26expression_template_optionE0EEEXadL_Z7latticeEEEE22SingletonDexTypeDomain21SmallSetDexTypeDomainSH_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  br label %132

132:                                              ; preds = %131, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %133

133:                                              ; preds = %132, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  %134 = load i32, ptr %11, align 4
  switch i32 %134, label %143 [
    i32 0, label %135
    i32 1, label %135
  ]

135:                                              ; preds = %133, %133
  ret void

136:                                              ; preds = %113, %99, %85, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %137

137:                                              ; preds = %136, %45
  call void @_ZN6sparta28ReducedProductAbstractDomainI13DexTypeDomainJNS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS3_Lm5EvvEEN5boost14multiprecision6numberINS7_8backends15cpp_int_backendILj5ELj5ELNS7_16cpp_integer_typeE0ELNS7_18cpp_int_check_typeE0EvEELNS7_26expression_template_optionE0EEEXadL_Z7latticeEEEE22SingletonDexTypeDomain21SmallSetDexTypeDomainSH_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %14, align 8
  %140 = load i32, ptr %15, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142

143:                                              ; preds = %133
  unreachable
}

declare void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #2

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

declare void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK18DexTypeEnvironment3getEj(ptr dead_on_unwind noalias writable sret(%class.DexTypeDomain) align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_115evaluate_branchE8IROpcode8Nullness(i16 noundef zeroext, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK13DexTypeDomain12get_nullnessEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::FiniteAbstractDomain") align 1, ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK6sparta20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS1_Lm5EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj5ELj5ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_Z7latticeEEE7elementEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIN3cfg23InstructionIteratorImplILb0EEEP13IRInstructionESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

declare void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #2

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

declare void @_ZN13IRInstructionC1E8IROpcode(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_124is_supported_branch_typeE8IROpcode(i16 noundef zeroext) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = { 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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTSN13type_analyzer9Transform5StatsE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!12 = !{!"long", !7, i64 0}
!13 = !{!11, !12, i64 8}


; 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.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%class.DexTypeDomain = type { %"class.sparta::ReducedProductAbstractDomain" }
%"class.sparta::ReducedProductAbstractDomain" = type { %"class.sparta::DirectProductAbstractDomain" }
%"class.sparta::DirectProductAbstractDomain" = type { %"class.std::tuple.33" }
%"class.std::tuple.33" = type { %"struct.std::_Tuple_impl.base", [7 x i8] }
%"struct.std::_Tuple_impl.base" = type <{ %"struct.std::_Tuple_impl.35", %"struct.std::_Head_base.45" }>
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Tuple_impl.36", %"struct.std::_Head_base.44" }
%"struct.std::_Tuple_impl.36" = type { %"struct.std::_Tuple_impl.37", %"struct.std::_Head_base.41" }
%"struct.std::_Tuple_impl.37" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { %class.SingletonDexTypeDomain }
%class.SingletonDexTypeDomain = type { %"class.sparta::AbstractDomainScaffolding" }
%"class.sparta::AbstractDomainScaffolding" = type { i32, %"class.dtv_impl::DexTypeValue" }
%"class.dtv_impl::DexTypeValue" = type { ptr }
%"struct.std::_Head_base.41" = type { %class.SmallSetDexTypeDomain }
%class.SmallSetDexTypeDomain = type <{ %"class.sparta::PatriciaTreeSet", i32, [4 x i8] }>
%"class.sparta::PatriciaTreeSet" = type { %"class.sparta::pt_core::PatriciaTreeCore" }
%"class.sparta::pt_core::PatriciaTreeCore" = type { %"class.boost::intrusive_ptr" }
%"class.boost::intrusive_ptr" = type { ptr }
%"struct.std::_Head_base.44" = type { %class.SingletonDexTypeDomain }
%"struct.std::_Head_base.45" = type { %"class.sparta::FiniteAbstractDomain" }
%"class.sparta::FiniteAbstractDomain" = type { %"class.boost::multiprecision::number" }
%"class.boost::multiprecision::number" = type { %"struct.boost::multiprecision::backends::cpp_int_backend" }
%"struct.boost::multiprecision::backends::cpp_int_backend" = type { %"struct.boost::multiprecision::backends::cpp_int_base" }
%"struct.boost::multiprecision::backends::cpp_int_base" = type { i8 }
%"struct.std::pair.122" = type { %"class.cfg::InstructionIteratorImpl", ptr }
%"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" }

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 void @_ZN13type_analyzer9Transform28remove_redundant_null_checksERK18DexTypeEnvironmentPN3cfg5BlockERNS0_5StatsE(ptr noundef nonnull align 8 dereferenceable(2720) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull %2, ptr nocapture noundef nonnull align 8 dereferenceable(40) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.boost::intrusive::list_iterator", align 8
  %6 = alloca %"class.boost::intrusive::list_iterator", align 8
  %7 = alloca %class.DexTypeDomain, align 8
  %8 = alloca %"class.sparta::FiniteAbstractDomain", align 1
  %9 = alloca %"struct.std::pair.122", align 8
  %10 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(104) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @_ZN3cfg5Block3endEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(104) %2)
  %13 = call noundef zeroext i1 @_ZN5boost9intrusiveeqERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %13, label %72, label %14

14:                                               ; preds = %4
  %15 = call noundef ptr @_ZNK5boost9intrusive13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
  %19 = call noundef zeroext i1 @_ZN6opcode17is_a_testz_branchE8IROpcode(i16 noundef zeroext %18)
  br i1 %19, label %20, label %72

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #8
  %21 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %17, i16 noundef zeroext 0)
  call void @_ZNK18DexTypeEnvironment3getEj(ptr dead_on_unwind nonnull writable sret(%class.DexTypeDomain) align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %21)
  %22 = invoke noundef zeroext i1 @_ZNK6sparta28ReducedProductAbstractDomainI13DexTypeDomainJNS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS3_Lm5EvvEEN5boost14multiprecision6numberINS7_8backends15cpp_int_backendILj5ELj5ELNS7_16cpp_integer_typeE0ELNS7_18cpp_int_check_typeE0EvEELNS7_26expression_template_optionE0EEEXadL_Z7latticeEEEE22SingletonDexTypeDomain21SmallSetDexTypeDomainSH_EE9is_bottomEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %23 unwind label %27

23:                                               ; preds = %20
  br i1 %22, label %71, label %24

24:                                               ; preds = %23
  %25 = invoke noundef zeroext i1 @_ZNK13DexTypeDomain11is_nullableEv(ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %26 unwind label %27

26:                                               ; preds = %24
  br i1 %25, label %71, label %29

27:                                               ; preds = %24, %20
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %73

29:                                               ; preds = %26
  %30 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #8
  invoke void @_ZNK13DexTypeDomain12get_nullnessEv(ptr dead_on_unwind nonnull writable sret(%"class.sparta::FiniteAbstractDomain") align 1 %8, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %31 unwind label %44

31:                                               ; preds = %29
  %32 = invoke noundef i32 @_ZNK6sparta20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS1_Lm5EvvEEN5boost14multiprecision6numberINS5_8backends15cpp_int_backendILj5ELj5ELNS5_16cpp_integer_typeE0ELNS5_18cpp_int_check_typeE0EvEELNS5_26expression_template_optionE0EEEXadL_Z7latticeEEE7elementEv(ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %33 unwind label %46

33:                                               ; preds = %31
  %34 = invoke noundef i32 @_ZN12_GLOBAL__N_115evaluate_branchE8IROpcode8Nullness(i16 noundef zeroext %30, i32 noundef %32)
          to label %35 unwind label %46

35:                                               ; preds = %33
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS2_Lm5EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj5ELj5ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_Z7latticeEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  switch i32 %34, label %64 [
    i32 0, label %36
    i32 1, label %57
  ]

36:                                               ; preds = %35
  %37 = getelementptr inbounds i8, ptr %0, i64 2672
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  invoke void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind nonnull writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %10, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext false)
          to label %38 unwind label %49

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %39 = invoke noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #9
          to label %40 unwind label %51

40:                                               ; preds = %38
  invoke void @_ZN13IRInstructionC1E8IROpcode(ptr noundef nonnull align 8 dereferenceable(32) %39, i16 noundef zeroext 26)
          to label %41 unwind label %53

41:                                               ; preds = %40
  store ptr %39, ptr %11, align 8, !tbaa !8
  invoke void @_ZNSt4pairIN3cfg23InstructionIteratorImplILb0EEEP13IRInstructionEC2IS2_S4_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %42 unwind label %51

42:                                               ; preds = %41
  invoke void @_ZNSt6vectorISt4pairIN3cfg23InstructionIteratorImplILb0EEEP13IRInstructionESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %43 unwind label %51

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  br label %.sink.split

44:                                               ; preds = %29
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %33, %31
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta14AbstractDomainINS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS2_Lm5EvvEEN5boost14multiprecision6numberINS6_8backends15cpp_int_backendILj5ELj5ELNS6_16cpp_integer_typeE0ELNS6_18cpp_int_check_typeE0EvEELNS6_26expression_template_optionE0EEEXadL_Z7latticeEEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  br label %48

48:                                               ; preds = %46, %44
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #8
  br label %73

49:                                               ; preds = %36
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %56

51:                                               ; preds = %42, %41, %38
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %55

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %39, i64 noundef 32) #10
  br label %55

55:                                               ; preds = %53, %51
  %.pn23 = phi { ptr, i32 } [ %52, %51 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %56

56:                                               ; preds = %55, %49
  %.pn23.pn = phi { ptr, i32 } [ %.pn23, %55 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  br label %73

57:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  invoke void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind nonnull writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %12, ptr noundef nonnull align 8 dereferenceable(104) %2, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext false)
          to label %58 unwind label %62

58:                                               ; preds = %57
  %59 = getelementptr inbounds i8, ptr %0, i64 2696
  %60 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %61 unwind label %62

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %.sink.split

62:                                               ; preds = %58, %57
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  br label %73

64:                                               ; preds = %35
  %65 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
  %66 = call noundef zeroext i1 @_ZN12_GLOBAL__N_124is_supported_branch_typeE8IROpcode(i16 noundef zeroext %65)
  br i1 %66, label %71, label %67

67:                                               ; preds = %64
  %68 = getelementptr inbounds i8, ptr %3, i64 8
  br label %.sink.split

.sink.split:                                      ; preds = %61, %67, %43
  %.sink = phi ptr [ %3, %43 ], [ %68, %67 ], [ %3, %61 ]
  %69 = load i64, ptr %.sink, align 8, !tbaa !10
  %70 = add i64 %69, 1
  store i64 %70, ptr %.sink, align 8, !tbaa !10
  br label %71

71:                                               ; preds = %.sink.split, %64, %23, %26
  call void @_ZN6sparta28ReducedProductAbstractDomainI13DexTypeDomainJNS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS3_Lm5EvvEEN5boost14multiprecision6numberINS7_8backends15cpp_int_backendILj5ELj5ELNS7_16cpp_integer_typeE0ELNS7_18cpp_int_check_typeE0EvEELNS7_26expression_template_optionE0EEEXadL_Z7latticeEEEE22SingletonDexTypeDomain21SmallSetDexTypeDomainSH_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #8
  br label %72

72:                                               ; preds = %71, %14, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  ret void

73:                                               ; preds = %48, %56, %62, %27
  %.pn23.pn.pn.pn = phi { ptr, i32 } [ %28, %27 ], [ %.pn23.pn, %56 ], [ %63, %62 ], [ %.pn, %48 ]
  call void @_ZN6sparta28ReducedProductAbstractDomainI13DexTypeDomainJNS_20FiniteAbstractDomainI8NullnessNS_16BitVectorLatticeIS3_Lm5EvvEEN5boost14multiprecision6numberINS7_8backends15cpp_int_backendILj5ELj5ELNS7_16cpp_integer_typeE0ELNS7_18cpp_int_check_typeE0EvEELNS7_26expression_template_optionE0EEEXadL_Z7latticeEEEE22SingletonDexTypeDomain21SmallSetDexTypeDomainSH_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn23.pn.pn.pn
}

declare void @_ZN3cfg5Block13get_last_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2

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

declare void @_ZN3cfg5Block3endEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK18DexTypeEnvironment3getEj(ptr dead_on_unwind noalias writable sret(%class.DexTypeDomain) align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #1 align 2

declare noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_115evaluate_branchE8IROpcode8Nullness(i16 noundef zeroext, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK13DexTypeDomain12get_nullnessEv(ptr dead_on_unwind noalias writable sret(%"class.sparta::FiniteAbstractDomain") align 1, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIN3cfg23InstructionIteratorImplILb0EEEP13IRInstructionESaIS6_EE9push_backEOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

declare void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN5boost9intrusive13list_iteratorINS2_8mhtraitsI15MethodItemEntryNS2_16list_member_hookIJEEEXadL_ZNS5_10list_hook_EEEEELb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #2

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

declare void @_ZN13IRInstructionC1E8IROpcode(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_124is_supported_branch_typeE8IROpcode(i16 noundef zeroext) local_unnamed_addr #5

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = { 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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}


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