; LLVM IR from facebook/redex :: opt/remove-builders/RemoveBuildersHelper.ll (ZN10FieldsRegs4meetERKS_)

; 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.UnorderedMap<DexField *, int>::UnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.45" = type <{ %"class.UnorderedSet<const IRInstruction *>::FixedIterator", i8, [7 x i8] }>
%"class.UnorderedSet<const IRInstruction *>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.47" }
%"struct.std::__detail::_Node_iterator.47" = type { %"struct.std::__detail::_Node_iterator_base.48" }
%"struct.std::__detail::_Node_iterator_base.48" = type { ptr }
%struct.FieldsRegs = type { %class.UnorderedMap, %class.UnorderedMap.9 }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.UnorderedMap.9 = type { %"class.std::unordered_map.11" }
%"class.std::unordered_map.11" = type { %"class.std::_Hashtable.12" }
%"class.std::_Hashtable.12" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair" = type <{ ptr, i32, [4 x i8] }>

@_ZN12_GLOBAL__N_19NULL_INSNE = external hidden global ptr, align 8

; 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 void @_ZN10FieldsRegs4meetERKS_(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.UnorderedMap<DexField *, int>::UnorderedIterable", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.std::pair.45", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %13 = getelementptr inbounds %struct.FieldsRegs, ptr %12, i32 0, i32 0
  %14 = call ptr @_Z17UnorderedIterableI12UnorderedMapIP8DexFieldiSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(56) %13)
  %15 = getelementptr inbounds %"class.UnorderedMap<DexField *, int>::UnorderedIterable", ptr %6, i32 0, i32 0
  store ptr %14, ptr %15, align 8
  store ptr %6, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE17UnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %18 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %7, i32 0, i32 0
  %19 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %18, i32 0, i32 0
  store ptr %17, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE17UnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %22 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %8, i32 0, i32 0
  %23 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %22, i32 0, i32 0
  store ptr %21, ptr %23, align 8
  br label %24

24:                                               ; preds = %109, %2
  %25 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP8DexFieldiELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %111

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %28 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP8DexFieldiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.std::pair", ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = icmp eq i64 %32, -1
  br i1 %33, label %34, label %55

34:                                               ; preds = %27
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.FieldsRegs, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.std::pair", ptr %37, i32 0, i32 0
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %36, ptr noundef nonnull align 8 dereferenceable(8) %38)
  %40 = load i32, ptr %39, align 4, !tbaa !12
  %41 = getelementptr inbounds %struct.FieldsRegs, ptr %12, i32 0, i32 0
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 0
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %41, ptr noundef nonnull align 8 dereferenceable(8) %43)
  store i32 %40, ptr %44, align 4, !tbaa !12
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.FieldsRegs, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.std::pair", ptr %47, i32 0, i32 0
  %49 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %46, ptr noundef nonnull align 8 dereferenceable(8) %48)
  %50 = getelementptr inbounds %struct.FieldsRegs, ptr %12, i32 0, i32 1
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.std::pair", ptr %51, i32 0, i32 0
  %53 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %50, ptr noundef nonnull align 8 dereferenceable(8) %52)
  %54 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef nonnull align 8 dereferenceable(56) %49)
  br label %105

55:                                               ; preds = %27
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.FieldsRegs, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.std::pair", ptr %58, i32 0, i32 0
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %57, ptr noundef nonnull align 8 dereferenceable(8) %59)
  %61 = load i32, ptr %60, align 4, !tbaa !12
  %62 = sext i32 %61 to i64
  %63 = icmp eq i64 %62, -1
  br i1 %63, label %64, label %65

64:                                               ; preds = %55
  store i32 3, ptr %9, align 4
  br label %106

65:                                               ; preds = %55
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.std::pair", ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 8, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = icmp eq i64 %69, -2
  br i1 %70, label %80, label %71

71:                                               ; preds = %65
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.FieldsRegs, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.std::pair", ptr %74, i32 0, i32 0
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %73, ptr noundef nonnull align 8 dereferenceable(8) %75)
  %77 = load i32, ptr %76, align 4, !tbaa !12
  %78 = sext i32 %77 to i64
  %79 = icmp eq i64 %78, -2
  br i1 %79, label %80, label %90

80:                                               ; preds = %71, %65
  %81 = getelementptr inbounds %struct.FieldsRegs, ptr %12, i32 0, i32 1
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.std::pair", ptr %82, i32 0, i32 0
  %84 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %81, ptr noundef nonnull align 8 dereferenceable(8) %83)
  %85 = call { ptr, i8 } @_ZN12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %84, ptr noundef nonnull align 8 dereferenceable(8) @_ZN12_GLOBAL__N_19NULL_INSNE)
  %86 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 0
  %87 = extractvalue { ptr, i8 } %85, 0
  store ptr %87, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i8 }, ptr %11, i32 0, i32 1
  %89 = extractvalue { ptr, i8 } %85, 1
  store i8 %89, ptr %88, align 8
  br label %90

90:                                               ; preds = %80, %71
  %91 = getelementptr inbounds %struct.FieldsRegs, ptr %12, i32 0, i32 0
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.std::pair", ptr %92, i32 0, i32 0
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %91, ptr noundef nonnull align 8 dereferenceable(8) %93)
  store i32 -3, ptr %94, align 4, !tbaa !12
  %95 = getelementptr inbounds %struct.FieldsRegs, ptr %12, i32 0, i32 1
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.std::pair", ptr %96, i32 0, i32 0
  %98 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %95, ptr noundef nonnull align 8 dereferenceable(8) %97)
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.FieldsRegs, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.std::pair", ptr %101, i32 0, i32 0
  %103 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %100, ptr noundef nonnull align 8 dereferenceable(8) %102)
  call void @_Z25insert_unordered_iterableI12UnorderedSetIPK13IRInstructionSt4hashIS3_ESt8equal_toIS3_EES8_EvRT_RKT0_(ptr noundef nonnull align 8 dereferenceable(56) %98, ptr noundef nonnull align 8 dereferenceable(56) %103)
  br label %104

104:                                              ; preds = %90
  br label %105

105:                                              ; preds = %104, %34
  store i32 0, ptr %9, align 4
  br label %106

106:                                              ; preds = %105, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %107 = load i32, ptr %9, align 4
  switch i32 %107, label %112 [
    i32 0, label %108
    i32 3, label %109
  ]

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108, %106
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKP8DexFieldiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  br label %24

111:                                              ; preds = %26
  ret void

112:                                              ; preds = %106
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI12UnorderedMapIP8DexFieldiSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(56)) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKP8DexFieldiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { 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, !11, i64 8}
!10 = !{!"_ZTSSt4pairIKP8DexFieldiE", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}


; 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.UnorderedMap<DexField *, int>::UnorderedIterable" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@_ZN12_GLOBAL__N_19NULL_INSNE = external hidden global ptr, align 8

; 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 void @_ZN10FieldsRegs4meetERKS_(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.UnorderedMap<DexField *, int>::UnorderedIterable", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %6 = tail call ptr @_Z17UnorderedIterableI12UnorderedMapIP8DexFieldiSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(56) %0)
  store ptr %6, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %7 = call ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE17UnorderedIterable5beginEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %7, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %8 = call ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE17UnorderedIterable3endEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr %8, ptr %5, align 8
  %9 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP8DexFieldiELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  %11 = getelementptr inbounds i8, ptr %1, i64 56
  br label %12

._crit_edge:                                      ; preds = %40, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void

12:                                               ; preds = %.lr.ph, %40
  %13 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP8DexFieldiELb0ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, -1
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %18 = load i32, ptr %17, align 4, !tbaa !11
  br i1 %16, label %19, label %24

19:                                               ; preds = %12
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %13)
  store i32 %18, ptr %20, align 4, !tbaa !11
  %21 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %22 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %23 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull align 8 dereferenceable(56) %21)
  br label %40

24:                                               ; preds = %12
  %25 = icmp eq i32 %18, -1
  br i1 %25, label %40, label %26

26:                                               ; preds = %24
  %27 = load i32, ptr %14, align 8, !tbaa !5
  %28 = icmp eq i32 %27, -2
  br i1 %28, label %33, label %29

29:                                               ; preds = %26
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = icmp eq i32 %31, -2
  br i1 %32, label %33, label %36

33:                                               ; preds = %29, %26
  %34 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %35 = call { ptr, i8 } @_ZN12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56) %34, ptr noundef nonnull align 8 dereferenceable(8) @_ZN12_GLOBAL__N_19NULL_INSNE)
  br label %36

36:                                               ; preds = %33, %29
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(8) %13)
  store i32 -3, ptr %37, align 4, !tbaa !11
  %38 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %39 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK12UnorderedMapIP8DexField12UnorderedSetIPK13IRInstructionSt4hashIS5_ESt8equal_toIS5_EES6_IS1_ES8_IS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @_Z25insert_unordered_iterableI12UnorderedSetIPK13IRInstructionSt4hashIS3_ESt8equal_toIS3_EES8_EvRT_RKT0_(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(56) %39)
  br label %40

40:                                               ; preds = %19, %36, %24
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKP8DexFieldiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %42 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKP8DexFieldiELb0EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br i1 %42, label %12, label %._crit_edge
}

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z17UnorderedIterableI12UnorderedMapIP8DexFieldiSt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESA_EEbE4typeELb1EEDaRSA_(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EE2atERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN12UnorderedMapIP8DexFieldiSt4hashIS1_ESt8equal_toIS1_EEixERKS1_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZN12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE6insertERKS2_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorISt4pairIKP8DexFieldiELb0ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_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 = { 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, !10, i64 8}
!6 = !{!"_ZTSSt4pairIKP8DexFieldiE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}


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