; LLVM IR from facebook/redex :: libredex/DexIdx.ll (ZN6DexIdx23get_callsiteidx_fromdexEj)

; 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.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.DexIdx = type { ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, %"class.std::vector", %"class.std::vector.3", %"class.std::vector.8", %"class.std::vector.13", %"class.std::vector.18", %"class.std::vector.23", %"class.std::vector.28" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const DexString *, std::allocator<const DexString *>>::_Vector_impl" }
%"struct.std::_Vector_base<const DexString *, std::allocator<const DexString *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const DexString *, std::allocator<const DexString *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const DexString *, std::allocator<const DexString *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexType *, std::allocator<DexType *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<DexFieldRef *, std::allocator<DexFieldRef *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexFieldRef *, std::allocator<DexFieldRef *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexFieldRef *, std::allocator<DexFieldRef *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexFieldRef *, std::allocator<DexFieldRef *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexMethodRef *, std::allocator<DexMethodRef *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<DexProto *, std::allocator<DexProto *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexProto *, std::allocator<DexProto *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexProto *, std::allocator<DexProto *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexProto *, std::allocator<DexProto *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<DexCallSite *, std::allocator<DexCallSite *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexCallSite *, std::allocator<DexCallSite *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexCallSite *, std::allocator<DexCallSite *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexCallSite *, std::allocator<DexCallSite *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<DexMethodHandle *, std::allocator<DexMethodHandle *>>::_Vector_impl" }
%"struct.std::_Vector_base<DexMethodHandle *, std::allocator<DexMethodHandle *>>::_Vector_impl" = type { %"struct.std::_Vector_base<DexMethodHandle *, std::allocator<DexMethodHandle *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<DexMethodHandle *, std::allocator<DexMethodHandle *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.dex_callsite_id = type { i32 }

@.str.8 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj = external hidden unnamed_addr constant [55 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6DexIdx23get_callsiteidx_fromdexEj(ptr noundef nonnull align 8 dereferenceable(288) %0, i32 noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::unique_ptr", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::vector.35", align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::vector.35", align 8
  %21 = alloca i1, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %22 = load ptr, ptr %3, align 8
  %23 = load i32, ptr %4, align 4, !tbaa !9
  %24 = getelementptr inbounds %class.DexIdx, ptr %22, i32 0, i32 12
  %25 = load i32, ptr %24, align 8, !tbaa !11
  %26 = icmp ult i32 %23, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  br label %30

28:                                               ; preds = %2
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.18, ptr noundef @.str.8, i32 noundef 57, ptr noundef @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 2, ptr noundef @.str.19) #7
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %31 = getelementptr inbounds %class.DexIdx, ptr %22, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !41
  %33 = getelementptr inbounds %class.DexIdx, ptr %22, i32 0, i32 11
  %34 = load ptr, ptr %33, align 8, !tbaa !42
  %35 = load i32, ptr %4, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = getelementptr inbounds %struct.dex_callsite_id, ptr %34, i64 %36
  %38 = getelementptr inbounds %struct.dex_callsite_id, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 1, !tbaa !43
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %32, i64 %40
  store ptr %41, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @_Z23get_encoded_value_arrayP6DexIdxRPKh(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %6, ptr noundef %22, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %42 = call noundef ptr @_ZNKSt10unique_ptrI20DexEncodedValueArraySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %43 = invoke noundef ptr @_ZNK20DexEncodedValueArray7evaluesEv(ptr noundef nonnull align 8 dereferenceable(18) %42)
          to label %44 unwind label %61

44:                                               ; preds = %30
  store ptr %43, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef 0)
          to label %47 unwind label %65

47:                                               ; preds = %44
  %48 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #8
  store ptr %48, ptr %10, align 8, !tbaa !5
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = invoke noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %49)
          to label %51 unwind label %65

51:                                               ; preds = %47
  %52 = zext i8 %50 to i32
  %53 = icmp eq i32 %52, 22
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  br label %70

55:                                               ; preds = %51
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = invoke noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %56)
          to label %58 unwind label %65

58:                                               ; preds = %55
  %59 = zext i8 %57 to i32
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.20, ptr noundef @.str.8, i32 noundef 69, ptr noundef @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 12, ptr noundef @.str.21, i32 noundef %59) #7
          to label %60 unwind label %65

60:                                               ; preds = %58
  unreachable

61:                                               ; preds = %30
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %8, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %9, align 4
  br label %184

65:                                               ; preds = %58, %55, %47, %44
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %8, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %9, align 4
  br label %183

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef 1)
          to label %73 unwind label %87

