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

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

@.str.2 = external hidden unnamed_addr constant [94 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin23BatchedNMSDynamicPlugin7enqueueEPKNS_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

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin23BatchedNMSDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(108) %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 i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = 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
  %27 = load ptr, ptr %9, align 8
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %39

30:                                               ; preds = %7
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %45, label %39

39:                                               ; preds = %36, %33, %30, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin23BatchedNMSDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 292, i32 noundef 0, ptr noundef @.str.13) #7
          to label %40 unwind label %41

40:                                               ; preds = %39
  unreachable

41:                                               ; preds = %39
  %42 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %16, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %17, align 4
  br label %135

45:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 0
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %48, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i64 1
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %19, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 13
  %53 = load i32, ptr %52, align 8, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %45
  store i32 -1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %146

56:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds ptr, ptr %57, i64 0
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  store ptr %59, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = getelementptr inbounds ptr, ptr %60, i64 1
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  store ptr %62, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds ptr, ptr %63, i64 2
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  store ptr %65, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i64 3
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  store ptr %68, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %70, i64 0
  %72 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds [8 x i64], ptr %73, i64 0, i64 0
  %75 = load i64, ptr %74, align 8, !tbaa !23
  %76 = trunc i64 %75 to i32
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !24
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !25
  %81 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %82 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %81, i32 0, i32 0
  %83 = load i8, ptr %82, align 8, !tbaa !26, !range !27, !noundef !28
  %84 = trunc i8 %83 to i1
  %85 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %86 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !29
  %88 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 4
  %89 = load i32, ptr %88, align 8, !tbaa !30
  %90 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %91 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !31
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %94 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %93, i32 0, i32 3
  %95 = load i32, ptr %94, align 4, !tbaa !32
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %97 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %96, i32 0, i32 4
  %98 = load i32, ptr %97, align 8, !tbaa !33
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %100 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %99, i32 0, i32 5
  %101 = load float, ptr %100, align 4, !tbaa !34
  %102 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %103 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %102, i32 0, i32 6
  %104 = load float, ptr %103, align 8, !tbaa !35
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 9
  %106 = load i32, ptr %105, align 4, !tbaa !36
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 9
  %109 = load i32, ptr %108, align 4, !tbaa !36
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load ptr, ptr %22, align 8, !tbaa !5
  %113 = load ptr, ptr %23, align 8, !tbaa !5
  %114 = load ptr, ptr %24, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 1
  %117 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %116, i32 0, i32 7
  %118 = load i8, ptr %117, align 4, !tbaa !37, !range !27, !noundef !28
  %119 = trunc i8 %118 to i1
  %120 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 7
  %121 = load i8, ptr %120, align 8, !tbaa !38, !range !27, !noundef !28
  %122 = trunc i8 %121 to i1
  %123 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 10
  %124 = load i32, ptr %123, align 8, !tbaa !39
  %125 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %27, i32 0, i32 11
  %126 = load i8, ptr %125, align 4, !tbaa !40, !range !27, !noundef !28
  %127 = trunc i8 %126 to i1
  %128 = invoke noundef i32 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef %69, i32 noundef %76, i32 noundef %78, i32 noundef %80, i1 noundef zeroext %84, i32 noundef %87, i32 noundef %89, i32 noundef %92, i32 noundef %95, i32 noundef %98, float noundef %101, float noundef %104, i32 noundef %106, ptr noundef %107, i32 noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113, ptr noundef %114, ptr noundef %115, i1 noundef zeroext %119, i1 noundef zeroext false, i1 noundef zeroext %122, i32 noundef %124, i1 noundef zeroext %127)
          to label %129 unwind label %131

129:                                              ; preds = %56
  store i32 %128, ptr %25, align 4, !tbaa !41
  %130 = load i32, ptr %25, align 4, !tbaa !41
  store i32 %130, ptr %8, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %146

131:                                              ; preds = %56
  %132 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %16, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %135

135:                                              ; preds = %131, %41
  %136 = load i32, ptr %17, align 4
  %137 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %138 = icmp eq i32 %136, %137
  br i1 %138, label %139, label %152

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %140 = load ptr, ptr %16, align 8
  %141 = call ptr @__cxa_begin_catch(ptr %140) #8
  store ptr %141, ptr %26, align 8
  %142 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %142)
          to label %143 unwind label %149

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

144:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %145

145:                                              ; preds = %144
  store i32 -1, ptr %8, align 4
  br label %147

146:                                              ; preds = %129, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %147

147:                                              ; preds = %146, %145
  %148 = load i32, ptr %8, align 4
  ret i32 %148

149:                                              ; preds = %143, %139
  %150 = landingpad { ptr, i32 }
          catch ptr null
  %151 = extractvalue { ptr, i32 } %150, 0
  call void @__clang_call_terminate(ptr %151) #9
  unreachable

152:                                              ; preds = %135
  %153 = load ptr, ptr %16, align 8
  call void @__clang_call_terminate(ptr %153) #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, !22, i64 104}
!10 = !{!"_ZTSN8nvinfer16plugin23BatchedNMSDynamicPluginE", !11, i64 0, !14, i64 8, !16, i64 40, !16, i64 44, !16, i64 48, !18, i64 56, !15, i64 88, !21, i64 92, !16, i64 96, !15, i64 100, !22, i64 104}
!11 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !13, i64 0}
!13 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!14 = !{!"_ZTSN8nvinfer16plugin13NMSParametersE", !15, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !17, i64 20, !17, i64 24, !15, i64 28}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!22 = !{!"_ZTS14pluginStatus_t", !7, i64 0}
!23 = !{!20, !20, i64 0}
!24 = !{!10, !16, i64 40}
!25 = !{!10, !16, i64 44}
!26 = !{!10, !15, i64 8}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!10, !16, i64 12}
!30 = !{!10, !16, i64 48}
!31 = !{!10, !16, i64 16}
!32 = !{!10, !16, i64 20}
!33 = !{!10, !16, i64 24}
!34 = !{!10, !17, i64 28}
!35 = !{!10, !17, i64 32}
!36 = !{!10, !21, i64 92}
!37 = !{!10, !15, i64 36}
!38 = !{!10, !15, i64 88}
!39 = !{!10, !16, i64 96}
!40 = !{!10, !15, i64 100}
!41 = !{!22, !22, 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 [94 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin23BatchedNMSDynamicPlugin7enqueueEPKNS_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 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin23BatchedNMSDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr nocapture noundef nonnull readonly align 8 dereferenceable(108) %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__._ZN8nvinfer16plugin23BatchedNMSDynamicPlugin7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 292, 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 %73

19:                                               ; preds = %7
  %20 = getelementptr inbounds i8, ptr %0, i64 104
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %22, label %79

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %25 = load ptr, ptr %3, align 8, !tbaa !22
  %26 = load ptr, ptr %4, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = getelementptr inbounds i8, ptr %4, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !22
  %31 = getelementptr inbounds i8, ptr %4, i64 24
  %32 = load ptr, ptr %31, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = load i64, ptr %33, align 8, !tbaa !23
  %35 = trunc i64 %34 to i32
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load i32, ptr %36, align 8, !tbaa !24
  %38 = getelementptr inbounds i8, ptr %0, i64 44
  %39 = load i32, ptr %38, align 4, !tbaa !25
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  %41 = load i8, ptr %40, align 8, !tbaa !26, !range !27, !noundef !28
  %42 = trunc nuw i8 %41 to i1
  %43 = getelementptr inbounds i8, ptr %0, i64 12
  %44 = load i32, ptr %43, align 4, !tbaa !29
  %45 = getelementptr inbounds i8, ptr %0, i64 48
  %46 = load i32, ptr %45, align 8, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load i32, ptr %47, align 8, !tbaa !31
  %49 = getelementptr inbounds i8, ptr %0, i64 20
  %50 = load i32, ptr %49, align 4, !tbaa !32
  %51 = getelementptr inbounds i8, ptr %0, i64 24
  %52 = load i32, ptr %51, align 8, !tbaa !33
  %53 = getelementptr inbounds i8, ptr %0, i64 28
  %54 = load float, ptr %53, align 4, !tbaa !34
  %55 = getelementptr inbounds i8, ptr %0, i64 32
  %56 = load float, ptr %55, align 8, !tbaa !35
  %57 = getelementptr inbounds i8, ptr %0, i64 92
  %58 = load i32, ptr %57, align 4, !tbaa !36
  %59 = getelementptr inbounds i8, ptr %0, i64 36
  %60 = load i8, ptr %59, align 4, !tbaa !37, !range !27, !noundef !28
  %61 = trunc nuw i8 %60 to i1
  %62 = getelementptr inbounds i8, ptr %0, i64 88
  %63 = load i8, ptr %62, align 8, !tbaa !38, !range !27, !noundef !28
  %64 = trunc nuw i8 %63 to i1
  %65 = getelementptr inbounds i8, ptr %0, i64 96
  %66 = load i32, ptr %65, align 8, !tbaa !39
  %67 = getelementptr inbounds i8, ptr %0, i64 100
  %68 = load i8, ptr %67, align 4, !tbaa !40, !range !27, !noundef !28
  %69 = trunc nuw i8 %68 to i1
  %70 = invoke noundef i32 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef %6, i32 noundef %35, i32 noundef %37, i32 noundef %39, i1 noundef zeroext %42, i32 noundef %44, i32 noundef %46, i32 noundef %48, i32 noundef %50, i32 noundef %52, float noundef %54, float noundef %56, i32 noundef %58, ptr noundef %25, i32 noundef %58, ptr noundef %24, ptr noundef %26, ptr noundef %28, ptr noundef %30, ptr noundef %32, ptr noundef nonnull %5, i1 noundef zeroext %61, i1 noundef zeroext false, i1 noundef zeroext %64, i32 noundef %66, i1 noundef zeroext %69)
          to label %79 unwind label %71

71:                                               ; preds = %22
  %72 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %73

73:                                               ; preds = %71, %17
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %18, %17 ]
  %.030 = extractvalue { ptr, i32 } %.pn, 0
  %.031 = extractvalue { ptr, i32 } %.pn, 1
  %74 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %75 = icmp eq i32 %.031, %74
  br i1 %75, label %76, label %83

76:                                               ; preds = %73
  %77 = tail call ptr @__cxa_begin_catch(ptr %.030) #7
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %77)
          to label %78 unwind label %80

78:                                               ; preds = %76
  invoke void @__cxa_end_catch()
          to label %79 unwind label %80

79:                                               ; preds = %19, %22, %78
  %.1 = phi i32 [ -1, %78 ], [ -1, %19 ], [ %70, %22 ]
  ret i32 %.1

80:                                               ; preds = %78, %76
  %81 = landingpad { ptr, i32 }
          catch ptr null
  %82 = extractvalue { ptr, i32 } %81, 0
  tail call void @__clang_call_terminate(ptr %82) #8
  unreachable

83:                                               ; preds = %73
  tail call void @__clang_call_terminate(ptr %.030) #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, !21, i64 104}
!6 = !{!"_ZTSN8nvinfer16plugin23BatchedNMSDynamicPluginE", !7, i64 0, !10, i64 8, !14, i64 40, !14, i64 44, !14, i64 48, !16, i64 56, !11, i64 88, !20, i64 92, !14, i64 96, !11, i64 100, !21, i64 104}
!7 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !9, i64 0}
!9 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!10 = !{!"_ZTSN8nvinfer16plugin13NMSParametersE", !11, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !15, i64 20, !15, i64 24, !11, i64 28}
!11 = !{!"bool", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = !{!"float", !12, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !19, i64 8, !12, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !18, i64 0}
!18 = !{!"any pointer", !12, i64 0}
!19 = !{!"long", !12, i64 0}
!20 = !{!"_ZTSN8nvinfer18DataTypeE", !12, i64 0}
!21 = !{!"_ZTS14pluginStatus_t", !12, i64 0}
!22 = !{!18, !18, i64 0}
!23 = !{!19, !19, i64 0}
!24 = !{!6, !14, i64 40}
!25 = !{!6, !14, i64 44}
!26 = !{!6, !11, i64 8}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!6, !14, i64 12}
!30 = !{!6, !14, i64 48}
!31 = !{!6, !14, i64 16}
!32 = !{!6, !14, i64 20}
!33 = !{!6, !14, i64 24}
!34 = !{!6, !15, i64 28}
!35 = !{!6, !15, i64 32}
!36 = !{!6, !20, i64 92}
!37 = !{!6, !11, i64 36}
!38 = !{!6, !11, i64 88}
!39 = !{!6, !14, i64 96}
!40 = !{!6, !11, i64 100}


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