; LLVM IR from Columbitech/rohc :: src (drtp_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.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.ROHC::DRTPProfile" = type { %"class.ROHC::DProfile.base", i32, i32, i32, i32, i8, %"struct.ROHC::udphdr", %"struct.ROHC::rtphdr", [4 x i8] }
%"class.ROHC::DProfile.base" = type <{ ptr, ptr, i16, [2 x i8], i32, i16, i16, i32, i32, i32, i64, i64, i8, [3 x i8], %"struct.ROHC::iphdr", i64, i32 }>
%"struct.ROHC::iphdr" = type { i8, i8, i16, i16, i16, i8, i8, i16, i32, i32 }
%"struct.ROHC::udphdr" = type { i16, i16, i16, i16 }
%"struct.ROHC::rtphdr" = type { i16, i16, i32, i32 }
%"class.ROHC::DProfile" = type <{ ptr, ptr, i16, [2 x i8], i32, i16, i16, i32, i32, i32, i64, i64, i8, [3 x i8], %"struct.ROHC::iphdr", i64, i32, [4 x i8] }>

@.str.31 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ROHC11DRTPProfile19parse_pt_2_seq_bothERN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEERKS7_(ptr noundef nonnull align 8 dereferenceable(132) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [4 x i8], align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i16, align 2
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = call noundef i64 @_ZN9__gnu_cxxmiIPhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  %22 = icmp slt i64 %21, 4
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.31)
  store i1 false, ptr %4, align 1
  br label %120

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 0) #5
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %9, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %29 = load i8, ptr %28, align 1, !tbaa !9
  %30 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  store i8 %29, ptr %30, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef 0) #5
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %10, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  %34 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %35 = load i8, ptr %34, align 1, !tbaa !9
  %36 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  store i8 %35, ptr %36, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %37, i32 noundef 0) #5
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %11, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  %40 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  store i8 %41, ptr %42, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %43, i32 noundef 0) #5
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %12, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %47 = load i8, ptr %46, align 1, !tbaa !9
  %48 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  store i8 %47, ptr %48, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %49 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  %50 = load i8, ptr %49, align 1, !tbaa !9
  store i8 %50, ptr %13, align 1, !tbaa !9
  %51 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 2
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %53 = zext i8 %52 to i32
  %54 = and i32 %53, 128
  %55 = trunc i32 %54 to i8
  store i8 %55, ptr %51, align 1, !tbaa !9
  %56 = load i8, ptr %13, align 1, !tbaa !9
  %57 = zext i8 %56 to i32
  %58 = and i32 %57, 127
  %59 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %60 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %61 = getelementptr inbounds i8, ptr %60, i64 4
  %62 = call noundef zeroext i8 @_ZN4ROHC4CRC7EPKhS1_(ptr noundef %59, ptr noundef %61)
  %63 = zext i8 %62 to i32
  %64 = icmp ne i32 %58, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %24
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.32)
  call void @_ZN4ROHC8DProfile8SendNackEv(ptr noundef nonnull align 8 dereferenceable(92) %18)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %119

66:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  %67 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 0
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = zext i8 %68 to i32
  %70 = and i32 %69, 7
  %71 = shl i32 %70, 4
  %72 = trunc i32 %71 to i16
  store i16 %72, ptr %15, align 2, !tbaa !10
  %73 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = zext i8 %74 to i32
  %76 = ashr i32 %75, 4
  %77 = load i16, ptr %15, align 2, !tbaa !10
  %78 = zext i16 %77 to i32
  %79 = or i32 %78, %76
  %80 = trunc i32 %79 to i16
  store i16 %80, ptr %15, align 2, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %81 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 1
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = zext i8 %82 to i32
  %84 = and i32 %83, 15
  %85 = shl i32 %84, 1
  %86 = trunc i32 %85 to i8
  store i8 %86, ptr %16, align 1, !tbaa !9
  %87 = load i8, ptr %13, align 1, !tbaa !9
  %88 = zext i8 %87 to i32
  %89 = ashr i32 %88, 7
  %90 = load i8, ptr %16, align 1, !tbaa !9
  %91 = zext i8 %90 to i32
  %92 = or i32 %91, %89
  %93 = trunc i32 %92 to i8
  store i8 %93, ptr %16, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %94 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %95 = load i8, ptr %94, align 1, !tbaa !9
  %96 = zext i8 %95 to i32
  %97 = ashr i32 %96, 1
  %98 = trunc i32 %97 to i8
  store i8 %98, ptr %17, align 1, !tbaa !9
  %99 = getelementptr inbounds [4 x i8], ptr %8, i64 0, i64 3
  %100 = load i8, ptr %99, align 1, !tbaa !9
  %101 = zext i8 %100 to i32
  %102 = and i32 %101, 1
  %103 = icmp sgt i32 %102, 0
  %104 = zext i1 %103 to i8
  %105 = getelementptr inbounds %"class.ROHC::DRTPProfile", ptr %18, i32 0, i32 7
  %106 = zext i8 %104 to i16
  %107 = load i16, ptr %105, align 8
  %108 = and i16 %106, 1
  %109 = shl i16 %108, 15
  %110 = and i16 %107, 32767
  %111 = or i16 %110, %109
  store i16 %111, ptr %105, align 8
  %112 = load i16, ptr %15, align 2, !tbaa !10
  %113 = getelementptr inbounds %"class.ROHC::DProfile", ptr %18, i32 0, i32 5
  %114 = call noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92) %18, i16 noundef zeroext %112, i32 noundef 7, ptr noundef nonnull align 2 dereferenceable(2) %113)
  %115 = load i8, ptr %16, align 1, !tbaa !9
  %116 = getelementptr inbounds %"class.ROHC::DProfile", ptr %18, i32 0, i32 6
  call void @_ZNK4ROHC8DProfile16UpdateIPIDOffsetEhjRt(ptr noundef nonnull align 8 dereferenceable(92) %18, i8 noundef zeroext %115, i32 noundef 5, ptr noundef nonnull align 2 dereferenceable(2) %116)
  call void @_ZN4ROHC8DProfile20UpdateIPIDFromOffsetEv(ptr noundef nonnull align 8 dereferenceable(92) %18)
  %117 = load i8, ptr %17, align 1, !tbaa !9
  %118 = zext i8 %117 to i32
  call void @_ZN4ROHC11DRTPProfile15UpdateTimestampEjj(ptr noundef nonnull align 8 dereferenceable(132) %18, i32 noundef %118, i32 noundef 7)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %119

119:                                              ; preds = %66, %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %120

120:                                              ; preds = %119, %23
  %121 = load i1, ptr %4, align 1
  ret i1 %121
}

declare void @_ZN4ROHC5errorEPKcz(ptr noundef, ...) #3

declare void @_ZN4ROHC8DProfile8SendNackEv(ptr noundef nonnull align 8 dereferenceable(92)) #3

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

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

declare void @_ZN4ROHC8DProfile20UpdateIPIDFromOffsetEv(ptr noundef nonnull align 8 dereferenceable(92)) #3

declare noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92), i16 noundef zeroext, i32 noundef, ptr noundef nonnull align 2 dereferenceable(2)) #3

declare noundef zeroext i8 @_ZN4ROHC4CRC7EPKhS1_(ptr noundef, ptr noundef) #3

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

declare void @_ZNK4ROHC8DProfile16UpdateIPIDOffsetEhjRt(ptr noundef nonnull align 8 dereferenceable(92), i8 noundef zeroext, i32 noundef, ptr noundef nonnull align 2 dereferenceable(2)) #3

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 = { 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 #5 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }

@.str.31 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [31 x i8], align 1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ROHC11DRTPProfile19parse_pt_2_seq_bothERN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEERKS7_(ptr noundef nonnull align 8 dereferenceable(132) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) local_unnamed_addr #2 align 2 {
  %4 = alloca [4 x i8], align 1
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %9 = tail call noundef i64 @_ZN9__gnu_cxxmiIPhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  %10 = icmp slt i64 %9, 4
  br i1 %10, label %11, label %12

11:                                               ; preds = %3
  tail call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.31)
  br label %59

12:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %13 = tail call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %13, ptr %5, align 8
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %15 = load i8, ptr %14, align 1, !tbaa !5
  store i8 %15, ptr %4, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %16 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %16, ptr %6, align 8
  %17 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %4, i64 1
  store i8 %18, ptr %19, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %20 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %20, ptr %7, align 8
  %21 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %4, i64 2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %24 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %24, ptr %8, align 8
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %26 = load i8, ptr %25, align 1, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %4, i64 3
  store i8 %26, ptr %27, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %28 = and i8 %22, -128
  store i8 %28, ptr %23, align 1, !tbaa !5
  %29 = and i8 %22, 127
  %30 = getelementptr inbounds i8, ptr %4, i64 4
  %31 = call noundef zeroext i8 @_ZN4ROHC4CRC7EPKhS1_(ptr noundef nonnull %4, ptr noundef nonnull %30)
  %.not = icmp eq i8 %29, %31
  br i1 %.not, label %33, label %32

32:                                               ; preds = %12
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.32)
  call void @_ZN4ROHC8DProfile8SendNackEv(ptr noundef nonnull align 8 dereferenceable(92) %0)
  br label %58

33:                                               ; preds = %12
  %34 = load i8, ptr %4, align 1, !tbaa !5
  %35 = shl i8 %34, 4
  %36 = and i8 %35, 112
  %37 = load i8, ptr %19, align 1, !tbaa !5
  %38 = lshr i8 %37, 4
  %39 = or disjoint i8 %38, %36
  %40 = zext nneg i8 %39 to i16
  %41 = shl i8 %37, 1
  %42 = and i8 %41, 30
  %43 = lshr i8 %22, 7
  %44 = or disjoint i8 %42, %43
  %45 = load i8, ptr %27, align 1, !tbaa !5
  %46 = lshr i8 %45, 1
  %47 = getelementptr inbounds i8, ptr %0, i64 120
  %48 = load i16, ptr %47, align 8
  %49 = and i8 %45, 1
  %50 = zext nneg i8 %49 to i16
  %51 = shl nuw i16 %50, 15
  %52 = and i16 %48, 32767
  %53 = or disjoint i16 %51, %52
  store i16 %53, ptr %47, align 8
  %54 = getelementptr inbounds i8, ptr %0, i64 24
  %55 = call noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92) %0, i16 noundef zeroext %40, i32 noundef 7, ptr noundef nonnull align 2 dereferenceable(2) %54)
  %56 = getelementptr inbounds i8, ptr %0, i64 26
  call void @_ZNK4ROHC8DProfile16UpdateIPIDOffsetEhjRt(ptr noundef nonnull align 8 dereferenceable(92) %0, i8 noundef zeroext %44, i32 noundef 5, ptr noundef nonnull align 2 dereferenceable(2) %56)
  call void @_ZN4ROHC8DProfile20UpdateIPIDFromOffsetEv(ptr noundef nonnull align 8 dereferenceable(92) %0)
  %57 = zext nneg i8 %46 to i32
  call void @_ZN4ROHC11DRTPProfile15UpdateTimestampEjj(ptr noundef nonnull align 8 dereferenceable(132) %0, i32 noundef %57, i32 noundef 7)
  br label %58

58:                                               ; preds = %33, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %59

59:                                               ; preds = %58, %11
  %.1 = phi i1 [ false, %11 ], [ %.not, %58 ]
  ret i1 %.1
}

declare void @_ZN4ROHC5errorEPKcz(ptr noundef, ...) local_unnamed_addr #3

declare void @_ZN4ROHC8DProfile8SendNackEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #3

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

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

declare void @_ZN4ROHC8DProfile20UpdateIPIDFromOffsetEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #3

declare noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92), i16 noundef zeroext, i32 noundef, ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3

declare noundef zeroext i8 @_ZN4ROHC4CRC7EPKhS1_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4ROHC11DRTPProfile15UpdateTimestampEjj(ptr noundef nonnull align 8 dereferenceable(132), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare void @_ZNK4ROHC8DProfile16UpdateIPIDOffsetEhjRt(ptr noundef nonnull align 8 dereferenceable(92), i8 noundef zeroext, i32 noundef, ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3

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 = { 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 #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,TailCallElimPass