; LLVM IR from Columbitech/rohc :: src/compressor.ll (ZN4ROHC10Compressor11findProfileEjPKv)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.(anonymous namespace)::ContextFinder" = type { i32, ptr }
%"struct.(anonymous namespace)::OldestContextFinder" = type { i8 }
%"class.ROHC::Compressor" = type { i64, %"class.std::vector", %"class.std::vector.0", ptr, i32, i32, i64, i64, i64, %"class.std::vector.5", [11 x i64], %"class.std::deque", %"class.std::deque.13" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ROHC::CProfile *, std::allocator<ROHC::CProfile *>>::_Vector_impl" }
%"struct.std::_Vector_base<ROHC::CProfile *, std::allocator<ROHC::CProfile *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ROHC::CProfile *, std::allocator<ROHC::CProfile *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ROHC::CProfile *, std::allocator<ROHC::CProfile *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<ROHC::RTPDestination, std::allocator<ROHC::RTPDestination>>::_Vector_impl" }
%"struct.std::_Vector_base<ROHC::RTPDestination, std::allocator<ROHC::RTPDestination>>::_Vector_impl" = type { %"struct.std::_Vector_base<ROHC::RTPDestination, std::allocator<ROHC::RTPDestination>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ROHC::RTPDestination, std::allocator<ROHC::RTPDestination>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<ROHC::Compressor::Feedback1, std::allocator<ROHC::Compressor::Feedback1>>::_Deque_impl" }
%"struct.std::_Deque_base<ROHC::Compressor::Feedback1, std::allocator<ROHC::Compressor::Feedback1>>::_Deque_impl" = type { %"struct.std::_Deque_base<ROHC::Compressor::Feedback1, std::allocator<ROHC::Compressor::Feedback1>>::_Deque_impl_data" }
%"struct.std::_Deque_base<ROHC::Compressor::Feedback1, std::allocator<ROHC::Compressor::Feedback1>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::deque.13" = type { %"class.std::_Deque_base.14" }
%"class.std::_Deque_base.14" = type { %"struct.std::_Deque_base<ROHC::Compressor::Feedback2, std::allocator<ROHC::Compressor::Feedback2>>::_Deque_impl" }
%"struct.std::_Deque_base<ROHC::Compressor::Feedback2, std::allocator<ROHC::Compressor::Feedback2>>::_Deque_impl" = type { %"struct.std::_Deque_base<ROHC::Compressor::Feedback2, std::allocator<ROHC::Compressor::Feedback2>>::_Deque_impl_data" }
%"struct.std::_Deque_base<ROHC::Compressor::Feedback2, std::allocator<ROHC::Compressor::Feedback2>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.18", %"struct.std::_Deque_iterator.18" }
%"struct.std::_Deque_iterator.18" = type { ptr, 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 uwtable
declare dso_local void @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4ROHC10Compressor11findProfileEjPKv(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 noundef %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", 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
  %12 = alloca %"struct.(anonymous namespace)::ContextFinder", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i16, align 2
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"struct.(anonymous namespace)::OldestContextFinder", align 1
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"struct.(anonymous namespace)::OldestContextFinder", align 1
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8
  %31 = call noundef zeroext i16 @_ZN4ROHC20CUncompressedProfile9ProfileIDEv()
  %32 = zext i16 %31 to i32
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %50

35:                                               ; preds = %3
  %36 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef 0) #7
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %46, label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call noundef ptr @_ZN4ROHC8CProfile6CreateEPNS_10CompressorEtjPKNS_5iphdrE(ptr noundef %30, i16 noundef zeroext 0, i32 noundef %41, ptr noundef %42)
  %44 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef 0) #7
  store ptr %43, ptr %45, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %40, %35
  %47 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef 0) #7
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  store ptr %49, ptr %4, align 8
  br label %162

50:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %51 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %52 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef 1) #7
  %55 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %54, ptr %55, align 8
  %56 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %57 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #7
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %57, ptr %58, align 8
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_113ContextFinderC2EjPKN4ROHC5iphdrE(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef %59, ptr noundef %60)
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8
  %63 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  %65 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 0
  %66 = load i32, ptr %65, align 8
  %67 = getelementptr inbounds { i32, ptr }, ptr %12, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8
  %69 = call ptr @_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_113ContextFinderEET_SC_SC_T0_(ptr %62, ptr %64, i32 %66, ptr %68)
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %71 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %72 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #7
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  %74 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br i1 %74, label %75, label %158

75:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %76 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %77 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #7
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  %79 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef 1) #7
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %81

81:                                               ; preds = %92, %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %82 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %83 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #7
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  %85 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br i1 %85, label %86, label %94

86:                                               ; preds = %81
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  br label %94

91:                                               ; preds = %86
  br label %92

92:                                               ; preds = %91
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %81, !llvm.loop !12

94:                                               ; preds = %90, %81
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #7
  store i16 0, ptr %17, align 2, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %95 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %96 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #7
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br i1 %98, label %99, label %109

99:                                               ; preds = %94
  %100 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %101 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #7
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %101, ptr %102, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %8, i64 8, i1 false), !tbaa.struct !11
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8
  %107 = call noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr %104, ptr %106)
  %108 = trunc i64 %107 to i16
  store i16 %108, ptr %17, align 2, !tbaa !14
  br label %147

109:                                              ; preds = %94
  %110 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %111 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #7
  %112 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !16
  %114 = icmp ule i64 %111, %113
  br i1 %114, label %115, label %120

115:                                              ; preds = %109
  %116 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %117 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #7
  %118 = trunc i64 %117 to i16
  store i16 %118, ptr %17, align 2, !tbaa !14
  %119 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %146

120:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %121 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %122 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #7
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef 1) #7
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  %126 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %127 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #7
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = call ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_119OldestContextFinderEET_SC_SC_T0_(ptr %130, ptr %132)
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %23, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  %137 = call noundef zeroext i16 @_ZNK4ROHC8CProfile3CIDEv(ptr noundef nonnull align 8 dereferenceable(328) %136)
  store i16 %137, ptr %17, align 2, !tbaa !14
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = icmp eq ptr %139, null
  br i1 %140, label %145, label %141

141:                                              ; preds = %120
  %142 = load ptr, ptr %139, align 8, !tbaa !43
  %143 = getelementptr inbounds ptr, ptr %142, i64 1
  %144 = load ptr, ptr %143, align 8
  call void %144(ptr noundef nonnull align 8 dereferenceable(328) %139) #7
  br label %145

145:                                              ; preds = %141, %120
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #7
  br label %146

146:                                              ; preds = %145, %115
  br label %147

147:                                              ; preds = %146, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %148 = load i16, ptr %17, align 2, !tbaa !14
  %149 = load i32, ptr %6, align 4, !tbaa !9
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = call noundef ptr @_ZN4ROHC8CProfile6CreateEPNS_10CompressorEtjPKNS_5iphdrE(ptr noundef %30, i16 noundef zeroext %148, i32 noundef %149, ptr noundef %150)
  store ptr %151, ptr %28, align 8, !tbaa !5
  %152 = load ptr, ptr %28, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.ROHC::Compressor", ptr %30, i32 0, i32 1
  %154 = load i16, ptr %17, align 2, !tbaa !14
  %155 = zext i16 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #7
  store ptr %152, ptr %156, align 8, !tbaa !5
  %157 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %157, ptr %4, align 8
  store i32 1, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #7
  br label %161

158:                                              ; preds = %50
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  store ptr %160, ptr %4, align 8
  store i32 1, ptr %29, align 4
  br label %161

161:                                              ; preds = %158, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %162

162:                                              ; preds = %161, %46
  %163 = load ptr, ptr %4, align 8
  ret ptr %163
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN4ROHC20CUncompressedProfile9ProfileIDEv() #2 align 2

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

declare noundef ptr @_ZN4ROHC8CProfile6CreateEPNS_10CompressorEtjPKNS_5iphdrE(ptr noundef, i16 noundef zeroext, i32 noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_113ContextFinderEET_SC_SC_T0_(ptr, ptr, i32, ptr) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_113ContextFinderC2EjPKN4ROHC5iphdrE(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, ptr noundef) unnamed_addr #2 align 2

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

; 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) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr, ptr) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_119OldestContextFinderEET_SC_SC_T0_(ptr, ptr) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !5}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN4ROHC10CompressorE", !18, i64 0, !19, i64 8, !23, i64 32, !6, i64 56, !27, i64 64, !28, i64 68, !18, i64 72, !18, i64 80, !18, i64 88, !29, i64 96, !7, i64 120, !33, i64 208, !38, i64 288}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIPN4ROHC8CProfileESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIhSaIhEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!28 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!29 = !{!"_ZTSSt6vectorIN4ROHC14RTPDestinationESaIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE11_Deque_implE", !36, i64 0}
!36 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !18, i64 8, !37, i64 16, !37, i64 48}
!37 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback1ERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!38 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE", !39, i64 0}
!39 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE", !40, i64 0}
!40 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE11_Deque_implE", !41, i64 0}
!41 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !18, i64 8, !42, i64 16, !42, i64 48}
!42 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback2ERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!43 = !{!44, !44, i64 0}
!44 = !{!"vtable pointer", !8, 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.(anonymous namespace)::ContextFinder" = type { i32, 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 uwtable
declare dso_local void @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4ROHC10Compressor11findProfileEjPKv(ptr noundef nonnull align 8 dereferenceable(368) %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"struct.(anonymous namespace)::ContextFinder", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = tail call noundef zeroext i16 @_ZN4ROHC20CUncompressedProfile9ProfileIDEv()
  %14 = zext i16 %13 to i32
  %15 = icmp eq i32 %14, %1
  br i1 %15, label %16, label %26

16:                                               ; preds = %3
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef 0) #6
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %.not25 = icmp eq ptr %19, null
  br i1 %.not25, label %20, label %23

20:                                               ; preds = %16
  %21 = tail call noundef ptr @_ZN4ROHC8CProfile6CreateEPNS_10CompressorEtjPKNS_5iphdrE(ptr noundef nonnull %0, i16 noundef zeroext 0, i32 noundef %1, ptr noundef %2)
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef 0) #6
  store ptr %21, ptr %22, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %20, %16
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef 0) #6
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  br label %83

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %28 = tail call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %28, ptr %5, align 8
  %29 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 1) #6
  %30 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  call void @_ZN12_GLOBAL__N_113ContextFinderC2EjPKN4ROHC5iphdrE(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %1, ptr noundef %2)
  %31 = load i32, ptr %6, align 8
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  %33 = load ptr, ptr %32, align 8
  %34 = call ptr @_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_113ContextFinderEET_SC_SC_T0_(ptr %29, ptr %30, i32 %31, ptr %33)
  store ptr %34, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %35 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %35, ptr %7, align 8
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br i1 %36, label %37, label %79

37:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %38 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %38, ptr %8, align 8
  %39 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 1) #6
  store ptr %39, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %40 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %40, ptr %9, align 8
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %41, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %37, %44
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %.not = icmp eq ptr %43, null
  br i1 %.not, label %._crit_edge, label %44

44:                                               ; preds = %.lr.ph
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %46 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %46, ptr %9, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %44, %.lr.ph, %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %48 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %48, ptr %10, align 8
  %49 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br i1 %49, label %50, label %54

50:                                               ; preds = %._crit_edge
  %51 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %.sroa.05.0.copyload = load ptr, ptr %4, align 8, !tbaa !5
  %52 = call noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr %51, ptr %.sroa.05.0.copyload)
  %53 = trunc i64 %52 to i16
  br label %75

54:                                               ; preds = %._crit_edge
  %55 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %56 = load i64, ptr %0, align 8, !tbaa !11
  %.not24 = icmp ugt i64 %55, %56
  br i1 %.not24, label %60, label %57

57:                                               ; preds = %54
  %58 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %59 = trunc i64 %58 to i16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %75

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %61 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %61, ptr %12, align 8
  %62 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 1) #6
  %63 = call ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  %64 = call ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_119OldestContextFinderEET_SC_SC_T0_(ptr %62, ptr %63)
  store ptr %64, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = call noundef zeroext i16 @_ZNK4ROHC8CProfile3CIDEv(ptr noundef nonnull align 8 dereferenceable(328) %66)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = icmp eq ptr %69, null
  br i1 %70, label %75, label %71

71:                                               ; preds = %60
  %72 = load ptr, ptr %69, align 8, !tbaa !38
  %73 = getelementptr inbounds i8, ptr %72, i64 8
  %74 = load ptr, ptr %73, align 8
  call void %74(ptr noundef nonnull align 8 dereferenceable(328) %69) #6
  br label %75

75:                                               ; preds = %60, %71, %57, %50
  %.020 = phi i16 [ %53, %50 ], [ %59, %57 ], [ %67, %71 ], [ %67, %60 ]
  %76 = call noundef ptr @_ZN4ROHC8CProfile6CreateEPNS_10CompressorEtjPKNS_5iphdrE(ptr noundef nonnull %0, i16 noundef zeroext %.020, i32 noundef %1, ptr noundef %2)
  %77 = zext i16 %.020 to i64
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %77) #6
  store ptr %76, ptr %78, align 8, !tbaa !5
  br label %82

79:                                               ; preds = %26
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %79, %75
  %.0 = phi ptr [ %76, %75 ], [ %81, %79 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %83

83:                                               ; preds = %82, %23
  %.1 = phi ptr [ %25, %23 ], [ %.0, %82 ]
  ret ptr %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN4ROHC20CUncompressedProfile9ProfileIDEv() local_unnamed_addr #2 align 2

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

declare noundef ptr @_ZN4ROHC8CProfile6CreateEPNS_10CompressorEtjPKNS_5iphdrE(ptr noundef, i16 noundef zeroext, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_113ContextFinderEET_SC_SC_T0_(ptr, ptr, i32, ptr) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_113ContextFinderC2EjPKN4ROHC5iphdrE(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, ptr noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr, ptr) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @_ZSt11min_elementIN9__gnu_cxx17__normal_iteratorIPPN4ROHC8CProfileESt6vectorIS4_SaIS4_EEEEN12_GLOBAL__N_119OldestContextFinderEET_SC_SC_T0_(ptr, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK4ROHC8CProfile3CIDEv(ptr noundef nonnull align 8 dereferenceable(328)) 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN4ROHC10CompressorE", !13, i64 0, !14, i64 8, !18, i64 32, !6, i64 56, !22, i64 64, !23, i64 68, !13, i64 72, !13, i64 80, !13, i64 88, !24, i64 96, !7, i64 120, !28, i64 208, !33, i64 288}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIPN4ROHC8CProfileESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIhSaIhEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!23 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIN4ROHC14RTPDestinationESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE11_Deque_implE", !31, i64 0}
!31 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !13, i64 8, !32, i64 16, !32, i64 48}
!32 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback1ERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!33 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE", !35, i64 0}
!35 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE11_Deque_implE", !36, i64 0}
!36 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !13, i64 8, !37, i64 16, !37, i64 48}
!37 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback2ERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!38 = !{!39, !39, i64 0}
!39 = !{!"vtable pointer", !8, i64 0}


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