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

; 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.ROHC::ScopedLock" = type { ptr }
%"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 }
%"struct.ROHC::Compressor::Feedback1" = type <{ i16, i8, i8 }>
%"struct.ROHC::Compressor::Feedback2" = type { i16, i16, i32, %"class.std::vector.0" }

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

declare i32 @__gxx_personality_v0(...)

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ROHC10Compressor22HandleReceivedFeedbackEv(ptr noundef nonnull align 8 dereferenceable(368) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.ROHC::ScopedLock", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %11 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 3
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  call void @_ZN4ROHC10ScopedLockC2EPv(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %12)
  br label %13

13:                                               ; preds = %48, %1
  %14 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 11
  %15 = call noundef zeroext i1 @_ZNKSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %14) #4
  %16 = xor i1 %15, true
  br i1 %16, label %17, label %50

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %18 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 11
  %19 = call noundef nonnull align 2 dereferenceable(3) ptr @_ZNSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %18) #4
  store ptr %19, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback1", ptr %20, i32 0, i32 0
  %22 = load i16, ptr %21, align 2, !tbaa !36
  %23 = zext i16 %22 to i64
  %24 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 1
  %25 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #4
  %26 = icmp ult i64 %23, %25
  br i1 %26, label %27, label %48

27:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %28 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 1
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback1", ptr %29, i32 0, i32 0
  %31 = load i16, ptr %30, align 2, !tbaa !36
  %32 = zext i16 %31 to i64
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %32) #4
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %34, ptr %5, align 8, !tbaa !5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %47

37:                                               ; preds = %27
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback1", ptr %39, i32 0, i32 1
  %41 = load i8, ptr %40, align 2, !tbaa !39
  invoke void @_ZN4ROHC8CProfile9AckLsbMsnEh(ptr noundef nonnull align 8 dereferenceable(328) %38, i8 noundef zeroext %41)
          to label %42 unwind label %43

42:                                               ; preds = %37
  br label %47

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %6, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %125

47:                                               ; preds = %42, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %48

48:                                               ; preds = %47, %17
  %49 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 11
  call void @_ZNSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %13, !llvm.loop !40

50:                                               ; preds = %13
  br label %51

51:                                               ; preds = %122, %50
  %52 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 12
  %53 = call noundef zeroext i1 @_ZNKSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %52) #4
  %54 = xor i1 %53, true
  br i1 %54, label %55, label %124

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %56 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 12
  %57 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %56) #4
  store ptr %57, ptr %8, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %58, i32 0, i32 0
  %60 = load i16, ptr %59, align 8, !tbaa !42
  %61 = zext i16 %60 to i64
  %62 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 1
  %63 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #4
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %65, label %122

65:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %66 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 1
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %67, i32 0, i32 0
  %69 = load i16, ptr %68, align 8, !tbaa !42
  %70 = zext i16 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %70) #4
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  store ptr %72, ptr %9, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %121

75:                                               ; preds = %65
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !45
  %79 = icmp eq i32 0, %78
  br i1 %79, label %80, label %90

80:                                               ; preds = %75
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %82, i32 0, i32 1
  %84 = load i16, ptr %83, align 2, !tbaa !46
  invoke void @_ZN4ROHC8CProfile8AckFBMsnEt(ptr noundef nonnull align 8 dereferenceable(328) %81, i16 noundef zeroext %84)
          to label %85 unwind label %86

85:                                               ; preds = %80
  br label %120

86:                                               ; preds = %109, %95, %80
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %6, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %125

90:                                               ; preds = %75
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !45
  %94 = icmp eq i32 64, %93
  br i1 %94, label %95, label %104

95:                                               ; preds = %90
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %97, i32 0, i32 1
  %99 = load i16, ptr %98, align 2, !tbaa !46
  %100 = load ptr, ptr %96, align 8, !tbaa !47
  %101 = getelementptr inbounds ptr, ptr %100, i64 5
  %102 = load ptr, ptr %101, align 8
  invoke void %102(ptr noundef nonnull align 8 dereferenceable(328) %96, i16 noundef zeroext %99)
          to label %103 unwind label %86

103:                                              ; preds = %95
  br label %119

104:                                              ; preds = %90
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !45
  %108 = icmp eq i32 128, %107
  br i1 %108, label %109, label %118

109:                                              ; preds = %104
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.ROHC::Compressor::Feedback2", ptr %111, i32 0, i32 1
  %113 = load i16, ptr %112, align 2, !tbaa !46
  %114 = load ptr, ptr %110, align 8, !tbaa !47
  %115 = getelementptr inbounds ptr, ptr %114, i64 6
  %116 = load ptr, ptr %115, align 8
  invoke void %116(ptr noundef nonnull align 8 dereferenceable(328) %110, i16 noundef zeroext %113)
          to label %117 unwind label %86

117:                                              ; preds = %109
  br label %118

118:                                              ; preds = %117, %104
  br label %119

119:                                              ; preds = %118, %103
  br label %120

120:                                              ; preds = %119, %85
  br label %121

121:                                              ; preds = %120, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %122

122:                                              ; preds = %121, %55
  %123 = getelementptr inbounds %"class.ROHC::Compressor", ptr %10, i32 0, i32 12
  call void @_ZNSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %123) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %51, !llvm.loop !49

124:                                              ; preds = %51
  call void @_ZN4ROHC10ScopedLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void

125:                                              ; preds = %86, %43
  call void @_ZN4ROHC10ScopedLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %6, align 8
  %128 = load i32, ptr %7, align 4
  %129 = insertvalue { ptr, i32 } poison, ptr %127, 0
  %130 = insertvalue { ptr, i32 } %129, i32 %128, 1
  resume { ptr, i32 } %130
}

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

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

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

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

declare void @_ZN4ROHC8CProfile9AckLsbMsnEh(ptr noundef nonnull align 8 dereferenceable(328), i8 noundef zeroext) #3

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

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

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

declare void @_ZN4ROHC8CProfile8AckFBMsnEt(ptr noundef nonnull align 8 dereferenceable(328), i16 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #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 = { "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 = { 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, !6, i64 56}
!10 = !{!"_ZTSN4ROHC10CompressorE", !11, i64 0, !12, i64 8, !16, i64 32, !6, i64 56, !20, i64 64, !21, i64 68, !11, i64 72, !11, i64 80, !11, i64 88, !22, i64 96, !7, i64 120, !26, i64 208, !31, i64 288}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIPN4ROHC8CProfileESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTSSt6vectorIhSaIhEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!21 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!22 = !{!"_ZTSSt6vectorIN4ROHC14RTPDestinationESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE11_Deque_implE", !29, i64 0}
!29 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !11, i64 8, !30, i64 16, !30, i64 48}
!30 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback1ERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!31 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE11_Deque_implE", !34, i64 0}
!34 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !11, i64 8, !35, i64 16, !35, i64 48}
!35 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback2ERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!37, !38, i64 0}
!37 = !{!"_ZTSN4ROHC10Compressor9Feedback1E", !38, i64 0, !7, i64 2}
!38 = !{!"short", !7, i64 0}
!39 = !{!37, !7, i64 2}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!43, !38, i64 0}
!43 = !{!"_ZTSN4ROHC10Compressor9Feedback2E", !38, i64 0, !38, i64 2, !44, i64 4, !16, i64 8}
!44 = !{!"_ZTSN4ROHC11FBAckType_tE", !7, i64 0}
!45 = !{!43, !44, i64 4}
!46 = !{!43, !38, i64 2}
!47 = !{!48, !48, i64 0}
!48 = !{!"vtable pointer", !8, i64 0}
!49 = distinct !{!49, !41}


; 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.ROHC::ScopedLock" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

; 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 nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_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 i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ROHC10Compressor22HandleReceivedFeedbackEv(ptr noundef nonnull align 8 dereferenceable(368) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.ROHC::ScopedLock", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %3 = getelementptr inbounds i8, ptr %0, i64 56
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4ROHC10ScopedLockC2EPv(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %4)
  %5 = getelementptr inbounds i8, ptr %0, i64 208
  %6 = call noundef zeroext i1 @_ZNKSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5) #4
  br i1 %6, label %.preheader, label %.lr.ph

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

.preheader:                                       ; preds = %27, %1
  %8 = getelementptr inbounds i8, ptr %0, i64 288
  %9 = call noundef zeroext i1 @_ZNKSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %8) #4
  br i1 %9, label %._crit_edge, label %.lr.ph25

.lr.ph25:                                         ; preds = %.preheader
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  br label %29

11:                                               ; preds = %.lr.ph, %27
  %12 = call noundef nonnull align 2 dereferenceable(3) ptr @_ZNSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5) #4
  %13 = load i16, ptr %12, align 2, !tbaa !35
  %14 = zext i16 %13 to i64
  %15 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  %16 = icmp ugt i64 %15, %14
  br i1 %16, label %17, label %27

17:                                               ; preds = %11
  %18 = load i16, ptr %12, align 2, !tbaa !35
  %19 = zext i16 %18 to i64
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %19) #4
  %21 = load ptr, ptr %20, align 8, !tbaa !38
  %.not23 = icmp eq ptr %21, null
  br i1 %.not23, label %27, label %22

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %12, i64 2
  %24 = load i8, ptr %23, align 2, !tbaa !39
  invoke void @_ZN4ROHC8CProfile9AckLsbMsnEh(ptr noundef nonnull align 8 dereferenceable(328) %21, i8 noundef zeroext %24)
          to label %27 unwind label %25

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %56

27:                                               ; preds = %17, %22, %11
  call void @_ZNSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5) #4
  %28 = call noundef zeroext i1 @_ZNKSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5) #4
  br i1 %28, label %.preheader, label %11, !llvm.loop !40

29:                                               ; preds = %.lr.ph25, %54
  %30 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %8) #4
  %31 = load i16, ptr %30, align 8, !tbaa !42
  %32 = zext i16 %31 to i64
  %33 = call noundef i64 @_ZNKSt6vectorIPN4ROHC8CProfileESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %34 = icmp ugt i64 %33, %32
  br i1 %34, label %35, label %54

35:                                               ; preds = %29
  %36 = load i16, ptr %30, align 8, !tbaa !42
  %37 = zext i16 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN4ROHC8CProfileESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %37) #4
  %39 = load ptr, ptr %38, align 8, !tbaa !38
  %.not = icmp eq ptr %39, null
  br i1 %.not, label %54, label %40

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %30, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !45
  switch i32 %42, label %54 [
    i32 0, label %43
    i32 64, label %.invoke
    i32 128, label %48
  ]

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %30, i64 2
  %45 = load i16, ptr %44, align 2, !tbaa !46
  invoke void @_ZN4ROHC8CProfile8AckFBMsnEt(ptr noundef nonnull align 8 dereferenceable(328) %39, i16 noundef zeroext %45)
          to label %54 unwind label %46

46:                                               ; preds = %.invoke, %43
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %56

48:                                               ; preds = %40
  br label %.invoke

.invoke:                                          ; preds = %40, %48
  %.sink27 = phi i64 [ 48, %48 ], [ 40, %40 ]
  %49 = getelementptr inbounds i8, ptr %30, i64 2
  %50 = load i16, ptr %49, align 2, !tbaa !46
  %51 = load ptr, ptr %39, align 8, !tbaa !47
  %52 = getelementptr inbounds i8, ptr %51, i64 %.sink27
  %53 = load ptr, ptr %52, align 8
  invoke void %53(ptr noundef nonnull align 8 dereferenceable(328) %39, i16 noundef zeroext %50)
          to label %54 unwind label %46

54:                                               ; preds = %.invoke, %35, %43, %40, %29
  call void @_ZNSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %8) #4
  %55 = call noundef zeroext i1 @_ZNKSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %8) #4
  br i1 %55, label %._crit_edge, label %29, !llvm.loop !49

._crit_edge:                                      ; preds = %54, %.preheader
  call void @_ZN4ROHC10ScopedLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void

56:                                               ; preds = %46, %25
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %47, %46 ]
  call void @_ZN4ROHC10ScopedLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn
}

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

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

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

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

declare void @_ZN4ROHC8CProfile9AckLsbMsnEh(ptr noundef nonnull align 8 dereferenceable(328), i8 noundef zeroext) local_unnamed_addr #3

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

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

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

declare void @_ZN4ROHC8CProfile8AckFBMsnEt(ptr noundef nonnull align 8 dereferenceable(328), i16 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_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 = { "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 = { 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, !14, i64 56}
!6 = !{!"_ZTSN4ROHC10CompressorE", !7, i64 0, !10, i64 8, !15, i64 32, !14, i64 56, !19, i64 64, !20, i64 68, !7, i64 72, !7, i64 80, !7, i64 88, !21, i64 96, !8, i64 120, !25, i64 208, !30, i64 288}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIPN4ROHC8CProfileESaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN4ROHC8CProfileESaIS2_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIhSaIhEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!"_ZTSN4ROHC12Reordering_tE", !8, i64 0}
!20 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !8, i64 0}
!21 = !{!"_ZTSSt6vectorIN4ROHC14RTPDestinationESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4ROHC14RTPDestinationESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!25 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback1ESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE11_Deque_implE", !28, i64 0}
!28 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback1ESaIS2_EE16_Deque_impl_dataE", !14, i64 0, !7, i64 8, !29, i64 16, !29, i64 48}
!29 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback1ERS2_PS2_E", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!30 = !{!"_ZTSSt5dequeIN4ROHC10Compressor9Feedback2ESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE11_Deque_implE", !33, i64 0}
!33 = !{!"_ZTSNSt11_Deque_baseIN4ROHC10Compressor9Feedback2ESaIS2_EE16_Deque_impl_dataE", !14, i64 0, !7, i64 8, !34, i64 16, !34, i64 48}
!34 = !{!"_ZTSSt15_Deque_iteratorIN4ROHC10Compressor9Feedback2ERS2_PS2_E", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!35 = !{!36, !37, i64 0}
!36 = !{!"_ZTSN4ROHC10Compressor9Feedback1E", !37, i64 0, !8, i64 2}
!37 = !{!"short", !8, i64 0}
!38 = !{!14, !14, i64 0}
!39 = !{!36, !8, i64 2}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = !{!43, !37, i64 0}
!43 = !{!"_ZTSN4ROHC10Compressor9Feedback2E", !37, i64 0, !37, i64 2, !44, i64 4, !15, i64 8}
!44 = !{!"_ZTSN4ROHC11FBAckType_tE", !8, i64 0}
!45 = !{!43, !44, i64 4}
!46 = !{!43, !37, i64 2}
!47 = !{!48, !48, i64 0}
!48 = !{!"vtable pointer", !9, i64 0}
!49 = distinct !{!49, !41}


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