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

; 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"

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::ProposalDynamicPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"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::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"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
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin21ProposalDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [88 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

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

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

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

declare noundef i32 @_ZN8nvinfer16plugin21proposalInference_gpuEP11CUstream_stPKvS4_iiiiiiiPfiS5_ififfPvS6_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, float noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin21ProposalDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %22 = load ptr, ptr %9, align 8
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %34

25:                                               ; preds = %7
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %34

28:                                               ; preds = %25
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %34

31:                                               ; preds = %28
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %40, label %34

34:                                               ; preds = %31, %28, %25, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin21ProposalDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 338, i32 noundef 0, ptr noundef @.str.13) #7
          to label %35 unwind label %36

35:                                               ; preds = %34
  unreachable

36:                                               ; preds = %34
  %37 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %16, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %17, align 4
  br label %105

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = getelementptr inbounds ptr, ptr %41, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  store ptr %43, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %44, i64 0
  %46 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds [8 x i64], ptr %47, i64 0, i64 0
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = trunc i64 %49 to i32
  store i32 %50, ptr %20, align 4, !tbaa !9
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds ptr, ptr %52, i64 0
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds ptr, ptr %55, i64 1
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load i32, ptr %20, align 4, !tbaa !9
  %59 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !13
  %61 = trunc i64 %60 to i32
  %62 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 3
  %63 = load i64, ptr %62, align 8, !tbaa !25
  %64 = trunc i64 %63 to i32
  %65 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 4
  %66 = load i64, ptr %65, align 8, !tbaa !26
  %67 = trunc i64 %66 to i32
  %68 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 5
  %69 = load i64, ptr %68, align 8, !tbaa !27
  %70 = trunc i64 %69 to i32
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 11
  %72 = load i64, ptr %71, align 8, !tbaa !28
  %73 = trunc i64 %72 to i32
  %74 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 10
  %75 = load i64, ptr %74, align 8, !tbaa !29
  %76 = trunc i64 %75 to i32
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 12
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef 0) #8
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 13
  %80 = load i64, ptr %79, align 8, !tbaa !30
  %81 = trunc i64 %80 to i32
  %82 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 14
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef 0) #8
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 15
  %85 = load i64, ptr %84, align 8, !tbaa !31
  %86 = trunc i64 %85 to i32
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 6
  %88 = load float, ptr %87, align 8, !tbaa !32
  %89 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 7
  %90 = load i64, ptr %89, align 8, !tbaa !33
  %91 = trunc i64 %90 to i32
  %92 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 8
  %93 = load float, ptr %92, align 8, !tbaa !34
  %94 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalDynamicPlugin", ptr %22, i32 0, i32 9
  %95 = load float, ptr %94, align 4, !tbaa !35
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load ptr, ptr %19, align 8, !tbaa !5
  %98 = invoke noundef i32 @_ZN8nvinfer16plugin21proposalInference_gpuEP11CUstream_stPKvS4_iiiiiiiPfiS5_ififfPvS6_(ptr noundef %51, ptr noundef %54, ptr noundef %57, i32 noundef %58, i32 noundef %61, i32 noundef %64, i32 noundef %67, i32 noundef %70, i32 noundef %73, i32 noundef %76, ptr noundef %78, i32 noundef %81, ptr noundef %83, i32 noundef %86, float noundef %88, i32 noundef %91, float noundef %93, float noundef %95, ptr noundef %96, ptr noundef %97)
          to label %99 unwind label %101

99:                                               ; preds = %40
  store i32 %98, ptr %18, align 4, !tbaa !9
  %100 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %100, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %116

101:                                              ; preds = %40
  %102 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %16, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %105

105:                                              ; preds = %101, %36
  %106 = load i32, ptr %17, align 4
  %107 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %108 = icmp eq i32 %106, %107
  br i1 %108, label %109, label %121

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %110 = load ptr, ptr %16, align 8
  %111 = call ptr @__cxa_begin_catch(ptr %110) #8
  store ptr %111, ptr %21, align 8
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %112)
          to label %113 unwind label %118

113:                                              ; preds = %109
  invoke void @__cxa_end_catch()
          to label %114 unwind label %118

114:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %115

115:                                              ; preds = %114
  store i32 1, ptr %8, align 4
  br label %116

116:                                              ; preds = %115, %99
  %117 = load i32, ptr %8, align 4
  ret i32 %117

118:                                              ; preds = %113, %109
  %119 = landingpad { ptr, i32 }
          catch ptr null
  %120 = extractvalue { ptr, i32 } %119, 0
  call void @__clang_call_terminate(ptr %120) #9
  unreachable

121:                                              ; preds = %105
  %122 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %122) #9
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "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 = { nounwind memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { "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 = { 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 #7 = { noreturn }
attributes #8 = { nounwind }
attributes #9 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 40}
!14 = !{!"_ZTSN8nvinfer16plugin21ProposalDynamicPluginE", !15, i64 0, !18, i64 8, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !20, i64 72, !12, i64 80, !20, i64 88, !20, i64 92, !12, i64 96, !12, i64 104, !21, i64 112, !12, i64 136, !21, i64 144, !12, i64 168}
!15 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !12, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIfSaIfEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!14, !12, i64 48}
!26 = !{!14, !12, i64 56}
!27 = !{!14, !12, i64 64}
!28 = !{!14, !12, i64 104}
!29 = !{!14, !12, i64 96}
!30 = !{!14, !12, i64 136}
!31 = !{!14, !12, i64 168}
!32 = !{!14, !20, i64 72}
!33 = !{!14, !12, i64 80}
!34 = !{!14, !20, i64 88}
!35 = !{!14, !20, i64 92}


; 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
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin21ProposalDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [88 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare void @__cxa_end_catch() local_unnamed_addr

declare noundef i32 @_ZN8nvinfer16plugin21proposalInference_gpuEP11CUstream_stPKvS4_iiiiiiiPfiS5_ififfPvS6_(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, float noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin21ProposalDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef readonly %1, ptr nocapture noundef readnone %2, ptr noundef readonly %3, ptr noundef readonly %4, ptr noundef %5, ptr noundef %6) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %8 = insertelement <4 x ptr> poison, ptr %1, i64 0
  %9 = insertelement <4 x ptr> %8, ptr %3, i64 1
  %10 = insertelement <4 x ptr> %9, ptr %4, i64 2
  %11 = insertelement <4 x ptr> %10, ptr %5, i64 3
  %12 = icmp eq <4 x ptr> %11, zeroinitializer
  %13 = bitcast <4 x i1> %12 to i4
  %14 = icmp eq i4 %13, 0
  br i1 %14, label %19, label %15

15:                                               ; preds = %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin21ProposalDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 338, i32 noundef 0, ptr noundef nonnull @.str.13) #6
          to label %16 unwind label %17

16:                                               ; preds = %15
  unreachable

17:                                               ; preds = %15
  %18 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %67

19:                                               ; preds = %7
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = load i64, ptr %21, align 8, !tbaa !9
  %23 = trunc i64 %22 to i32
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = trunc i64 %28 to i32
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = load i64, ptr %30, align 8, !tbaa !23
  %32 = trunc i64 %31 to i32
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  %34 = load i64, ptr %33, align 8, !tbaa !24
  %35 = trunc i64 %34 to i32
  %36 = getelementptr inbounds i8, ptr %0, i64 64
  %37 = load i64, ptr %36, align 8, !tbaa !25
  %38 = trunc i64 %37 to i32
  %39 = getelementptr inbounds i8, ptr %0, i64 104
  %40 = load i64, ptr %39, align 8, !tbaa !26
  %41 = trunc i64 %40 to i32
  %42 = getelementptr inbounds i8, ptr %0, i64 96
  %43 = load i64, ptr %42, align 8, !tbaa !27
  %44 = trunc i64 %43 to i32
  %45 = getelementptr inbounds i8, ptr %0, i64 112
  %46 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef 0) #7
  %47 = getelementptr inbounds i8, ptr %0, i64 136
  %48 = load i64, ptr %47, align 8, !tbaa !28
  %49 = trunc i64 %48 to i32
  %50 = getelementptr inbounds i8, ptr %0, i64 144
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef 0) #7
  %52 = getelementptr inbounds i8, ptr %0, i64 168
  %53 = load i64, ptr %52, align 8, !tbaa !29
  %54 = trunc i64 %53 to i32
  %55 = getelementptr inbounds i8, ptr %0, i64 72
  %56 = load float, ptr %55, align 8, !tbaa !30
  %57 = getelementptr inbounds i8, ptr %0, i64 80
  %58 = load i64, ptr %57, align 8, !tbaa !31
  %59 = trunc i64 %58 to i32
  %60 = getelementptr inbounds i8, ptr %0, i64 88
  %61 = load float, ptr %60, align 8, !tbaa !32
  %62 = getelementptr inbounds i8, ptr %0, i64 92
  %63 = load float, ptr %62, align 4, !tbaa !33
  %64 = invoke noundef i32 @_ZN8nvinfer16plugin21proposalInference_gpuEP11CUstream_stPKvS4_iiiiiiiPfiS5_ififfPvS6_(ptr noundef %6, ptr noundef %24, ptr noundef %26, i32 noundef %23, i32 noundef %29, i32 noundef %32, i32 noundef %35, i32 noundef %38, i32 noundef %41, i32 noundef %44, ptr noundef nonnull %46, i32 noundef %49, ptr noundef nonnull %51, i32 noundef %54, float noundef %56, i32 noundef %59, float noundef %61, float noundef %63, ptr noundef nonnull %5, ptr noundef %20)
          to label %73 unwind label %65

65:                                               ; preds = %19
  %66 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %67

67:                                               ; preds = %65, %17
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %18, %17 ]
  %.023 = extractvalue { ptr, i32 } %.pn, 0
  %.024 = extractvalue { ptr, i32 } %.pn, 1
  %68 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %69 = icmp eq i32 %.024, %68
  br i1 %69, label %70, label %77

70:                                               ; preds = %67
  %71 = tail call ptr @__cxa_begin_catch(ptr %.023) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %71)
          to label %72 unwind label %74

72:                                               ; preds = %70
  invoke void @__cxa_end_catch()
          to label %73 unwind label %74

73:                                               ; preds = %72, %19
  %.0 = phi i32 [ %64, %19 ], [ 1, %72 ]
  ret i32 %.0

74:                                               ; preds = %72, %70
  %75 = landingpad { ptr, i32 }
          catch ptr null
  %76 = extractvalue { ptr, i32 } %75, 0
  tail call void @__clang_call_terminate(ptr %76) #8
  unreachable

77:                                               ; preds = %67
  tail call void @__clang_call_terminate(ptr %.023) #8
  unreachable
}

attributes #0 = { noreturn "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 #1 = { nofree nosync nounwind memory(none) }
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 = { 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 #4 = { "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 = { noreturn }
attributes #7 = { nounwind }
attributes #8 = { 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 40}
!12 = !{!"_ZTSN8nvinfer16plugin21ProposalDynamicPluginE", !13, i64 0, !16, i64 8, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !18, i64 72, !10, i64 80, !18, i64 88, !18, i64 92, !10, i64 96, !10, i64 104, !19, i64 112, !10, i64 136, !19, i64 144, !10, i64 168}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !10, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!12, !10, i64 48}
!24 = !{!12, !10, i64 56}
!25 = !{!12, !10, i64 64}
!26 = !{!12, !10, i64 104}
!27 = !{!12, !10, i64 96}
!28 = !{!12, !10, i64 136}
!29 = !{!12, !10, i64 168}
!30 = !{!12, !18, i64 72}
!31 = !{!12, !10, i64 80}
!32 = !{!12, !18, i64 88}
!33 = !{!12, !18, i64 92}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass