; 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::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] }

@_ZTISt9exception = external constant ptr

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: 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) #2

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #3

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin16BatchedNMSPlugin7enqueueEiPKPKvPKPvS6_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(108) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca 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 ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds ptr, ptr %26, i64 0
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %29, i64 1
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %31, ptr %15, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 13
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %123

36:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i64 0
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %39, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 1
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %42, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds ptr, ptr %43, i64 2
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %45, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 3
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %48, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !23
  %53 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 3
  %54 = load i32, ptr %53, align 4, !tbaa !24
  %55 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %56 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %55, i32 0, i32 0
  %57 = load i8, ptr %56, align 8, !tbaa !25, !range !26, !noundef !27
  %58 = trunc i8 %57 to i1
  %59 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %60 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !28
  %62 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 4
  %63 = load i32, ptr %62, align 8, !tbaa !29
  %64 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %65 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 8, !tbaa !30
  %67 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %68 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %67, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !31
  %70 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %71 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %70, i32 0, i32 4
  %72 = load i32, ptr %71, align 8, !tbaa !32
  %73 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %74 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %73, i32 0, i32 5
  %75 = load float, ptr %74, align 4, !tbaa !33
  %76 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %77 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %76, i32 0, i32 6
  %78 = load float, ptr %77, align 8, !tbaa !34
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 9
  %80 = load i32, ptr %79, align 4, !tbaa !35
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 9
  %83 = load i32, ptr %82, align 4, !tbaa !35
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 1
  %91 = getelementptr inbounds %"struct.nvinfer1::plugin::NMSParameters", ptr %90, i32 0, i32 7
  %92 = load i8, ptr %91, align 4, !tbaa !36, !range !26, !noundef !27
  %93 = trunc i8 %92 to i1
  %94 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 7
  %95 = load i8, ptr %94, align 8, !tbaa !37, !range !26, !noundef !27
  %96 = trunc i8 %95 to i1
  %97 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 10
  %98 = load i32, ptr %97, align 8, !tbaa !38
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::BatchedNMSPlugin", ptr %25, i32 0, i32 11
  %100 = load i8, ptr %99, align 4, !tbaa !39, !range !26, !noundef !27
  %101 = trunc i8 %100 to i1
  %102 = invoke noundef i32 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef %49, i32 noundef %50, i32 noundef %52, i32 noundef %54, i1 noundef zeroext %58, i32 noundef %61, i32 noundef %63, i32 noundef %66, i32 noundef %69, i32 noundef %72, float noundef %75, float noundef %78, i32 noundef %80, ptr noundef %81, i32 noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, i1 noundef zeroext %93, i1 noundef zeroext false, i1 noundef zeroext %96, i32 noundef %98, i1 noundef zeroext %101)
          to label %103 unwind label %108

103:                                              ; preds = %36
  store i32 %102, ptr %21, align 4, !tbaa !40
  %104 = load i32, ptr %21, align 4, !tbaa !40
  %105 = icmp eq i32 %104, 0
  %106 = zext i1 %105 to i64
  %107 = select i1 %105, i32 0, i32 -1
  store i32 %107, ptr %7, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %123

108:                                              ; preds = %36
  %109 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %22, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %112

112:                                              ; preds = %108
  %113 = load i32, ptr %23, align 4
  %114 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #6
  %115 = icmp eq i32 %113, %114
  br i1 %115, label %116, label %129

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %117 = load ptr, ptr %22, align 8
  %118 = call ptr @__cxa_begin_catch(ptr %117) #6
  store ptr %118, ptr %24, align 8
  %119 = load ptr, ptr %24, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %119)
          to label %120 unwind label %126

120:                                              ; preds = %116
  invoke void @__cxa_end_catch()
          to label %121 unwind label %126

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %122

122:                                              ; preds = %121
  store i32 -1, ptr %7, align 4
  br label %124

123:                                              ; preds = %103, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %124

124:                                              ; preds = %123, %122
  %125 = load i32, ptr %7, align 4
  ret i32 %125

126:                                              ; preds = %120, %116
  %127 = landingpad { ptr, i32 }
          catch ptr null
  %128 = extractvalue { ptr, i32 } %127, 0
  call void @__clang_call_terminate(ptr %128) #7
  unreachable

129:                                              ; preds = %112
  %130 = load ptr, ptr %22, align 8
  call void @__clang_call_terminate(ptr %130) #7
  unreachable
}

declare noundef i32 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i1 noundef zeroext) #5

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@_ZTISt9exception = external constant ptr

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #0

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

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 #2

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 -1, 1) i32 @_ZN8nvinfer16plugin16BatchedNMSPlugin7enqueueEiPKPKvPKPvS6_P11CUstream_st(ptr nocapture noundef nonnull readonly align 8 dereferenceable(108) %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr noundef %4, ptr noundef %5) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %67

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !21
  %12 = load ptr, ptr %2, align 8, !tbaa !21
  %13 = load ptr, ptr %3, align 8, !tbaa !21
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !21
  %16 = getelementptr inbounds i8, ptr %3, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !21
  %18 = getelementptr inbounds i8, ptr %3, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load i32, ptr %20, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %0, i64 44
  %23 = load i32, ptr %22, align 4, !tbaa !23
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load i8, ptr %24, align 8, !tbaa !24, !range !25, !noundef !26
  %26 = trunc nuw i8 %25 to i1
  %27 = getelementptr inbounds i8, ptr %0, i64 12
  %28 = load i32, ptr %27, align 4, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %0, i64 48
  %30 = load i32, ptr %29, align 8, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load i32, ptr %31, align 8, !tbaa !29
  %33 = getelementptr inbounds i8, ptr %0, i64 20
  %34 = load i32, ptr %33, align 4, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = load i32, ptr %35, align 8, !tbaa !31
  %37 = getelementptr inbounds i8, ptr %0, i64 28
  %38 = load float, ptr %37, align 4, !tbaa !32
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = load float, ptr %39, align 8, !tbaa !33
  %41 = getelementptr inbounds i8, ptr %0, i64 92
  %42 = load i32, ptr %41, align 4, !tbaa !34
  %43 = getelementptr inbounds i8, ptr %0, i64 36
  %44 = load i8, ptr %43, align 4, !tbaa !35, !range !25, !noundef !26
  %45 = trunc nuw i8 %44 to i1
  %46 = getelementptr inbounds i8, ptr %0, i64 88
  %47 = load i8, ptr %46, align 8, !tbaa !36, !range !25, !noundef !26
  %48 = trunc nuw i8 %47 to i1
  %49 = getelementptr inbounds i8, ptr %0, i64 96
  %50 = load i32, ptr %49, align 8, !tbaa !37
  %51 = getelementptr inbounds i8, ptr %0, i64 100
  %52 = load i8, ptr %51, align 4, !tbaa !38, !range !25, !noundef !26
  %53 = trunc nuw i8 %52 to i1
  %54 = invoke noundef i32 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef %5, i32 noundef %1, i32 noundef %21, i32 noundef %23, i1 noundef zeroext %26, i32 noundef %28, i32 noundef %30, i32 noundef %32, i32 noundef %34, i32 noundef %36, float noundef %38, float noundef %40, i32 noundef %42, ptr noundef %12, i32 noundef %42, ptr noundef %11, ptr noundef %13, ptr noundef %15, ptr noundef %17, ptr noundef %19, ptr noundef %4, i1 noundef zeroext %45, i1 noundef zeroext false, i1 noundef zeroext %48, i32 noundef %50, i1 noundef zeroext %53)
          to label %55 unwind label %58

55:                                               ; preds = %9
  %56 = icmp ne i32 %54, 0
  %57 = sext i1 %56 to i32
  br label %67

58:                                               ; preds = %9
  %59 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %60 = extractvalue { ptr, i32 } %59, 0
  %61 = extractvalue { ptr, i32 } %59, 1
  %62 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %63 = icmp eq i32 %61, %62
  br i1 %63, label %64, label %71

64:                                               ; preds = %58
  %65 = tail call ptr @__cxa_begin_catch(ptr %60) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %66 unwind label %68

66:                                               ; preds = %64
  invoke void @__cxa_end_catch()
          to label %67 unwind label %68

67:                                               ; preds = %55, %6, %66
  %.1 = phi i32 [ -1, %66 ], [ %57, %55 ], [ -1, %6 ]
  ret i32 %.1

68:                                               ; preds = %66, %64
  %69 = landingpad { ptr, i32 }
          catch ptr null
  %70 = extractvalue { ptr, i32 } %69, 0
  tail call void @__clang_call_terminate(ptr %70) #6
  unreachable

71:                                               ; preds = %58
  tail call void @__clang_call_terminate(ptr %60) #6
  unreachable
}

declare noundef i32 @_ZN8nvinfer16plugin12nmsInferenceEP11CUstream_stiiibiiiiiffNS_8DataTypeEPKvS3_S5_PvS6_S6_S6_S6_bbbib(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, i1 noundef zeroext) local_unnamed_addr #4

attributes #0 = { nofree nosync nounwind memory(none) }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !20, i64 104}
!6 = !{!"_ZTSN8nvinfer16plugin16BatchedNMSPluginE", !7, i64 0, !9, i64 8, !13, i64 40, !13, i64 44, !13, i64 48, !15, i64 56, !10, i64 88, !19, i64 92, !13, i64 96, !10, i64 100, !20, i64 104}
!7 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!9 = !{!"_ZTSN8nvinfer16plugin13NMSParametersE", !10, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20, !14, i64 24, !10, i64 28}
!10 = !{!"bool", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!"float", !11, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !18, i64 8, !11, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !11, i64 0}
!18 = !{!"long", !11, i64 0}
!19 = !{!"_ZTSN8nvinfer18DataTypeE", !11, i64 0}
!20 = !{!"_ZTS14pluginStatus_t", !11, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!6, !13, i64 40}
!23 = !{!6, !13, i64 44}
!24 = !{!6, !10, i64 8}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!6, !13, i64 12}
!28 = !{!6, !13, i64 48}
!29 = !{!6, !13, i64 16}
!30 = !{!6, !13, i64 20}
!31 = !{!6, !13, i64 24}
!32 = !{!6, !14, i64 28}
!33 = !{!6, !14, i64 32}
!34 = !{!6, !19, i64 92}
!35 = !{!6, !10, i64 36}
!36 = !{!6, !10, i64 88}
!37 = !{!6, !13, i64 96}
!38 = !{!6, !10, i64 100}


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