; LLVM IR from facebook/redex :: libresource/ResourceTypes.ll (ZN7android15DynamicRefTable11addMappingsERKS0_)

; 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.android::String16" = type { ptr }
%"class.android::DynamicRefTable" = type <{ ptr, i8, [256 x i8], [7 x i8], %"class.android::KeyedVector", i8, [7 x i8] }>
%"class.android::KeyedVector" = type { %"class.android::SortedVector" }
%"class.android::SortedVector" = type { %"class.android::SortedVectorImpl" }
%"class.android::SortedVectorImpl" = type { %"class.android::VectorImpl" }
%"class.android::VectorImpl" = type { ptr, ptr, i64, i32, i64 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7android15DynamicRefTable11addMappingsERKS0_(ptr noundef nonnull align 8 dereferenceable(313) %0, ptr noundef nonnull align 8 dereferenceable(313) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.android::String16", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 1
  %16 = load i8, ptr %15, align 8, !tbaa !9
  %17 = zext i8 %16 to i32
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %18, i32 0, i32 1
  %20 = load i8, ptr %19, align 8, !tbaa !9
  %21 = zext i8 %20 to i32
  %22 = icmp ne i32 %17, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %2
  store i32 -2147483648, ptr %3, align 4
  br label %136

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %25, i32 0, i32 4
  %27 = call noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %26)
  store i64 %27, ptr %6, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !18
  br label %28

28:                                               ; preds = %78, %24
  %29 = load i64, ptr %7, align 8, !tbaa !18
  %30 = load i64, ptr %6, align 8, !tbaa !18
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 2, ptr %8, align 4
  br label %81

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %34 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 4
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %35, i32 0, i32 4
  %37 = load i64, ptr %7, align 8, !tbaa !18
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7android11KeyedVectorINS_8String16EhE5keyAtEm(ptr noundef nonnull align 8 dereferenceable(40) %36, i64 noundef %37)
  %39 = call noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE10indexOfKeyERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %34, ptr noundef nonnull align 8 dereferenceable(8) %38)
  store i64 %39, ptr %9, align 8, !tbaa !18
  %40 = load i64, ptr %9, align 8, !tbaa !18
  %41 = icmp slt i64 %40, 0
  br i1 %41, label %42, label %59

42:                                               ; preds = %33
  %43 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %44, i32 0, i32 4
  %46 = load i64, ptr %7, align 8, !tbaa !18
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7android11KeyedVectorINS_8String16EhE5keyAtEm(ptr noundef nonnull align 8 dereferenceable(40) %45, i64 noundef %46)
  call void @_ZN7android8String16C1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %47)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %48, i32 0, i32 4
  %50 = load i64, ptr %7, align 8, !tbaa !18
  %51 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40) %49, i64 noundef %50)
          to label %52 unwind label %55

52:                                               ; preds = %42
  %53 = invoke noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE3addERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40) %43, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %54 unwind label %55

54:                                               ; preds = %52
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %74

55:                                               ; preds = %52, %42
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %11, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %12, align 4
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %138

59:                                               ; preds = %33
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %60, i32 0, i32 4
  %62 = load i64, ptr %7, align 8, !tbaa !18
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40) %61, i64 noundef %62)
  %64 = load i8, ptr %63, align 1, !tbaa !19
  %65 = zext i8 %64 to i32
  %66 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 4
  %67 = load i64, ptr %9, align 8, !tbaa !18
  %68 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40) %66, i64 noundef %67)
  %69 = load i8, ptr %68, align 1, !tbaa !19
  %70 = zext i8 %69 to i32
  %71 = icmp ne i32 %65, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %59
  store i32 -2147483648, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %75

73:                                               ; preds = %59
  br label %74

74:                                               ; preds = %73, %54
  store i32 0, ptr %8, align 4
  br label %75

75:                                               ; preds = %74, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %76 = load i32, ptr %8, align 4
  switch i32 %76, label %81 [
    i32 0, label %77
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77
  %79 = load i64, ptr %7, align 8, !tbaa !18
  %80 = add i64 %79, 1
  store i64 %80, ptr %7, align 8, !tbaa !18
  br label %28, !llvm.loop !20

81:                                               ; preds = %75, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  %82 = load i32, ptr %8, align 4
  switch i32 %82, label %135 [
    i32 2, label %83
  ]

83:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !18
  br label %84

84:                                               ; preds = %129, %83
  %85 = load i64, ptr %13, align 8, !tbaa !18
  %86 = icmp ult i64 %85, 256
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 5, ptr %8, align 4
  br label %132

88:                                               ; preds = %84
  %89 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 2
  %90 = load i64, ptr %13, align 8, !tbaa !18
  %91 = getelementptr inbounds [256 x i8], ptr %89, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !19
  %93 = zext i8 %92 to i32
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %94, i32 0, i32 2
  %96 = load i64, ptr %13, align 8, !tbaa !18
  %97 = getelementptr inbounds [256 x i8], ptr %95, i64 0, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !19
  %99 = zext i8 %98 to i32
  %100 = icmp ne i32 %93, %99
  br i1 %100, label %101, label %128

101:                                              ; preds = %88
  %102 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 2
  %103 = load i64, ptr %13, align 8, !tbaa !18
  %104 = getelementptr inbounds [256 x i8], ptr %102, i64 0, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !19
  %106 = zext i8 %105 to i32
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %117

108:                                              ; preds = %101
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %109, i32 0, i32 2
  %111 = load i64, ptr %13, align 8, !tbaa !18
  %112 = getelementptr inbounds [256 x i8], ptr %110, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !19
  %114 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %14, i32 0, i32 2
  %115 = load i64, ptr %13, align 8, !tbaa !18
  %116 = getelementptr inbounds [256 x i8], ptr %114, i64 0, i64 %115
  store i8 %113, ptr %116, align 1, !tbaa !19
  br label %127

117:                                              ; preds = %101
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %118, i32 0, i32 2
  %120 = load i64, ptr %13, align 8, !tbaa !18
  %121 = getelementptr inbounds [256 x i8], ptr %119, i64 0, i64 %120
  %122 = load i8, ptr %121, align 1, !tbaa !19
  %123 = zext i8 %122 to i32
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %117
  store i32 -2147483648, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %132

126:                                              ; preds = %117
  br label %127

127:                                              ; preds = %126, %108
  br label %128

128:                                              ; preds = %127, %88
  br label %129

129:                                              ; preds = %128
  %130 = load i64, ptr %13, align 8, !tbaa !18
  %131 = add i64 %130, 1
  store i64 %131, ptr %13, align 8, !tbaa !18
  br label %84, !llvm.loop !22

132:                                              ; preds = %125, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %133 = load i32, ptr %8, align 4
  switch i32 %133, label %135 [
    i32 5, label %134
  ]

134:                                              ; preds = %132
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %135

135:                                              ; preds = %134, %132, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %136

136:                                              ; preds = %135, %23
  %137 = load i32, ptr %3, align 4
  ret i32 %137

138:                                              ; preds = %55
  %139 = load ptr, ptr %11, align 8
  %140 = load i32, ptr %12, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE10indexOfKeyERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7android11KeyedVectorINS_8String16EhE5keyAtEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE3addERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #3 align 2

declare void @_ZN7android8String16C1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !7, i64 8}
!10 = !{!"_ZTSN7android15DynamicRefTableE", !7, i64 8, !7, i64 9, !11, i64 272, !17, i64 312}
!11 = !{!"_ZTSN7android11KeyedVectorINS_8String16EhEE", !12, i64 0}
!12 = !{!"_ZTSN7android12SortedVectorINS_16key_value_pair_tINS_8String16EhEEEE", !13, i64 0}
!13 = !{!"_ZTSN7android16SortedVectorImplE", !14, i64 0}
!14 = !{!"_ZTSN7android10VectorImplE", !6, i64 8, !15, i64 16, !16, i64 24, !15, i64 32}
!15 = !{!"long", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!15, !15, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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.android::String16" = 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: nounwind
declare void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7android15DynamicRefTable11addMappingsERKS0_(ptr noundef nonnull align 8 dereferenceable(313) %0, ptr noundef nonnull align 8 dereferenceable(313) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.android::String16", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i8, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load i8, ptr %6, align 8, !tbaa !5
  %.not = icmp eq i8 %5, %7
  br i1 %.not, label %8, label %.loopexit

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 272
  %10 = tail call noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %9)
  %.not4349.not = icmp eq i64 %10, 0
  br i1 %.not4349.not, label %.critedge47.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 272
  br label %14

.critedge47.preheader:                            ; preds = %.critedge, %8
  %12 = getelementptr inbounds i8, ptr %0, i64 9
  %13 = getelementptr inbounds i8, ptr %1, i64 9
  br label %32

14:                                               ; preds = %.lr.ph, %.critedge
  %.03550 = phi i64 [ 0, %.lr.ph ], [ %31, %.critedge ]
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7android11KeyedVectorINS_8String16EhE5keyAtEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %.03550)
  %16 = call noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE10indexOfKeyERKS1_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %18, label %26

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7android11KeyedVectorINS_8String16EhE5keyAtEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %.03550)
  call void @_ZN7android8String16C1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %20 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %.03550)
          to label %21 unwind label %24

21:                                               ; preds = %18
  %22 = invoke noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE3addERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %23 unwind label %24

23:                                               ; preds = %21
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %.critedge

24:                                               ; preds = %21, %18
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %25

26:                                               ; preds = %14
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %.03550)
  %28 = load i8, ptr %27, align 1, !tbaa !17
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %16)
  %30 = load i8, ptr %29, align 1, !tbaa !17
  %.not42 = icmp eq i8 %28, %30
  br i1 %.not42, label %.critedge, label %.loopexit

.critedge:                                        ; preds = %26, %23
  %31 = add nuw i64 %.03550, 1
  %exitcond.not = icmp eq i64 %31, %10
  br i1 %exitcond.not, label %.critedge47.preheader, label %14, !llvm.loop !18

32:                                               ; preds = %.critedge47.1, %.critedge47.preheader
  %.051 = phi i64 [ 0, %.critedge47.preheader ], [ %50, %.critedge47.1 ]
  %33 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 %.051
  %34 = load i8, ptr %33, align 1, !tbaa !17
  %35 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 %.051
  %36 = load i8, ptr %35, align 1, !tbaa !17
  %.not44 = icmp eq i8 %34, %36
  br i1 %.not44, label %.critedge47, label %37

37:                                               ; preds = %32
  %38 = icmp eq i8 %34, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  store i8 %36, ptr %33, align 1, !tbaa !17
  br label %.critedge47

40:                                               ; preds = %37
  %.not45 = icmp eq i8 %36, 0
  br i1 %.not45, label %.critedge47, label %.loopexit

.critedge47:                                      ; preds = %32, %40, %39
  %41 = or disjoint i64 %.051, 1
  %42 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 %41
  %43 = load i8, ptr %42, align 2, !tbaa !17
  %44 = getelementptr inbounds [256 x i8], ptr %13, i64 0, i64 %41
  %45 = load i8, ptr %44, align 2, !tbaa !17
  %.not44.1 = icmp eq i8 %43, %45
  br i1 %.not44.1, label %.critedge47.1, label %46

46:                                               ; preds = %.critedge47
  %47 = icmp eq i8 %43, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %46
  %.not45.1 = icmp eq i8 %45, 0
  br i1 %.not45.1, label %.critedge47.1, label %.loopexit

49:                                               ; preds = %46
  store i8 %45, ptr %42, align 2, !tbaa !17
  br label %.critedge47.1

.critedge47.1:                                    ; preds = %49, %48, %.critedge47
  %50 = add nuw nsw i64 %.051, 2
  %exitcond53.1 = icmp eq i64 %50, 256
  br i1 %exitcond53.1, label %.loopexit, label %32, !llvm.loop !20

.loopexit:                                        ; preds = %26, %40, %48, %.critedge47.1, %2
  %.5 = phi i32 [ -2147483648, %2 ], [ -2147483648, %40 ], [ -2147483648, %48 ], [ 0, %.critedge47.1 ], [ -2147483648, %26 ]
  ret i32 %.5
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android11KeyedVectorINS_8String16EhE10indexOfKeyERKS1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7android11KeyedVectorINS_8String16EhE5keyAtEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE3addERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

declare void @_ZN7android8String16C1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK7android11KeyedVectorINS_8String16EhEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !7, i64 8}
!6 = !{!"_ZTSN7android15DynamicRefTableE", !7, i64 8, !7, i64 9, !9, i64 272, !16, i64 312}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTSN7android11KeyedVectorINS_8String16EhEE", !10, i64 0}
!10 = !{!"_ZTSN7android12SortedVectorINS_16key_value_pair_tINS_8String16EhEEEE", !11, i64 0}
!11 = !{!"_ZTSN7android16SortedVectorImplE", !12, i64 0}
!12 = !{!"_ZTSN7android10VectorImplE", !13, i64 8, !14, i64 16, !15, i64 24, !14, i64 32}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass