; 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::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] }>
%"struct.ROHC::iphdr" = type { i8, i8, i16, i16, i16, i8, i8, i16, i32, i32 }

@.str.37 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 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

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

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

; 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

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

29:                                               ; preds = %5
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.37)
  store i1 false, ptr %6, align 1
  br label %126

30:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %31 = load ptr, ptr %8, 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 %13, 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) %13) #5
  %35 = load i8, ptr %34, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  store i8 %35, ptr %12, align 1, !tbaa !9
  %36 = load i8, ptr %12, align 1, !tbaa !9
  %37 = zext i8 %36 to i32
  %38 = and i32 %37, 224
  %39 = icmp eq i32 %38, 192
  br i1 %39, label %40, label %73

40:                                               ; preds = %30
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call noundef i64 @_ZN9__gnu_cxxmiIPhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #5
  %44 = icmp slt i64 %43, 2
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.37)
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %125

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %47, i32 noundef 0) #5
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  %51 = load i8, ptr %50, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  store i8 %51, ptr %15, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef 0) #5
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %18, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  %56 = load i8, ptr %55, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  store i8 %56, ptr %17, align 1, !tbaa !9
  %57 = load i8, ptr %15, align 1, !tbaa !9
  %58 = zext i8 %57 to i32
  %59 = shl i32 %58, 8
  %60 = load i8, ptr %17, align 1, !tbaa !9
  %61 = zext i8 %60 to i32
  %62 = add nsw i32 %59, %61
  %63 = trunc i32 %62 to i16
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  store i16 %63, ptr %64, align 2, !tbaa !10
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load i16, ptr %65, align 2, !tbaa !10
  %67 = zext i16 %66 to i32
  %68 = getelementptr inbounds %"class.ROHC::DProfile", ptr %24, i32 0, i32 5
  %69 = load i16, ptr %68, align 8, !tbaa !12
  %70 = zext i16 %69 to i32
  %71 = sub nsw i32 %67, %70
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %71, ptr %72, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %124

73:                                               ; preds = %30
  %74 = load i8, ptr %12, align 1, !tbaa !9
  %75 = zext i8 %74 to i32
  %76 = and i32 %75, 192
  %77 = icmp eq i32 %76, 128
  br i1 %77, label %78, label %106

78:                                               ; preds = %73
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call noundef i64 @_ZN9__gnu_cxxmiIPhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 8 dereferenceable(8) %80) #5
  %82 = icmp slt i64 %81, 1
  br i1 %82, label %83, label %84

83:                                               ; preds = %78
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.37)
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %125

84:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %85 = load i8, ptr %12, align 1, !tbaa !9
  %86 = zext i8 %85 to i32
  %87 = and i32 %86, 63
  %88 = trunc i32 %87 to i8
  store i8 %88, ptr %19, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef 0) #5
  %91 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %21, i32 0, i32 0
  store ptr %90, ptr %91, align 8
  %92 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %93 = load i8, ptr %92, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  store i8 %93, ptr %20, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #5
  %94 = load i8, ptr %19, align 1, !tbaa !9
  %95 = zext i8 %94 to i32
  %96 = shl i32 %95, 8
  %97 = load i8, ptr %20, align 1, !tbaa !9
  %98 = zext i8 %97 to i32
  %99 = add nsw i32 %96, %98
  %100 = trunc i32 %99 to i16
  store i16 %100, ptr %22, align 2, !tbaa !10
  %101 = load i16, ptr %22, align 2, !tbaa !10
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = call noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92) %24, i16 noundef zeroext %101, i32 noundef 14, ptr noundef nonnull align 2 dereferenceable(2) %102)
  %104 = zext i16 %103 to i32
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %104, ptr %105, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  br label %123

106:                                              ; preds = %73
  %107 = load i8, ptr %12, align 1, !tbaa !9
  %108 = zext i8 %107 to i32
  %109 = and i32 %108, 128
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %121

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #5
  %112 = load i8, ptr %12, align 1, !tbaa !9
  %113 = zext i8 %112 to i32
  %114 = and i32 %113, 127
  %115 = trunc i32 %114 to i16
  store i16 %115, ptr %23, align 2, !tbaa !10
  %116 = load i16, ptr %23, align 2, !tbaa !10
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = call noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92) %24, i16 noundef zeroext %116, i32 noundef 7, ptr noundef nonnull align 2 dereferenceable(2) %117)
  %119 = zext i16 %118 to i32
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %119, ptr %120, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #5
  br label %122

121:                                              ; preds = %106
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.38)
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %125

122:                                              ; preds = %111
  br label %123

123:                                              ; preds = %122, %84
  br label %124

124:                                              ; preds = %123, %46
  store i1 true, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %125

125:                                              ; preds = %124, %121, %83, %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %126

126:                                              ; preds = %125, %29
  %127 = load i1, ptr %6, align 1
  ret i1 %127
}

declare noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92), i16 noundef zeroext, i32 noundef, ptr noundef nonnull align 2 dereferenceable(2)) #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 = { "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 = { 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 #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}
!12 = !{!13, !11, i64 24}
!13 = !{!"_ZTSN4ROHC8DProfileE", !6, i64 8, !11, i64 16, !14, i64 20, !11, i64 24, !11, i64 26, !15, i64 28, !16, i64 32, !16, i64 36, !17, i64 40, !17, i64 48, !18, i64 56, !19, i64 60, !17, i64 80, !20, i64 88}
!14 = !{!"_ZTSN4ROHC8DProfileUt_E", !7, i64 0}
!15 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_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, !16, i64 12, !16, i64 16}
!20 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!21 = !{!16, !16, 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.37 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [28 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

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

; 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 #3

; 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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4ROHC11DRTPProfile17parse_sdvl_sn_lsbERN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEERKS7_RtRj(ptr noundef nonnull align 8 dereferenceable(132) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 2 dereferenceable(2) %3, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %4) local_unnamed_addr #4 align 2 {
  %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 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %10 = 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
  %11 = icmp slt i64 %10, 1
  br i1 %11, label %12, label %13

12:                                               ; preds = %5
  tail call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.37)
  br label %65

13:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %14 = tail call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %14, ptr %6, align 8
  %15 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %16 = load i8, ptr %15, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %17 = zext i8 %16 to i32
  %18 = and i32 %17, 224
  %19 = icmp eq i32 %18, 192
  br i1 %19, label %20, label %40

20:                                               ; preds = %13
  %21 = 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
  %22 = icmp slt i64 %21, 2
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.37)
  br label %65

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %25 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %25, ptr %7, align 8
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %27 = load i8, ptr %26, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %28 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %28, ptr %8, align 8
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %30 = load i8, ptr %29, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %31 = zext i8 %27 to i16
  %32 = shl nuw i16 %31, 8
  %33 = zext i8 %30 to i16
  %34 = or disjoint i16 %32, %33
  store i16 %34, ptr %3, align 2, !tbaa !8
  %35 = zext i16 %34 to i32
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = load i16, ptr %36, align 8, !tbaa !10
  %38 = zext i16 %37 to i32
  %39 = sub nsw i32 %35, %38
  store i32 %39, ptr %4, align 4, !tbaa !20
  br label %65

40:                                               ; preds = %13
  %41 = and i32 %17, 192
  %42 = icmp eq i32 %41, 128
  br i1 %42, label %43, label %58

43:                                               ; preds = %40
  %44 = 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
  %45 = icmp slt i64 %44, 1
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.37)
  br label %65

47:                                               ; preds = %43
  %48 = and i8 %16, 63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %49 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #5
  store ptr %49, ptr %9, align 8
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %51 = load i8, ptr %50, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %52 = zext nneg i8 %48 to i16
  %53 = shl nuw nsw i16 %52, 8
  %54 = zext i8 %51 to i16
  %55 = or disjoint i16 %53, %54
  %56 = call noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92) %0, i16 noundef zeroext %55, i32 noundef 14, ptr noundef nonnull align 2 dereferenceable(2) %3)
  %57 = zext i16 %56 to i32
  store i32 %57, ptr %4, align 4, !tbaa !20
  br label %65

58:                                               ; preds = %40
  %59 = icmp sgt i8 %16, -1
  br i1 %59, label %60, label %64

60:                                               ; preds = %58
  %61 = zext nneg i8 %16 to i16
  %62 = call noundef zeroext i16 @_ZNK4ROHC8DProfile9UpdateMSNEtjRt(ptr noundef nonnull align 8 dereferenceable(92) %0, i16 noundef zeroext %61, i32 noundef 7, ptr noundef nonnull align 2 dereferenceable(2) %3)
  %63 = zext i16 %62 to i32
  store i32 %63, ptr %4, align 4, !tbaa !20
  br label %65

64:                                               ; preds = %58
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.38)
  br label %65

65:                                               ; preds = %23, %46, %64, %47, %60, %24, %12
  %.1 = phi i1 [ false, %12 ], [ false, %23 ], [ false, %46 ], [ false, %64 ], [ true, %47 ], [ true, %60 ], [ true, %24 ]
  ret i1 %.1
}

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 #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 = { "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 = { 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 #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"}
!8 = !{!9, !9, i64 0}
!9 = !{!"short", !6, i64 0}
!10 = !{!11, !9, i64 24}
!11 = !{!"_ZTSN4ROHC8DProfileE", !12, i64 8, !9, i64 16, !13, i64 20, !9, i64 24, !9, i64 26, !14, i64 28, !15, i64 32, !15, i64 36, !16, i64 40, !16, i64 48, !17, i64 56, !18, i64 60, !16, i64 80, !19, i64 88}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"_ZTSN4ROHC8DProfileUt_E", !6, i64 0}
!14 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !6, i64 0}
!15 = !{!"int", !6, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = !{!"bool", !6, i64 0}
!18 = !{!"_ZTSN4ROHC5iphdrE", !6, i64 0, !6, i64 0, !6, i64 1, !9, i64 2, !9, i64 4, !9, i64 6, !6, i64 8, !6, i64 9, !9, i64 10, !15, i64 12, !15, i64 16}
!19 = !{!"_ZTSN4ROHC12Reordering_tE", !6, i64 0}
!20 = !{!15, !15, i64 0}


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