; LLVM IR from Columbitech/rohc :: src/cudp_profile.ll (ZN4ROHC11CUDPProfile16create_co_commonEPKNS_5iphdrERSt6vectorIhSaIhEE)

; 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.5" = type { ptr }
%"class.__gnu_cxx::__normal_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 }

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

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

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

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

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

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

declare void @_ZN4ROHC8CProfile19IncreasePacketCountENS_10PacketTypeE(ptr noundef nonnull align 8 dereferenceable(328), i32 noundef) #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ROHC11CUDPProfile16create_co_commonEPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(333) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i64, align 8
  %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 i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_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
  %22 = load ptr, ptr %4, align 8
  call void @_ZN4ROHC8CProfile19IncreasePacketCountENS_10PacketTypeE(ptr noundef nonnull align 8 dereferenceable(328) %22, i32 noundef 1)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 9)
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 -6, ptr %7, align 1, !tbaa !9
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 1, ptr %8, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  %25 = getelementptr inbounds %"class.ROHC::CProfile", ptr %22, i32 0, i32 15
  %26 = load i32, ptr %25, align 4, !tbaa !12
  %27 = icmp sle i32 %26, 1
  br i1 %27, label %28, label %31

28:                                               ; preds = %3
  %29 = call noundef i32 @_ZNK4ROHC8CProfile15IpIdOffsetWidthEv(ptr noundef nonnull align 8 dereferenceable(328) %22)
  %30 = icmp ugt i32 %29, 8
  br label %31

31:                                               ; preds = %28, %3
  %32 = phi i1 [ false, %3 ], [ %30, %28 ]
  %33 = zext i1 %32 to i8
  store i8 %33, ptr %9, align 1, !tbaa !26
  %34 = load i8, ptr %9, align 1, !tbaa !26, !range !27, !noundef !28
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %38

36:                                               ; preds = %31
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 -128, ptr %10, align 1, !tbaa !9
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %40

38:                                               ; preds = %31
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %40

40:                                               ; preds = %38, %36
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZNK4ROHC8CProfile9DFChangedEPKNS_5iphdrE(ptr noundef nonnull align 8 dereferenceable(328) %22, ptr noundef %41)
  %43 = zext i1 %42 to i8
  store i8 %43, ptr %13, align 1, !tbaa !26
  %44 = load i8, ptr %13, align 1, !tbaa !26, !range !27, !noundef !28
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %51

46:                                               ; preds = %40
  %47 = load i8, ptr %12, align 1, !tbaa !9
  %48 = zext i8 %47 to i32
  %49 = or i32 %48, 128
  %50 = trunc i32 %49 to i8
  store i8 %50, ptr %12, align 1, !tbaa !9
  br label %51

51:                                               ; preds = %46, %40
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZNK4ROHC8CProfile10TTLChangedEPKNS_5iphdrE(ptr noundef nonnull align 8 dereferenceable(328) %22, ptr noundef %52)
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %14, align 1, !tbaa !26
  %55 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %56 = trunc i8 %55 to i1
  br i1 %56, label %57, label %62

57:                                               ; preds = %51
  %58 = load i8, ptr %12, align 1, !tbaa !9
  %59 = zext i8 %58 to i32
  %60 = or i32 %59, 64
  %61 = trunc i32 %60 to i8
  store i8 %61, ptr %12, align 1, !tbaa !9
  br label %62

62:                                               ; preds = %57, %51
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZNK4ROHC8CProfile10TOSChangedEPKNS_5iphdrE(ptr noundef nonnull align 8 dereferenceable(328) %22, ptr noundef %63)
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %15, align 1, !tbaa !26
  %66 = load i8, ptr %15, align 1, !tbaa !26, !range !27, !noundef !28
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %73

68:                                               ; preds = %62
  %69 = load i8, ptr %12, align 1, !tbaa !9
  %70 = zext i8 %69 to i32
  %71 = or i32 %70, 32
  %72 = trunc i32 %71 to i8
  store i8 %72, ptr %12, align 1, !tbaa !9
  br label %73

73:                                               ; preds = %68, %62
  %74 = getelementptr inbounds %"class.ROHC::CProfile", ptr %22, i32 0, i32 14
  %75 = load i32, ptr %74, align 8, !tbaa !29
  %76 = and i32 %75, 3
  %77 = shl i32 %76, 3
  %78 = trunc i32 %77 to i8
  %79 = zext i8 %78 to i32
  %80 = load i8, ptr %12, align 1, !tbaa !9
  %81 = zext i8 %80 to i32
  %82 = or i32 %81, %79
  %83 = trunc i32 %82 to i8
  store i8 %83, ptr %12, align 1, !tbaa !9
  %84 = call noundef zeroext i8 @_ZNK4ROHC11CUDPProfile12control_crc3Ev(ptr noundef nonnull align 8 dereferenceable(333) %22)
  %85 = zext i8 %84 to i32
  %86 = and i32 %85, 7
  %87 = trunc i32 %86 to i8
  %88 = zext i8 %87 to i32
  %89 = load i8, ptr %12, align 1, !tbaa !9
  %90 = zext i8 %89 to i32
  %91 = or i32 %90, %88
  %92 = trunc i32 %91 to i8
  store i8 %92, ptr %12, align 1, !tbaa !9
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 1 dereferenceable(1) %12)
  %94 = load i8, ptr %13, align 1, !tbaa !26, !range !27, !noundef !28
  %95 = trunc i8 %94 to i1
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4ROHC11CUDPProfile23profile_2_3_4_flags_encEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(333) %22, i1 noundef zeroext %95, ptr noundef %96, ptr noundef nonnull align 8 dereferenceable(24) %97)
  %98 = load i8, ptr %15, align 1, !tbaa !26, !range !27, !noundef !28
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %104

100:                                              ; preds = %73
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.ROHC::iphdr", ptr %102, i32 0, i32 5
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef nonnull align 1 dereferenceable(1) %103)
  br label %104

104:                                              ; preds = %100, %73
  %105 = load i8, ptr %14, align 1, !tbaa !26, !range !27, !noundef !28
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %111

107:                                              ; preds = %104
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.ROHC::iphdr", ptr %109, i32 0, i32 1
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 1 dereferenceable(1) %110)
  br label %111

111:                                              ; preds = %107, %104
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  %113 = getelementptr inbounds %"class.ROHC::CProfile", ptr %22, i32 0, i32 12
  %114 = load i16, ptr %113, align 8, !tbaa !30
  %115 = trunc i16 %114 to i8
  store i8 %115, ptr %16, align 1, !tbaa !9
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 1 dereferenceable(1) %16)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  %116 = load i8, ptr %9, align 1, !tbaa !26, !range !27, !noundef !28
  %117 = trunc i8 %116 to i1
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4ROHC8CProfile25ip_id_sequential_variableEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(328) %22, i1 noundef zeroext %117, ptr noundef %118, ptr noundef nonnull align 8 dereferenceable(24) %119)
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #6
  %122 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %121, ptr %122, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = call ptr @_ZNSt6vectorIhSaIhEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %123) #6
  %125 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %124, ptr %125, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %18, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %20, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  %130 = call noundef zeroext i8 @_ZN4ROHC4CRC7EN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEES7_(ptr %127, ptr %129)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  store i8 %130, ptr %17, align 1, !tbaa !9
  %131 = load i8, ptr %17, align 1, !tbaa !9
  %132 = zext i8 %131 to i32
  %133 = and i32 %132, 127
  %134 = trunc i32 %133 to i8
  %135 = zext i8 %134 to i32
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef 1) #6
  %138 = load i8, ptr %137, align 1, !tbaa !9
  %139 = zext i8 %138 to i32
  %140 = or i32 %139, %135
  %141 = trunc i32 %140 to i8
  store i8 %141, ptr %137, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4ROHC8CProfile15IpIdOffsetWidthEv(ptr noundef nonnull align 8 dereferenceable(328)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK4ROHC11CUDPProfile12control_crc3Ev(ptr noundef nonnull align 8 dereferenceable(333)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4ROHC11CUDPProfile23profile_2_3_4_flags_encEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(333), i1 noundef zeroext, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

declare void @_ZN4ROHC8CProfile25ip_id_sequential_variableEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(328), i1 noundef zeroext, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3

declare noundef zeroext i8 @_ZN4ROHC4CRC7EN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEES7_(ptr, ptr) #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 = { 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 = !{!"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 = !{!"long", !7, i64 0}
!12 = !{!13, !22, i64 140}
!13 = !{!"_ZTSN4ROHC8CProfileE", !6, i64 8, !14, i64 16, !11, i64 24, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !11, i64 48, !11, i64 56, !15, i64 64, !15, i64 68, !14, i64 72, !16, i64 80, !21, i64 136, !22, i64 140, !23, i64 144, !24, i64 148, !15, i64 152, !15, i64 156, !25, i64 160, !14, i64 180, !14, i64 182, !16, i64 184, !7, i64 240}
!14 = !{!"short", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN4ROHC4WLSBIiEE", !17, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !15, i64 48, !15, i64 52}
!17 = !{!"_ZTSSt6vectorIN4ROHC4WLSBIiE3LSBESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4ROHC4WLSBIiE3LSBESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSN4ROHC12Reordering_tE", !7, i64 0}
!22 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN4ROHC8CProfileUt_E", !7, i64 0}
!25 = !{!"_ZTSN4ROHC5iphdrE", !7, i64 0, !7, i64 0, !7, i64 1, !14, i64 2, !14, i64 4, !14, i64 6, !7, i64 8, !7, i64 9, !14, i64 10, !15, i64 12, !15, i64 16}
!26 = !{!23, !23, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!13, !21, i64 136}
!30 = !{!13, !14, i64 72}


; 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.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

; 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 #2 align 2

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

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

declare void @_ZN4ROHC8CProfile19IncreasePacketCountENS_10PacketTypeE(ptr noundef nonnull align 8 dereferenceable(328), i32 noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ROHC11CUDPProfile16create_co_commonEPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(333) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #2 align 2 {
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  tail call void @_ZN4ROHC8CProfile19IncreasePacketCountENS_10PacketTypeE(ptr noundef nonnull align 8 dereferenceable(328) %0, i32 noundef 1)
  tail call void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 9)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  store i8 -6, ptr %4, align 1, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 140
  %14 = load i32, ptr %13, align 4, !tbaa !8
  %15 = icmp slt i32 %14, 2
  br i1 %15, label %16, label %.thread

16:                                               ; preds = %3
  %17 = call noundef i32 @_ZNK4ROHC8CProfile15IpIdOffsetWidthEv(ptr noundef nonnull align 8 dereferenceable(328) %0)
  %18 = icmp ugt i32 %17, 8
  br i1 %18, label %19, label %.thread

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i8 -128, ptr %5, align 1, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %20

.thread:                                          ; preds = %3, %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  store i8 0, ptr %6, align 1, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %20

20:                                               ; preds = %.thread, %19
  %21 = phi i1 [ false, %.thread ], [ true, %19 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  %22 = call noundef zeroext i1 @_ZNK4ROHC8CProfile9DFChangedEPKNS_5iphdrE(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %1)
  %spec.select = select i1 %22, i8 -128, i8 0
  %23 = call noundef zeroext i1 @_ZNK4ROHC8CProfile10TTLChangedEPKNS_5iphdrE(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %1)
  %24 = or disjoint i8 %spec.select, 64
  %25 = select i1 %23, i8 %24, i8 %spec.select
  %26 = call noundef zeroext i1 @_ZNK4ROHC8CProfile10TOSChangedEPKNS_5iphdrE(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %1)
  %27 = or disjoint i8 %25, 32
  %28 = select i1 %26, i8 %27, i8 %25
  %29 = getelementptr inbounds i8, ptr %0, i64 136
  %30 = load i32, ptr %29, align 8, !tbaa !24
  %.tr = trunc i32 %30 to i8
  %31 = shl i8 %.tr, 3
  %32 = and i8 %31, 24
  %33 = or disjoint i8 %32, %28
  %34 = call noundef zeroext i8 @_ZNK4ROHC11CUDPProfile12control_crc3Ev(ptr noundef nonnull align 8 dereferenceable(333) %0)
  %35 = and i8 %34, 7
  %36 = or i8 %33, %35
  store i8 %36, ptr %7, align 1, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %7)
  call void @_ZN4ROHC11CUDPProfile23profile_2_3_4_flags_encEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(333) %0, i1 noundef zeroext %22, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  br i1 %26, label %37, label %39

37:                                               ; preds = %20
  %38 = getelementptr inbounds i8, ptr %1, i64 8
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %38)
  br label %39

39:                                               ; preds = %37, %20
  br i1 %23, label %40, label %42

40:                                               ; preds = %39
  %41 = getelementptr inbounds i8, ptr %1, i64 1
  call void @_ZNSt6vectorIhSaIhEE9push_backERKh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %41)
  br label %42

42:                                               ; preds = %40, %39
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  %43 = getelementptr inbounds i8, ptr %0, i64 72
  %44 = load i16, ptr %43, align 8, !tbaa !25
  %45 = trunc i16 %44 to i8
  store i8 %45, ptr %8, align 1, !tbaa !5
  call void @_ZNSt6vectorIhSaIhEE9push_backEOh(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @_ZN4ROHC8CProfile25ip_id_sequential_variableEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(328) %0, i1 noundef zeroext %21, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %46 = call ptr @_ZNSt6vectorIhSaIhEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %46, ptr %10, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %47 = call ptr @_ZNSt6vectorIhSaIhEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store ptr %47, ptr %12, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEC2IPhvEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %48 = load ptr, ptr %9, align 8
  %49 = load ptr, ptr %11, align 8
  %50 = call noundef zeroext i8 @_ZN4ROHC4CRC7EN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEES7_(ptr %48, ptr %49)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %51 = and i8 %50, 127
  %52 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #6
  %53 = load i8, ptr %52, align 1, !tbaa !5
  %54 = or i8 %53, %51
  store i8 %54, ptr %52, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4ROHC8CProfile15IpIdOffsetWidthEv(ptr noundef nonnull align 8 dereferenceable(328)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZNK4ROHC11CUDPProfile12control_crc3Ev(ptr noundef nonnull align 8 dereferenceable(333)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4ROHC11CUDPProfile23profile_2_3_4_flags_encEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(333), i1 noundef zeroext, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

declare void @_ZN4ROHC8CProfile25ip_id_sequential_variableEbPKNS_5iphdrERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(328), i1 noundef zeroext, ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare noundef zeroext i8 @_ZN4ROHC4CRC7EN9__gnu_cxx17__normal_iteratorIPKhSt6vectorIhSaIhEEEES7_(ptr, ptr) 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 = { 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, !20, i64 140}
!9 = !{!"_ZTSN4ROHC8CProfileE", !10, 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, !6, i64 240}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"short", !6, i64 0}
!12 = !{!"long", !6, i64 0}
!13 = !{!"int", !6, 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", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"_ZTSN4ROHC12Reordering_tE", !6, i64 0}
!20 = !{!"_ZTSN4ROHC15IPIDBehaviour_tE", !6, i64 0}
!21 = !{!"bool", !6, i64 0}
!22 = !{!"_ZTSN4ROHC8CProfileUt_E", !6, i64 0}
!23 = !{!"_ZTSN4ROHC5iphdrE", !6, i64 0, !6, i64 0, !6, i64 1, !11, i64 2, !11, i64 4, !11, i64 6, !6, i64 8, !6, i64 9, !11, i64 10, !13, i64 12, !13, i64 16}
!24 = !{!9, !19, i64 136}
!25 = !{!9, !11, i64 72}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass