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

@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %26, i32 noundef 0) #7
  %28 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %27, ptr %28, align 8
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %30 = load i8, ptr %29, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  store i8 %30, ptr %8, align 1, !tbaa !9
  %31 = load i8, ptr %8, align 1, !tbaa !9
  %32 = zext i8 %31 to i32
  %33 = and i32 %32, 128
  %34 = icmp ne i32 0, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %25
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.5)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %171

36:                                               ; preds = %25
  %37 = load i8, ptr %8, align 1, !tbaa !9
  %38 = zext i8 %37 to i32
  %39 = ashr i32 %38, 5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.ROHC::global_control", ptr %40, i32 0, i32 1
  store i32 %39, ptr %41, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %42 = load i8, ptr %8, align 1, !tbaa !9
  %43 = zext i8 %42 to i32
  %44 = and i32 %43, 16
  %45 = icmp sgt i32 %44, 0
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %11, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  %47 = load i8, ptr %8, align 1, !tbaa !9
  %48 = zext i8 %47 to i32
  %49 = and i32 %48, 8
  %50 = icmp sgt i32 %49, 0
  %51 = zext i1 %50 to i8
  store i8 %51, ptr %12, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  %52 = load i8, ptr %8, align 1, !tbaa !9
  %53 = zext i8 %52 to i32
  %54 = and i32 %53, 4
  %55 = icmp sgt i32 %54, 0
  %56 = zext i1 %55 to i8
  store i8 %56, ptr %13, align 1, !tbaa !20
  %57 = load i8, ptr %8, align 1, !tbaa !9
  %58 = zext i8 %57 to i32
  %59 = ashr i32 %58, 1
  %60 = and i32 %59, 1
  %61 = trunc i32 %60 to i8
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.ROHC::global_control", ptr %62, i32 0, i32 10
  %64 = zext i8 %61 to i16
  %65 = load i16, ptr %63, align 4
  %66 = and i16 %64, 1
  %67 = shl i16 %66, 5
  %68 = and i16 %65, -33
  %69 = or i16 %68, %67
  store i16 %69, ptr %63, align 4
  %70 = load i8, ptr %8, align 1, !tbaa !9
  %71 = zext i8 %70 to i32
  %72 = and i32 %71, 1
  %73 = trunc i32 %72 to i8
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.ROHC::global_control", ptr %74, i32 0, i32 10
  %76 = zext i8 %73 to i16
  %77 = load i16, ptr %75, align 4
  %78 = and i16 %76, 1
  %79 = shl i16 %78, 4
  %80 = and i16 %77, -17
  %81 = or i16 %80, %79
  store i16 %81, ptr %75, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef 0) #7
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %86 = load i8, ptr %85, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  store i8 %86, ptr %14, align 1, !tbaa !9
  %87 = load i8, ptr %14, align 1, !tbaa !9
  %88 = zext i8 %87 to i32
  %89 = ashr i32 %88, 7
  %90 = trunc i32 %89 to i8
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.ROHC::global_control", ptr %91, i32 0, i32 10
  %93 = zext i8 %90 to i16
  %94 = load i16, ptr %92, align 4
  %95 = and i16 %93, 1
  %96 = shl i16 %95, 15
  %97 = and i16 %94, 32767
  %98 = or i16 %97, %96
  store i16 %98, ptr %92, align 4
  %99 = load i8, ptr %14, align 1, !tbaa !9
  %100 = zext i8 %99 to i32
  %101 = and i32 %100, 127
  %102 = trunc i32 %101 to i8
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.ROHC::global_control", ptr %103, i32 0, i32 10
  %105 = zext i8 %102 to i16
  %106 = load i16, ptr %104, align 4
  %107 = and i16 %105, 127
  %108 = shl i16 %107, 8
  %109 = and i16 %106, -32513
  %110 = or i16 %109, %108
  store i16 %110, ptr %104, align 4
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !21
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.ROHC::global_control", ptr %112, i32 0, i32 10
  %114 = getelementptr inbounds %"struct.ROHC::rtphdr", ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = call noundef zeroext i1 @_ZN4ROHC8GetValueItN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr %116, ptr noundef nonnull align 2 dereferenceable(2) %114)
  br i1 %117, label %119, label %118

118:                                              ; preds = %36
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.6)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %170

119:                                              ; preds = %36
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.ROHC::global_control", ptr %120, i32 0, i32 10
  %122 = getelementptr inbounds %"struct.ROHC::rtphdr", ptr %121, i32 0, i32 1
  %123 = load i16, ptr %122, align 2, !tbaa !22
  %124 = call noundef zeroext i16 @_ZN4ROHC10rohc_htonsEt(i16 noundef zeroext %123)
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.ROHC::global_control", ptr %125, i32 0, i32 0
  store i16 %124, ptr %126, align 4, !tbaa !23
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !21
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.ROHC::global_control", ptr %128, i32 0, i32 10
  %130 = getelementptr inbounds %"struct.ROHC::rtphdr", ptr %129, i32 0, i32 2
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = call noundef zeroext i1 @_ZN4ROHC8GetValueIjN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8) %127, ptr %132, ptr noundef nonnull align 4 dereferenceable(4) %130)
  br i1 %133, label %135, label %134

134:                                              ; preds = %119
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.7)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %170

135:                                              ; preds = %119
  %136 = load i8, ptr %12, align 1, !tbaa !20, !range !24, !noundef !25
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %147

138:                                              ; preds = %135
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !21
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.ROHC::global_control", ptr %140, i32 0, i32 3
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = call noundef zeroext i1 @_ZN4ROHC10SDVLDecodeIN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT_S9_Pj(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr %143, ptr noundef %141)
  br i1 %144, label %146, label %145

145:                                              ; preds = %138
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.8)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %170

146:                                              ; preds = %138
  br label %147

147:                                              ; preds = %146, %135
  %148 = load i8, ptr %13, align 1, !tbaa !20, !range !24, !noundef !25
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %159

150:                                              ; preds = %147
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %5, i64 8, i1 false), !tbaa.struct !21
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.ROHC::global_control", ptr %152, i32 0, i32 4
  %154 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8
  %156 = call noundef zeroext i1 @_ZN4ROHC10SDVLDecodeIN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT_S9_Pj(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr %155, ptr noundef %153)
  br i1 %156, label %158, label %157

157:                                              ; preds = %150
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef @.str.9)
  store i1 false, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %170

158:                                              ; preds = %150
  br label %159

159:                                              ; preds = %158, %147
  %160 = load i8, ptr %11, align 1, !tbaa !20, !range !24, !noundef !25
  %161 = trunc i8 %160 to i1
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  br label %169

163:                                              ; preds = %159
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.ROHC::global_control", ptr %164, i32 0, i32 10
  %166 = load i16, ptr %165, align 4
  %167 = and i16 %166, -16
  %168 = or i16 %167, 0
  store i16 %168, ptr %165, align 4
  br label %169

169:                                              ; preds = %163, %162
  store i1 true, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %170

170:                                              ; preds = %169, %157, %145, %134, %118
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %171

171:                                              ; preds = %170, %35
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  br label %172

172:                                              ; preds = %171, %24
  %173 = load i1, ptr %4, align 1
  ret i1 %173
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN4ROHC10rohc_htonsEt(i16 noundef zeroext) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4ROHC8GetValueIjN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPKhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(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_iteratorIPKhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4ROHC8GetValueItN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr noundef nonnull align 2 dereferenceable(2)) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { 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 #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !13, i64 4}
!11 = !{!"_ZTSN4ROHC14global_controlE", !12, i64 0, !13, i64 4, !14, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !16, i64 28, !17, i64 48, !18, i64 50, !19, i64 60}
!12 = !{!"short", !7, i64 0}
!13 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!14 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN4ROHC5iphdrE", !7, i64 0, !7, i64 0, !7, i64 1, !12, i64 2, !12, i64 4, !12, i64 6, !7, i64 8, !7, i64 9, !12, i64 10, !15, i64 12, !15, i64 16}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN4ROHC6udphdrE", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6}
!19 = !{!"_ZTSN4ROHC6rtphdrE", !7, i64 0, !7, i64 0, !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !12, i64 2, !15, i64 4, !15, i64 8}
!20 = !{!17, !17, i64 0}
!21 = !{i64 0, i64 8, !5}
!22 = !{!11, !12, i64 62}
!23 = !{!11, !12, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}


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

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

@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 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 uwtable
define dso_local noundef zeroext i1 @_ZN4ROHC11DRTPProfile17parse_rtp_dynamicERNS_14global_controlERN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEESA_(ptr noundef nonnull align 4 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr %2) local_unnamed_addr #1 align 2 {
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %2, ptr %4, align 8
  %7 = call noundef i64 @_ZN9__gnu_cxxmiIPKhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %1) #6
  %8 = icmp slt i64 %7, 1
  br i1 %8, label %9, label %10

9:                                                ; preds = %3
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.4)
  br label %65

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %11 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #6
  store ptr %11, ptr %5, align 8
  %12 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %13 = load i8, ptr %12, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %.not = icmp sgt i8 %13, -1
  br i1 %.not, label %15, label %14

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

15:                                               ; preds = %10
  %16 = zext nneg i8 %13 to i32
  %17 = lshr i32 %16, 5
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %17, ptr %18, align 4, !tbaa !8
  %19 = and i32 %16, 16
  %.not34 = icmp eq i32 %19, 0
  %20 = and i32 %16, 8
  %.not35 = icmp eq i32 %20, 0
  %21 = and i32 %16, 4
  %.not36 = icmp eq i32 %21, 0
  %22 = getelementptr inbounds i8, ptr %0, i64 60
  %23 = load i16, ptr %22, align 4
  %24 = shl i8 %13, 4
  %25 = and i16 %23, -49
  %26 = and i8 %24, 48
  %27 = zext nneg i8 %26 to i16
  %28 = or disjoint i16 %25, %27
  store i16 %28, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %29 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef 0) #6
  store ptr %29, ptr %6, align 8
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %31 = load i8, ptr %30, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %32 = lshr i8 %31, 7
  %33 = zext nneg i8 %32 to i16
  %34 = load i16, ptr %22, align 4
  %35 = shl nuw i16 %33, 15
  %36 = and i16 %34, 255
  %37 = or disjoint i16 %36, %35
  %38 = and i8 %31, 127
  %39 = zext nneg i8 %38 to i16
  %40 = shl nuw nsw i16 %39, 8
  %41 = or disjoint i16 %37, %40
  store i16 %41, ptr %22, align 4
  %.sroa.03.0.copyload = load ptr, ptr %4, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %0, i64 62
  %43 = call noundef zeroext i1 @_ZN4ROHC8GetValueItN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr %.sroa.03.0.copyload, ptr noundef nonnull align 2 dereferenceable(2) %42)
  br i1 %43, label %45, label %44

44:                                               ; preds = %15
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.6)
  br label %65

45:                                               ; preds = %15
  %46 = load i16, ptr %42, align 2, !tbaa !20
  %47 = call noundef zeroext i16 @_ZN4ROHC10rohc_htonsEt(i16 noundef zeroext %46)
  store i16 %47, ptr %0, align 4, !tbaa !21
  %.sroa.02.0.copyload = load ptr, ptr %4, align 8, !tbaa !18
  %48 = getelementptr inbounds i8, ptr %0, i64 64
  %49 = call noundef zeroext i1 @_ZN4ROHC8GetValueIjN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr %.sroa.02.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %48)
  br i1 %49, label %51, label %50

50:                                               ; preds = %45
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.7)
  br label %65

51:                                               ; preds = %45
  br i1 %.not35, label %56, label %52

52:                                               ; preds = %51
  %.sroa.01.0.copyload = load ptr, ptr %4, align 8, !tbaa !18
  %53 = getelementptr inbounds i8, ptr %0, i64 12
  %54 = call noundef zeroext i1 @_ZN4ROHC10SDVLDecodeIN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT_S9_Pj(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr %.sroa.01.0.copyload, ptr noundef nonnull %53)
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.8)
  br label %65

56:                                               ; preds = %52, %51
  br i1 %.not36, label %61, label %57

57:                                               ; preds = %56
  %.sroa.0.0.copyload = load ptr, ptr %4, align 8, !tbaa !18
  %58 = getelementptr inbounds i8, ptr %0, i64 16
  %59 = call noundef zeroext i1 @_ZN4ROHC10SDVLDecodeIN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT_S9_Pj(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr %.sroa.0.0.copyload, ptr noundef nonnull %58)
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  call void (ptr, ...) @_ZN4ROHC5errorEPKcz(ptr noundef nonnull @.str.9)
  br label %65

61:                                               ; preds = %57, %56
  br i1 %.not34, label %62, label %65

62:                                               ; preds = %61
  %63 = load i16, ptr %22, align 4
  %64 = and i16 %63, -16
  store i16 %64, ptr %22, align 4
  br label %65

65:                                               ; preds = %14, %62, %61, %60, %55, %50, %44, %9
  %.2 = phi i1 [ false, %9 ], [ false, %14 ], [ false, %60 ], [ false, %55 ], [ false, %50 ], [ false, %44 ], [ true, %61 ], [ true, %62 ]
  ret i1 %.2
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN4ROHC10rohc_htonsEt(i16 noundef zeroext) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPKhSt6vectorIhSaIhEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(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_iteratorIPKhSt6vectorIhSaIhEEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4ROHC8GetValueItN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEEEEbRT0_S9_RT_(ptr noundef nonnull align 8 dereferenceable(8), ptr, ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #4

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

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 = { "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 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 4}
!9 = !{!"_ZTSN4ROHC14global_controlE", !10, i64 0, !11, i64 4, !12, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !14, i64 28, !15, i64 48, !16, i64 50, !17, i64 60}
!10 = !{!"short", !6, i64 0}
!11 = !{!"_ZTSN4ROHC12Reordering_tE", !6, i64 0}
!12 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !6, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{!"_ZTSN4ROHC5iphdrE", !6, i64 0, !6, i64 0, !6, i64 1, !10, i64 2, !10, i64 4, !10, i64 6, !6, i64 8, !6, i64 9, !10, i64 10, !13, i64 12, !13, i64 16}
!15 = !{!"bool", !6, i64 0}
!16 = !{!"_ZTSN4ROHC6udphdrE", !10, i64 0, !10, i64 2, !10, i64 4, !10, i64 6}
!17 = !{!"_ZTSN4ROHC6rtphdrE", !6, i64 0, !6, i64 0, !6, i64 0, !6, i64 0, !6, i64 1, !6, i64 1, !10, i64 2, !13, i64 4, !13, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !6, i64 0}
!20 = !{!9, !10, i64 62}
!21 = !{!9, !10, i64 0}


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