; LLVM IR from Columbitech/rohc :: src (crtp_profile)

; 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.std::back_insert_iterator" = type { ptr }
%"class.ROHC::CProfile" = type { ptr, ptr, i16, i64, i32, i32, i32, i32, i64, i64, i32, i32, i16, %"class.ROHC::WLSB", i32, i32, i8, i32, i32, i32, %"struct.ROHC::iphdr", i16, i16, %"class.ROHC::WLSB", [11 x i64] }
%"struct.ROHC::iphdr" = type { i8, i8, i16, i16, i16, i8, i8, i16, i32, i32 }
%"class.ROHC::WLSB" = type { %"class.std::vector", i64, i64, i64, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ROHC::WLSB<int>::LSB, std::allocator<ROHC::WLSB<int>::LSB>>::_Vector_impl" }
%"struct.std::_Vector_base<ROHC::WLSB<int>::LSB, std::allocator<ROHC::WLSB<int>::LSB>>::_Vector_impl" = type { %"struct.std::_Vector_base<ROHC::WLSB<int>::LSB, std::allocator<ROHC::WLSB<int>::LSB>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ROHC::WLSB<int>::LSB, std::allocator<ROHC::WLSB<int>::LSB>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.ROHC::CRTPProfile" = type <{ %"class.ROHC::CProfile", %"class.std::vector.0", i16, i16, %"struct.ROHC::rtphdr", i32, i32, i32, i32, %"class.ROHC::WLSB.5", i32, i8, [3 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<ROHC::CRTPProfile::CSRCItem, std::allocator<ROHC::CRTPProfile::CSRCItem>>::_Vector_impl" }
%"struct.std::_Vector_base<ROHC::CRTPProfile::CSRCItem, std::allocator<ROHC::CRTPProfile::CSRCItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<ROHC::CRTPProfile::CSRCItem, std::allocator<ROHC::CRTPProfile::CSRCItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ROHC::CRTPProfile::CSRCItem, std::allocator<ROHC::CRTPProfile::CSRCItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.ROHC::rtphdr" = type { i16, i16, i32, i32 }
%"class.ROHC::WLSB.5" = type { %"class.std::vector.6", i64, i64, i64, i32, i32 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<ROHC::WLSB<unsigned int>::LSB, std::allocator<ROHC::WLSB<unsigned int>::LSB>>::_Vector_impl" }
%"struct.std::_Vector_base<ROHC::WLSB<unsigned int>::LSB, std::allocator<ROHC::WLSB<unsigned int>::LSB>>::_Vector_impl" = type { %"struct.std::_Vector_base<ROHC::WLSB<unsigned int>::LSB, std::allocator<ROHC::WLSB<unsigned int>::LSB>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ROHC::WLSB<unsigned int>::LSB, std::allocator<ROHC::WLSB<unsigned int>::LSB>>::_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 uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN4ROHC10SDVLEncodeISt20back_insert_iteratorISt6vectorIhSaIhEEEEET_S6_j(ptr, i32 noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ROHC11CRTPProfile18create_rtp_dynamicEPKNS_6rtphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(445) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::back_insert_iterator", align 8
  %15 = alloca %"class.std::back_insert_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::back_insert_iterator", align 8
  %18 = alloca %"class.std::back_insert_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #4
  %20 = getelementptr inbounds %"class.ROHC::CProfile", ptr %19, i32 0, i32 14
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = and i32 %21, 3
  %23 = shl i32 %22, 5
  %24 = trunc i32 %23 to i8
  store i8 %24, ptr %7, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  store i8 0, ptr %8, align 1, !tbaa !25
  %25 = load i8, ptr %8, align 1, !tbaa !25, !range !26, !noundef !27
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %32

27:                                               ; preds = %3
  %28 = load i8, ptr %7, align 1, !tbaa !24
  %29 = zext i8 %28 to i32
  %30 = or i32 %29, 16
  %31 = trunc i32 %30 to i8
  store i8 %31, ptr %7, align 1, !tbaa !24
  br label %32

32:                                               ; preds = %27, %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %33 = getelementptr inbounds %"class.ROHC::CRTPProfile", ptr %19, i32 0, i32 7
  %34 = load i32, ptr %33, align 8, !tbaa !28
  %35 = icmp ugt i32 %34, 0
  %36 = zext i1 %35 to i8
  store i8 %36, ptr %9, align 1, !tbaa !25
  %37 = load i8, ptr %9, align 1, !tbaa !25, !range !26, !noundef !27
  %38 = trunc i8 %37 to i1
  br i1 %38, label %39, label %44

39:                                               ; preds = %32
  %40 = load i8, ptr %7, align 1, !tbaa !24
  %41 = zext i8 %40 to i32
  %42 = or i32 %41, 8
  %43 = trunc i32 %42 to i8
  store i8 %43, ptr %7, align 1, !tbaa !24
  br label %44

44:                                               ; preds = %39, %32
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  store i8 0, ptr %10, align 1, !tbaa !25
  %45 = load i8, ptr %10, align 1, !tbaa !25, !range !26, !noundef !27
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %52

47:                                               ; preds = %44
  %48 = load i8, ptr %7, align 1, !tbaa !24
  %49 = zext i8 %48 to i32
  %50 = or i32 %49, 4
  %51 = trunc i32 %50 to i8
  store i8 %51, ptr %7, align 1, !tbaa !24
  br label %52

52:                                               ; preds = %47, %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i16, ptr %53, align 4
  %55 = lshr i16 %54, 5
  %56 = and i16 %55, 1
  %57 = trunc i16 %56 to i8
  %58 = icmp ne i8 %57, 0
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %11, align 1, !tbaa !25
  %60 = load i8, ptr %11, align 1, !tbaa !25, !range !26, !noundef !27
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %67

62:                                               ; preds = %52
  %63 = load i8, ptr %7, align 1, !tbaa !24
  %64 = zext i8 %63 to i32
  %65 = or i32 %64, 2
  %66 = trunc i32 %65 to i8
  store i8 %66, ptr %7, align 1, !tbaa !24
  br label %67

67:                                               ; preds = %62, %52
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = load i16, ptr %68, align 4
  %70 = lshr i16 %69, 4
  %71 = and i16 %70, 1
  %72 = trunc i16 %71 to i8
  %73 = icmp ne i8 %72, 0
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %12, align 1, !tbaa !25
  %75 = load i8, ptr %12, align 1, !tbaa !25, !range !26, !noundef !27
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %82

77:                                               ; preds = %67
  %78 = load i8, ptr %7, align 1, !tbaa !24
  %79 = zext i8 %78 to i32
  %80 = or i32 %79, 1
  %81 = trunc i32 %80 to i8
  store i8 %81, ptr %7, align 1, !tbaa !24
  br label %82

82:                                               ; preds = %77, %67
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load i16, ptr %84, align 4
  %86 = lshr i16 %85, 15
  %87 = trunc i16 %86 to i8
  %88 = zext i8 %87 to i32
  %89 = shl i32 %88, 7
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i16, ptr %90, align 4
  %92 = lshr i16 %91, 8
  %93 = and i16 %92, 127
  %94 = trunc i16 %93 to i8
  %95 = zext i8 %94 to i32
  %96 = and i32 %95, 127
  %97 = or i32 %89, %96
  %98 = trunc i32 %97 to i8
  store i8 %98, ptr %13, align 1, !tbaa !24
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %99, ptr noundef nonnull align 1 dereferenceable(1) %13)
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.ROHC::rtphdr", ptr %101, i32 0, i32 1
  call void @_ZN4ROHC10AppendDataItEEvRSt6vectorIhSaIhEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %100, ptr noundef nonnull align 2 dereferenceable(2) %102)
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.ROHC::rtphdr", ptr %104, i32 0, i32 2
  call void @_ZN4ROHC10AppendDataIjEEvRSt6vectorIhSaIhEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 4 dereferenceable(4) %105)
  %106 = load i8, ptr %9, align 1, !tbaa !25, !range !26, !noundef !27
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %118

108:                                              ; preds = %82
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = call ptr @_ZSt13back_inserterISt6vectorIhSaIhEEESt20back_insert_iteratorIT_ERS4_(ptr noundef nonnull align 8 dereferenceable(24) %109)
  %111 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %14, i32 0, i32 0
  store ptr %110, ptr %111, align 8
  %112 = getelementptr inbounds %"class.ROHC::CRTPProfile", ptr %19, i32 0, i32 10
  %113 = load i32, ptr %112, align 8, !tbaa !40
  %114 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %14, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8
  %116 = call ptr @_ZN4ROHC10SDVLEncodeISt20back_insert_iteratorISt6vectorIhSaIhEEEEET_S6_j(ptr %115, i32 noundef %113)
  %117 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %15, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  br label %118

118:                                              ; preds = %108, %82
  %119 = load i8, ptr %10, align 1, !tbaa !25, !range !26, !noundef !27
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %130

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !41
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = call ptr @_ZSt13back_inserterISt6vectorIhSaIhEEESt20back_insert_iteratorIT_ERS4_(ptr noundef nonnull align 8 dereferenceable(24) %122)
  %124 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %17, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  %125 = load i32, ptr %16, align 4, !tbaa !41
  %126 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %17, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = call ptr @_ZN4ROHC10SDVLEncodeISt20back_insert_iteratorISt6vectorIhSaIhEEEEET_S6_j(ptr %127, i32 noundef %125)
  %129 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %18, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %130

130:                                              ; preds = %121, %118
  %131 = load i8, ptr %8, align 1, !tbaa !25, !range !26, !noundef !27
  %132 = trunc i8 %131 to i1
  br i1 %132, label %133, label %136

133:                                              ; preds = %130
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4ROHC11CRTPProfile25create_csrc_list_dynchainEPKNS_6rtphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(445) %19, ptr noundef %134, ptr noundef nonnull align 8 dereferenceable(24) %135)
  br label %136

136:                                              ; preds = %133, %130
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4ROHC11CRTPProfile25create_csrc_list_dynchainEPKNS_6rtphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(445), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3 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 = { 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 #3 = { 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 = { 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, !19, i64 136}
!10 = !{!"_ZTSN4ROHC8CProfileE", !6, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !12, i64 48, !12, i64 56, !13, i64 64, !13, i64 68, !11, i64 72, !14, i64 80, !19, i64 136, !20, i64 140, !21, i64 144, !22, i64 148, !13, i64 152, !13, i64 156, !23, i64 160, !11, i64 180, !11, i64 182, !14, i64 184, !7, i64 240}
!11 = !{!"short", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN4ROHC4WLSBIiEE", !15, i64 0, !12, i64 24, !12, i64 32, !12, i64 40, !13, i64 48, !13, i64 52}
!15 = !{!"_ZTSSt6vectorIN4ROHC4WLSBIiE3LSBESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!20 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN4ROHC8CProfileUt_E", !7, i64 0}
!23 = !{!"_ZTSN4ROHC5iphdrE", !7, i64 0, !7, i64 0, !7, i64 1, !11, i64 2, !11, i64 4, !11, i64 6, !7, i64 8, !7, i64 9, !11, i64 10, !13, i64 12, !13, i64 16}
!24 = !{!7, !7, i64 0}
!25 = !{!21, !21, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !13, i64 376}
!29 = !{!"_ZTSN4ROHC11CRTPProfileE", !10, i64 0, !30, i64 328, !11, i64 352, !11, i64 354, !34, i64 356, !13, i64 368, !13, i64 372, !13, i64 376, !13, i64 380, !35, i64 384, !13, i64 440, !21, i64 444}
!30 = !{!"_ZTSSt6vectorIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSN4ROHC6rtphdrE", !7, i64 0, !7, i64 0, !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !11, i64 2, !13, i64 4, !13, i64 8}
!35 = !{!"_ZTSN4ROHC4WLSBIjEE", !36, i64 0, !12, i64 24, !12, i64 32, !12, i64 40, !13, i64 48, !13, i64 52}
!36 = !{!"_ZTSSt6vectorIN4ROHC4WLSBIjE3LSBESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN4ROHC4WLSBIjE3LSBESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIjE3LSBESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIjE3LSBESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!29, !13, i64 440}
!41 = !{!13, !13, 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"

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN4ROHC10SDVLEncodeISt20back_insert_iteratorISt6vectorIhSaIhEEEEET_S6_j(ptr, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ROHC11CRTPProfile18create_rtp_dynamicEPKNS_6rtphdrERSt6vectorIhSaIhEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(445) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 align 2 {
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 136
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %.tr = trunc i32 %7 to i8
  %8 = shl i8 %.tr, 5
  %9 = and i8 %8, 96
  store i8 %9, ptr %4, align 1, !tbaa !23
  %10 = getelementptr inbounds i8, ptr %0, i64 376
  %11 = load i32, ptr %10, align 8, !tbaa !24
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %14, label %12

12:                                               ; preds = %3
  %13 = or disjoint i8 %9, 8
  store i8 %13, ptr %4, align 1, !tbaa !23
  br label %14

14:                                               ; preds = %3, %12
  %15 = phi i8 [ %9, %3 ], [ %13, %12 ]
  %16 = load i16, ptr %1, align 4
  %17 = and i16 %16, 48
  %.not28 = icmp eq i16 %17, 0
  br i1 %.not28, label %26, label %18

18:                                               ; preds = %14
  %19 = trunc i16 %16 to i8
  %20 = lshr i8 %19, 4
  %21 = and i8 %20, 2
  %22 = or i8 %15, %21
  %23 = trunc i16 %16 to i8
  %24 = lshr i8 %23, 4
  %25 = and i8 %24, 1
  %simplifycfg.merge = or i8 %22, %25
  store i8 %simplifycfg.merge, ptr %4, align 1, !tbaa !23
  br label %26

26:                                               ; preds = %14, %18
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  %27 = load i16, ptr %1, align 4
  %28 = lshr i16 %27, 8
  %29 = trunc nuw i16 %28 to i8
  store i8 %29, ptr %5, align 1, !tbaa !23
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %30 = getelementptr inbounds i8, ptr %1, i64 2
  call void @_ZN4ROHC10AppendDataItEEvRSt6vectorIhSaIhEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 2 dereferenceable(2) %30)
  %31 = getelementptr inbounds i8, ptr %1, i64 4
  call void @_ZN4ROHC10AppendDataIjEEvRSt6vectorIhSaIhEERKT_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %31)
  br i1 %.not, label %37, label %32

32:                                               ; preds = %26
  %33 = call ptr @_ZSt13back_inserterISt6vectorIhSaIhEEESt20back_insert_iteratorIT_ERS4_(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %34 = getelementptr inbounds i8, ptr %0, i64 440
  %35 = load i32, ptr %34, align 8, !tbaa !36
  %36 = call ptr @_ZN4ROHC10SDVLEncodeISt20back_insert_iteratorISt6vectorIhSaIhEEEEET_S6_j(ptr %33, i32 noundef %35)
  br label %37

37:                                               ; preds = %32, %26
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  ret void
}

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

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

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 = { 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 #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, !18, i64 136}
!6 = !{!"_ZTSN4ROHC8CProfileE", !7, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !11, i64 48, !11, i64 56, !12, i64 64, !12, i64 68, !10, i64 72, !13, i64 80, !18, i64 136, !19, i64 140, !20, i64 144, !21, i64 148, !12, i64 152, !12, i64 156, !22, i64 160, !10, i64 180, !10, i64 182, !13, i64 184, !8, i64 240}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSN4ROHC4WLSBIiEE", !14, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 52}
!14 = !{!"_ZTSSt6vectorIN4ROHC4WLSBIiE3LSBESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"_ZTSN4ROHC12Reordering_tE", !8, i64 0}
!19 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !8, i64 0}
!20 = !{!"bool", !8, i64 0}
!21 = !{!"_ZTSN4ROHC8CProfileUt_E", !8, i64 0}
!22 = !{!"_ZTSN4ROHC5iphdrE", !8, i64 0, !8, i64 0, !8, i64 1, !10, i64 2, !10, i64 4, !10, i64 6, !8, i64 8, !8, i64 9, !10, i64 10, !12, i64 12, !12, i64 16}
!23 = !{!8, !8, i64 0}
!24 = !{!25, !12, i64 376}
!25 = !{!"_ZTSN4ROHC11CRTPProfileE", !6, i64 0, !26, i64 328, !10, i64 352, !10, i64 354, !30, i64 356, !12, i64 368, !12, i64 372, !12, i64 376, !12, i64 380, !31, i64 384, !12, i64 440, !20, i64 444}
!26 = !{!"_ZTSSt6vectorIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4ROHC11CRTPProfile8CSRCItemESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!30 = !{!"_ZTSN4ROHC6rtphdrE", !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 0, !8, i64 1, !8, i64 1, !10, i64 2, !12, i64 4, !12, i64 8}
!31 = !{!"_ZTSN4ROHC4WLSBIjEE", !32, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 52}
!32 = !{!"_ZTSSt6vectorIN4ROHC4WLSBIjE3LSBESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN4ROHC4WLSBIjE3LSBESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIjE3LSBESaIS3_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIjE3LSBESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!36 = !{!25, !12, i64 440}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass