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

; 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::ProposalLayer" = type { %"class.nvinfer1::IPluginV2Ext", i32, i32, i32, float, i32, i32, %"class.std::shared_ptr", %"class.std::shared_ptr.17", %"class.std::vector", i32, %"class.nvinfer1::Dims64", %struct.RefineNMSParameters, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::shared_ptr.17" = type { %"class.std::__shared_ptr.18" }
%"class.std::__shared_ptr.18" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%struct.RefineNMSParameters = type { i32, i32, i32, float, float }
%"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] }

@.str.102 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTVN8nvinfer16plugin13ProposalLayerE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E = external hidden unnamed_addr constant [14 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [67 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(224) %0, i32 noundef %1, i32 noundef %2, float noundef %3, ptr noundef nonnull align 8 dereferenceable(72) %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store float %3, ptr %9, align 4, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %13 = load ptr, ptr %6, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin13ProposalLayerE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !13
  %14 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 1
  store i32 0, ptr %14, align 8, !tbaa !15
  %15 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 2
  %16 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %16, ptr %15, align 4, !tbaa !34
  %17 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 3
  %18 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %18, ptr %17, align 8, !tbaa !35
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 4
  %20 = load float, ptr %9, align 4, !tbaa !11
  store float %20, ptr %19, align 4, !tbaa !36
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 5
  store i32 0, ptr %21, align 8, !tbaa !37
  %22 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 6
  store i32 0, ptr %22, align 4, !tbaa !38
  %23 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 7
  call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 8
  call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #4
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 10
  store i32 0, ptr %26, align 8, !tbaa !39
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 11
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %28, i64 72, i1 false), !tbaa.struct !40
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 12
  %30 = getelementptr inbounds %struct.RefineNMSParameters, ptr %29, i32 0, i32 0
  store i32 0, ptr %30, align 8, !tbaa !42
  %31 = getelementptr inbounds %struct.RefineNMSParameters, ptr %29, i32 0, i32 1
  store i32 0, ptr %31, align 4, !tbaa !43
  %32 = getelementptr inbounds %struct.RefineNMSParameters, ptr %29, i32 0, i32 2
  store i32 0, ptr %32, align 8, !tbaa !44
  %33 = getelementptr inbounds %struct.RefineNMSParameters, ptr %29, i32 0, i32 3
  store float 0.000000e+00, ptr %33, align 4, !tbaa !45
  %34 = getelementptr inbounds %struct.RefineNMSParameters, ptr %29, i32 0, i32 4
  store float 0.000000e+00, ptr %34, align 8, !tbaa !46
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 13
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #4
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 1
  store i32 -1, ptr %36, align 8, !tbaa !15
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !34
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %46, label %40

40:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.102, ptr noundef @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef 128, i32 noundef 0, ptr noundef @.str.105) #5
          to label %41 unwind label %42

41:                                               ; preds = %40
  unreachable

42:                                               ; preds = %90, %88, %68, %61, %56, %50, %40
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %11, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %108

46:                                               ; preds = %5
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !34
  %49 = icmp sle i32 %48, 1024
  br i1 %49, label %52, label %50

50:                                               ; preds = %46
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.102, ptr noundef @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef 129, i32 noundef 0, ptr noundef @.str.106) #5
          to label %51 unwind label %42

51:                                               ; preds = %50
  unreachable

52:                                               ; preds = %46
  %53 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 3
  %54 = load i32, ptr %53, align 8, !tbaa !35
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %58, label %56

56:                                               ; preds = %52
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.102, ptr noundef @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef 130, i32 noundef 0, ptr noundef @.str.107) #5
          to label %57 unwind label %42

57:                                               ; preds = %56
  unreachable

58:                                               ; preds = %52
  %59 = load float, ptr %9, align 4, !tbaa !11
  %60 = fcmp ogt float %59, 0.000000e+00
  br i1 %60, label %63, label %61

61:                                               ; preds = %58
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.102, ptr noundef @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef 131, i32 noundef 0, ptr noundef @.str.108) #5
          to label %62 unwind label %42

62:                                               ; preds = %61
  unreachable

63:                                               ; preds = %58
  %64 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 11
  %65 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !47
  %67 = icmp eq i32 %66, 3
  br i1 %67, label %70, label %68

68:                                               ; preds = %63
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.102, ptr noundef @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef 132, i32 noundef 0, ptr noundef @.str.109) #5
          to label %69 unwind label %42

69:                                               ; preds = %68
  unreachable

70:                                               ; preds = %63
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 11
  %72 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds [8 x i64], ptr %72, i64 0, i64 0
  %74 = load i64, ptr %73, align 8, !tbaa !48
  %75 = icmp eq i64 %74, 3
  br i1 %75, label %76, label %88

76:                                               ; preds = %70
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 11
  %78 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds [8 x i64], ptr %78, i64 0, i64 1
  %80 = load i64, ptr %79, align 8, !tbaa !48
  %81 = icmp sgt i64 %80, 0
  br i1 %81, label %82, label %88

82:                                               ; preds = %76
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 11
  %84 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds [8 x i64], ptr %84, i64 0, i64 2
  %86 = load i64, ptr %85, align 8, !tbaa !48
  %87 = icmp sgt i64 %86, 0
  br i1 %87, label %90, label %88

88:                                               ; preds = %82, %76, %70
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.102, ptr noundef @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef 133, i32 noundef 0, ptr noundef @.str.110) #5
          to label %89 unwind label %42

89:                                               ; preds = %88
  unreachable

90:                                               ; preds = %82
  %91 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 12
  %92 = getelementptr inbounds %struct.RefineNMSParameters, ptr %91, i32 0, i32 0
  store i32 -1, ptr %92, align 8, !tbaa !49
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 12
  %94 = getelementptr inbounds %struct.RefineNMSParameters, ptr %93, i32 0, i32 1
  store i32 1, ptr %94, align 4, !tbaa !50
  %95 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 3
  %96 = load i32, ptr %95, align 8, !tbaa !35
  %97 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 12
  %98 = getelementptr inbounds %struct.RefineNMSParameters, ptr %97, i32 0, i32 2
  store i32 %96, ptr %98, align 8, !tbaa !51
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 12
  %100 = getelementptr inbounds %struct.RefineNMSParameters, ptr %99, i32 0, i32 3
  store float 0.000000e+00, ptr %100, align 4, !tbaa !52
  %101 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 4
  %102 = load float, ptr %101, align 4, !tbaa !36
  %103 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 12
  %104 = getelementptr inbounds %struct.RefineNMSParameters, ptr %103, i32 0, i32 4
  store float %102, ptr %104, align 8, !tbaa !53
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalLayer", ptr %13, i32 0, i32 10
  store i32 0, ptr %105, align 8, !tbaa !39
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin13ProposalLayer24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(224) %13, ptr noundef nonnull align 8 dereferenceable(72) %106)
          to label %107 unwind label %42

107:                                              ; preds = %90
  ret void

108:                                              ; preds = %42
  %109 = load ptr, ptr %11, align 8
  %110 = load i32, ptr %12, align 4
  %111 = insertvalue { ptr, i32 } poison, ptr %109, 0
  %112 = insertvalue { ptr, i32 } %111, i32 %110, 1
  resume { ptr, i32 } %112
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin13ProposalLayer24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(72)) #3 align 2

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

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

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

attributes #0 = { nocallback nofree 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 = { 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 #3 = { 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 = { nounwind }
attributes #5 = { noreturn }

!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 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN8nvinfer16plugin13ProposalLayerE", !17, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !10, i64 24, !10, i64 28, !19, i64 32, !22, i64 48, !24, i64 64, !28, i64 88, !29, i64 96, !30, i64 168, !31, i64 192}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !21, i64 8}
!21 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !21, i64 8}
!24 = !{!"_ZTSSt6vectorIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!29 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!30 = !{!"_ZTS19RefineNMSParameters", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 12, !12, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !32, i64 0, !33, i64 8, !7, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!33 = !{!"long", !7, i64 0}
!34 = !{!16, !10, i64 12}
!35 = !{!16, !10, i64 16}
!36 = !{!16, !12, i64 20}
!37 = !{!16, !10, i64 24}
!38 = !{!16, !10, i64 28}
!39 = !{!16, !28, i64 88}
!40 = !{i64 0, i64 4, !9, i64 8, i64 64, !41}
!41 = !{!7, !7, i64 0}
!42 = !{!30, !10, i64 0}
!43 = !{!30, !10, i64 4}
!44 = !{!30, !10, i64 8}
!45 = !{!30, !12, i64 12}
!46 = !{!30, !12, i64 16}
!47 = !{!16, !10, i64 96}
!48 = !{!33, !33, i64 0}
!49 = !{!16, !10, i64 168}
!50 = !{!16, !10, i64 172}
!51 = !{!16, !10, i64 176}
!52 = !{!16, !12, i64 180}
!53 = !{!16, !12, i64 184}


; 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.102 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTVN8nvinfer16plugin13ProposalLayerE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E = external hidden unnamed_addr constant [14 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [67 x i8], align 1

; Function Attrs: mustprogress 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) #0

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(224) %0, i32 noundef %1, i32 noundef %2, float noundef %3, ptr noundef nonnull align 8 dereferenceable(72) %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin13ProposalLayerE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %6, align 8, !tbaa !8
  %7 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %1, ptr %7, align 4, !tbaa !31
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %2, ptr %8, align 8, !tbaa !32
  %9 = getelementptr inbounds i8, ptr %0, i64 20
  store float %3, ptr %9, align 4, !tbaa !33
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %10, align 8, !tbaa !34
  %11 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %11, align 4, !tbaa !35
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 0, ptr %15, align 8, !tbaa !36
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %16, ptr noundef nonnull align 8 dereferenceable(72) %4, i64 72, i1 false), !tbaa.struct !37
  %17 = getelementptr inbounds i8, ptr %0, i64 168
  %18 = getelementptr inbounds i8, ptr %0, i64 172
  %19 = getelementptr inbounds i8, ptr %0, i64 176
  %20 = getelementptr inbounds i8, ptr %0, i64 180
  %21 = getelementptr inbounds i8, ptr %0, i64 184
  %22 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %17, i8 0, i64 20, i1 false)
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  store i32 -1, ptr %6, align 8, !tbaa !8
  %23 = load i32, ptr %7, align 4, !tbaa !31
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %27, label %.invoke

25:                                               ; preds = %.invoke, %49
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #5
  tail call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  tail call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #5
  tail call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  tail call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %26

27:                                               ; preds = %5
  %28 = icmp ult i32 %23, 1025
  br i1 %28, label %29, label %.invoke

29:                                               ; preds = %27
  %30 = load i32, ptr %8, align 8, !tbaa !32
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %32, label %.invoke

32:                                               ; preds = %29
  %33 = fcmp ogt float %3, 0.000000e+00
  br i1 %33, label %34, label %.invoke

34:                                               ; preds = %32
  %35 = load i32, ptr %16, align 8, !tbaa !40
  %36 = icmp eq i32 %35, 3
  br i1 %36, label %37, label %.invoke

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %0, i64 104
  %39 = load i64, ptr %38, align 8, !tbaa !41
  %40 = icmp eq i64 %39, 3
  %41 = getelementptr inbounds i8, ptr %0, i64 112
  %42 = load i64, ptr %41, align 8
  %43 = icmp sgt i64 %42, 0
  %or.cond = select i1 %40, i1 %43, i1 false
  %44 = getelementptr inbounds i8, ptr %0, i64 120
  %45 = load i64, ptr %44, align 8
  %46 = icmp sgt i64 %45, 0
  %or.cond12 = select i1 %or.cond, i1 %46, i1 false
  br i1 %or.cond12, label %49, label %.invoke

.invoke:                                          ; preds = %5, %37, %34, %32, %29, %27
  %47 = phi i32 [ 129, %27 ], [ 130, %29 ], [ 131, %32 ], [ 132, %34 ], [ 133, %37 ], [ 128, %5 ]
  %48 = phi ptr [ @.str.106, %27 ], [ @.str.107, %29 ], [ @.str.108, %32 ], [ @.str.109, %34 ], [ @.str.110, %37 ], [ @.str.105, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.102, ptr noundef nonnull @__func__._ZN8nvinfer16plugin13ProposalLayerC2EiifRKNS_6Dims64E, i32 noundef %47, i32 noundef 0, ptr noundef nonnull %48) #6
          to label %.cont unwind label %25

.cont:                                            ; preds = %.invoke
  unreachable

49:                                               ; preds = %37
  store i32 -1, ptr %17, align 8, !tbaa !42
  store i32 1, ptr %18, align 4, !tbaa !43
  store i32 %30, ptr %19, align 8, !tbaa !44
  store float 0.000000e+00, ptr %20, align 4, !tbaa !45
  %50 = load float, ptr %9, align 4, !tbaa !33
  store float %50, ptr %21, align 8, !tbaa !46
  store i32 0, ptr %15, align 8, !tbaa !36
  invoke void @_ZN8nvinfer16plugin13ProposalLayer24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(72) %4)
          to label %51 unwind label %25

51:                                               ; preds = %49
  ret void
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin13ProposalLayer24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree 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 = { 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 #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 8}
!9 = !{!"_ZTSN8nvinfer16plugin13ProposalLayerE", !10, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !14, i64 20, !12, i64 24, !12, i64 28, !15, i64 32, !19, i64 48, !21, i64 64, !25, i64 88, !26, i64 96, !27, i64 168, !28, i64 192}
!10 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !11, i64 0}
!11 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"float", !13, i64 0}
!15 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EE", !17, i64 0, !18, i64 8}
!17 = !{!"any pointer", !13, i64 0}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !17, i64 0}
!19 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEE", !20, i64 0}
!20 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EE", !17, i64 0, !18, i64 8}
!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", !17, i64 0, !17, i64 8, !17, i64 16}
!25 = !{!"_ZTSN8nvinfer18DataTypeE", !13, i64 0}
!26 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !13, i64 8}
!27 = !{!"_ZTS19RefineNMSParameters", !12, i64 0, !12, i64 4, !12, i64 8, !14, i64 12, !14, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !30, i64 8, !13, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!30 = !{!"long", !13, i64 0}
!31 = !{!9, !12, i64 12}
!32 = !{!9, !12, i64 16}
!33 = !{!9, !14, i64 20}
!34 = !{!9, !12, i64 24}
!35 = !{!9, !12, i64 28}
!36 = !{!9, !25, i64 88}
!37 = !{i64 0, i64 4, !38, i64 8, i64 64, !39}
!38 = !{!12, !12, i64 0}
!39 = !{!13, !13, i64 0}
!40 = !{!9, !12, i64 96}
!41 = !{!30, !30, i64 0}
!42 = !{!9, !12, i64 168}
!43 = !{!9, !12, i64 172}
!44 = !{!9, !12, i64 176}
!45 = !{!9, !14, i64 180}
!46 = !{!9, !14, i64 184}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass