; LLVM IR from NVIDIA/TensorRT :: plugin/efficientNMSPlugin/tftrt (efficientNMSImplicitTFTRTPlugin)

; 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::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin" = type { %"class.nvinfer1::IPluginV2IOExt", %"struct.nvinfer1::plugin::EfficientNMSParameters", %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2IOExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"struct.nvinfer1::plugin::EfficientNMSParameters" = type { float, float, i32, i32, i8, i32, i8, i8, i32, i8, i32, i32, i8, i32, i32, i32, i32, i32, i8, i8, i8, i32 }
%"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.1 = external hidden unnamed_addr constant [117 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) #1

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

declare ptr @__cxa_begin_catch(ptr)

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

; 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 @_ZN8nvinfer16plugin31EfficientNMSImplicitTFTRTPlugin19getOutputDimensionsEiPKNS_6Dims64Ei(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Dims64") align 8 %0, ptr noundef nonnull align 8 dereferenceable(120) %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 i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  store i32 %4, ptr %9, align 4, !tbaa !9
  %14 = load ptr, ptr %6, align 8
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %15, i64 1
  %17 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp eq i32 %18, 2
  br i1 %19, label %39, label %20

20:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 118)
          to label %21 unwind label %22

21:                                               ; preds = %20
  br label %39

22:                                               ; preds = %80, %20
  %23 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %24 = extractvalue { ptr, i32 } %23, 0
  store ptr %24, ptr %10, align 8
  %25 = extractvalue { ptr, i32 } %23, 1
  store i32 %25, ptr %11, align 4
  br label %26

26:                                               ; preds = %22
  %27 = load i32, ptr %11, align 4
  %28 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %29 = icmp eq i32 %27, %28
  br i1 %29, label %30, label %123

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %31 = load ptr, ptr %10, align 8
  %32 = call ptr @__cxa_begin_catch(ptr %31) #7
  store ptr %32, ptr %13, align 8
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %34 unwind label %120

34:                                               ; preds = %30
  invoke void @__cxa_end_catch()
          to label %35 unwind label %120

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %36

36:                                               ; preds = %35
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %37 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 0
  %38 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 1
  br label %119

39:                                               ; preds = %21, %5
  %40 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %41 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %40, i32 0, i32 4
  %42 = load i8, ptr %41, align 8, !tbaa !13, !range !25, !noundef !26
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %74

44:                                               ; preds = %39
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %46 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %45, i32 0, i32 3
  %47 = load i32, ptr %46, align 4, !tbaa !27
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %49, label %74

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %50, i64 1
  %52 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds [8 x i64], ptr %52, i64 0, i64 1
  %54 = load i64, ptr %53, align 8, !tbaa !28
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %12, align 4, !tbaa !9
  %56 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %57 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %56, i32 0, i32 3
  %58 = load i32, ptr %57, align 4, !tbaa !27
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %62 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !29
  %64 = icmp slt i32 %60, %63
  br i1 %64, label %65, label %73

65:                                               ; preds = %49
  %66 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %67 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !27
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = mul nsw i32 %68, %69
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %72 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %71, i32 0, i32 2
  store i32 %70, ptr %72, align 8, !tbaa !29
  br label %73

73:                                               ; preds = %65, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %74

74:                                               ; preds = %73, %44, %39
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = icmp sge i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = icmp sle i32 %78, 3
  br i1 %79, label %82, label %80

80:                                               ; preds = %77, %74
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 129)
          to label %81 unwind label %22

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %77
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %89

85:                                               ; preds = %82
  %86 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 0
  store i32 0, ptr %86, align 8, !tbaa !11
  %87 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 1
  %88 = getelementptr inbounds [8 x i64], ptr %87, i64 0, i64 0
  store i64 0, ptr %88, align 8, !tbaa !28
  br label %118

89:                                               ; preds = %82
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %102

92:                                               ; preds = %89
  %93 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 0
  store i32 2, ptr %93, align 8, !tbaa !11
  %94 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %95 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !29
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 1
  %99 = getelementptr inbounds [8 x i64], ptr %98, i64 0, i64 0
  store i64 %97, ptr %99, align 8, !tbaa !28
  %100 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 1
  %101 = getelementptr inbounds [8 x i64], ptr %100, i64 0, i64 1
  store i64 4, ptr %101, align 8, !tbaa !28
  br label %117

102:                                              ; preds = %89
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 2
  br i1 %104, label %108, label %105

105:                                              ; preds = %102
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 3
  br i1 %107, label %108, label %116

108:                                              ; preds = %105, %102
  %109 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 0
  store i32 1, ptr %109, align 8, !tbaa !11
  %110 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %111 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %110, i32 0, i32 2
  %112 = load i32, ptr %111, align 8, !tbaa !29
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %0, i32 0, i32 1
  %115 = getelementptr inbounds [8 x i64], ptr %114, i64 0, i64 0
  store i64 %113, ptr %115, align 8, !tbaa !28
  br label %116

116:                                              ; preds = %108, %105
  br label %117

117:                                              ; preds = %116, %92
  br label %118

118:                                              ; preds = %117, %85
  br label %119

119:                                              ; preds = %118, %36
  ret void

120:                                              ; preds = %34, %30
  %121 = landingpad { ptr, i32 }
          catch ptr null
  %122 = extractvalue { ptr, i32 } %121, 0
  call void @__clang_call_terminate(ptr %122) #8
  unreachable

123:                                              ; preds = %26
  %124 = load ptr, ptr %10, align 8
  call void @__clang_call_terminate(ptr %124) #8
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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 = { 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 = { nounwind memory(none) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { 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, !10, i64 0}
!12 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!13 = !{!14, !20, i64 24}
!14 = !{!"_ZTSN8nvinfer16plugin31EfficientNMSImplicitTFTRTPluginE", !15, i64 0, !18, i64 8, !22, i64 88}
!15 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !19, i64 0, !19, i64 4, !10, i64 8, !10, i64 12, !20, i64 16, !10, i64 20, !20, i64 24, !20, i64 25, !10, i64 28, !20, i64 32, !10, i64 36, !10, i64 40, !20, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !20, i64 68, !20, i64 69, !20, i64 70, !21, i64 72}
!19 = !{!"float", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !24, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!14, !10, i64 20}
!28 = !{!24, !24, i64 0}
!29 = !{!14, !10, i64 16}


; 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"

%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 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: 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: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

; 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 @_ZN8nvinfer16plugin31EfficientNMSImplicitTFTRTPlugin19getOutputDimensionsEiPKNS_6Dims64Ei(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"class.nvinfer1::Dims64") align 8 %0, ptr nocapture noundef nonnull align 8 dereferenceable(120) %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  %6 = getelementptr inbounds i8, ptr %3, i64 72
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i32 %7, 2
  br i1 %8, label %20, label %9

9:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 118)
          to label %20 unwind label %10

10:                                               ; preds = %38, %9
  %11 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %12 = extractvalue { ptr, i32 } %11, 0
  %13 = extractvalue { ptr, i32 } %11, 1
  %14 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %15 = icmp eq i32 %13, %14
  br i1 %15, label %16, label %59

16:                                               ; preds = %10
  %17 = tail call ptr @__cxa_begin_catch(ptr %12) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %18 unwind label %56

18:                                               ; preds = %16
  invoke void @__cxa_end_catch()
          to label %19 unwind label %56

19:                                               ; preds = %18
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  br label %55

20:                                               ; preds = %9, %5
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load i8, ptr %21, align 8, !tbaa !10, !range !23, !noundef !24
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %37

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %1, i64 20
  %26 = load i32, ptr %25, align 4, !tbaa !25
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %28, label %37

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %3, i64 88
  %30 = load i64, ptr %29, align 8, !tbaa !26
  %31 = trunc i64 %30 to i32
  %32 = mul nsw i32 %26, %31
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load i32, ptr %33, align 8, !tbaa !27
  %35 = icmp slt i32 %32, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %28
  store i32 %32, ptr %33, align 8, !tbaa !27
  br label %37

37:                                               ; preds = %28, %36, %24, %20
  %or.cond = icmp ult i32 %2, 4
  br i1 %or.cond, label %39, label %38

38:                                               ; preds = %37
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 129)
          to label %39 unwind label %10

39:                                               ; preds = %38, %37
  switch i32 %2, label %48 [
    i32 0, label %40
    i32 1, label %42
  ]

40:                                               ; preds = %39
  store i32 0, ptr %0, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 0, ptr %41, align 8, !tbaa !26
  br label %55

42:                                               ; preds = %39
  store i32 2, ptr %0, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %1, i64 16
  %44 = load i32, ptr %43, align 8, !tbaa !27
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %45, ptr %46, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 4, ptr %47, align 8, !tbaa !26
  br label %55

48:                                               ; preds = %39
  %49 = and i32 %2, -2
  %or.cond3 = icmp eq i32 %49, 2
  br i1 %or.cond3, label %50, label %55

50:                                               ; preds = %48
  store i32 1, ptr %0, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %1, i64 16
  %52 = load i32, ptr %51, align 8, !tbaa !27
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %53, ptr %54, align 8, !tbaa !26
  br label %55

55:                                               ; preds = %40, %50, %48, %42, %19
  ret void

56:                                               ; preds = %18, %16
  %57 = landingpad { ptr, i32 }
          catch ptr null
  %58 = extractvalue { ptr, i32 } %57, 0
  tail call void @__clang_call_terminate(ptr %58) #7
  unreachable

59:                                               ; preds = %10
  tail call void @__clang_call_terminate(ptr %12) #7
  unreachable
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 = { 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 = { nofree nosync nounwind memory(none) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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, !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, !17, i64 24}
!11 = !{!"_ZTSN8nvinfer16plugin31EfficientNMSImplicitTFTRTPluginE", !12, i64 0, !15, i64 8, !19, i64 88}
!12 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !13, i64 0}
!13 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!15 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !16, i64 0, !16, i64 4, !7, i64 8, !7, i64 12, !17, i64 16, !7, i64 20, !17, i64 24, !17, i64 25, !7, i64 28, !17, i64 32, !7, i64 36, !7, i64 40, !17, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !17, i64 68, !17, i64 69, !17, i64 70, !18, i64 72}
!16 = !{!"float", !8, i64 0}
!17 = !{!"bool", !8, i64 0}
!18 = !{!"_ZTSN8nvinfer18DataTypeE", !8, i64 0}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !22, i64 8, !8, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!"long", !8, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!11, !7, i64 20}
!26 = !{!22, !22, i64 0}
!27 = !{!11, !7, i64 16}


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