; LLVM IR from facebook/redex :: opt/object-escape-analysis (ExpandableMethodParams)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.__gnu_cxx::__normal_iterator" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22ExpandableMethodParams24get_expanded_args_vectorEP9DexMethodtRKSt6vectorIP8DexFieldSaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, i16 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i16, align 2
  %12 = alloca i1, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i16 %2, ptr %7, align 2, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %23)
  %25 = call noundef ptr @_ZNK8DexProto8get_argsEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  store ptr %25, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef %26)
  %28 = zext i1 %27 to i8
  store i8 %28, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNK11DexTypeList4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29)
  %31 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %32 = trunc i8 %31 to i1
  %33 = xor i1 %32, true
  %34 = zext i1 %33 to i64
  %35 = add i64 %30, %34
  %36 = trunc i64 %35 to i16
  store i16 %36, ptr %11, align 2, !tbaa !9
  store i1 false, ptr %12, align 1
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %37 = load i16, ptr %11, align 2, !tbaa !9
  %38 = zext i16 %37 to i32
  %39 = sub nsw i32 %38, 1
  %40 = sext i32 %39 to i64
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call noundef i64 @_ZNKSt6vectorIP8DexFieldSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #5
  %43 = add i64 %40, %42
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %43)
          to label %44 unwind label %52

44:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  store i16 0, ptr %15, align 2, !tbaa !9
  br label %45

45:                                               ; preds = %124, %44
  %46 = load i16, ptr %15, align 2, !tbaa !9
  %47 = zext i16 %46 to i32
  %48 = load i16, ptr %11, align 2, !tbaa !9
  %49 = zext i16 %48 to i32
  %50 = icmp slt i32 %47, %49
  br i1 %50, label %56, label %51

51:                                               ; preds = %45
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %128

52:                                               ; preds = %4
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %13, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %14, align 4
  br label %132

56:                                               ; preds = %45
  %57 = load i16, ptr %15, align 2, !tbaa !9
  %58 = zext i16 %57 to i32
  %59 = load i16, ptr %7, align 2, !tbaa !9
  %60 = zext i16 %59 to i32
  %61 = icmp eq i32 %58, %60
  br i1 %61, label %62, label %87

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %63, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #5
  %66 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %65, ptr %66, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #5
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  br label %70

70:                                               ; preds = %80, %62
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP8DexFieldSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  br i1 %71, label %73, label %72

72:                                               ; preds = %70
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %86

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  store ptr %75, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %76 = load ptr, ptr %20, align 8, !tbaa !5
  %77 = invoke noundef ptr @_ZNK11DexFieldRef8get_typeEv(ptr noundef nonnull align 8 dereferenceable(26) %76)
          to label %78 unwind label %82

78:                                               ; preds = %73
  store ptr %77, ptr %21, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %79 unwind label %82

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %80

80:                                               ; preds = %79
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br label %70

82:                                               ; preds = %78, %73
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %127

86:                                               ; preds = %72
  br label %124

87:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %88 = load i16, ptr %15, align 2, !tbaa !9
  %89 = zext i16 %88 to i32
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %107

91:                                               ; preds = %87
  %92 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %93 = trunc i8 %92 to i1
  br i1 %93, label %107, label %94

94:                                               ; preds = %91
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = invoke noundef zeroext i1 @_ZN6method7is_initEPK12DexMethodRef(ptr noundef %95)
          to label %97 unwind label %99

97:                                               ; preds = %94
  br i1 %96, label %98, label %103

98:                                               ; preds = %97
  store i32 4, ptr %16, align 4
  br label %121

99:                                               ; preds = %119, %107, %103, %94
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %13, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %127

103:                                              ; preds = %97
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = invoke noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %104)
          to label %106 unwind label %99

106:                                              ; preds = %103
  store ptr %105, ptr %22, align 8, !tbaa !5
  br label %119

107:                                              ; preds = %91, %87
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load i16, ptr %15, align 2, !tbaa !9
  %110 = zext i16 %109 to i32
  %111 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %112 = trunc i8 %111 to i1
  %113 = xor i1 %112, true
  %114 = zext i1 %113 to i32
  %115 = sub nsw i32 %110, %114
  %116 = sext i32 %115 to i64
  %117 = invoke noundef ptr @_ZNK11DexTypeList2atEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %116)
          to label %118 unwind label %99

118:                                              ; preds = %107
  store ptr %117, ptr %22, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %118, %106
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %120 unwind label %99

120:                                              ; preds = %119
  store i32 0, ptr %16, align 4
  br label %121

121:                                              ; preds = %120, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %122 = load i32, ptr %16, align 4
  switch i32 %122, label %138 [
    i32 0, label %123
    i32 4, label %124
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123, %121, %86
  %125 = load i16, ptr %15, align 2, !tbaa !9
  %126 = add i16 %125, 1
  store i16 %126, ptr %15, align 2, !tbaa !9
  br label %45, !llvm.loop !15

127:                                              ; preds = %99, %82
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %132

128:                                              ; preds = %51
  store i1 true, ptr %12, align 1
  store i32 1, ptr %16, align 4
  %129 = load i1, ptr %12, align 1
  br i1 %129, label %131, label %130

130:                                              ; preds = %128
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %131

131:                                              ; preds = %130, %128
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void

132:                                              ; preds = %127, %52
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %133

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

138:                                              ; preds = %121
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.__gnu_cxx::__normal_iterator" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN22ExpandableMethodParams24get_expanded_args_vectorEP9DexMethodtRKSt6vectorIP8DexFieldSaIS4_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull %1, i16 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = tail call noundef ptr @_ZNK12DexMethodRef9get_protoEv(ptr noundef nonnull align 8 dereferenceable(26) %1)
  %10 = tail call noundef ptr @_ZNK8DexProto8get_argsEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %11 = tail call noundef zeroext i1 @_Z9is_staticI9DexMethodEbPT_(ptr noundef nonnull %1)
  %12 = tail call noundef i64 @_ZNK11DexTypeList4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %13 = xor i1 %11, true
  %14 = zext i1 %13 to i64
  %15 = add i64 %12, %14
  %16 = trunc i64 %15 to i32
  tail call void @_ZNSt6vectorIP7DexTypeSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %17 = and i32 %16, 65535
  %18 = add nsw i32 %17, -1
  %19 = sext i32 %18 to i64
  %20 = tail call noundef i64 @_ZNKSt6vectorIP8DexFieldSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %21 = add i64 %20, %19
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %21)
          to label %.preheader unwind label %47

.preheader:                                       ; preds = %4
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %._crit_edge32, label %.lr.ph31

.lr.ph31:                                         ; preds = %.preheader
  %.neg = sext i1 %13 to i32
  %22 = trunc i64 %15 to i16
  br i1 %11, label %.lr.ph31.split.us, label %.lr.ph31.split

.lr.ph31.split.us:                                ; preds = %.lr.ph31, %35
  %23 = phi i32 [ %37, %35 ], [ 0, %.lr.ph31 ]
  %.02430.us = phi i16 [ %36, %35 ], [ 0, %.lr.ph31 ]
  %24 = icmp eq i16 %.02430.us, %2
  br i1 %24, label %31, label %25

25:                                               ; preds = %.lr.ph31.split.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %26 = add nsw i32 %23, %.neg
  %27 = sext i32 %26 to i64
  %28 = invoke noundef ptr @_ZNK11DexTypeList2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %27)
          to label %29 unwind label %.split.us

29:                                               ; preds = %25
  store ptr %28, ptr %8, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %30 unwind label %.split.us

30:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %35

31:                                               ; preds = %.lr.ph31.split.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %32 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %32, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %33 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %33, ptr %6, align 8
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP8DexFieldSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %34, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %42, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %35

35:                                               ; preds = %._crit_edge.us, %30
  %36 = add nuw i16 %.02430.us, 1
  %37 = zext i16 %36 to i32
  %38 = icmp ult i16 %36, %22
  br i1 %38, label %.lr.ph31.split.us, label %._crit_edge32, !llvm.loop !9

.lr.ph.us:                                        ; preds = %31, %42
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %41 = call noundef ptr @_ZNK11DexFieldRef8get_typeEv(ptr noundef nonnull align 8 dereferenceable(26) %40)
  store ptr %41, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %42 unwind label %.split34.us

42:                                               ; preds = %.lr.ph.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP8DexFieldSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %44, label %.lr.ph.us, label %._crit_edge.us

.split.us:                                        ; preds = %29, %25
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %68

.split34.us:                                      ; preds = %.lr.ph.us
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %62

47:                                               ; preds = %4
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %81

.lr.ph31.split:                                   ; preds = %.lr.ph31, %77
  %49 = phi i32 [ %79, %77 ], [ 0, %.lr.ph31 ]
  %.02430 = phi i16 [ %78, %77 ], [ 0, %.lr.ph31 ]
  %50 = icmp eq i16 %.02430, %2
  br i1 %50, label %51, label %63

51:                                               ; preds = %.lr.ph31.split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %52 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %52, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %53 = call ptr @_ZNKSt6vectorIP8DexFieldSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %53, ptr %6, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP8DexFieldSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %54, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %58, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %77

.lr.ph:                                           ; preds = %51, %58
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %57 = call noundef ptr @_ZNK11DexFieldRef8get_typeEv(ptr noundef nonnull align 8 dereferenceable(26) %56)
  store ptr %57, ptr %7, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %58 unwind label %.split34

58:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP8DexFieldSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP8DexFieldSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %60, label %.lr.ph, label %._crit_edge

.split34:                                         ; preds = %.lr.ph
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %62

62:                                               ; preds = %.split34.us, %.split34
  %.us-phi35 = phi { ptr, i32 } [ %61, %.split34 ], [ %46, %.split34.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %81

63:                                               ; preds = %.lr.ph31.split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %.not36 = icmp eq i16 %.02430, 0
  br i1 %.not36, label %64, label %71

64:                                               ; preds = %63
  %65 = invoke noundef zeroext i1 @_ZN6method7is_initEPK12DexMethodRef(ptr noundef nonnull %1)
          to label %66 unwind label %.split

66:                                               ; preds = %64
  br i1 %65, label %76, label %69

.split:                                           ; preds = %75, %71, %64
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %68

68:                                               ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %67, %.split ], [ %45, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %81

69:                                               ; preds = %66
  %70 = call noundef ptr @_ZNK12DexMethodRef9get_classEv(ptr noundef nonnull align 8 dereferenceable(26) %1)
  br label %75

71:                                               ; preds = %63
  %72 = add nsw i32 %49, %.neg
  %73 = sext i32 %72 to i64
  %74 = invoke noundef ptr @_ZNK11DexTypeList2atEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %73)
          to label %75 unwind label %.split

75:                                               ; preds = %71, %69
  %storemerge = phi ptr [ %70, %69 ], [ %74, %71 ]
  store ptr %storemerge, ptr %8, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP7DexTypeSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %76 unwind label %.split

76:                                               ; preds = %75, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %77

77:                                               ; preds = %76, %._crit_edge
  %78 = add nuw i16 %.02430, 1
  %79 = zext i16 %78 to i32
  %80 = icmp ult i16 %78, %22
  br i1 %80, label %.lr.ph31.split, label %._crit_edge32, !llvm.loop !9

._crit_edge32:                                    ; preds = %77, %35, %.preheader
  ret void

81:                                               ; preds = %62, %68, %47
  %.pn.pn = phi { ptr, i32 } [ %48, %47 ], [ %.us-phi35, %62 ], [ %.us-phi, %68 ]
  call void @_ZNSt6vectorIP7DexTypeSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass