; LLVM IR from NVIDIA/TensorRT :: plugin/proposalPlugin/proposalPlugin.ll (ZNK8nvinfer16plugin14ProposalPlugin9serializeEPv)

; 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.nvinfer1::plugin::ProposalPlugin" = type { %"class.nvinfer1::IPluginV2Ext", %"class.std::__cxx11::basic_string", i64, i64, i64, i64, float, i64, float, float, i64, i64, %"class.std::vector.3", i64, %"class.std::vector.3", i64 }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8nvinfer16plugin14ProposalPlugin9serializeEPv(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %14, label %12

12:                                               ; preds = %2
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.14, ptr noundef @.str.2, i32 noundef 368)
          to label %13 unwind label %82

13:                                               ; preds = %12
  br label %14

14:                                               ; preds = %13, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %15, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %16, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 2
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %18 unwind label %82

18:                                               ; preds = %14
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 3
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %20 unwind label %82

20:                                               ; preds = %18
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 4
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %22 unwind label %82

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 5
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %24 unwind label %82

24:                                               ; preds = %22
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 7
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %26 unwind label %82

26:                                               ; preds = %24
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 10
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %28 unwind label %82

28:                                               ; preds = %26
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 11
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %30 unwind label %82

30:                                               ; preds = %28
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 13
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %32 unwind label %82

32:                                               ; preds = %30
  %33 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 15
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %34 unwind label %82

34:                                               ; preds = %32
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 6
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %36 unwind label %82

36:                                               ; preds = %34
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 8
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %38 unwind label %82

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 9
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %40 unwind label %82

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %52, %40
  %42 = load i64, ptr %7, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 13
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = icmp ult i64 %42, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %55

47:                                               ; preds = %41
  %48 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 12
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #5
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %51 unwind label %82

51:                                               ; preds = %47
  br label %52

52:                                               ; preds = %51
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = add i64 %53, 1
  store i64 %54, ptr %7, align 8, !tbaa !9
  br label %41, !llvm.loop !22

55:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %67, %55
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 15
  %59 = load i64, ptr %58, align 8, !tbaa !24
  %60 = icmp ult i64 %57, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %70

62:                                               ; preds = %56
  %63 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %9, i32 0, i32 14
  %64 = load i64, ptr %8, align 8, !tbaa !9
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64) #5
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %66 unwind label %82

66:                                               ; preds = %62
  br label %67

67:                                               ; preds = %66
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = add i64 %68, 1
  store i64 %69, ptr %8, align 8, !tbaa !9
  br label %56, !llvm.loop !25

70:                                               ; preds = %61
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !26
  %74 = getelementptr inbounds ptr, ptr %73, i64 11
  %75 = load ptr, ptr %74, align 8
  %76 = call noundef i64 %75(ptr noundef nonnull align 8 dereferenceable(176) %9) #5
  %77 = getelementptr inbounds i8, ptr %72, i64 %76
  %78 = icmp eq ptr %71, %77
  br i1 %78, label %81, label %79

79:                                               ; preds = %70
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.15, ptr noundef @.str.2, i32 noundef 394)
          to label %80 unwind label %82

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

82:                                               ; preds = %79, %62, %47, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %14, %12
  %83 = landingpad { ptr, i32 }
          catch ptr null
  %84 = extractvalue { ptr, i32 } %83, 0
  call void @__clang_call_terminate(ptr %84) #6
  unreachable
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 136}
!12 = !{!"_ZTSN8nvinfer16plugin14ProposalPluginE", !13, i64 0, !15, i64 8, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !17, i64 72, !10, i64 80, !17, i64 88, !17, i64 92, !10, i64 96, !10, i64 104, !18, i64 112, !10, i64 136, !18, i64 144, !10, i64 168}
!13 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !10, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !10, i64 168}
!25 = distinct !{!25, !23}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, 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"

@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8nvinfer16plugin14ProposalPlugin9serializeEPv(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %2
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.2, i32 noundef 368)
          to label %5 unwind label %.loopexit.split-lp.loopexit.split-lp

5:                                                ; preds = %4, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr %1, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %7 unwind label %.loopexit.split-lp.loopexit.split-lp

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %9 unwind label %.loopexit.split-lp.loopexit.split-lp

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %11 unwind label %.loopexit.split-lp.loopexit.split-lp

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %13 unwind label %.loopexit.split-lp.loopexit.split-lp

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %15 unwind label %.loopexit.split-lp.loopexit.split-lp

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %17 unwind label %.loopexit.split-lp.loopexit.split-lp

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 104
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %19 unwind label %.loopexit.split-lp.loopexit.split-lp

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %21 unwind label %.loopexit.split-lp.loopexit.split-lp

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %0, i64 168
  invoke void @_ZN8nvinfer16plugin13writeToBufferImhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %23 unwind label %.loopexit.split-lp.loopexit.split-lp

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %25 unwind label %.loopexit.split-lp.loopexit.split-lp

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 88
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %27 unwind label %.loopexit.split-lp.loopexit.split-lp

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 92
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %.preheader11 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader11:                                     ; preds = %27
  %29 = load i64, ptr %20, align 8, !tbaa !9
  %.not18 = icmp eq i64 %29, 0
  br i1 %.not18, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader11
  %30 = getelementptr inbounds i8, ptr %0, i64 112
  br label %33

.preheader:                                       ; preds = %35, %.preheader11
  %31 = load i64, ptr %22, align 8, !tbaa !21
  %.not19 = icmp eq i64 %31, 0
  br i1 %.not19, label %._crit_edge, label %.lr.ph17

.lr.ph17:                                         ; preds = %.preheader
  %32 = getelementptr inbounds i8, ptr %0, i64 144
  br label %46

33:                                               ; preds = %.lr.ph, %35
  %.01015 = phi i64 [ 0, %.lr.ph ], [ %36, %35 ]
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %.01015) #5
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %35 unwind label %.loopexit.split-lp.loopexit

35:                                               ; preds = %33
  %36 = add nuw i64 %.01015, 1
  %37 = load i64, ptr %20, align 8, !tbaa !9
  %38 = icmp ult i64 %36, %37
  br i1 %38, label %33, label %.preheader, !llvm.loop !22

._crit_edge:                                      ; preds = %48, %.preheader
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = load ptr, ptr %0, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %40, i64 88
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef i64 %42(ptr noundef nonnull align 8 dereferenceable(176) %0) #5
  %44 = getelementptr inbounds i8, ptr %1, i64 %43
  %45 = icmp eq ptr %39, %44
  br i1 %45, label %53, label %52

46:                                               ; preds = %.lr.ph17, %48
  %.016 = phi i64 [ 0, %.lr.ph17 ], [ %49, %48 ]
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %.016) #5
  invoke void @_ZN8nvinfer16plugin13writeToBufferIfhEEvRPT0_RKT_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %48 unwind label %.loopexit

48:                                               ; preds = %46
  %49 = add nuw i64 %.016, 1
  %50 = load i64, ptr %22, align 8, !tbaa !21
  %51 = icmp ult i64 %49, %50
  br i1 %51, label %46, label %._crit_edge, !llvm.loop !26

52:                                               ; preds = %._crit_edge
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2, i32 noundef 394)
          to label %53 unwind label %.loopexit.split-lp.loopexit.split-lp

53:                                               ; preds = %52, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void

.loopexit:                                        ; preds = %46
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %33
  %lpad.loopexit12 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %52, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5, %4
  %lpad.loopexit.split-lp13 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit12, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp13, %.loopexit.split-lp.loopexit.split-lp ]
  %54 = extractvalue { ptr, i32 } %lpad.phi, 0
  call void @__clang_call_terminate(ptr %54) #6
  unreachable
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 136}
!10 = !{!"_ZTSN8nvinfer16plugin14ProposalPluginE", !11, i64 0, !13, i64 8, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !16, i64 72, !15, i64 80, !16, i64 88, !16, i64 92, !15, i64 96, !15, i64 104, !17, i64 112, !15, i64 136, !17, i64 144, !15, i64 168}
!11 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!10, !15, i64 168}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = distinct !{!26, !23}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass