; LLVM IR from facebook/redex :: service/constant-propagation (ConstantPropagationTransform)

; 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.DisjointUnionWithSignedConstantDomain = type { %"class.boost::variant" }
%"class.boost::variant" = type { i32, [4 x i8], %"class.boost::aligned_storage" }
%"class.boost::aligned_storage" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" = type { [40 x i8] }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i64 }
%"class.boost::optional.162" = type { %"class.boost::optional_detail::optional_base" }
%"class.boost::optional_detail::optional_base" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage" }
%"class.boost::optional_detail::aligned_storage" = type { %"union.boost::optional_detail::aligned_storage<SignedConstantDomain>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<SignedConstantDomain>::dummy_u" = type { [24 x i8] }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.0 }
%"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.0 = type { ptr }
%"class.constant_propagation::Transform" = type { %"struct.constant_propagation::Transform::Config", %"class.std::unique_ptr.79", %"class.std::vector", %class.UnorderedSet.87, %"class.std::vector.109", %"class.std::vector.114", %"struct.constant_propagation::Transform::Stats", ptr }
%"struct.constant_propagation::Transform::Config" = type { i8, i8, i8, i8, i8, i8, ptr, ptr, ptr }
%"class.std::unique_ptr.79" = type { %"struct.std::__uniq_ptr_data.80" }
%"struct.std::__uniq_ptr_data.80" = type { %"class.std::__uniq_ptr_impl.81" }
%"class.std::__uniq_ptr_impl.81" = type { %"class.std::tuple.82" }
%"class.std::tuple.82" = type { %"struct.std::_Tuple_impl.83" }
%"struct.std::_Tuple_impl.83" = type { %"struct.std::_Head_base.86" }
%"struct.std::_Head_base.86" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl" = type { %"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<IRInstruction *, std::allocator<IRInstruction *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.UnorderedSet.87 = type { %"class.std::unordered_set.89" }
%"class.std::unordered_set.89" = type { %"class.std::_Hashtable.90" }
%"class.std::_Hashtable.90" = 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::vector.109" = type { %"struct.std::_Vector_base.110" }
%"struct.std::_Vector_base.110" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::Edge *, std::allocator<cfg::Edge *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.114" = type { %"struct.std::_Vector_base.115" }
%"struct.std::_Vector_base.115" = type { %"struct.std::_Vector_base<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>, std::allocator<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>, std::allocator<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>, std::allocator<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>, std::allocator<std::tuple<cfg::Block *, cfg::Block *, cfg::EdgeType>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.constant_propagation::Transform::Stats" = type { i64, i64, i64, i64, 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
declare dso_local noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cfg11CFGMutation6removeERKNS_23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20constant_propagation9Transform30eliminate_redundant_null_checkERK19ConstantEnvironmentRKNS_17WholeProgramStateERKN3cfg23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 8 dereferenceable(312) %2, ptr noundef nonnull align 8 dereferenceable(32) %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.boost::optional", align 8
  %12 = alloca %"class.boost::optional.162", align 8
  %13 = alloca %class.DisjointUnionWithSignedConstantDomain, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.boost::optional.162", align 8
  %18 = alloca %class.DisjointUnionWithSignedConstantDomain, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  %22 = getelementptr inbounds %struct.MethodItemEntry, ptr %21, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %10, align 8, !tbaa !5
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %26 = zext i16 %25 to i32
  switch i32 %26, label %128 [
    i32 90, label %27
  ]

27:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !10
  %31 = call { i8, i64 } @_ZN20constant_propagation27get_null_check_object_indexEPK13IRInstructionRKNS_5StateE(ptr noundef %28, ptr noundef nonnull align 8 dereferenceable(64) %30)
  %32 = getelementptr inbounds %"class.boost::optional", ptr %11, i32 0, i32 0
  %33 = getelementptr inbounds { i8, i64 }, ptr %32, i32 0, i32 0
  %34 = extractvalue { i8, i64 } %31, 0
  store i8 %34, ptr %33, align 8
  %35 = getelementptr inbounds { i8, i64 }, ptr %32, i32 0, i32 1
  %36 = extractvalue { i8, i64 } %31, 1
  store i64 %36, ptr %35, align 8
  %37 = call noundef zeroext i1 @_ZNK5boost8optionalImEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br i1 %37, label %38, label %79

38:                                               ; preds = %27
  %39 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 6
  %40 = getelementptr inbounds %"struct.constant_propagation::Transform::Stats", ptr %39, i32 0, i32 6
  %41 = load i64, ptr %40, align 8, !tbaa !40
  %42 = add i64 %41, 1
  store i64 %42, ptr %40, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #7
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %46 = load i64, ptr %45, align 8, !tbaa !41
  %47 = trunc i64 %46 to i16
  %48 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %44, i16 noundef zeroext %47)
  call void @_ZNK19ConstantEnvironment3getEj(ptr dead_on_unwind writable sret(%class.DisjointUnionWithSignedConstantDomain) align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %43, i32 noundef %48)
  invoke void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getI20SignedConstantDomainEEN5boost8optionalIT_EEv(ptr dead_on_unwind writable sret(%"class.boost::optional.162") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %49 unwind label %66

49:                                               ; preds = %38
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #7
  %50 = call noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br i1 %50, label %51, label %74

51:                                               ; preds = %49
  %52 = invoke noundef ptr @_ZN5boost8optionalI20SignedConstantDomainEptEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %53 unwind label %70

53:                                               ; preds = %51
  %54 = invoke noundef i32 @_ZNK20SignedConstantDomain8intervalEv(ptr noundef nonnull align 8 dereferenceable(24) %52)
          to label %55 unwind label %70

55:                                               ; preds = %53
  %56 = icmp eq i32 %54, 4
  br i1 %56, label %57, label %74

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 1
  %59 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutationESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %58) #7
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN3cfg11CFGMutation6removeERKNS_23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(64) %59, ptr noundef nonnull align 8 dereferenceable(32) %60)
          to label %61 unwind label %70

61:                                               ; preds = %57
  %62 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 6
  %63 = getelementptr inbounds %"struct.constant_propagation::Transform::Stats", ptr %62, i32 0, i32 5
  %64 = load i64, ptr %63, align 8, !tbaa !42
  %65 = add i64 %64, 1
  store i64 %65, ptr %63, align 8, !tbaa !42
  store i1 true, ptr %5, align 1
  store i32 1, ptr %16, align 4
  br label %75

66:                                               ; preds = %38
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %14, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %15, align 4
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #7
  br label %78

70:                                               ; preds = %57, %53, %51
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %14, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %15, align 4
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %78

74:                                               ; preds = %55, %49
  store i32 0, ptr %16, align 4
  br label %75

75:                                               ; preds = %74, %61
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  %76 = load i32, ptr %16, align 4
  switch i32 %76, label %80 [
    i32 0, label %77
  ]

77:                                               ; preds = %75
  br label %79

78:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  br label %132

79:                                               ; preds = %77, %27
  store i32 0, ptr %16, align 4
  br label %80

80:                                               ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  %81 = load i32, ptr %16, align 4
  switch i32 %81, label %130 [
    i32 0, label %82
  ]

82:                                               ; preds = %80
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %83)
  %85 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 7
  %86 = load ptr, ptr %85, align 8, !tbaa !10
  %87 = call noundef ptr @_ZNK20constant_propagation5State26redex_null_check_assertionEv(ptr noundef nonnull align 8 dereferenceable(64) %86)
  %88 = icmp eq ptr %84, %87
  br i1 %88, label %89, label %127

89:                                               ; preds = %82
  %90 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 6
  %91 = getelementptr inbounds %"struct.constant_propagation::Transform::Stats", ptr %90, i32 0, i32 6
  %92 = load i64, ptr %91, align 8, !tbaa !40
  %93 = add i64 %92, 1
  store i64 %93, ptr %91, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #7
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %95, i16 noundef zeroext 0)
  call void @_ZNK19ConstantEnvironment3getEj(ptr dead_on_unwind writable sret(%class.DisjointUnionWithSignedConstantDomain) align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %94, i32 noundef %96)
  invoke void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getI20SignedConstantDomainEEN5boost8optionalIT_EEv(ptr dead_on_unwind writable sret(%"class.boost::optional.162") align 8 %17, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %97 unwind label %114

97:                                               ; preds = %89
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #7
  %98 = call noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br i1 %98, label %99, label %122

99:                                               ; preds = %97
  %100 = invoke noundef ptr @_ZN5boost8optionalI20SignedConstantDomainEptEv(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %101 unwind label %118

101:                                              ; preds = %99
  %102 = invoke noundef i32 @_ZNK20SignedConstantDomain8intervalEv(ptr noundef nonnull align 8 dereferenceable(24) %100)
          to label %103 unwind label %118

103:                                              ; preds = %101
  %104 = icmp eq i32 %102, 4
  br i1 %104, label %105, label %122

105:                                              ; preds = %103
  %106 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 1
  %107 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutationESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %106) #7
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN3cfg11CFGMutation6removeERKNS_23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(64) %107, ptr noundef nonnull align 8 dereferenceable(32) %108)
          to label %109 unwind label %118

109:                                              ; preds = %105
  %110 = getelementptr inbounds %"class.constant_propagation::Transform", ptr %19, i32 0, i32 6
  %111 = getelementptr inbounds %"struct.constant_propagation::Transform::Stats", ptr %110, i32 0, i32 5
  %112 = load i64, ptr %111, align 8, !tbaa !42
  %113 = add i64 %112, 1
  store i64 %113, ptr %111, align 8, !tbaa !42
  store i1 true, ptr %5, align 1
  store i32 1, ptr %16, align 4
  br label %123

114:                                              ; preds = %89
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %14, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %15, align 4
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #7
  br label %126

118:                                              ; preds = %105, %101, %99
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %14, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %15, align 4
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %126

122:                                              ; preds = %103, %97
  store i32 0, ptr %16, align 4
  br label %123

123:                                              ; preds = %122, %109
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  %124 = load i32, ptr %16, align 4
  switch i32 %124, label %130 [
    i32 0, label %125
  ]

125:                                              ; preds = %123
  br label %127

126:                                              ; preds = %118, %114
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  br label %132

127:                                              ; preds = %125, %82
  br label %129

128:                                              ; preds = %4
  br label %129

129:                                              ; preds = %128, %127
  store i1 false, ptr %5, align 1
  store i32 1, ptr %16, align 4
  br label %130

130:                                              ; preds = %129, %123, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %131 = load i1, ptr %5, align 1
  ret i1 %131

132:                                              ; preds = %126, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %14, align 8
  %135 = load i32, ptr %15, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

declare { i8, i64 } @_ZN20constant_propagation27get_null_check_object_indexEPK13IRInstructionRKNS_5StateE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(64)) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalImEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getI20SignedConstantDomainEEN5boost8optionalIT_EEv(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.162") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK20constant_propagation5State26redex_null_check_assertionEv(ptr noundef nonnull align 8 dereferenceable(64)) #2 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 = { 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 = { 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 #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 = { "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 = { alwaysinline 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 #7 = { 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 240}
!11 = !{!"_ZTSN20constant_propagation9TransformE", !12, i64 0, !14, i64 32, !20, i64 40, !24, i64 64, !31, i64 120, !35, i64 144, !39, i64 168, !6, i64 240}
!12 = !{!"_ZTSN20constant_propagation9Transform6ConfigE", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt10unique_ptrIN3cfg11CFGMutationESt14default_deleteIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataIN3cfg11CFGMutationESt14default_deleteIS1_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implIN3cfg11CFGMutationESt14default_deleteIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJPN3cfg11CFGMutationESt14default_deleteIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJPN3cfg11CFGMutationESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EPN3cfg11CFGMutationELb0EE", !6, i64 0}
!20 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt13unordered_setIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableIP13IRInstructionS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !27, i64 8, !28, i64 16, !27, i64 24, !29, i64 32, !6, i64 48}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!29 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !30, i64 0, !27, i64 8}
!30 = !{!"float", !7, i64 0}
!31 = !{!"_ZTSSt6vectorIPN3cfg4EdgeESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPN3cfg4EdgeESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN3cfg4EdgeESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN3cfg4EdgeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSN20constant_propagation9Transform5StatsE", !27, i64 0, !27, i64 8, !27, i64 16, !27, i64 24, !27, i64 32, !27, i64 40, !27, i64 48, !27, i64 56, !27, i64 64}
!40 = !{!11, !27, i64 216}
!41 = !{!27, !27, i64 0}
!42 = !{!11, !27, i64 208}


; 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.DisjointUnionWithSignedConstantDomain = type { %"class.boost::variant" }
%"class.boost::variant" = type { i32, [4 x i8], %"class.boost::aligned_storage" }
%"class.boost::aligned_storage" = type { %"struct.boost::detail::aligned_storage::aligned_storage_imp" }
%"struct.boost::detail::aligned_storage::aligned_storage_imp" = type { %"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" }
%"union.boost::detail::aligned_storage::aligned_storage_imp<40, 8>::data_t" = type { [40 x i8] }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i64 }
%"class.boost::optional.162" = type { %"class.boost::optional_detail::optional_base" }
%"class.boost::optional_detail::optional_base" = type { i8, [7 x i8], %"class.boost::optional_detail::aligned_storage" }
%"class.boost::optional_detail::aligned_storage" = type { %"union.boost::optional_detail::aligned_storage<SignedConstantDomain>::dummy_u" }
%"union.boost::optional_detail::aligned_storage<SignedConstantDomain>::dummy_u" = type { [24 x i8] }

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
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 @_ZNK19ConstantEnvironment3getEj(ptr dead_on_unwind noalias writable sret(%class.DisjointUnionWithSignedConstantDomain) align 8, ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) 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 #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3cfg11CFGMutation6removeERKNS_23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN20constant_propagation9Transform30eliminate_redundant_null_checkERK19ConstantEnvironmentRKNS_17WholeProgramStateERKN3cfg23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr nocapture noundef nonnull readnone align 8 dereferenceable(312) %2, ptr noundef nonnull align 8 dereferenceable(32) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.boost::optional", align 8
  %6 = alloca %"class.boost::optional.162", align 8
  %7 = alloca %class.DisjointUnionWithSignedConstantDomain, align 8
  %8 = alloca %"class.boost::optional.162", align 8
  %9 = alloca %class.DisjointUnionWithSignedConstantDomain, align 8
  %10 = tail call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %11 = getelementptr inbounds i8, ptr %10, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
  %cond = icmp eq i16 %13, 90
  br i1 %cond, label %14, label %80

14:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %15 = getelementptr inbounds i8, ptr %0, i64 240
  %16 = load ptr, ptr %15, align 8, !tbaa !8
  %17 = tail call { i8, i64 } @_ZN20constant_propagation27get_null_check_object_indexEPK13IRInstructionRKNS_5StateE(ptr noundef nonnull %12, ptr noundef nonnull align 8 dereferenceable(64) %16)
  %18 = extractvalue { i8, i64 } %17, 0
  store i8 %18, ptr %5, align 8
  %19 = getelementptr inbounds i8, ptr %5, i64 8
  %20 = extractvalue { i8, i64 } %17, 1
  store i64 %20, ptr %19, align 8
  %21 = call noundef zeroext i1 @_ZNK5boost8optionalImEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  br i1 %21, label %22, label %50

22:                                               ; preds = %14
  %23 = getelementptr inbounds i8, ptr %0, i64 216
  %24 = load i64, ptr %23, align 8, !tbaa !39
  %25 = add i64 %24, 1
  store i64 %25, ptr %23, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #7
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %27 = load i64, ptr %26, align 8, !tbaa !40
  %28 = trunc i64 %27 to i16
  %29 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %12, i16 noundef zeroext %28)
  call void @_ZNK19ConstantEnvironment3getEj(ptr dead_on_unwind nonnull writable sret(%class.DisjointUnionWithSignedConstantDomain) align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %29)
  invoke void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getI20SignedConstantDomainEEN5boost8optionalIT_EEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::optional.162") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %30 unwind label %44

30:                                               ; preds = %22
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  %31 = call noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br i1 %31, label %32, label %48

32:                                               ; preds = %30
  %33 = invoke noundef ptr @_ZN5boost8optionalI20SignedConstantDomainEptEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %34 unwind label %46

34:                                               ; preds = %32
  %35 = invoke noundef i32 @_ZNK20SignedConstantDomain8intervalEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %36 unwind label %46

36:                                               ; preds = %34
  %37 = icmp eq i32 %35, 4
  br i1 %37, label %38, label %48

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutationESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #7
  invoke void @_ZN3cfg11CFGMutation6removeERKNS_23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(64) %40, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.critedge unwind label %46

.critedge:                                        ; preds = %38
  %41 = getelementptr inbounds i8, ptr %0, i64 208
  %42 = load i64, ptr %41, align 8, !tbaa !41
  %43 = add i64 %42, 1
  store i64 %43, ptr %41, align 8, !tbaa !41
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %80

44:                                               ; preds = %22
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %49

46:                                               ; preds = %38, %34, %32
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  br label %49

48:                                               ; preds = %30, %36
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %50

49:                                               ; preds = %46, %44
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %81

50:                                               ; preds = %14, %48
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  %51 = call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %12)
  %52 = load ptr, ptr %15, align 8, !tbaa !8
  %53 = call noundef ptr @_ZNK20constant_propagation5State26redex_null_check_assertionEv(ptr noundef nonnull align 8 dereferenceable(64) %52)
  %54 = icmp eq ptr %51, %53
  br i1 %54, label %55, label %80

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %0, i64 216
  %57 = load i64, ptr %56, align 8, !tbaa !39
  %58 = add i64 %57, 1
  store i64 %58, ptr %56, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  %59 = call noundef i32 @_ZNK13IRInstruction3srcEt(ptr noundef nonnull align 8 dereferenceable(32) %12, i16 noundef zeroext 0)
  call void @_ZNK19ConstantEnvironment3getEj(ptr dead_on_unwind nonnull writable sret(%class.DisjointUnionWithSignedConstantDomain) align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef %59)
  invoke void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getI20SignedConstantDomainEEN5boost8optionalIT_EEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::optional.162") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %60 unwind label %74

60:                                               ; preds = %55
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  %61 = call noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br i1 %61, label %62, label %78

62:                                               ; preds = %60
  %63 = invoke noundef ptr @_ZN5boost8optionalI20SignedConstantDomainEptEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %64 unwind label %76

64:                                               ; preds = %62
  %65 = invoke noundef i32 @_ZNK20SignedConstantDomain8intervalEv(ptr noundef nonnull align 8 dereferenceable(24) %63)
          to label %66 unwind label %76

66:                                               ; preds = %64
  %67 = icmp eq i32 %65, 4
  br i1 %67, label %68, label %78

68:                                               ; preds = %66
  %69 = getelementptr inbounds i8, ptr %0, i64 32
  %70 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutationESt14default_deleteIS1_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %69) #7
  invoke void @_ZN3cfg11CFGMutation6removeERKNS_23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(64) %70, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %.critedge35 unwind label %76

.critedge35:                                      ; preds = %68
  %71 = getelementptr inbounds i8, ptr %0, i64 208
  %72 = load i64, ptr %71, align 8, !tbaa !41
  %73 = add i64 %72, 1
  store i64 %73, ptr %71, align 8, !tbaa !41
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %80

74:                                               ; preds = %55
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  br label %79

76:                                               ; preds = %68, %64, %62
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %79

78:                                               ; preds = %60, %66
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %80

79:                                               ; preds = %76, %74
  %.pn29 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %81

80:                                               ; preds = %50, %4, %78, %.critedge35, %.critedge
  %.4 = phi i1 [ true, %.critedge ], [ true, %.critedge35 ], [ false, %78 ], [ false, %4 ], [ false, %50 ]
  ret i1 %.4

81:                                               ; preds = %79, %49
  %.pn29.pn = phi { ptr, i32 } [ %.pn29, %79 ], [ %.pn, %49 ]
  resume { ptr, i32 } %.pn29.pn
}

declare { i8, i64 } @_ZN20constant_propagation27get_null_check_object_indexEPK13IRInstructionRKNS_5StateE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalImEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK37DisjointUnionWithSignedConstantDomainI17is_object_visitorJN6sparta22ConstantAbstractDomainIPK8DexFieldEENS1_17SetAbstractDomainINS1_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS7_INS1_15PatriciaTreeSetIPK9DexStringEEEENS2_ISI_EENS2_IPK7DexTypeEENS2_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS2_IPK13IRInstructionEEEE9maybe_getI20SignedConstantDomainEEN5boost8optionalIT_EEv(ptr dead_on_unwind noalias writable sret(%"class.boost::optional.162") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK20constant_propagation5State26redex_null_check_assertionEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 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 = { 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 = { 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 #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 = { "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 = { alwaysinline 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 #7 = { 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, !12, i64 240}
!9 = !{!"_ZTSN20constant_propagation9TransformE", !10, i64 0, !13, i64 32, !19, i64 40, !23, i64 64, !30, i64 120, !34, i64 144, !38, i64 168, !12, i64 240}
!10 = !{!"_ZTSN20constant_propagation9Transform6ConfigE", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !12, i64 8, !12, i64 16, !12, i64 24}
!11 = !{!"bool", !6, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"_ZTSSt10unique_ptrIN3cfg11CFGMutationESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIN3cfg11CFGMutationESt14default_deleteIS1_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIN3cfg11CFGMutationESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPN3cfg11CFGMutationESt14default_deleteIS1_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPN3cfg11CFGMutationESt14default_deleteIS1_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPN3cfg11CFGMutationELb0EE", !12, i64 0}
!19 = !{!"_ZTSSt6vectorIP13IRInstructionSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIP13IRInstructionSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP13IRInstructionSaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!23 = !{!"_ZTS12UnorderedSetIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt13unordered_setIP13IRInstructionSt4hashIS1_ESt8equal_toIS1_ESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableIP13IRInstructionS1_SaIS1_ENSt8__detail9_IdentityESt8equal_toIS1_ESt4hashIS1_ENS3_18_Mod_range_hashingENS3_20_Default_ranged_hashENS3_20_Prime_rehash_policyENS3_17_Hashtable_traitsILb0ELb1ELb1EEEE", !12, i64 0, !26, i64 8, !27, i64 16, !26, i64 24, !28, i64 32, !12, i64 48}
!26 = !{!"long", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!28 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !29, i64 0, !26, i64 8}
!29 = !{!"float", !6, i64 0}
!30 = !{!"_ZTSSt6vectorIPN3cfg4EdgeESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPN3cfg4EdgeESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN3cfg4EdgeESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN3cfg4EdgeESaIS2_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!34 = !{!"_ZTSSt6vectorISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt5tupleIJPN3cfg5BlockES3_NS1_8EdgeTypeEEESaIS5_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!38 = !{!"_ZTSN20constant_propagation9Transform5StatsE", !26, i64 0, !26, i64 8, !26, i64 16, !26, i64 24, !26, i64 32, !26, i64 40, !26, i64 48, !26, i64 56, !26, i64 64}
!39 = !{!9, !26, i64 216}
!40 = !{!26, !26, i64 0}
!41 = !{!9, !26, i64 208}


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