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

; 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::DetectionOutputDynamic" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"struct.nvinfer1::plugin::DetectionOutputParameters", i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"struct.nvinfer1::plugin::DetectionOutputParameters" = type <{ i8, i8, [2 x i8], i32, i32, i32, i32, float, float, i32, [3 x i32], i8, i8, i8, 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 [80 x i8], align 1
@__func__._ZN8nvinfer16plugin22DetectionOutputDynamic7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [88 x i8], align 1

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

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

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

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

declare noundef i32 @_ZN8nvinfer16plugin18detectionInferenceEP11CUstream_stiiibbiiiiiffNS0_11CodeTypeSSDENS_8DataTypeEPKvS6_S4_S6_PvS7_S7_bbib(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin22DetectionOutputDynamic7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %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 ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %21 = load ptr, ptr %8, align 8
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %33

24:                                               ; preds = %7
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %33

27:                                               ; preds = %24
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %27
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %35, label %33

33:                                               ; preds = %30, %27, %24, %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.2, ptr noundef @__func__._ZN8nvinfer16plugin22DetectionOutputDynamic7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 250, i32 noundef 0, ptr noundef @.str.11) #5
          to label %34 unwind label %132

34:                                               ; preds = %33
  unreachable

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

130:                                              ; preds = %35
  store i32 %129, ptr %20, align 4, !tbaa !42
  %131 = load i32, ptr %20, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  ret i32 %131

132:                                              ; preds = %35, %33
  %133 = landingpad { ptr, i32 }
          catch ptr null
  %134 = extractvalue { ptr, i32 } %133, 0
  call void @__clang_call_terminate(ptr %134) #7
  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 = { 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 = { "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 = { noreturn }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 56}
!14 = !{!"_ZTSN8nvinfer16plugin22DetectionOutputDynamicE", !15, i64 0, !18, i64 8, !10, i64 56, !10, i64 60, !10, i64 64, !22, i64 68, !10, i64 72, !23, i64 80}
!15 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSN8nvinfer16plugin25DetectionOutputParametersE", !19, i64 0, !19, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !20, i64 20, !20, i64 24, !21, i64 28, !7, i64 32, !19, i64 44, !19, i64 45, !19, i64 46}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN8nvinfer16plugin11CodeTypeSSDE", !7, i64 0}
!22 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !12, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!14, !10, i64 60}
!26 = !{!14, !19, i64 8}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!14, !19, i64 9}
!30 = !{!14, !10, i64 12}
!31 = !{!14, !10, i64 64}
!32 = !{!14, !10, i64 16}
!33 = !{!14, !10, i64 20}
!34 = !{!14, !10, i64 24}
!35 = !{!14, !20, i64 28}
!36 = !{!14, !20, i64 32}
!37 = !{!14, !21, i64 36}
!38 = !{!14, !22, i64 68}
!39 = !{!14, !19, i64 53}
!40 = !{!14, !19, i64 52}
!41 = !{!14, !10, i64 72}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTS14pluginStatus_t", !7, 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 [80 x i8], align 1
@__func__._ZN8nvinfer16plugin22DetectionOutputDynamic7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = 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 noundef i32 @_ZN8nvinfer16plugin18detectionInferenceEP11CUstream_stiiibbiiiiiffNS0_11CodeTypeSSDENS_8DataTypeEPKvS6_S4_S6_PvS7_S7_bbib(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin22DetectionOutputDynamic7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st(ptr nocapture noundef nonnull readonly align 8 dereferenceable(112) %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 #3 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 %17, label %15

15:                                               ; preds = %7
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__._ZN8nvinfer16plugin22DetectionOutputDynamic7enqueueEPKNS_16PluginTensorDescES4_PKPKvPKPvS9_P11CUstream_st, i32 noundef 250, i32 noundef 0, ptr noundef nonnull @.str.11) #4
          to label %16 unwind label %77

16:                                               ; preds = %15
  unreachable

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

76:                                               ; preds = %17
  ret i32 %75

77:                                               ; preds = %17, %15
  %78 = landingpad { ptr, i32 }
          catch ptr null
  %79 = extractvalue { ptr, i32 } %78, 0
  tail call void @__clang_call_terminate(ptr %79) #5
  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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 56}
!14 = !{!"_ZTSN8nvinfer16plugin22DetectionOutputDynamicE", !15, i64 0, !18, i64 8, !6, i64 56, !6, i64 60, !6, i64 64, !22, i64 68, !6, i64 72, !23, i64 80}
!15 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSN8nvinfer16plugin25DetectionOutputParametersE", !19, i64 0, !19, i64 1, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !20, i64 20, !20, i64 24, !21, i64 28, !7, i64 32, !19, i64 44, !19, i64 45, !19, i64 46}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN8nvinfer16plugin11CodeTypeSSDE", !7, i64 0}
!22 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !12, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!25 = !{!14, !6, i64 60}
!26 = !{!14, !19, i64 8}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!14, !19, i64 9}
!30 = !{!14, !6, i64 12}
!31 = !{!14, !6, i64 64}
!32 = !{!14, !6, i64 16}
!33 = !{!14, !6, i64 20}
!34 = !{!14, !6, i64 24}
!35 = !{!14, !20, i64 28}
!36 = !{!14, !20, i64 32}
!37 = !{!14, !21, i64 36}
!38 = !{!14, !22, i64 68}
!39 = !{!14, !19, i64 53}
!40 = !{!14, !19, i64 52}
!41 = !{!14, !6, i64 72}


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