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

; 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::DimsExprs" = type { i32, [8 x ptr] }
%"class.nvinfer1::plugin::EfficientNMSPlugin" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"struct.nvinfer1::plugin::EfficientNMSParameters", i8, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2DynamicExt" = 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 = external hidden unnamed_addr constant [98 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = 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

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

declare ptr @__cxa_begin_catch(ptr)

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

; 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 @_ZN8nvinfer16plugin18EfficientNMSPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(120) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %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 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
  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
  store ptr %5, ptr %11, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %18, i32 0, i32 1
  %21 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %20, i32 0, i32 2
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = sext i32 %22 to i64
  %24 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %23) #7
  store ptr %24, ptr %12, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %18, i32 0, i32 1
  %26 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %25, i32 0, i32 4
  %27 = load i8, ptr %26, align 8, !tbaa !23, !range !24, !noundef !25
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %53

29:                                               ; preds = %6
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %18, i32 0, i32 1
  %31 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %30, i32 0, i32 3
  %32 = load i32, ptr %31, align 4, !tbaa !26
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %53

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %18, i32 0, i32 1
  %37 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %36, i32 0, i32 3
  %38 = load i32, ptr %37, align 4, !tbaa !26
  %39 = sext i32 %38 to i64
  %40 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %35, i64 noundef %39) #7
  store ptr %40, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %41, i64 1
  %43 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds [8 x ptr], ptr %43, i64 0, i64 2
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %45, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %48, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %50) #7
  %52 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %46, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %51) #7
  store ptr %52, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %53

53:                                               ; preds = %34, %29, %6
  %54 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSPlugin", ptr %18, i32 0, i32 1
  %55 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %54, i32 0, i32 12
  %56 = load i8, ptr %55, align 4, !tbaa !27, !range !24, !noundef !25
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %96

58:                                               ; preds = %53
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %80, label %61

61:                                               ; preds = %58
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.5, ptr noundef @.str, i32 noundef 190)
          to label %62 unwind label %63

62:                                               ; preds = %61
  br label %80

63:                                               ; preds = %102, %61
  %64 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %15, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %67

67:                                               ; preds = %63
  %68 = load i32, ptr %16, align 4
  %69 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %71, label %165

71:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %72 = load ptr, ptr %15, align 8
  %73 = call ptr @__cxa_begin_catch(ptr %72) #7
  store ptr %73, ptr %17, align 8
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %74)
          to label %75 unwind label %162

75:                                               ; preds = %71
  invoke void @__cxa_end_catch()
          to label %76 unwind label %162

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %77

77:                                               ; preds = %76
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %78 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  %79 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  br label %161

80:                                               ; preds = %62, %58
  %81 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 2, ptr %81, align 8, !tbaa !28
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %83, i64 0
  %85 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds [8 x ptr], ptr %85, i64 0, i64 0
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %82, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef nonnull align 8 dereferenceable(16) %88) #7
  %90 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %91 = getelementptr inbounds [8 x ptr], ptr %90, i64 0, i64 0
  store ptr %89, ptr %91, align 8, !tbaa !5
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %92, i64 noundef 3) #7
  %94 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %95 = getelementptr inbounds [8 x ptr], ptr %94, i64 0, i64 1
  store ptr %93, ptr %95, align 8, !tbaa !5
  br label %160

96:                                               ; preds = %53
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = icmp sge i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = icmp sle i32 %100, 3
  br i1 %101, label %104, label %102

102:                                              ; preds = %99, %96
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.6, ptr noundef @.str, i32 noundef 200)
          to label %103 unwind label %63

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103, %99
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %120

107:                                              ; preds = %104
  %108 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 2, ptr %108, align 8, !tbaa !28
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %109, i64 0
  %111 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds [8 x ptr], ptr %111, i64 0, i64 0
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %115 = getelementptr inbounds [8 x ptr], ptr %114, i64 0, i64 0
  store ptr %113, ptr %115, align 8, !tbaa !5
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %116, i64 noundef 1) #7
  %118 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %119 = getelementptr inbounds [8 x ptr], ptr %118, i64 0, i64 1
  store ptr %117, ptr %119, align 8, !tbaa !5
  br label %159

120:                                              ; preds = %104
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = icmp eq i32 %121, 1
  br i1 %122, label %123, label %139

123:                                              ; preds = %120
  %124 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 3, ptr %124, align 8, !tbaa !28
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %125, i64 0
  %127 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %126, i32 0, i32 1
  %128 = getelementptr inbounds [8 x ptr], ptr %127, i64 0, i64 0
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %131 = getelementptr inbounds [8 x ptr], ptr %130, i64 0, i64 0
  store ptr %129, ptr %131, align 8, !tbaa !5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %134 = getelementptr inbounds [8 x ptr], ptr %133, i64 0, i64 1
  store ptr %132, ptr %134, align 8, !tbaa !5
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %135, i64 noundef 4) #7
  %137 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %138 = getelementptr inbounds [8 x ptr], ptr %137, i64 0, i64 2
  store ptr %136, ptr %138, align 8, !tbaa !5
  br label %158

139:                                              ; preds = %120
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = icmp eq i32 %140, 2
  br i1 %141, label %145, label %142

142:                                              ; preds = %139
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = icmp eq i32 %143, 3
  br i1 %144, label %145, label %157

145:                                              ; preds = %142, %139
  %146 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 2, ptr %146, align 8, !tbaa !28
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %147, i64 0
  %149 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %148, i32 0, i32 1
  %150 = getelementptr inbounds [8 x ptr], ptr %149, i64 0, i64 0
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %153 = getelementptr inbounds [8 x ptr], ptr %152, i64 0, i64 0
  store ptr %151, ptr %153, align 8, !tbaa !5
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %156 = getelementptr inbounds [8 x ptr], ptr %155, i64 0, i64 1
  store ptr %154, ptr %156, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %145, %142
  br label %158

158:                                              ; preds = %157, %123
  br label %159

159:                                              ; preds = %158, %107
  br label %160

160:                                              ; preds = %159, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %161

161:                                              ; preds = %160, %77
  ret void

162:                                              ; preds = %75, %71
  %163 = landingpad { ptr, i32 }
          catch ptr null
  %164 = extractvalue { ptr, i32 } %163, 0
  call void @__clang_call_terminate(ptr %164) #8
  unreachable

165:                                              ; preds = %67
  %166 = load ptr, ptr %15, align 8
  call void @__clang_call_terminate(ptr %166) #8
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; 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 = { 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 = { "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 16}
!12 = !{!"_ZTSN8nvinfer16plugin18EfficientNMSPluginE", !13, i64 0, !16, i64 8, !18, i64 84, !20, i64 88}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !17, i64 0, !17, i64 4, !10, i64 8, !10, i64 12, !18, i64 16, !10, i64 20, !18, i64 24, !18, i64 25, !10, i64 28, !18, i64 32, !10, i64 36, !10, i64 40, !18, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !18, i64 68, !18, i64 69, !18, i64 70, !19, i64 72}
!17 = !{!"float", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!12, !18, i64 24}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!12, !10, i64 20}
!27 = !{!12, !18, i64 52}
!28 = !{!29, !10, i64 0}
!29 = !{!"_ZTSN8nvinfer19DimsExprsE", !10, i64 0, !7, i64 8}


; 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::DimsExprs" = type { i32, [8 x ptr] }

@.str = external hidden unnamed_addr constant [98 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

; 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 @_ZN8nvinfer16plugin18EfficientNMSPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(120) %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = getelementptr inbounds i8, ptr %1, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %9) #6
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  %12 = load i8, ptr %11, align 8, !tbaa !21, !range !22, !noundef !23
  %13 = trunc nuw i8 %12 to i1
  br i1 %13, label %14, label %25

14:                                               ; preds = %6
  %15 = getelementptr inbounds i8, ptr %1, i64 20
  %16 = load i32, ptr %15, align 4, !tbaa !24
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %18, label %25

18:                                               ; preds = %14
  %19 = zext nneg i32 %16 to i64
  %20 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %19) #6
  %21 = getelementptr inbounds i8, ptr %3, i64 96
  %22 = load ptr, ptr %21, align 8, !tbaa !25
  %23 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  %24 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %25

25:                                               ; preds = %18, %14, %6
  %.0 = phi ptr [ %24, %18 ], [ %10, %14 ], [ %10, %6 ]
  %26 = getelementptr inbounds i8, ptr %1, i64 52
  %27 = load i8, ptr %26, align 4, !tbaa !26, !range !22, !noundef !23
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %29, label %49

29:                                               ; preds = %25
  %30 = icmp eq i32 %2, 0
  br i1 %30, label %42, label %31

31:                                               ; preds = %29
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str, i32 noundef 190)
          to label %42 unwind label %32

32:                                               ; preds = %50, %31
  %33 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %34 = extractvalue { ptr, i32 } %33, 0
  %35 = extractvalue { ptr, i32 } %33, 1
  %36 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %38, label %76

38:                                               ; preds = %32
  %39 = tail call ptr @__cxa_begin_catch(ptr %34) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %39)
          to label %40 unwind label %73

40:                                               ; preds = %38
  invoke void @__cxa_end_catch()
          to label %41 unwind label %73

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

42:                                               ; preds = %31, %29
  store i32 2, ptr %0, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %45 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(16) %.0) #6
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %45, ptr %46, align 8, !tbaa !25
  %47 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 3) #6
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %47, ptr %48, align 8, !tbaa !25
  br label %72

49:                                               ; preds = %25
  %or.cond = icmp ult i32 %2, 4
  br i1 %or.cond, label %51, label %50

50:                                               ; preds = %49
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str, i32 noundef 200)
          to label %51 unwind label %32

51:                                               ; preds = %50, %49
  switch i32 %2, label %65 [
    i32 0, label %52
    i32 1, label %58
  ]

52:                                               ; preds = %51
  store i32 2, ptr %0, align 8, !tbaa !27
  %53 = getelementptr inbounds i8, ptr %3, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !25
  %55 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %54, ptr %55, align 8, !tbaa !25
  %56 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 1) #6
  %57 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %56, ptr %57, align 8, !tbaa !25
  br label %72

58:                                               ; preds = %51
  store i32 3, ptr %0, align 8, !tbaa !27
  %59 = getelementptr inbounds i8, ptr %3, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !25
  %61 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %60, ptr %61, align 8, !tbaa !25
  %62 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %.0, ptr %62, align 8, !tbaa !25
  %63 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 4) #6
  %64 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %63, ptr %64, align 8, !tbaa !25
  br label %72

65:                                               ; preds = %51
  %66 = and i32 %2, -2
  %or.cond3 = icmp eq i32 %66, 2
  br i1 %or.cond3, label %67, label %72

67:                                               ; preds = %65
  store i32 2, ptr %0, align 8, !tbaa !27
  %68 = getelementptr inbounds i8, ptr %3, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !25
  %70 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %69, ptr %70, align 8, !tbaa !25
  %71 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %.0, ptr %71, align 8, !tbaa !25
  br label %72

72:                                               ; preds = %42, %58, %65, %67, %52, %41
  ret void

73:                                               ; preds = %40, %38
  %74 = landingpad { ptr, i32 }
          catch ptr null
  %75 = extractvalue { ptr, i32 } %74, 0
  tail call void @__clang_call_terminate(ptr %75) #7
  unreachable

76:                                               ; preds = %32
  tail call void @__clang_call_terminate(ptr %34) #7
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

; 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 = { 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 #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 = { 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, !14, i64 16}
!6 = !{!"_ZTSN8nvinfer16plugin18EfficientNMSPluginE", !7, i64 0, !10, i64 8, !15, i64 84, !17, i64 88}
!7 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !9, i64 0}
!9 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!10 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !11, i64 0, !11, i64 4, !14, i64 8, !14, i64 12, !15, i64 16, !14, i64 20, !15, i64 24, !15, i64 25, !14, i64 28, !15, i64 32, !14, i64 36, !14, i64 40, !15, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !15, i64 68, !15, i64 69, !15, i64 70, !16, i64 72}
!11 = !{!"float", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = !{!"bool", !12, i64 0}
!16 = !{!"_ZTSN8nvinfer18DataTypeE", !12, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !20, i64 8, !12, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!19 = !{!"any pointer", !12, i64 0}
!20 = !{!"long", !12, i64 0}
!21 = !{!6, !15, i64 24}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!6, !14, i64 20}
!25 = !{!19, !19, i64 0}
!26 = !{!6, !15, i64 52}
!27 = !{!28, !14, i64 0}
!28 = !{!"_ZTSN8nvinfer19DimsExprsE", !14, i64 0, !12, i64 8}


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