; 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.anon = type { i8 }
%class.anon.3 = type { i8 }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::BatchedNMSPlugin" = type <{ %"class.nvinfer1::IPluginV2Ext", %"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::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] }

@.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.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [23 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 @_ZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS_6Dims64EiS4_iPKNS_8DataTypeES7_PKbS9_NS_12TensorFormatEi(ptr noundef nonnull align 8 dereferenceable(108) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca %class.anon, align 1
  %26 = alloca %class.anon.3, align 1
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store ptr %3, ptr %15, align 8, !tbaa !5
  store i32 %4, ptr %16, align 4, !tbaa !9
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store i32 %9, ptr %21, align 4, !tbaa !11
  store i32 %10, ptr %22, align 4, !tbaa !9
  %29 = load ptr, ptr %12, align 8
  %30 = load i32, ptr %14, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 2
  br i1 %31, label %38, label %32

32:                                               ; preds = %11
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 366)
          to label %33 unwind label %34

33:                                               ; preds = %32
  br label %38

34:                                               ; preds = %90, %82, %80, %72, %70, %49, %41, %32
  %35 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %23, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %24, align 4
  br label %157

38:                                               ; preds = %33, %11
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 4
  br i1 %40, label %43, label %41

41:                                               ; preds = %38
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.15, ptr noundef @.str.2, i32 noundef 367)
          to label %42 unwind label %34

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42, %38
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %44, i64 0
  %46 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = icmp eq i32 %47, 3
  br i1 %48, label %51, label %49

49:                                               ; preds = %43
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.16, ptr noundef @.str.2, i32 noundef 368)
          to label %50 unwind label %34

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50, %43
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %52, i64 1
  %54 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !13
  %56 = icmp eq i32 %55, 2
  br i1 %56, label %72, label %57

57:                                               ; preds = %51
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %58, i64 1
  %60 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !13
  %62 = icmp eq i32 %61, 3
  br i1 %62, label %63, label %70

63:                                               ; preds = %57
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %64, i64 1
  %66 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds [8 x i64], ptr %66, i64 0, i64 2
  %68 = load i64, ptr %67, align 8, !tbaa !15
  %69 = icmp eq i64 %68, 1
  br i1 %69, label %72, label %70

70:                                               ; preds = %63, %57
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.17, ptr noundef @.str.2, i32 noundef 369)
          to label %71 unwind label %34

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71, %63, %51
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  %78 = invoke noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_0EbT_SD_T0_"(ptr noundef %73, ptr noundef %77)
          to label %79 unwind label %34

79:                                               ; preds = %72
  br i1 %78, label %82, label %80

80:                                               ; preds = %79
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.18, ptr noundef @.str.2, i32 noundef 370)
          to label %81 unwind label %34

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %79
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %84, i64 %86
  %88 = invoke noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_1EbT_SD_T0_"(ptr noundef %83, ptr noundef %87)
          to label %89 unwind label %34

89:                                               ; preds = %82
  br i1 %88, label %92, label %90

90:                                               ; preds = %89
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.19, ptr noundef @.str.2, i32 noundef 371)
          to label %91 unwind label %34

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %89
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %93, i64 0
  %95 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %94, i32 0, i32 1
  %96 = getelementptr inbounds [8 x i64], ptr %95, i64 0, i64 0
  %97 = load i64, ptr %96, align 8, !tbaa !15
  %98 = load ptr, ptr %13, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %98, i64 0
  %100 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds [8 x i64], ptr %100, i64 0, i64 1
  %102 = load i64, ptr %101, align 8, !tbaa !15
  %103 = mul nsw i64 %97, %102
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %104, i64 0
  %106 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds [8 x i64], ptr %106, i64 0, i64 2
  %108 = load i64, ptr %107, align 8, !tbaa !15
  %109 = mul nsw i64 %103, %108
  %110 = trunc i64 %109 to i32
  %111 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %29, i32 0, i32 2
  store i32 %110, ptr %111, align 8, !tbaa !17
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %112, i64 1
  %114 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds [8 x i64], ptr %114, i64 0, i64 0
  %116 = load i64, ptr %115, align 8, !tbaa !15
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %117, i64 1
  %119 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %118, i32 0, i32 1
  %120 = getelementptr inbounds [8 x i64], ptr %119, i64 0, i64 1
  %121 = load i64, ptr %120, align 8, !tbaa !15
  %122 = mul nsw i64 %116, %121
  %123 = trunc i64 %122 to i32
  %124 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %29, i32 0, i32 3
  store i32 %123, ptr %124, align 4, !tbaa !28
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %125, i64 0
  %127 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %126, i32 0, i32 1
  %128 = getelementptr inbounds [8 x i64], ptr %127, i64 0, i64 0
  %129 = load i64, ptr %128, align 8, !tbaa !15
  %130 = trunc i64 %129 to i32
  %131 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %29, i32 0, i32 4
  store i32 %130, ptr %131, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %132 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %29, i32 0, i32 1
  %133 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %132, i32 0, i32 0
  %134 = load i8, ptr %133, align 8, !tbaa !30, !range !31, !noundef !32
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %137

136:                                              ; preds = %92
  br label %141

137:                                              ; preds = %92
  %138 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %29, i32 0, i32 1
  %139 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 8, !tbaa !33
  br label %141

141:                                              ; preds = %137, %136
  %142 = phi i32 [ 1, %136 ], [ %140, %137 ]
  store i32 %142, ptr %27, align 4, !tbaa !9
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %143, i64 0
  %145 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %144, i32 0, i32 1
  %146 = getelementptr inbounds [8 x i64], ptr %145, i64 0, i64 1
  %147 = load i64, ptr %146, align 8, !tbaa !15
  %148 = load i32, ptr %27, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = icmp eq i64 %147, %149
  br i1 %150, label %168, label %151

151:                                              ; preds = %141
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.20, ptr noundef @.str.2, i32 noundef 379)
          to label %152 unwind label %153

152:                                              ; preds = %151
  br label %168

153:                                              ; preds = %175, %151
  %154 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %23, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %157

157:                                              ; preds = %153, %34
  %158 = load i32, ptr %24, align 4
  %159 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #6
  %160 = icmp eq i32 %158, %159
  br i1 %160, label %161, label %185

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %162 = load ptr, ptr %23, align 8
  %163 = call ptr @__cxa_begin_catch(ptr %162) #6
  store ptr %163, ptr %28, align 8
  %164 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %164)
          to label %165 unwind label %182

165:                                              ; preds = %161
  invoke void @__cxa_end_catch()
          to label %166 unwind label %182

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %167

167:                                              ; preds = %177, %166
  ret void

168:                                              ; preds = %152, %141
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %169, i64 0
  %171 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %170, i32 0, i32 1
  %172 = getelementptr inbounds [8 x i64], ptr %171, i64 0, i64 2
  %173 = load i64, ptr %172, align 8, !tbaa !15
  %174 = icmp eq i64 %173, 4
  br i1 %174, label %177, label %175

175:                                              ; preds = %168
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.21, ptr noundef @.str.2, i32 noundef 380)
          to label %176 unwind label %153

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176, %168
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = getelementptr inbounds i32, ptr %178, i64 0
  %180 = load i32, ptr %179, align 4, !tbaa !34
  %181 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %29, i32 0, i32 9
  store i32 %180, ptr %181, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %167

182:                                              ; preds = %165, %161
  %183 = landingpad { ptr, i32 }
          catch ptr null
  %184 = extractvalue { ptr, i32 } %183, 0
  call void @__clang_call_terminate(ptr %184) #7
  unreachable

185:                                              ; preds = %157
  %186 = load ptr, ptr %23, align 8
  call void @__clang_call_terminate(ptr %186) #7
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_0EbT_SD_T0_"(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_1EbT_SD_T0_"(ptr noundef, ptr noundef) #4

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, !12, i64 0}
!12 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !10, i64 40}
!18 = !{!"_ZTSN8nvinfer16plugin16BatchedNMSPluginE", !19, i64 0, !21, i64 8, !10, i64 40, !10, i64 44, !10, i64 48, !24, i64 56, !22, i64 88, !26, i64 92, !10, i64 96, !22, i64 100, !27, i64 104}
!19 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!21 = !{!"_ZTSN8nvinfer16plugin13NMSParametersE", !22, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !23, i64 20, !23, i64 24, !22, i64 28}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !16, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!27 = !{!"_ZTS14pluginStatus_t", !7, i64 0}
!28 = !{!18, !10, i64 44}
!29 = !{!18, !10, i64 48}
!30 = !{!18, !22, i64 8}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!18, !10, i64 16}
!34 = !{!26, !26, i64 0}
!35 = !{!18, !26, 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.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [23 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 @_ZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS_6Dims64EiS4_iPKNS_8DataTypeES7_PKbS9_NS_12TensorFormatEi(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, ptr nocapture noundef readonly %5, ptr nocapture noundef readnone %6, ptr noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %12 = icmp eq i32 %2, 2
  br i1 %12, label %16, label %13

13:                                               ; preds = %11
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 366)
          to label %16 unwind label %14

14:                                               ; preds = %41, %37, %36, %31, %30, %22, %18, %13
  %15 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %73

16:                                               ; preds = %13, %11
  %17 = icmp eq i32 %4, 4
  br i1 %17, label %19, label %18

18:                                               ; preds = %16
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.2, i32 noundef 367)
          to label %19 unwind label %14

19:                                               ; preds = %18, %16
  %20 = load i32, ptr %1, align 8, !tbaa !5
  %21 = icmp eq i32 %20, 3
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2, i32 noundef 368)
          to label %23 unwind label %14

23:                                               ; preds = %22, %19
  %24 = getelementptr inbounds i8, ptr %1, i64 72
  %25 = load i32, ptr %24, align 8, !tbaa !5
  switch i32 %25, label %30 [
    i32 2, label %31
    i32 3, label %26
  ]

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %1, i64 96
  %28 = load i64, ptr %27, align 8, !tbaa !10
  %29 = icmp eq i64 %28, 1
  br i1 %29, label %31, label %30

30:                                               ; preds = %23, %26
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.2, i32 noundef 369)
          to label %31 unwind label %14

31:                                               ; preds = %23, %30, %26
  %32 = sext i32 %2 to i64
  %33 = getelementptr inbounds i8, ptr %7, i64 %32
  %34 = invoke noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_0EbT_SD_T0_"(ptr noundef %7, ptr noundef %33)
          to label %35 unwind label %14

35:                                               ; preds = %31
  br i1 %34, label %37, label %36

36:                                               ; preds = %35
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.2, i32 noundef 370)
          to label %37 unwind label %14

37:                                               ; preds = %36, %35
  %38 = getelementptr inbounds i8, ptr %8, i64 %32
  %39 = invoke noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_1EbT_SD_T0_"(ptr noundef %8, ptr noundef %38)
          to label %40 unwind label %14

40:                                               ; preds = %37
  br i1 %39, label %42, label %41

41:                                               ; preds = %40
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2, i32 noundef 371)
          to label %42 unwind label %14

42:                                               ; preds = %41, %40
  %43 = getelementptr inbounds i8, ptr %1, i64 8
  %44 = load i64, ptr %43, align 8, !tbaa !10
  %45 = getelementptr inbounds i8, ptr %1, i64 16
  %46 = load i64, ptr %45, align 8, !tbaa !10
  %47 = mul nsw i64 %46, %44
  %48 = getelementptr inbounds i8, ptr %1, i64 24
  %49 = load i64, ptr %48, align 8, !tbaa !10
  %50 = mul nsw i64 %47, %49
  %51 = trunc i64 %50 to i32
  %52 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %51, ptr %52, align 8, !tbaa !12
  %53 = getelementptr inbounds i8, ptr %1, i64 80
  %54 = load i64, ptr %53, align 8, !tbaa !10
  %55 = getelementptr inbounds i8, ptr %1, i64 88
  %56 = load i64, ptr %55, align 8, !tbaa !10
  %57 = mul nsw i64 %56, %54
  %58 = trunc i64 %57 to i32
  %59 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %58, ptr %59, align 4, !tbaa !24
  %60 = trunc i64 %44 to i32
  %61 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %60, ptr %61, align 8, !tbaa !25
  %62 = getelementptr inbounds i8, ptr %0, i64 8
  %63 = load i8, ptr %62, align 8, !tbaa !26, !range !27, !noundef !28
  %64 = trunc nuw i8 %63 to i1
  %65 = getelementptr inbounds i8, ptr %0, i64 16
  %66 = load i32, ptr %65, align 8
  %67 = sext i32 %66 to i64
  %68 = select i1 %64, i64 1, i64 %67
  %69 = icmp eq i64 %46, %68
  br i1 %69, label %80, label %70

70:                                               ; preds = %42
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.2, i32 noundef 379)
          to label %._crit_edge unwind label %71

._crit_edge:                                      ; preds = %70
  %.pre = load i64, ptr %48, align 8, !tbaa !10
  br label %80

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

73:                                               ; preds = %71, %14
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %15, %14 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.026 = extractvalue { ptr, i32 } %.pn, 1
  %74 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %75 = icmp eq i32 %.026, %74
  br i1 %75, label %76, label %90

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

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

79:                                               ; preds = %78, %84
  ret void

80:                                               ; preds = %._crit_edge, %42
  %81 = phi i64 [ %.pre, %._crit_edge ], [ %49, %42 ]
  %82 = icmp eq i64 %81, 4
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.2, i32 noundef 380)
          to label %84 unwind label %71

84:                                               ; preds = %83, %80
  %85 = load i32, ptr %5, align 4, !tbaa !29
  %86 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %85, ptr %86, align 4, !tbaa !30
  br label %79

87:                                               ; preds = %78, %76
  %88 = landingpad { ptr, i32 }
          catch ptr null
  %89 = extractvalue { ptr, i32 } %88, 0
  tail call void @__clang_call_terminate(ptr %89) #6
  unreachable

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_0EbT_SD_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt7none_ofIPKbZN8nvinfer16plugin16BatchedNMSPlugin15configurePluginEPKNS2_6Dims64EiS7_iPKNS2_8DataTypeESA_S1_S1_NS2_12TensorFormatEiE3$_1EbT_SD_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #3

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, !7, i64 0}
!6 = !{!"_ZTSN8nvinfer16Dims64E", !7, i64 0, !8, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!13, !7, i64 40}
!13 = !{!"_ZTSN8nvinfer16plugin16BatchedNMSPluginE", !14, i64 0, !16, i64 8, !7, i64 40, !7, i64 44, !7, i64 48, !19, i64 56, !17, i64 88, !22, i64 92, !7, i64 96, !17, i64 100, !23, i64 104}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSN8nvinfer16plugin13NMSParametersE", !17, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !18, i64 20, !18, i64 24, !17, i64 28}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !11, i64 8, !8, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!"_ZTSN8nvinfer18DataTypeE", !8, i64 0}
!23 = !{!"_ZTS14pluginStatus_t", !8, i64 0}
!24 = !{!13, !7, i64 44}
!25 = !{!13, !7, i64 48}
!26 = !{!13, !17, i64 8}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!22, !22, i64 0}
!30 = !{!13, !22, i64 92}


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