73:                                               ; preds = %70
  %74 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %72) #8
  store ptr %74, ptr %11, align 8, !tbaa !5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = invoke noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %75)
          to label %77 unwind label %87

77:                                               ; preds = %73
  %78 = zext i8 %76 to i32
  %79 = icmp eq i32 %78, 23
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  br label %92

81:                                               ; preds = %77
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = invoke noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %82)
          to label %84 unwind label %87

84:                                               ; preds = %81
  %85 = zext i8 %83 to i32
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.22, ptr noundef @.str.8, i32 noundef 74, ptr noundef @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 12, ptr noundef @.str.23, i32 noundef %85) #7
          to label %86 unwind label %87

86:                                               ; preds = %84
  unreachable

87:                                               ; preds = %84, %81, %73, %70
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %8, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %9, align 4
  br label %182

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef 2)
          to label %95 unwind label %109

95:                                               ; preds = %92
  %96 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %94) #8
  store ptr %96, ptr %12, align 8, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = invoke noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %97)
          to label %99 unwind label %109

99:                                               ; preds = %95
  %100 = zext i8 %98 to i32
  %101 = icmp eq i32 %100, 21
  br i1 %101, label %102, label %103

102:                                              ; preds = %99
  br label %114

103:                                              ; preds = %99
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = invoke noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %104)
          to label %106 unwind label %109

106:                                              ; preds = %103
  %107 = zext i8 %105 to i32
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.24, ptr noundef @.str.8, i32 noundef 79, ptr noundef @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 12, ptr noundef @.str.25, i32 noundef %107) #7
          to label %108 unwind label %109

108:                                              ; preds = %106
  unreachable

109:                                              ; preds = %106, %103, %95, %92
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %8, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %9, align 4
  br label %181

113:                                              ; No predecessors!
  br label %114

114:                                              ; preds = %113, %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = invoke noundef ptr @_ZNK27DexEncodedValueMethodHandle12methodhandleEv(ptr noundef nonnull align 8 dereferenceable(17) %115)
          to label %117 unwind label %130

117:                                              ; preds = %114
  store ptr %116, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = invoke noundef ptr @_ZNK21DexEncodedValueString6stringEv(ptr noundef nonnull align 8 dereferenceable(17) %118)
          to label %120 unwind label %134

120:                                              ; preds = %117
  store ptr %119, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = invoke noundef ptr @_ZNK25DexEncodedValueMethodType5protoEv(ptr noundef nonnull align 8 dereferenceable(17) %121)
          to label %123 unwind label %138

123:                                              ; preds = %120
  store ptr %122, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 3, ptr %17, align 8, !tbaa !45
  br label %124

124:                                              ; preds = %150, %123
  %125 = load i64, ptr %17, align 8, !tbaa !45
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #8
  %128 = icmp ult i64 %125, %127
  br i1 %128, label %142, label %129

129:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %157

130:                                              ; preds = %114
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %8, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %9, align 4
  br label %180

134:                                              ; preds = %117
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %8, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %9, align 4
  br label %179

138:                                              ; preds = %120
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %8, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %9, align 4
  br label %178

142:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load i64, ptr %17, align 8, !tbaa !45
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %143, i64 noundef %144)
          to label %146 unwind label %153

146:                                              ; preds = %142
  store ptr %145, ptr %18, align 8, !tbaa !5
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %147)
          to label %149 unwind label %153

149:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %17, align 8, !tbaa !45
  %152 = add i64 %151, 1
  store i64 %152, ptr %17, align 8, !tbaa !45
  br label %124, !llvm.loop !47

153:                                              ; preds = %146, %142
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %8, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %177

157:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %158 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #9
          to label %159 unwind label %165

159:                                              ; preds = %157
  store i1 true, ptr %21, align 1
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  invoke void @_ZN11DexCallSiteC2EP15DexMethodHandlePK9DexStringP8DexProtoSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS9_EESaISC_EE(ptr noundef nonnull align 8 dereferenceable(48) %158, ptr noundef %160, ptr noundef %161, ptr noundef %162, ptr noundef %20)
          to label %163 unwind label %169

163:                                              ; preds = %159
  store i1 false, ptr %21, align 1
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  store ptr %158, ptr %19, align 8, !tbaa !5
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZNSt10unique_ptrI20DexEncodedValueArraySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret ptr %164

165:                                              ; preds = %157
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %8, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %9, align 4
  br label %176

169:                                              ; preds = %159
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %8, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %9, align 4
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %173 = load i1, ptr %21, align 1
  br i1 %173, label %174, label %175

174:                                              ; preds = %169
  call void @_ZdlPvm(ptr noundef %158, i64 noundef 48) #10
  br label %175

175:                                              ; preds = %174, %169
  br label %176

176:                                              ; preds = %175, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %177

177:                                              ; preds = %176, %153
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  br label %178

178:                                              ; preds = %177, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %179

179:                                              ; preds = %178, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %180

180:                                              ; preds = %179, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %181

181:                                              ; preds = %180, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %182

182:                                              ; preds = %181, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %183

183:                                              ; preds = %182, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %184

184:                                              ; preds = %183, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @_ZNSt10unique_ptrI20DexEncodedValueArraySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %8, align 8
  %187 = load i32, ptr %9, align 4
  %188 = insertvalue { ptr, i32 } poison, ptr %186, 0
  %189 = insertvalue { ptr, i32 } %188, i32 %187, 1
  resume { ptr, i32 } %189
}

declare void @_Z23get_encoded_value_arrayP6DexIdxRPKh(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17)) #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 96}
!12 = !{!"_ZTS6DexIdx", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !13, i64 120, !17, i64 144, !21, i64 168, !25, i64 192, !29, i64 216, !33, i64 240, !37, i64 264}
!13 = !{!"_ZTSSt6vectorIPK9DexStringSaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPK9DexStringSaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPK9DexStringSaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPK9DexStringSaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIP7DexTypeSaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIP7DexTypeSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIP7DexTypeSaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP7DexTypeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIP11DexFieldRefSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIP11DexFieldRefSaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP11DexFieldRefSaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIP11DexFieldRefSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIP12DexMethodRefSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP12DexMethodRefSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP12DexMethodRefSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP12DexMethodRefSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSSt6vectorIP8DexProtoSaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIP8DexProtoSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIP8DexProtoSaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP8DexProtoSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorIP11DexCallSiteSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIP11DexCallSiteSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP11DexCallSiteSaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP11DexCallSiteSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIP15DexMethodHandleSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIP15DexMethodHandleSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP15DexMethodHandleSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP15DexMethodHandleSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!12, !6, i64 0}
!42 = !{!12, !6, i64 88}
!43 = !{!44, !10, i64 0}
!44 = !{!"_ZTS15dex_callsite_id", !10, i64 0}
!45 = !{!46, !46, i64 0}
!46 = !{!"long", !7, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"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.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.34" }
%"struct.std::_Head_base.34" = type { ptr }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.dex_callsite_id = type { i32 }

@.str.8 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj = external hidden unnamed_addr constant [55 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [42 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN6DexIdx23get_callsiteidx_fromdexEj(ptr noundef nonnull align 8 dereferenceable(288) %0, i32 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::unique_ptr", align 8
  %5 = alloca %"class.std::vector.35", align 8
  %6 = alloca %"class.std::vector.35", align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 96
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp ugt i32 %8, %1
  br i1 %9, label %11, label %10

10:                                               ; preds = %2
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.8, i32 noundef 57, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 2, ptr noundef nonnull @.str.19) #6
  unreachable

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %12 = load ptr, ptr %0, align 8, !tbaa !39
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = load ptr, ptr %13, align 8, !tbaa !40
  %15 = zext i32 %1 to i64
  %16 = getelementptr inbounds %struct.dex_callsite_id, ptr %14, i64 %15
  %17 = load i32, ptr %16, align 1, !tbaa !41
  %18 = zext i32 %17 to i64
  %19 = getelementptr inbounds i8, ptr %12, i64 %18
  store ptr %19, ptr %3, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @_Z23get_encoded_value_arrayP6DexIdxRPKh(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %4, ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %20 = call noundef ptr @_ZNKSt10unique_ptrI20DexEncodedValueArraySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  %21 = call noundef ptr @_ZNK20DexEncodedValueArray7evaluesEv(ptr noundef nonnull align 8 dereferenceable(18) %20)
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0)
          to label %23 unwind label %31

23:                                               ; preds = %11
  %24 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %25 = call noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %24)
  %26 = icmp eq i8 %25, 22
  br i1 %26, label %33, label %27

27:                                               ; preds = %23
  %28 = call noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %24)
  %29 = zext i8 %28 to i32
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.8, i32 noundef 69, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 12, ptr noundef nonnull @.str.21, i32 noundef %29) #6
          to label %30 unwind label %31

30:                                               ; preds = %27
  unreachable

31:                                               ; preds = %27, %11
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %77

33:                                               ; preds = %23
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1)
          to label %35 unwind label %43

35:                                               ; preds = %33
  %36 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  %37 = call noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %36)
  %38 = icmp eq i8 %37, 23
  br i1 %38, label %45, label %39

39:                                               ; preds = %35
  %40 = call noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %36)
  %41 = zext i8 %40 to i32
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.8, i32 noundef 74, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 12, ptr noundef nonnull @.str.23, i32 noundef %41) #6
          to label %42 unwind label %43

42:                                               ; preds = %39
  unreachable

43:                                               ; preds = %39, %33
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %77

45:                                               ; preds = %35
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 2)
          to label %47 unwind label %55

47:                                               ; preds = %45
  %48 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  %49 = call noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %48)
  %50 = icmp eq i8 %49, 21
  br i1 %50, label %57, label %51

51:                                               ; preds = %47
  %52 = call noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17) %48)
  %53 = zext i8 %52 to i32
  invoke void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.8, i32 noundef 79, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6DexIdx23get_callsiteidx_fromdexEj, i32 noundef 12, ptr noundef nonnull @.str.25, i32 noundef %53) #6
          to label %54 unwind label %55

54:                                               ; preds = %51
  unreachable

55:                                               ; preds = %51, %45
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %77

57:                                               ; preds = %47
  %58 = call noundef ptr @_ZNK27DexEncodedValueMethodHandle12methodhandleEv(ptr noundef nonnull align 8 dereferenceable(17) %24)
  %59 = call noundef ptr @_ZNK21DexEncodedValueString6stringEv(ptr noundef nonnull align 8 dereferenceable(17) %36)
  %60 = call noundef ptr @_ZNK25DexEncodedValueMethodType5protoEv(ptr noundef nonnull align 8 dereferenceable(17) %48)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %61 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %62 = icmp ugt i64 %61, 3
  br i1 %62, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %67, %57
  %63 = invoke noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #8
          to label %73 unwind label %74

.lr.ph:                                           ; preds = %57, %67
  %.03036 = phi i64 [ %68, %67 ], [ 3, %57 ]
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %.03036)
          to label %65 unwind label %71

65:                                               ; preds = %.lr.ph
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %64)
          to label %67 unwind label %71

67:                                               ; preds = %65
  %68 = add nuw i64 %.03036, 1
  %69 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %.lr.ph, label %._crit_edge, !llvm.loop !44

71:                                               ; preds = %65, %.lr.ph
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %76

73:                                               ; preds = %._crit_edge
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @_ZN11DexCallSiteC2EP15DexMethodHandlePK9DexStringP8DexProtoSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS9_EESaISC_EE(ptr noundef nonnull align 8 dereferenceable(48) %63, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef nonnull %6)
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt10unique_ptrI20DexEncodedValueArraySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret ptr %63

74:                                               ; preds = %._crit_edge
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %76

76:                                               ; preds = %74, %71
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %75, %74 ]
  call void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  br label %77

77:                                               ; preds = %43, %76, %55, %31
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %32, %31 ], [ %44, %43 ], [ %.pn, %76 ], [ %56, %55 ]
  call void @_ZNSt10unique_ptrI20DexEncodedValueArraySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn.pn.pn
}

declare void @_Z23get_encoded_value_arrayP6DexIdxRPKh(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK15DexEncodedValue6evtypeEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

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

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

!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, !10, i64 96}
!6 = !{!"_ZTS6DexIdx", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !7, i64 88, !10, i64 96, !7, i64 104, !10, i64 112, !11, i64 120, !15, i64 144, !19, i64 168, !23, i64 192, !27, i64 216, !31, i64 240, !35, i64 264}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIPK9DexStringSaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPK9DexStringSaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPK9DexStringSaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPK9DexStringSaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!"_ZTSSt6vectorIP7DexTypeSaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIP7DexTypeSaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIP7DexTypeSaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIP7DexTypeSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"_ZTSSt6vectorIP11DexFieldRefSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIP11DexFieldRefSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP11DexFieldRefSaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP11DexFieldRefSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!"_ZTSSt6vectorIP12DexMethodRefSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP12DexMethodRefSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP12DexMethodRefSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP12DexMethodRefSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!27 = !{!"_ZTSSt6vectorIP8DexProtoSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP8DexProtoSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP8DexProtoSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP8DexProtoSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!31 = !{!"_ZTSSt6vectorIP11DexCallSiteSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIP11DexCallSiteSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP11DexCallSiteSaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP11DexCallSiteSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!35 = !{!"_ZTSSt6vectorIP15DexMethodHandleSaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIP15DexMethodHandleSaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIP15DexMethodHandleSaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIP15DexMethodHandleSaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!39 = !{!6, !7, i64 0}
!40 = !{!6, !7, i64 88}
!41 = !{!42, !10, i64 0}
!42 = !{!"_ZTS15dex_callsite_id", !10, i64 0}
!43 = !{!7, !7, i64 0}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}


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