; LLVM IR from facebook/redex :: opt/constant-propagation (ConstantPropagationRuntimeAssert)

; 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::sub_range" = type { %"class.boost::range_detail::sub_range_base" }
%"class.boost::range_detail::sub_range_base" = type { %"class.boost::range_detail::sub_range_base.366" }
%"class.boost::range_detail::sub_range_base.366" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.367" }
%"class.boost::iterator_range_detail::iterator_range_base.367" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.cfg::InstructionIteratorImpl" = type { ptr, %"struct.std::_Rb_tree_const_iterator", %"class.ir_list::InstructionIteratorImpl" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::optional" = 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.327 }
%"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.327 = type { ptr }
%"class.constant_propagation::RuntimeAssertTransform" = type { %"struct.constant_propagation::RuntimeAssertTransform::Config" }
%"struct.constant_propagation::RuntimeAssertTransform::Config" = type { ptr, ptr, ptr }

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 nounwind uwtable
declare dso_local noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20constant_propagation22RuntimeAssertTransform20insert_param_assertsERK19ConstantEnvironmentP9DexMethod(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.boost::sub_range", align 8
  %13 = alloca %"class.boost::intrusive::list_iterator", align 8
  %14 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.boost::optional", align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK19ConstantEnvironment24get_register_environmentEv(ptr noundef nonnull align 8 dereferenceable(48) %28)
  store ptr %29, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef zeroext i1 @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEENS_17TopValueInterfaceISZ_EEEEE8is_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
  br i1 %31, label %33, label %32

32:                                               ; preds = %3
  store i32 1, ptr %8, align 4
  br label %123

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %34)
  store ptr %35, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %36)
  store ptr %37, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %38)
  %40 = call noundef ptr @_ZNK8DexProto8get_argsEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
  store ptr %40, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8 %12, ptr noundef nonnull align 8 dereferenceable(160) %41)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %42)
  call void @_ZN3cfg5Block27get_last_param_loading_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(104) %43)
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %44)
  call 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 %14, ptr noundef nonnull align 8 dereferenceable(104) %45, ptr noundef nonnull align 8 dereferenceable(8) %13, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIterableImpl") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = call noundef i64 @_ZNK11DexTypeList4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46)
  store i64 %47, ptr %17, align 8, !tbaa !11
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef %48)
  br i1 %49, label %53, label %50

50:                                               ; preds = %33
  %51 = load i64, ptr %17, align 8, !tbaa !11
  %52 = add i64 %51, 1
  store i64 %52, ptr %17, align 8, !tbaa !11
  br label %53

53:                                               ; preds = %50, %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %16)
  br label %54

54:                                               ; preds = %114, %53
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = load i64, ptr %17, align 8, !tbaa !11
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %122

60:                                               ; preds = %54
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef %61)
  br i1 %62, label %67, label %63

63:                                               ; preds = %60
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %63
  br label %114

67:                                               ; preds = %63, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef %68)
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = load i32, ptr %15, align 4, !tbaa !9
  br label %75

72:                                               ; preds = %67
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = sub i32 %73, 1
  br label %75

75:                                               ; preds = %72, %70
  %76 = phi i32 [ %71, %70 ], [ %74, %72 ]
  store i32 %76, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load i32, ptr %19, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = call noundef ptr @_ZNK11DexTypeList2atEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %79)
  store ptr %80, ptr %20, align 8, !tbaa !5
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = call noundef zeroext i1 @_ZN4type11is_integralEPK7DexType(ptr noundef %81)
  br i1 %82, label %87, label %83

83:                                               ; preds = %75
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = call noundef zeroext i1 @_ZN4type9is_objectEPK7DexType(ptr noundef %84)
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 4, ptr %8, align 4
  br label %111

87:                                               ; preds = %83, %75
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #5
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %88)
  call void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN7ir_list23InstructionIteratorImplILb0EEEb(ptr dead_on_unwind writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %21, ptr noundef nonnull align 8 dereferenceable(104) %89, ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %90 = call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %21)
  %91 = getelementptr inbounds %struct.MethodItemEntry, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %92)
  store i32 %93, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #5
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEENS_17TopValueInterfaceISZ_EEEEE3getERKj(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call 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") align 8 %23, ptr noundef nonnull align 8 dereferenceable(48) %95)
  %96 = call noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEntEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  br i1 %96, label %97, label %98

97:                                               ; preds = %87
  store i32 4, ptr %8, align 4
  br label %110

98:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %99 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNR5boost8optionalI20SignedConstantDomainEdeEv(ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %100 unwind label %118

100:                                              ; preds = %98
  store ptr %99, ptr %24, align 8, !tbaa !5
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load i32, ptr %22, align 4, !tbaa !9
  %103 = load ptr, ptr %24, align 8, !tbaa !5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = getelementptr inbounds %"class.constant_propagation::RuntimeAssertTransform", ptr %27, i32 0, i32 0
  %107 = getelementptr inbounds %"struct.constant_propagation::RuntimeAssertTransform::Config", ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  invoke void @_ZN20constant_propagationL30insert_if_check_with_assertionI9DexMethodEEvRN3cfg16ControlFlowGraphERNS2_23InstructionIteratorImplILb0EEEjRK20SignedConstantDomainPKT_jbP12DexMethodRef(ptr noundef nonnull align 8 dereferenceable(160) %101, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef %102, ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef %104, i32 noundef %105, i1 noundef zeroext true, ptr noundef %108)
          to label %109 unwind label %118

109:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  store i32 0, ptr %8, align 4
  br label %110

110:                                              ; preds = %109, %97
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #5
  br label %111

111:                                              ; preds = %110, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %112 = load i32, ptr %8, align 4
  switch i32 %112, label %131 [
    i32 0, label %113
    i32 4, label %114
  ]

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113, %111, %66
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = add i32 %116, 1
  store i32 %117, ptr %15, align 4, !tbaa !9
  br label %54, !llvm.loop !17

118:                                              ; preds = %100, %98
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %25, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %126

122:                                              ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  store i32 0, ptr %8, align 4
  br label %123

123:                                              ; preds = %122, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %124 = load i32, ptr %8, align 4
  switch i32 %124, label %131 [
    i32 0, label %125
    i32 1, label %125
  ]

125:                                              ; preds = %123, %123
  ret void

126:                                              ; preds = %118
  %127 = load ptr, ptr %25, align 8
  %128 = load i32, ptr %26, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130

131:                                              ; preds = %123, %111
  unreachable
}

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

declare noundef zeroext i1 @_ZN4type11is_integralEPK7DexType(ptr noundef) #3

declare noundef zeroext i1 @_ZN4type9is_objectEPK7DexType(ptr noundef) #3

; 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") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN20constant_propagationL30insert_if_check_with_assertionI9DexMethodEEvRN3cfg16ControlFlowGraphERNS2_23InstructionIteratorImplILb0EEEjRK20SignedConstantDomainPKT_jbP12DexMethodRef(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, i1 noundef zeroext, ptr noundef) #2

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

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

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

declare void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(160)) #3

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

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) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIterableImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEENS_17TopValueInterfaceISZ_EEEEE3getERKj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN20constant_propagation22RuntimeAssertTransformE", !16, i64 0}
!16 = !{!"_ZTSN20constant_propagation22RuntimeAssertTransform6ConfigE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.boost::sub_range" = type { %"class.boost::range_detail::sub_range_base" }
%"class.boost::range_detail::sub_range_base" = type { %"class.boost::range_detail::sub_range_base.366" }
%"class.boost::range_detail::sub_range_base.366" = type { %"class.boost::iterator_range" }
%"class.boost::iterator_range" = type { %"class.boost::iterator_range_detail::iterator_range_base" }
%"class.boost::iterator_range_detail::iterator_range_base" = type { %"class.boost::iterator_range_detail::iterator_range_base.367" }
%"class.boost::iterator_range_detail::iterator_range_base.367" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.cfg::InstructionIteratorImpl" = type { ptr, %"struct.std::_Rb_tree_const_iterator", %"class.ir_list::InstructionIteratorImpl" }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::optional" = 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 nounwind uwtable
declare dso_local noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20constant_propagation22RuntimeAssertTransform20insert_param_assertsERK19ConstantEnvironmentP9DexMethod(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.boost::sub_range", align 8
  %5 = alloca %"class.boost::intrusive::list_iterator", align 8
  %6 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %7 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %8 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %9 = alloca %"class.cfg::InstructionIteratorImpl", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.boost::optional", align 8
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK19ConstantEnvironment24get_register_environmentEv(ptr noundef nonnull align 8 dereferenceable(48) %1)
  %13 = tail call noundef zeroext i1 @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEENS_17TopValueInterfaceISZ_EEEEE8is_valueEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  br i1 %13, label %14, label %56

14:                                               ; preds = %3
  %15 = tail call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %2)
  %16 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  %17 = tail call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %2)
  %18 = tail call noundef ptr @_ZNK8DexProto8get_argsEv(ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::sub_range") align 8 %4, ptr noundef nonnull align 8 dereferenceable(160) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %19 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %16)
  call void @_ZN3cfg5Block27get_last_param_loading_insnEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(104) %19)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %20 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %16)
  call 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 %6, ptr noundef nonnull align 8 dereferenceable(104) %20, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIterableImpl") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %21 = call noundef i64 @_ZNK11DexTypeList4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %22 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef nonnull %2)
  %not.34 = xor i1 %22, true
  %23 = zext i1 %not.34 to i64
  %spec.select = add i64 %21, %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %.not = icmp eq i64 %spec.select, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %49, %14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %56

.lr.ph:                                           ; preds = %14, %49
  %.035 = phi i32 [ %51, %49 ], [ 0, %14 ]
  %24 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef nonnull %2)
  %25 = icmp ne i32 %.035, 0
  %or.cond.not = or i1 %25, %24
  br i1 %or.cond.not, label %26, label %49

26:                                               ; preds = %.lr.ph
  %27 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef nonnull %2)
  %not. = xor i1 %27, true
  %28 = sext i1 %not. to i32
  %29 = add i32 %.035, %28
  %30 = zext i32 %29 to i64
  %31 = call noundef ptr @_ZNK11DexTypeList2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %30)
  %32 = call noundef zeroext i1 @_ZN4type11is_integralEPK7DexType(ptr noundef %31)
  br i1 %32, label %35, label %33

33:                                               ; preds = %26
  %34 = call noundef zeroext i1 @_ZN4type9is_objectEPK7DexType(ptr noundef %31)
  br i1 %34, label %35, label %49

35:                                               ; preds = %33, %26
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %36 = call noundef ptr @_ZNK3cfg16ControlFlowGraph11entry_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %16)
  call void @_ZN3cfg5Block27to_cfg_instruction_iteratorERKN7ir_list23InstructionIteratorImplILb0EEEb(ptr dead_on_unwind nonnull writable sret(%"class.cfg::InstructionIteratorImpl") align 8 %9, ptr noundef nonnull align 8 dereferenceable(104) %36, ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %37 = call noundef ptr @_ZNK3cfg23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %38 = getelementptr inbounds i8, ptr %37, i64 24
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = call noundef i32 @_ZNK13IRInstruction4destEv(ptr noundef nonnull align 8 dereferenceable(32) %39)
  store i32 %40, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #5
  %41 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEENS_17TopValueInterfaceISZ_EEEEE3getERKj(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call 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") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %41)
  %42 = call noundef zeroext i1 @_ZNK5boost8optionalI20SignedConstantDomainEntEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  br i1 %42, label %48, label %43

43:                                               ; preds = %35
  %44 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNR5boost8optionalI20SignedConstantDomainEdeEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %45 unwind label %54

45:                                               ; preds = %43
  %46 = load i32, ptr %10, align 4, !tbaa !8
  %47 = load ptr, ptr %0, align 8, !tbaa !10
  invoke void @_ZN20constant_propagationL30insert_if_check_with_assertionI9DexMethodEEvRN3cfg16ControlFlowGraphERNS2_23InstructionIteratorImplILb0EEEjRK20SignedConstantDomainPKT_jbP12DexMethodRef(ptr noundef nonnull align 8 dereferenceable(160) %16, ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %46, ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull %2, i32 noundef %29, i1 noundef zeroext true, ptr noundef %47)
          to label %48 unwind label %54

48:                                               ; preds = %45, %35
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %49

49:                                               ; preds = %48, %33, %.lr.ph
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %8)
  %51 = add i32 %.035, 1
  %52 = zext i32 %51 to i64
  %53 = icmp ugt i64 %spec.select, %52
  br i1 %53, label %.lr.ph, label %._crit_edge, !llvm.loop !14

54:                                               ; preds = %45, %43
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost15optional_detail13optional_baseI20SignedConstantDomainED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  resume { ptr, i32 } %55

56:                                               ; preds = %3, %._crit_edge
  ret void
}

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

declare noundef zeroext i1 @_ZN4type11is_integralEPK7DexType(ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN4type9is_objectEPK7DexType(ptr noundef) local_unnamed_addr #3

; 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") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN20constant_propagationL30insert_if_check_with_assertionI9DexMethodEEvRN3cfg16ControlFlowGraphERNS2_23InstructionIteratorImplILb0EEEjRK20SignedConstantDomainPKT_jbP12DexMethodRef(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i32 noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

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

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

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

declare void @_ZNK3cfg16ControlFlowGraph22get_param_instructionsEv(ptr dead_on_unwind writable sret(%"class.boost::sub_range") align 8, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #3

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

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 #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z19InstructionIterableIN5boost9sub_rangeI6IRListEEEN7ir_list23InstructionIterableImplILb0EEERT_(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIterableImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNK6sparta19AbstractEnvironmentINS_15PatriciaTreeMapIj37DisjointUnionWithSignedConstantDomainI17is_object_visitorJNS_22ConstantAbstractDomainIPK8DexFieldEENS_17SetAbstractDomainINS_7HashSetIlSt4hashIlESt8equal_toIlEEEEENS9_INS_15PatriciaTreeSetIPK9DexStringEEEENS4_ISK_EENS4_IPK7DexTypeEENS4_IiEE25ObjectWithImmutAttrDomain15NewObjectDomainNS4_IPK13IRInstructionEEEENS_17TopValueInterfaceISZ_EEEEE3getERKj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 = !{!"int", !6, i64 0}
!10 = !{!11, !13, i64 0}
!11 = !{!"_ZTSN20constant_propagation22RuntimeAssertTransformE", !12, i64 0}
!12 = !{!"_ZTSN20constant_propagation22RuntimeAssertTransform6ConfigE", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"any pointer", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass