; 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::DynamicPluginTensorDesc" = type { %"struct.nvinfer1::PluginTensorDesc", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64" }
%"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
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [90 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(...)

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 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()

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin23BatchedNMSDynamicPlugin15configurePluginEPKNS_23DynamicPluginTensorDescEiS4_i(ptr noundef nonnull align 8 dereferenceable(108) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 2
  br i1 %17, label %24, label %18

18:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 394)
          to label %19 unwind label %20

19:                                               ; preds = %18
  br label %24

20:                                               ; preds = %27, %18
  %21 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %22 = extractvalue { ptr, i32 } %21, 0
  store ptr %22, ptr %11, align 8
  %23 = extractvalue { ptr, i32 } %21, 1
  store i32 %23, ptr %12, align 4
  br label %54

24:                                               ; preds = %19, %5
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = icmp eq i32 %25, 4
  br i1 %26, label %29, label %27

27:                                               ; preds = %24
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.15, ptr noundef @.str.2, i32 noundef 395)
          to label %28 unwind label %20

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28, %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %15, i32 0, i32 1
  %31 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %30, i32 0, i32 0
  %32 = load i8, ptr %31, align 8, !tbaa !11, !range !24, !noundef !25
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  br label %39

35:                                               ; preds = %29
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %15, i32 0, i32 1
  %37 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 8, !tbaa !26
  br label %39

39:                                               ; preds = %35, %34
  %40 = phi i32 [ 1, %34 ], [ %38, %35 ]
  store i32 %40, ptr %13, align 4, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %41, i64 0
  %43 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !27
  %47 = icmp eq i32 %46, 4
  br i1 %47, label %65, label %48

48:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.22, ptr noundef @.str.2, i32 noundef 401)
          to label %49 unwind label %50

49:                                               ; preds = %48
  br label %65

50:                                               ; preds = %114, %87, %76, %48
  %51 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %54

54:                                               ; preds = %50, %20
  %55 = load i32, ptr %12, align 4
  %56 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #6
  %57 = icmp eq i32 %55, %56
  br i1 %57, label %58, label %177

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %59 = load ptr, ptr %11, align 8
  %60 = call ptr @__cxa_begin_catch(ptr %59) #6
  store ptr %60, ptr %14, align 8
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %62 unwind label %174

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

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %64

64:                                               ; preds = %116, %63
  ret void

65:                                               ; preds = %49, %39
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %66, i64 0
  %68 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %67, i32 0, i32 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 2
  %72 = load i64, ptr %71, align 8, !tbaa !32
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = icmp eq i64 %72, %74
  br i1 %75, label %78, label %76

76:                                               ; preds = %65
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.23, ptr noundef @.str.2, i32 noundef 402)
          to label %77 unwind label %50

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77, %65
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %79, i64 0
  %81 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [8 x i64], ptr %83, i64 0, i64 3
  %85 = load i64, ptr %84, align 8, !tbaa !32
  %86 = icmp eq i64 %85, 4
  br i1 %86, label %89, label %87

87:                                               ; preds = %78
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.24, ptr noundef @.str.2, i32 noundef 403)
          to label %88 unwind label %50

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88, %78
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %90, i64 1
  %92 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !27
  %96 = icmp eq i32 %95, 3
  br i1 %96, label %116, label %97

97:                                               ; preds = %89
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %98, i64 1
  %100 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !27
  %104 = icmp eq i32 %103, 4
  br i1 %104, label %105, label %114

105:                                              ; preds = %97
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %106, i64 1
  %108 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds [8 x i64], ptr %110, i64 0, i64 3
  %112 = load i64, ptr %111, align 8, !tbaa !32
  %113 = icmp eq i64 %112, 1
  br i1 %113, label %116, label %114

114:                                              ; preds = %105, %97
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.25, ptr noundef @.str.2, i32 noundef 407)
          to label %115 unwind label %50

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115, %105, %89
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %117, i64 0
  %119 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds [8 x i64], ptr %121, i64 0, i64 1
  %123 = load i64, ptr %122, align 8, !tbaa !32
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %124, i64 0
  %126 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %127, i32 0, i32 1
  %129 = getelementptr inbounds [8 x i64], ptr %128, i64 0, i64 2
  %130 = load i64, ptr %129, align 8, !tbaa !32
  %131 = mul nsw i64 %123, %130
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %132, i64 0
  %134 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %135, i32 0, i32 1
  %137 = getelementptr inbounds [8 x i64], ptr %136, i64 0, i64 3
  %138 = load i64, ptr %137, align 8, !tbaa !32
  %139 = mul nsw i64 %131, %138
  %140 = trunc i64 %139 to i32
  %141 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %15, i32 0, i32 2
  store i32 %140, ptr %141, align 8, !tbaa !33
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %142, i64 1
  %144 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds [8 x i64], ptr %146, i64 0, i64 1
  %148 = load i64, ptr %147, align 8, !tbaa !32
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %149, i64 1
  %151 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %152, i32 0, i32 1
  %154 = getelementptr inbounds [8 x i64], ptr %153, i64 0, i64 2
  %155 = load i64, ptr %154, align 8, !tbaa !32
  %156 = mul nsw i64 %148, %155
  %157 = trunc i64 %156 to i32
  %158 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %15, i32 0, i32 3
  store i32 %157, ptr %158, align 4, !tbaa !34
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %159, i64 0
  %161 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %162, i32 0, i32 1
  %164 = getelementptr inbounds [8 x i64], ptr %163, i64 0, i64 1
  %165 = load i64, ptr %164, align 8, !tbaa !32
  %166 = trunc i64 %165 to i32
  %167 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %15, i32 0, i32 4
  store i32 %166, ptr %167, align 8, !tbaa !35
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %168, i64 0
  %170 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 8, !tbaa !36
  %173 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSDynamicPlugin", ptr %15, i32 0, i32 9
  store i32 %172, ptr %173, align 4, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %64

174:                                              ; preds = %62, %58
  %175 = landingpad { ptr, i32 }
          catch ptr null
  %176 = extractvalue { ptr, i32 } %175, 0
  call void @__clang_call_terminate(ptr %176) #7
  unreachable

177:                                              ; preds = %54
  %178 = load ptr, ptr %11, align 8
  call void @__clang_call_terminate(ptr %178) #7
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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, !17, i64 8}
!12 = !{!"_ZTSN8nvinfer16plugin23BatchedNMSDynamicPluginE", !13, i64 0, !16, i64 8, !10, i64 40, !10, i64 44, !10, i64 48, !19, i64 56, !17, i64 88, !22, i64 92, !10, i64 96, !17, i64 100, !23, i64 104}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSN8nvinfer16plugin13NMSParametersE", !17, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !18, i64 20, !18, i64 24, !17, i64 28}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!23 = !{!"_ZTS14pluginStatus_t", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!12, !10, i64 16}
!27 = !{!28, !10, i64 0}
!28 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !29, i64 0, !30, i64 88, !30, i64 160, !30, i64 232}
!29 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !30, i64 0, !22, i64 72, !31, i64 76, !18, i64 80}
!30 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!31 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!32 = !{!21, !21, i64 0}
!33 = !{!12, !10, i64 40}
!34 = !{!12, !10, i64 44}
!35 = !{!12, !10, i64 48}
!36 = !{!28, !22, i64 72}
!37 = !{!12, !22, i64 92}


; 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
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [90 x i8], align 1

declare i32 @__gxx_personality_v0(...)

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin23BatchedNMSDynamicPlugin15configurePluginEPKNS_23DynamicPluginTensorDescEiS4_i(ptr nocapture noundef nonnull align 8 dereferenceable(108) %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = icmp eq i32 %2, 2
  br i1 %6, label %10, label %7

7:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 394)
          to label %10 unwind label %8

8:                                                ; preds = %12, %7
  %9 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %26

10:                                               ; preds = %7, %5
  %11 = icmp eq i32 %4, 4
  br i1 %11, label %13, label %12

12:                                               ; preds = %10
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2, i32 noundef 395)
          to label %13 unwind label %8

13:                                               ; preds = %12, %10
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i8, ptr %14, align 8, !tbaa !5, !range !22, !noundef !23
  %16 = trunc nuw i8 %15 to i1
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i32, ptr %17, align 8
  %19 = sext i32 %18 to i64
  %20 = select i1 %16, i64 1, i64 %19
  %21 = load i32, ptr %1, align 8, !tbaa !24
  %22 = icmp eq i32 %21, 4
  br i1 %22, label %33, label %23

23:                                               ; preds = %13
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.2, i32 noundef 401)
          to label %33 unwind label %24

24:                                               ; preds = %50, %42, %37, %23
  %25 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %26

26:                                               ; preds = %24, %8
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %9, %8 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.020 = extractvalue { ptr, i32 } %.pn, 1
  %27 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %28 = icmp eq i32 %.020, %27
  br i1 %28, label %29, label %75

29:                                               ; preds = %26
  %30 = tail call ptr @__cxa_begin_catch(ptr %.0) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %31 unwind label %72

31:                                               ; preds = %29
  invoke void @__cxa_end_catch()
          to label %32 unwind label %72

32:                                               ; preds = %31, %51
  ret void

33:                                               ; preds = %23, %13
  %34 = getelementptr inbounds i8, ptr %1, i64 24
  %35 = load i64, ptr %34, align 8, !tbaa !29
  %36 = icmp eq i64 %35, %20
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 402)
          to label %38 unwind label %24

38:                                               ; preds = %37, %33
  %39 = getelementptr inbounds i8, ptr %1, i64 32
  %40 = load i64, ptr %39, align 8, !tbaa !29
  %41 = icmp eq i64 %40, 4
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.2, i32 noundef 403)
          to label %43 unwind label %24

43:                                               ; preds = %42, %38
  %44 = getelementptr inbounds i8, ptr %1, i64 304
  %45 = load i32, ptr %44, align 8, !tbaa !24
  switch i32 %45, label %50 [
    i32 3, label %51
    i32 4, label %46
  ]

46:                                               ; preds = %43
  %47 = getelementptr inbounds i8, ptr %1, i64 336
  %48 = load i64, ptr %47, align 8, !tbaa !29
  %49 = icmp eq i64 %48, 1
  br i1 %49, label %51, label %50

50:                                               ; preds = %43, %46
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.2, i32 noundef 407)
          to label %51 unwind label %24

51:                                               ; preds = %43, %50, %46
  %52 = getelementptr inbounds i8, ptr %1, i64 16
  %53 = load i64, ptr %52, align 8, !tbaa !29
  %54 = load i64, ptr %34, align 8, !tbaa !29
  %55 = mul nsw i64 %54, %53
  %56 = load i64, ptr %39, align 8, !tbaa !29
  %57 = mul nsw i64 %55, %56
  %58 = trunc i64 %57 to i32
  %59 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %58, ptr %59, align 8, !tbaa !30
  %60 = getelementptr inbounds i8, ptr %1, i64 320
  %61 = load i64, ptr %60, align 8, !tbaa !29
  %62 = getelementptr inbounds i8, ptr %1, i64 328
  %63 = load i64, ptr %62, align 8, !tbaa !29
  %64 = mul nsw i64 %63, %61
  %65 = trunc i64 %64 to i32
  %66 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %65, ptr %66, align 4, !tbaa !31
  %67 = trunc i64 %53 to i32
  %68 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %67, ptr %68, align 8, !tbaa !32
  %69 = getelementptr inbounds i8, ptr %1, i64 72
  %70 = load i32, ptr %69, align 8, !tbaa !33
  %71 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %70, ptr %71, align 4, !tbaa !34
  br label %32

72:                                               ; preds = %31, %29
  %73 = landingpad { ptr, i32 }
          catch ptr null
  %74 = extractvalue { ptr, i32 } %73, 0
  tail call void @__clang_call_terminate(ptr %74) #6
  unreachable

75:                                               ; preds = %26
  tail call void @__clang_call_terminate(ptr %.0) #6
  unreachable
}

attributes #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 = { 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 = { 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 = { nounwind }
attributes #6 = { 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, !11, i64 8}
!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 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !14, i64 0}
!25 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !26, i64 0, !27, i64 88, !27, i64 160, !27, i64 232}
!26 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !27, i64 0, !20, i64 72, !28, i64 76, !15, i64 80}
!27 = !{!"_ZTSN8nvinfer16Dims64E", !14, i64 0, !12, i64 8}
!28 = !{!"_ZTSN8nvinfer112TensorFormatE", !12, i64 0}
!29 = !{!19, !19, i64 0}
!30 = !{!6, !14, i64 40}
!31 = !{!6, !14, i64 44}
!32 = !{!6, !14, i64 48}
!33 = !{!25, !20, i64 72}
!34 = !{!6, !20, i64 92}


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