; LLVM IR from facebook/redex :: libresource (Serialize)

; 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<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl" }
%"struct.std::_Vector_base<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl" = type { %"struct.std::_Vector_base<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4arsc22find_attribute_ordinalEPN7android15ResXMLTree_nodeEPNS0_18ResXMLTree_attrExtEPNS0_20ResXMLTree_attributeERKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %class.anon, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %class.anon, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  call void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4arsc18collect_attributesEPN7android18ResXMLTree_attrExtEPSt6vectorIPNS0_20ResXMLTree_attributeESaIS5_EE(ptr noundef %23, ptr noundef %12)
          to label %24 unwind label %27

24:                                               ; preds = %5
  %25 = call noundef zeroext i1 @_ZNKSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br i1 %25, label %26, label %31

26:                                               ; preds = %24
  store i64 0, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %72

27:                                               ; preds = %5
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %13, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %14, align 4
  br label %74

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %32 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %33, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 1
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %35, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %36 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  %38 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !9
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, ptr }, ptr %20, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8
  %48 = invoke ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPPN7android20ResXMLTree_attributeESt6vectorIS4_SaIS4_EEEES4_ZN4arsc22find_attribute_ordinalEPNS2_15ResXMLTree_nodeEPNS2_18ResXMLTree_attrExtES4_RKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEE3$_0ET_ST_ST_RKT0_T1_"(ptr %41, ptr %43, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr %45, ptr %47)
          to label %49 unwind label %56

49:                                               ; preds = %31
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %48, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %51 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  %53 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br i1 %53, label %54, label %60

54:                                               ; preds = %49
  %55 = call noundef i64 @_ZNKSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store i64 %55, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %71

56:                                               ; preds = %60, %31
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %13, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %74

60:                                               ; preds = %49
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = invoke noundef zeroext i1 @"_ZZN4arsc22find_attribute_ordinalEPN7android15ResXMLTree_nodeEPNS0_18ResXMLTree_attrExtEPNS0_20ResXMLTree_attributeERKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEENK3$_0clES6_S6_"(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %61, ptr noundef %63)
          to label %65 unwind label %56

65:                                               ; preds = %60
  br i1 %64, label %67, label %66

66:                                               ; preds = %65
  store i64 -1, ptr %6, align 8
  store i32 1, ptr %15, align 4
  br label %71

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %68 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  %70 = call noundef i64 @_ZN9__gnu_cxxmiIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  store i64 %70, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  store i32 1, ptr %15, align 4
  br label %71

71:                                               ; preds = %67, %66, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %72

72:                                               ; preds = %71, %26
  call void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  %73 = load i64, ptr %6, align 8
  ret i64 %73

74:                                               ; preds = %56, %27
  call void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %13, align 8
  %77 = load i32, ptr %14, align 4
  %78 = insertvalue { ptr, i32 } poison, ptr %76, 0
  %79 = insertvalue { ptr, i32 } %78, i32 %77, 1
  resume { ptr, i32 } %79
}

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

declare void @_ZN4arsc18collect_attributesEPN7android18ResXMLTree_attrExtEPSt6vectorIPNS0_20ResXMLTree_attributeESaIS5_EE(ptr noundef, ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPPN7android20ResXMLTree_attributeESt6vectorIS4_SaIS4_EEEES4_ZN4arsc22find_attribute_ordinalEPNS2_15ResXMLTree_nodeEPNS2_18ResXMLTree_attrExtES4_RKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEE3$_0ET_ST_ST_RKT0_T1_"(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr) #4

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN4arsc22find_attribute_ordinalEPN7android15ResXMLTree_nodeEPNS0_18ResXMLTree_attrExtEPNS0_20ResXMLTree_attributeERKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEENK3$_0clES6_S6_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}


; 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<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl" }
%"struct.std::_Vector_base<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl" = type { %"struct.std::_Vector_base<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<android::ResXMLTree_attribute *, std::allocator<android::ResXMLTree_attribute *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4arsc22find_attribute_ordinalEPN7android15ResXMLTree_nodeEPNS0_18ResXMLTree_attrExtEPNS0_20ResXMLTree_attributeERKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEE(ptr nocapture noundef readnone %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %class.anon, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  invoke void @_ZN4arsc18collect_attributesEPN7android18ResXMLTree_attrExtEPSt6vectorIPNS0_20ResXMLTree_attributeESaIS5_EE(ptr noundef %1, ptr noundef nonnull %7)
          to label %12 unwind label %14

12:                                               ; preds = %5
  %13 = call noundef zeroext i1 @_ZNKSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br i1 %13, label %38, label %16

14:                                               ; preds = %5
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %39

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  store ptr %3, ptr %8, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %4, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %18 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %19 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %20 = invoke ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPPN7android20ResXMLTree_attributeESt6vectorIS4_SaIS4_EEEES4_ZN4arsc22find_attribute_ordinalEPNS2_15ResXMLTree_nodeEPNS2_18ResXMLTree_attrExtES4_RKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEE3$_0ET_ST_ST_RKT0_T1_"(ptr %18, ptr %19, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr nonnull %3, ptr nonnull %4)
          to label %21 unwind label %26

21:                                               ; preds = %16
  store ptr %20, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %22 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %22, ptr %10, align 8
  %23 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br i1 %23, label %24, label %28

24:                                               ; preds = %21
  %25 = call noundef i64 @_ZNKSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %37

26:                                               ; preds = %28, %16
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %39

28:                                               ; preds = %21
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = invoke noundef zeroext i1 @"_ZZN4arsc22find_attribute_ordinalEPN7android15ResXMLTree_nodeEPNS0_18ResXMLTree_attrExtEPNS0_20ResXMLTree_attributeERKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEENK3$_0clES6_S6_"(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %29, ptr noundef %31)
          to label %33 unwind label %26

33:                                               ; preds = %28
  br i1 %32, label %34, label %37

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %35 = call ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %35, ptr %11, align 8
  %36 = call noundef i64 @_ZN9__gnu_cxxmiIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %37

37:                                               ; preds = %33, %34, %24
  %.0 = phi i64 [ %25, %24 ], [ %36, %34 ], [ -1, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %38

38:                                               ; preds = %12, %37
  %.1 = phi i64 [ %.0, %37 ], [ 0, %12 ]
  call void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  ret i64 %.1

39:                                               ; preds = %26, %14
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %15, %14 ]
  call void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn
}

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

declare void @_ZN4arsc18collect_attributesEPN7android18ResXMLTree_attrExtEPSt6vectorIPNS0_20ResXMLTree_attributeESaIS5_EE(ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPPN7android20ResXMLTree_attributeESt6vectorIS4_SaIS4_EEEES4_ZN4arsc22find_attribute_ordinalEPNS2_15ResXMLTree_nodeEPNS2_18ResXMLTree_attrExtES4_RKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEE3$_0ET_ST_ST_RKT0_T1_"(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_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_cxxeqIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZZN4arsc22find_attribute_ordinalEPN7android15ResXMLTree_nodeEPNS0_18ResXMLTree_attrExtEPNS0_20ResXMLTree_attributeERKmRKSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEENK3$_0clES6_S6_"(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPPN7android20ResXMLTree_attributeESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7android20ResXMLTree_attributeESaIS2_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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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"}


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