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

; 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::GenerateDetection" = type { %"class.nvinfer1::IPluginV2Ext", i32, i32, i32, float, float, i32, i32, %"class.std::shared_ptr", i32, %struct.RefineNMSParameters, %"class.std::shared_ptr.17", %"class.nvinfer1::Dims64", %"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 }
%struct.RefineNMSParameters = type { i32, i32, i32, float, float }
%"class.std::shared_ptr.17" = type { %"class.std::__shared_ptr.18" }
%"class.std::__shared_ptr.18" = type { ptr, %"class.std::__shared_count" }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"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.101 = external hidden unnamed_addr constant [108 x i8], align 1
@_ZTVN8nvinfer16plugin17GenerateDetectionE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E = external hidden unnamed_addr constant [18 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [66 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

43:                                               ; preds = %6
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef 137, i32 noundef 0, ptr noundef @.str.104) #5
          to label %44 unwind label %45

44:                                               ; preds = %43
  unreachable

45:                                               ; preds = %90, %70, %63, %58, %53, %43
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %13, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #4
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br label %112

49:                                               ; preds = %6
  %50 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 3
  %51 = load i32, ptr %50, align 8, !tbaa !31
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %55, label %53

53:                                               ; preds = %49
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef 138, i32 noundef 0, ptr noundef @.str.105) #5
          to label %54 unwind label %45

54:                                               ; preds = %53
  unreachable

55:                                               ; preds = %49
  %56 = load float, ptr %10, align 4, !tbaa !11
  %57 = fcmp oge float %56, 0.000000e+00
  br i1 %57, label %60, label %58

58:                                               ; preds = %55
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef 139, i32 noundef 0, ptr noundef @.str.106) #5
          to label %59 unwind label %45

59:                                               ; preds = %58
  unreachable

60:                                               ; preds = %55
  %61 = load float, ptr %11, align 4, !tbaa !11
  %62 = fcmp ogt float %61, 0.000000e+00
  br i1 %62, label %65, label %63

63:                                               ; preds = %60
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef 140, i32 noundef 0, ptr noundef @.str.107) #5
          to label %64 unwind label %45

64:                                               ; preds = %63
  unreachable

65:                                               ; preds = %60
  %66 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 12
  %67 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !44
  %69 = icmp eq i32 %68, 3
  br i1 %69, label %72, label %70

70:                                               ; preds = %65
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef 141, i32 noundef 0, ptr noundef @.str.108) #5
          to label %71 unwind label %45

71:                                               ; preds = %70
  unreachable

72:                                               ; preds = %65
  %73 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 12
  %74 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds [8 x i64], ptr %74, i64 0, i64 0
  %76 = load i64, ptr %75, align 8, !tbaa !45
  %77 = icmp sgt i64 %76, 0
  br i1 %77, label %78, label %90

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 12
  %80 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds [8 x i64], ptr %80, i64 0, i64 1
  %82 = load i64, ptr %81, align 8, !tbaa !45
  %83 = icmp sgt i64 %82, 0
  br i1 %83, label %84, label %90

84:                                               ; preds = %78
  %85 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 12
  %86 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [8 x i64], ptr %86, i64 0, i64 2
  %88 = load i64, ptr %87, align 8, !tbaa !45
  %89 = icmp sgt i64 %88, 0
  br i1 %89, label %92, label %90

90:                                               ; preds = %84, %78, %72
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef 142, i32 noundef 0, ptr noundef @.str.109) #5
          to label %91 unwind label %45

91:                                               ; preds = %90
  unreachable

92:                                               ; preds = %84
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 10
  %94 = getelementptr inbounds %struct.RefineNMSParameters, ptr %93, i32 0, i32 0
  store i32 0, ptr %94, align 4, !tbaa !46
  %95 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 2
  %96 = load i32, ptr %95, align 4, !tbaa !30
  %97 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 10
  %98 = getelementptr inbounds %struct.RefineNMSParameters, ptr %97, i32 0, i32 1
  store i32 %96, ptr %98, align 4, !tbaa !47
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 3
  %100 = load i32, ptr %99, align 8, !tbaa !31
  %101 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 10
  %102 = getelementptr inbounds %struct.RefineNMSParameters, ptr %101, i32 0, i32 2
  store i32 %100, ptr %102, align 4, !tbaa !48
  %103 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 4
  %104 = load float, ptr %103, align 4, !tbaa !32
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 10
  %106 = getelementptr inbounds %struct.RefineNMSParameters, ptr %105, i32 0, i32 3
  store float %104, ptr %106, align 4, !tbaa !49
  %107 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 5
  %108 = load float, ptr %107, align 8, !tbaa !33
  %109 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 10
  %110 = getelementptr inbounds %struct.RefineNMSParameters, ptr %109, i32 0, i32 4
  store float %108, ptr %110, align 4, !tbaa !50
  %111 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetection", ptr %15, i32 0, i32 9
  store i32 0, ptr %111, align 8, !tbaa !36
  ret void

112:                                              ; preds = %45
  %113 = load ptr, ptr %13, align 8
  %114 = load i32, ptr %14, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 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 #0 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 #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree 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 = { 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 = !{!"_ZTSN8nvinfer16plugin17GenerateDetectionE", !17, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !12, i64 20, !12, i64 24, !10, i64 28, !10, i64 32, !19, i64 40, !22, i64 56, !23, i64 60, !24, i64 80, !26, i64 96, !27, i64 168}
!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 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!23 = !{!"_ZTS19RefineNMSParameters", !10, i64 0, !10, i64 4, !10, i64 8, !12, i64 12, !12, i64 16}
!24 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEE", !25, i64 0}
!25 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !21, i64 8}
!26 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !29, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!29 = !{!"long", !7, i64 0}
!30 = !{!16, !10, i64 12}
!31 = !{!16, !10, i64 16}
!32 = !{!16, !12, i64 20}
!33 = !{!16, !12, i64 24}
!34 = !{!16, !10, i64 28}
!35 = !{!16, !10, i64 32}
!36 = !{!16, !22, i64 56}
!37 = !{!23, !10, i64 0}
!38 = !{!23, !10, i64 4}
!39 = !{!23, !10, i64 8}
!40 = !{!23, !12, i64 12}
!41 = !{!23, !12, i64 16}
!42 = !{i64 0, i64 4, !9, i64 8, i64 64, !43}
!43 = !{!7, !7, i64 0}
!44 = !{!16, !10, i64 96}
!45 = !{!29, !29, i64 0}
!46 = !{!16, !10, i64 60}
!47 = !{!16, !10, i64 64}
!48 = !{!16, !10, i64 68}
!49 = !{!16, !12, i64 72}
!50 = !{!16, !12, i64 76}


; 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.101 = external hidden unnamed_addr constant [108 x i8], align 1
@_ZTVN8nvinfer16plugin17GenerateDetectionE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E = external hidden unnamed_addr constant [18 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [66 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; 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 @_ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr nocapture noundef nonnull readonly align 8 dereferenceable(72) %5) 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 @_ZTVN8nvinfer16plugin17GenerateDetectionE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 0, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %1, ptr %8, align 4, !tbaa !27
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %2, ptr %9, align 8, !tbaa !28
  %10 = getelementptr inbounds i8, ptr %0, i64 20
  store float %3, ptr %10, align 4, !tbaa !29
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  store float %4, ptr %11, align 8, !tbaa !30
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %12, align 4, !tbaa !31
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 0, ptr %13, align 8, !tbaa !32
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %15, i8 0, i64 24, i1 false)
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %17, ptr noundef nonnull align 8 dereferenceable(72) %5, i64 72, i1 false), !tbaa.struct !33
  %18 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #5
  store i32 0, ptr %7, align 8, !tbaa !8
  %19 = load i32, ptr %8, align 4, !tbaa !27
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %23, label %.invoke

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

23:                                               ; preds = %6
  %24 = load i32, ptr %9, align 8, !tbaa !28
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %26, label %.invoke

26:                                               ; preds = %23
  %27 = fcmp ult float %3, 0.000000e+00
  br i1 %27, label %.invoke, label %28

28:                                               ; preds = %26
  %29 = fcmp ogt float %4, 0.000000e+00
  br i1 %29, label %30, label %.invoke

30:                                               ; preds = %28
  %31 = load i32, ptr %17, align 8, !tbaa !36
  %32 = icmp eq i32 %31, 3
  br i1 %32, label %33, label %.invoke

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 104
  %35 = load i64, ptr %34, align 8, !tbaa !37
  %36 = icmp sgt i64 %35, 0
  %37 = getelementptr inbounds i8, ptr %0, i64 112
  %38 = load i64, ptr %37, align 8
  %39 = icmp sgt i64 %38, 0
  %or.cond = select i1 %36, i1 %39, i1 false
  %40 = getelementptr inbounds i8, ptr %0, i64 120
  %41 = load i64, ptr %40, align 8
  %42 = icmp sgt i64 %41, 0
  %or.cond13 = select i1 %or.cond, i1 %42, i1 false
  br i1 %or.cond13, label %45, label %.invoke

.invoke:                                          ; preds = %6, %33, %30, %28, %26, %23
  %43 = phi i32 [ 138, %23 ], [ 139, %26 ], [ 140, %28 ], [ 141, %30 ], [ 142, %33 ], [ 137, %6 ]
  %44 = phi ptr [ @.str.105, %23 ], [ @.str.106, %26 ], [ @.str.107, %28 ], [ @.str.108, %30 ], [ @.str.109, %33 ], [ @.str.104, %6 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.101, ptr noundef nonnull @__func__._ZN8nvinfer16plugin17GenerateDetectionC2EiiffRKNS_6Dims64E, i32 noundef %43, i32 noundef 0, ptr noundef nonnull %44) #6
          to label %.cont unwind label %21

.cont:                                            ; preds = %.invoke
  unreachable

45:                                               ; preds = %33
  %46 = getelementptr inbounds i8, ptr %0, i64 72
  %47 = getelementptr inbounds i8, ptr %0, i64 68
  %48 = getelementptr inbounds i8, ptr %0, i64 64
  %49 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 0, ptr %49, align 4, !tbaa !38
  store i32 %19, ptr %48, align 8, !tbaa !39
  store i32 %24, ptr %47, align 4, !tbaa !40
  %50 = load <2 x float>, ptr %10, align 4, !tbaa !41
  store <2 x float> %50, ptr %46, align 8, !tbaa !41
  store i32 0, ptr %15, align 8, !tbaa !42
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 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 #0 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 #0 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 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 #1 = { mustprogress nocallback nofree 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 = { 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 = !{!"_ZTSN8nvinfer16plugin17GenerateDetectionE", !10, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !14, i64 20, !14, i64 24, !12, i64 28, !12, i64 32, !15, i64 40, !19, i64 56, !20, i64 60, !21, i64 80, !23, i64 96, !24, i64 168}
!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 = !{!"_ZTSN8nvinfer18DataTypeE", !13, i64 0}
!20 = !{!"_ZTS19RefineNMSParameters", !12, i64 0, !12, i64 4, !12, i64 8, !14, i64 12, !14, i64 16}
!21 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEE", !22, i64 0}
!22 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EE", !17, i64 0, !18, i64 8}
!23 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !13, i64 8}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !13, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!26 = !{!"long", !13, i64 0}
!27 = !{!9, !12, i64 12}
!28 = !{!9, !12, i64 16}
!29 = !{!9, !14, i64 20}
!30 = !{!9, !14, i64 24}
!31 = !{!9, !12, i64 28}
!32 = !{!9, !12, i64 32}
!33 = !{i64 0, i64 4, !34, i64 8, i64 64, !35}
!34 = !{!12, !12, i64 0}
!35 = !{!13, !13, i64 0}
!36 = !{!9, !12, i64 96}
!37 = !{!26, !26, i64 0}
!38 = !{!9, !12, i64 60}
!39 = !{!9, !12, i64 64}
!40 = !{!9, !12, i64 68}
!41 = !{!14, !14, i64 0}
!42 = !{!9, !19, i64 56}


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