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

; 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::plugin::EfficientNMSParameters" = type { float, float, i32, i32, i8, i32, i8, i8, i32, i8, i32, i32, i8, i32, i32, i32, i32, i32, i8, i8, i8, i32 }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::EfficientNMSPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"struct.nvinfer1::plugin::EfficientNMSParameters", i8, %"class.std::__cxx11::basic_string" }
%"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] }

@.str = external hidden unnamed_addr constant [98 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin18EfficientNMSPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [88 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

declare ptr @__cxa_begin_catch(ptr)

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

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

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin18EfficientNMSPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(120) %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 ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.nvinfer1::plugin::EfficientNMSParameters", align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.nvinfer1::plugin::EfficientNMSParameters", align 8
  %30 = 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
  %31 = load ptr, ptr %9, align 8
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %43

34:                                               ; preds = %7
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %43

37:                                               ; preds = %34
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %37
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %49, label %43

43:                                               ; preds = %40, %37, %34, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin18EfficientNMSPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 375, i32 noundef 0, ptr noundef @.str.19) #8
          to label %44 unwind label %45

44:                                               ; preds = %43
  unreachable

45:                                               ; preds = %43
  %46 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %16, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %17, align 4
  br label %131

49:                                               ; preds = %40
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %50, i64 0
  %52 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds [8 x i64], ptr %53, i64 0, i64 0
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = trunc i64 %55 to i32
  %57 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %31, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %57, i32 0, i32 13
  store i32 %56, ptr %58, align 8, !tbaa !11
  %59 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %31, i32 0, i32 1
  %60 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %59, i32 0, i32 12
  %61 = load i8, ptr %60, align 4, !tbaa !23, !range !24, !noundef !25
  %62 = trunc i8 %61 to i1
  br i1 %62, label %63, label %85

63:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds ptr, ptr %64, i64 0
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  store ptr %66, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds ptr, ptr %67, i64 1
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  store ptr %69, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %70, i64 0
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  store ptr %72, ptr %20, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %31, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %73, i64 76, i1 false), !tbaa.struct !26
  %74 = load ptr, ptr %18, align 8, !tbaa !5
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = load ptr, ptr %20, align 8, !tbaa !5
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = invoke noundef i32 @_Z21EfficientNMSInferenceN8nvinfer16plugin22EfficientNMSParametersEPKvS3_S3_PvS4_S4_S4_S4_S4_P11CUstream_st(ptr noundef byval(%"struct.nvinfer1::plugin::EfficientNMSParameters") align 8 %21, ptr noundef %74, ptr noundef %75, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %76, ptr noundef %77, ptr noundef %78)
          to label %80 unwind label %81

80:                                               ; preds = %63
  store i32 %79, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %142

81:                                               ; preds = %63
  %82 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %16, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %131

85:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i64 0
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  store ptr %88, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds ptr, ptr %89, i64 1
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  store ptr %91, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %92 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %31, i32 0, i32 1
  %93 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %92, i32 0, i32 20
  %94 = load i8, ptr %93, align 2, !tbaa !31, !range !24, !noundef !25
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %100

96:                                               ; preds = %85
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds ptr, ptr %97, i64 2
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  br label %101

100:                                              ; preds = %85
  br label %101

101:                                              ; preds = %100, %96
  %102 = phi ptr [ %99, %96 ], [ null, %100 ]
  store ptr %102, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i64 0
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  store ptr %105, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds ptr, ptr %106, i64 1
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  store ptr %108, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds ptr, ptr %109, i64 2
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  store ptr %111, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds ptr, ptr %112, i64 3
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  store ptr %114, ptr %28, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %31, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %115, i64 76, i1 false), !tbaa.struct !26
  %116 = load ptr, ptr %22, align 8, !tbaa !5
  %117 = load ptr, ptr %23, align 8, !tbaa !5
  %118 = load ptr, ptr %24, align 8, !tbaa !5
  %119 = load ptr, ptr %25, align 8, !tbaa !5
  %120 = load ptr, ptr %26, align 8, !tbaa !5
  %121 = load ptr, ptr %27, align 8, !tbaa !5
  %122 = load ptr, ptr %28, align 8, !tbaa !5
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = invoke noundef i32 @_Z21EfficientNMSInferenceN8nvinfer16plugin22EfficientNMSParametersEPKvS3_S3_PvS4_S4_S4_S4_S4_P11CUstream_st(ptr noundef byval(%"struct.nvinfer1::plugin::EfficientNMSParameters") align 8 %29, ptr noundef %116, ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef null, ptr noundef %123, ptr noundef %124)
          to label %126 unwind label %127

126:                                              ; preds = %101
  store i32 %125, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %142

127:                                              ; preds = %101
  %128 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %16, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %131

131:                                              ; preds = %127, %81, %45
  %132 = load i32, ptr %17, align 4
  %133 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #9
  %134 = icmp eq i32 %132, %133
  br i1 %134, label %135, label %147

135:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %136 = load ptr, ptr %16, align 8
  %137 = call ptr @__cxa_begin_catch(ptr %136) #9
  store ptr %137, ptr %30, align 8
  %138 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %138)
          to label %139 unwind label %144

139:                                              ; preds = %135
  invoke void @__cxa_end_catch()
          to label %140 unwind label %144

140:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %141

141:                                              ; preds = %140
  store i32 -1, ptr %8, align 4
  br label %142

142:                                              ; preds = %141, %126, %80
  %143 = load i32, ptr %8, align 4
  ret i32 %143

144:                                              ; preds = %139, %135
  %145 = landingpad { ptr, i32 }
          catch ptr null
  %146 = extractvalue { ptr, i32 } %145, 0
  call void @__clang_call_terminate(ptr %146) #10
  unreachable

147:                                              ; preds = %131
  %148 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %148) #10
  unreachable
}

declare noundef i32 @_Z21EfficientNMSInferenceN8nvinfer16plugin22EfficientNMSParametersEPKvS3_S3_PvS4_S4_S4_S4_S4_P11CUstream_st(ptr noundef byval(%"struct.nvinfer1::plugin::EfficientNMSParameters") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #7

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind memory(none) }
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 = { 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 = { "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 #8 = { noreturn }
attributes #9 = { nounwind }
attributes #10 = { 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, !18, i64 56}
!12 = !{!"_ZTSN8nvinfer16plugin18EfficientNMSPluginE", !13, i64 0, !16, i64 8, !19, i64 84, !21, i64 88}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !17, i64 0, !17, i64 4, !18, i64 8, !18, i64 12, !19, i64 16, !18, i64 20, !19, i64 24, !19, i64 25, !18, i64 28, !19, i64 32, !18, i64 36, !18, i64 40, !19, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !19, i64 68, !19, i64 69, !19, i64 70, !20, i64 72}
!17 = !{!"float", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !10, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!12, !19, i64 52}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{i64 0, i64 4, !27, i64 4, i64 4, !27, i64 8, i64 4, !28, i64 12, i64 4, !28, i64 16, i64 1, !29, i64 20, i64 4, !28, i64 24, i64 1, !29, i64 25, i64 1, !29, i64 28, i64 4, !28, i64 32, i64 1, !29, i64 36, i64 4, !28, i64 40, i64 4, !28, i64 44, i64 1, !29, i64 48, i64 4, !28, i64 52, i64 4, !28, i64 56, i64 4, !28, i64 60, i64 4, !28, i64 64, i64 4, !28, i64 68, i64 1, !29, i64 69, i64 1, !29, i64 70, i64 1, !29, i64 72, i64 4, !30}
!27 = !{!17, !17, i64 0}
!28 = !{!18, !18, i64 0}
!29 = !{!19, !19, i64 0}
!30 = !{!20, !20, i64 0}
!31 = !{!12, !19, i64 78}


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

%"struct.nvinfer1::plugin::EfficientNMSParameters" = type { float, float, i32, i32, i8, i32, i8, i8, i32, i8, i32, i32, i8, i32, i32, i32, i32, i32, i8, i8, i8, i32 }

@.str = external hidden unnamed_addr constant [98 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin18EfficientNMSPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = 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: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

; 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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin18EfficientNMSPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr nocapture noundef nonnull align 8 dereferenceable(120) %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 #4 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, ptr noundef nonnull @__func__._ZN8nvinfer16plugin18EfficientNMSPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 375, i32 noundef 0, ptr noundef nonnull @.str.19) #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 %55

19:                                               ; preds = %7
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = trunc i64 %21 to i32
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %22, ptr %24, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %0, i64 52
  %26 = load i8, ptr %25, align 4, !tbaa !22, !range !23, !noundef !24
  %27 = trunc nuw i8 %26 to i1
  %28 = load ptr, ptr %3, align 8, !tbaa !25
  %29 = getelementptr inbounds i8, ptr %3, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !25
  br i1 %27, label %31, label %36

31:                                               ; preds = %19
  %32 = load ptr, ptr %4, align 8, !tbaa !25
  %33 = invoke noundef i32 @_Z21EfficientNMSInferenceN8nvinfer16plugin22EfficientNMSParametersEPKvS3_S3_PvS4_S4_S4_S4_S4_P11CUstream_st(ptr noundef nonnull byval(%"struct.nvinfer1::plugin::EfficientNMSParameters") align 8 %23, ptr noundef %28, ptr noundef %30, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %32, ptr noundef nonnull %5, ptr noundef %6)
          to label %61 unwind label %34

34:                                               ; preds = %31
  %35 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %55

36:                                               ; preds = %19
  %37 = getelementptr inbounds i8, ptr %0, i64 78
  %38 = load i8, ptr %37, align 2, !tbaa !26, !range !23, !noundef !24
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %3, i64 16
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  br label %43

43:                                               ; preds = %36, %40
  %44 = phi ptr [ %42, %40 ], [ null, %36 ]
  %45 = load ptr, ptr %4, align 8, !tbaa !25
  %46 = getelementptr inbounds i8, ptr %4, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !25
  %48 = getelementptr inbounds i8, ptr %4, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  %50 = getelementptr inbounds i8, ptr %4, i64 24
  %51 = load ptr, ptr %50, align 8, !tbaa !25
  %52 = invoke noundef i32 @_Z21EfficientNMSInferenceN8nvinfer16plugin22EfficientNMSParametersEPKvS3_S3_PvS4_S4_S4_S4_S4_P11CUstream_st(ptr noundef nonnull byval(%"struct.nvinfer1::plugin::EfficientNMSParameters") align 8 %23, ptr noundef %28, ptr noundef %30, ptr noundef %44, ptr noundef %45, ptr noundef %47, ptr noundef %49, ptr noundef %51, ptr noundef null, ptr noundef nonnull %5, ptr noundef %6)
          to label %61 unwind label %53

53:                                               ; preds = %43
  %54 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %55

55:                                               ; preds = %53, %34, %17
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %54, %53 ], [ %18, %17 ]
  %.039 = extractvalue { ptr, i32 } %.pn, 0
  %.040 = extractvalue { ptr, i32 } %.pn, 1
  %56 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %57 = icmp eq i32 %.040, %56
  br i1 %57, label %58, label %65

58:                                               ; preds = %55
  %59 = tail call ptr @__cxa_begin_catch(ptr %.039) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %60 unwind label %62

60:                                               ; preds = %58
  invoke void @__cxa_end_catch()
          to label %61 unwind label %62

61:                                               ; preds = %60, %43, %31
  %.0 = phi i32 [ %33, %31 ], [ %52, %43 ], [ -1, %60 ]
  ret i32 %.0

62:                                               ; preds = %60, %58
  %63 = landingpad { ptr, i32 }
          catch ptr null
  %64 = extractvalue { ptr, i32 } %63, 0
  tail call void @__clang_call_terminate(ptr %64) #8
  unreachable

65:                                               ; preds = %55
  tail call void @__clang_call_terminate(ptr %.039) #8
  unreachable
}

declare noundef i32 @_Z21EfficientNMSInferenceN8nvinfer16plugin22EfficientNMSParametersEPKvS3_S3_PvS4_S4_S4_S4_S4_P11CUstream_st(ptr noundef byval(%"struct.nvinfer1::plugin::EfficientNMSParameters") align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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 = { 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 #2 = { nofree nosync nounwind memory(none) }
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 = { 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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !16, i64 56}
!10 = !{!"_ZTSN8nvinfer16plugin18EfficientNMSPluginE", !11, i64 0, !14, i64 8, !17, i64 84, !19, i64 88}
!11 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !13, i64 0}
!13 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!14 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !15, i64 0, !15, i64 4, !16, i64 8, !16, i64 12, !17, i64 16, !16, i64 20, !17, i64 24, !17, i64 25, !16, i64 28, !17, i64 32, !16, i64 36, !16, i64 40, !17, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !17, i64 68, !17, i64 69, !17, i64 70, !18, i64 72}
!15 = !{!"float", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !6, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!10, !17, i64 52}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!21, !21, i64 0}
!26 = !{!10, !17, i64 78}


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