; LLVM IR from facebook/redex :: libredex/MatchFlow.ll (ZNK2mf8result_t8matchingENS_10location_tEPK13IRInstructiont)

; 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"

%"struct.mf::result_t::range.87" = type { %"class.__gnu_cxx::__normal_iterator.88", %"class.__gnu_cxx::__normal_iterator.88" }
%"class.__gnu_cxx::__normal_iterator.88" = type { ptr }
%"struct.mf::location_t" = type { ptr, i64 }
%"struct.std::__detail::_Node_iterator.89" = type { %"struct.std::__detail::_Node_iterator_base.64" }
%"struct.std::__detail::_Node_iterator_base.64" = type { ptr }
%"struct.mf::result_t" = type { %"class.std::vector", %"class.std::shared_ptr.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>, std::allocator<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>, std::allocator<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>, std::allocator<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>, std::allocator<std::unique_ptr<std::unordered_map<IRInstruction *, std::vector<std::vector<IRInstruction *>>>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.90" = type { ptr, %"class.std::vector.92" }
%"class.std::vector.92" = type { %"struct.std::_Vector_base.93" }
%"struct.std::_Vector_base.93" = type { %"struct.std::_Vector_base<std::vector<IRInstruction *>, std::allocator<std::vector<IRInstruction *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<IRInstruction *>, std::allocator<std::vector<IRInstruction *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<IRInstruction *>, std::allocator<std::vector<IRInstruction *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<IRInstruction *>, std::allocator<std::vector<IRInstruction *>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt10unique_ptrISt13unordered_mapIP13IRInstructionS_IS_IS3_SaIS3_EESaIS5_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEESt14default_deleteISG_EESaISJ_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { ptr, ptr } @_ZNK2mf8result_t8matchingENS_10location_tEPK13IRInstructiont(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr %1, i64 %2, ptr noundef %3, i16 noundef zeroext %4) #2 align 2 {
  %6 = alloca %"struct.mf::result_t::range.87", align 8
  %7 = alloca %"struct.mf::location_t", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i16, align 2
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::__detail::_Node_iterator.89", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator.89", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.88", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.88", align 8
  %19 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  store ptr %1, ptr %19, align 8
  %20 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  store i64 %2, ptr %20, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i16 %4, ptr %10, align 2, !tbaa !9
  %21 = load ptr, ptr %8, align 8
  %22 = getelementptr inbounds %"struct.mf::location_t", ptr %7, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %"struct.mf::result_t", ptr %21, i32 0, i32 0
  %25 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt13unordered_mapIP13IRInstructionS_IS_IS3_SaIS3_EESaIS5_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEESt14default_deleteISG_EESaISJ_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
  %26 = icmp uge i64 %23, %25
  br i1 %26, label %27, label %33

27:                                               ; preds = %5
  %28 = call { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv()
  %29 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  %30 = extractvalue { ptr, ptr } %28, 0
  store ptr %30, ptr %29, align 8
  %31 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  %32 = extractvalue { ptr, ptr } %28, 1
  store ptr %32, ptr %31, align 8
  br label %92

33:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %34 = getelementptr inbounds %"struct.mf::result_t", ptr %21, i32 0, i32 0
  %35 = getelementptr inbounds %"struct.mf::location_t", ptr %7, i32 0, i32 1
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorISt10unique_ptrISt13unordered_mapIP13IRInstructionS_IS_IS3_SaIS3_EESaIS5_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEESt14default_deleteISG_EESaISJ_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %36) #3
  store ptr %37, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZNKSt10unique_ptrISt13unordered_mapIP13IRInstructionSt6vectorIS3_IS2_SaIS2_EESaIS5_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S7_EEESt14default_deleteISG_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %38) #3
  br i1 %39, label %46, label %40

40:                                               ; preds = %33
  %41 = call { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv()
  %42 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  %43 = extractvalue { ptr, ptr } %41, 0
  store ptr %43, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  %45 = extractvalue { ptr, ptr } %41, 1
  store ptr %45, ptr %44, align 8
  store i32 1, ptr %12, align 4
  br label %91

46:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = call noundef ptr @_ZNKSt10unique_ptrISt13unordered_mapIP13IRInstructionSt6vectorIS3_IS2_SaIS2_EESaIS5_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S7_EEESt14default_deleteISG_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %49, ptr %14, align 8, !tbaa !5
  %50 = call ptr @_ZNSt13unordered_mapIP13IRInstructionSt6vectorIS2_IS1_SaIS1_EESaIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %48, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %51 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.89", ptr %13, i32 0, i32 0
  %52 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.64", ptr %51, i32 0, i32 0
  store ptr %50, ptr %52, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNKSt10unique_ptrISt13unordered_mapIP13IRInstructionSt6vectorIS3_IS2_SaIS2_EESaIS5_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S7_EEESt14default_deleteISG_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #3
  %55 = call ptr @_ZNSt13unordered_mapIP13IRInstructionSt6vectorIS2_IS1_SaIS1_EESaIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %54) #3
  %56 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.89", ptr %15, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.64", ptr %56, i32 0, i32 0
  store ptr %55, ptr %57, align 8
  %58 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %15) #3
  br i1 %58, label %66, label %59

59:                                               ; preds = %46
  %60 = load i16, ptr %10, align 2, !tbaa !9
  %61 = zext i16 %60 to i64
  %62 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  %63 = getelementptr inbounds %"struct.std::pair.90", ptr %62, i32 0, i32 1
  %64 = call noundef i64 @_ZNKSt6vectorIS_IP13IRInstructionSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #3
  %65 = icmp uge i64 %61, %64
  br label %66

66:                                               ; preds = %59, %46
  %67 = phi i1 [ true, %46 ], [ %65, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br i1 %67, label %68, label %74

68:                                               ; preds = %66
  %69 = call { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv()
  %70 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  %71 = extractvalue { ptr, ptr } %69, 0
  store ptr %71, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  %73 = extractvalue { ptr, ptr } %69, 1
  store ptr %73, ptr %72, align 8
  store i32 1, ptr %12, align 4
  br label %90

74:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %75 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  %76 = getelementptr inbounds %"struct.std::pair.90", ptr %75, i32 0, i32 1
  %77 = load i16, ptr %10, align 2, !tbaa !9
  %78 = zext i16 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP13IRInstructionSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %78) #3
  store ptr %79, ptr %16, align 8, !tbaa !5
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = call ptr @_ZNKSt6vectorIP13IRInstructionSaIS1_EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #3
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.88", ptr %17, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = call ptr @_ZNKSt6vectorIP13IRInstructionSaIS1_EE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #3
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.88", ptr %18, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.88", ptr %17, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.88", ptr %18, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  call void @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEEC2ESB_SB_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr %87, ptr %89)
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %90

90:                                               ; preds = %74, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %91

91:                                               ; preds = %90, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %92

92:                                               ; preds = %91, %27
  %93 = load { ptr, ptr }, ptr %6, align 8
  ret { ptr, ptr } %93
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv() #2 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEEC2ESB_SB_(ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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, !13, i64 8}
!12 = !{!"_ZTSN2mf10location_tE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, 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"

%"struct.mf::result_t::range.87" = type { %"class.__gnu_cxx::__normal_iterator.88", %"class.__gnu_cxx::__normal_iterator.88" }
%"class.__gnu_cxx::__normal_iterator.88" = type { ptr }
%"struct.std::__detail::_Node_iterator.89" = type { %"struct.std::__detail::_Node_iterator_base.64" }
%"struct.std::__detail::_Node_iterator_base.64" = type { ptr }

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt10unique_ptrISt13unordered_mapIP13IRInstructionS_IS_IS3_SaIS3_EESaIS5_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEESt14default_deleteISG_EESaISJ_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { ptr, ptr } @_ZNK2mf8result_t8matchingENS_10location_tEPK13IRInstructiont(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr nocapture readnone %1, i64 %2, ptr noundef %3, i16 noundef zeroext %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %"struct.mf::result_t::range.87", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator.89", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator.89", align 8
  %10 = tail call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt13unordered_mapIP13IRInstructionS_IS_IS3_SaIS3_EESaIS5_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEESt14default_deleteISG_EESaISJ_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %.not = icmp ugt i64 %10, %2
  br i1 %.not, label %15, label %11

11:                                               ; preds = %5
  %12 = tail call { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv()
  %13 = extractvalue { ptr, ptr } %12, 0
  %14 = extractvalue { ptr, ptr } %12, 1
  br label %44

15:                                               ; preds = %5
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorISt10unique_ptrISt13unordered_mapIP13IRInstructionS_IS_IS3_SaIS3_EESaIS5_EESt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_S7_EEESt14default_deleteISG_EESaISJ_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %2) #3
  %17 = tail call noundef zeroext i1 @_ZNKSt10unique_ptrISt13unordered_mapIP13IRInstructionSt6vectorIS3_IS2_SaIS2_EESaIS5_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S7_EEESt14default_deleteISG_EEcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #3
  br i1 %17, label %22, label %18

18:                                               ; preds = %15
  %19 = tail call { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv()
  %20 = extractvalue { ptr, ptr } %19, 0
  %21 = extractvalue { ptr, ptr } %19, 1
  br label %44

22:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %23 = tail call noundef ptr @_ZNKSt10unique_ptrISt13unordered_mapIP13IRInstructionSt6vectorIS3_IS2_SaIS2_EESaIS5_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S7_EEESt14default_deleteISG_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = call ptr @_ZNSt13unordered_mapIP13IRInstructionSt6vectorIS2_IS1_SaIS1_EESaIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(8) %8)
  store ptr %24, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %25 = call noundef ptr @_ZNKSt10unique_ptrISt13unordered_mapIP13IRInstructionSt6vectorIS3_IS2_SaIS2_EESaIS5_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S7_EEESt14default_deleteISG_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #3
  %26 = call ptr @_ZNSt13unordered_mapIP13IRInstructionSt6vectorIS2_IS1_SaIS1_EESaIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %25) #3
  store ptr %26, ptr %9, align 8
  %27 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  br i1 %27, label %.critedge, label %28

28:                                               ; preds = %22
  %29 = zext i16 %4 to i64
  %30 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = call noundef i64 @_ZNKSt6vectorIS_IP13IRInstructionSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #3
  %.not12 = icmp ugt i64 %32, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br i1 %.not12, label %37, label %33

.critedge:                                        ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  br label %33

33:                                               ; preds = %.critedge, %28
  %34 = call { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv()
  %35 = extractvalue { ptr, ptr } %34, 0
  %36 = extractvalue { ptr, ptr } %34, 1
  br label %43

37:                                               ; preds = %28
  %38 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0ELb0EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IP13IRInstructionSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %29) #3
  %41 = call ptr @_ZNKSt6vectorIP13IRInstructionSaIS1_EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #3
  %42 = call ptr @_ZNKSt6vectorIP13IRInstructionSaIS1_EE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #3
  call void @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEEC2ESB_SB_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr %41, ptr %42)
  %.fca.0.load.pre.pre = load ptr, ptr %6, align 8
  %.fca.1.gep.phi.trans.insert.phi.trans.insert = getelementptr inbounds i8, ptr %6, i64 8
  %.fca.1.load.pre.pre = load ptr, ptr %.fca.1.gep.phi.trans.insert.phi.trans.insert, align 8
  br label %43

43:                                               ; preds = %37, %33
  %.fca.1.load.pre = phi ptr [ %.fca.1.load.pre.pre, %37 ], [ %36, %33 ]
  %.fca.0.load.pre = phi ptr [ %.fca.0.load.pre.pre, %37 ], [ %35, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br label %44

44:                                               ; preds = %18, %43, %11
  %.fca.1.load = phi ptr [ %21, %18 ], [ %.fca.1.load.pre, %43 ], [ %14, %11 ]
  %.fca.0.load = phi ptr [ %20, %18 ], [ %.fca.0.load.pre, %43 ], [ %13, %11 ]
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.fca.0.load, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.fca.1.load, 1
  ret { ptr, ptr } %.fca.1.insert
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEE5emptyEv() local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIP13IRInstructionSt6vectorIS2_IS1_SaIS1_EESaIS4_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S6_EEE4findERSC_(ptr noundef nonnull align 8 dereferenceable(56), 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__detaileqERKNS_19_Node_iterator_baseISt4pairIKP13IRInstructionSt6vectorIS5_IS3_SaIS3_EESaIS7_EEELb0EEESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2mf8result_t5rangeIN9__gnu_cxx17__normal_iteratorIPKP13IRInstructionSt6vectorIS5_SaIS5_EEEEEC2ESB_SB_(ptr noundef nonnull align 8 dereferenceable(16), ptr, ptr) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass