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

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"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.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 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 @_ZN8nvinfer16plugin31EfficientNMSImplicitTFTRTPlugin15configurePluginEPKNS_16PluginTensorDescEiS4_i(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %14 = load ptr, ptr %6, align 8
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 2
  br i1 %16, label %34, label %17

17:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 263)
          to label %18 unwind label %19

18:                                               ; preds = %17
  br label %34

19:                                               ; preds = %183, %173, %125, %108, %67, %37, %17
  %20 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %21 = extractvalue { ptr, i32 } %20, 0
  store ptr %21, ptr %11, align 8
  %22 = extractvalue { ptr, i32 } %20, 1
  store i32 %22, ptr %12, align 4
  br label %23

23:                                               ; preds = %19
  %24 = load i32, ptr %12, align 4
  %25 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #6
  %26 = icmp eq i32 %24, %25
  br i1 %26, label %27, label %228

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %28 = load ptr, ptr %11, align 8
  %29 = call ptr @__cxa_begin_catch(ptr %28) #6
  store ptr %29, ptr %13, align 8
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %31 unwind label %225

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

32:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %33

33:                                               ; preds = %224, %32
  ret void

34:                                               ; preds = %18, %5
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 4
  br i1 %36, label %39, label %37

37:                                               ; preds = %34
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 264)
          to label %38 unwind label %19

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38, %34
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %40, i64 0
  %42 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %45 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %44, i32 0, i32 21
  store i32 %43, ptr %45, align 8, !tbaa !17
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %46, i64 1
  %48 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !27
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %69, label %52

52:                                               ; preds = %39
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %53, i64 1
  %55 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !27
  %58 = icmp eq i32 %57, 3
  br i1 %58, label %59, label %67

59:                                               ; preds = %52
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %60, i64 1
  %62 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds [8 x i64], ptr %63, i64 0, i64 2
  %65 = load i64, ptr %64, align 8, !tbaa !28
  %66 = icmp eq i64 %65, 1
  br i1 %66, label %69, label %67

67:                                               ; preds = %59, %52
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 270)
          to label %68 unwind label %19

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68, %59, %39
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %70, i64 1
  %72 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds [8 x i64], ptr %73, i64 0, i64 0
  %75 = load i64, ptr %74, align 8, !tbaa !28
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %76, i64 1
  %78 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds [8 x i64], ptr %79, i64 0, i64 1
  %81 = load i64, ptr %80, align 8, !tbaa !28
  %82 = mul nsw i64 %75, %81
  %83 = trunc i64 %82 to i32
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %85 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %84, i32 0, i32 16
  store i32 %83, ptr %85, align 4, !tbaa !29
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %86, i64 1
  %88 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %88, i32 0, i32 1
  %90 = getelementptr inbounds [8 x i64], ptr %89, i64 0, i64 1
  %91 = load i64, ptr %90, align 8, !tbaa !28
  %92 = trunc i64 %91 to i32
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %94 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %93, i32 0, i32 14
  store i32 %92, ptr %94, align 4, !tbaa !30
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %95, i64 0
  %97 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !27
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %110, label %101

101:                                              ; preds = %69
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %102, i64 0
  %104 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !27
  %107 = icmp eq i32 %106, 3
  br i1 %107, label %110, label %108

108:                                              ; preds = %101
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 277)
          to label %109 unwind label %19

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109, %101, %69
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %111, i64 0
  %113 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !27
  %116 = icmp eq i32 %115, 2
  br i1 %116, label %117, label %146

117:                                              ; preds = %110
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %118, i64 0
  %120 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds [8 x i64], ptr %121, i64 0, i64 1
  %123 = load i64, ptr %122, align 8, !tbaa !28
  %124 = icmp eq i64 %123, 4
  br i1 %124, label %127, label %125

125:                                              ; preds = %117
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 280)
          to label %126 unwind label %19

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126, %117
  %128 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %129 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %128, i32 0, i32 18
  store i8 1, ptr %129, align 4, !tbaa !31
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %130, i64 0
  %132 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %132, i32 0, i32 1
  %134 = getelementptr inbounds [8 x i64], ptr %133, i64 0, i64 0
  %135 = load i64, ptr %134, align 8, !tbaa !28
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %136, i64 0
  %138 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds [8 x i64], ptr %139, i64 0, i64 1
  %141 = load i64, ptr %140, align 8, !tbaa !28
  %142 = mul nsw i64 %135, %141
  %143 = trunc i64 %142 to i32
  %144 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %145 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %144, i32 0, i32 15
  store i32 %143, ptr %145, align 8, !tbaa !32
  br label %209

146:                                              ; preds = %110
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %147, i64 0
  %149 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds [8 x i64], ptr %150, i64 0, i64 1
  %152 = load i64, ptr %151, align 8, !tbaa !28
  %153 = icmp eq i64 %152, 1
  %154 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %155 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %154, i32 0, i32 18
  %156 = zext i1 %153 to i8
  store i8 %156, ptr %155, align 4, !tbaa !31
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %157, i64 0
  %159 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds [8 x i64], ptr %160, i64 0, i64 1
  %162 = load i64, ptr %161, align 8, !tbaa !28
  %163 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %164 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %163, i32 0, i32 14
  %165 = load i32, ptr %164, align 4, !tbaa !30
  %166 = sext i32 %165 to i64
  %167 = icmp eq i64 %162, %166
  br i1 %167, label %175, label %168

168:                                              ; preds = %146
  %169 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %170 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %169, i32 0, i32 18
  %171 = load i8, ptr %170, align 4, !tbaa !31, !range !33, !noundef !34
  %172 = trunc i8 %171 to i1
  br i1 %172, label %175, label %173

173:                                              ; preds = %168
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 287)
          to label %174 unwind label %19

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174, %168, %146
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %176, i64 0
  %178 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds [8 x i64], ptr %179, i64 0, i64 2
  %181 = load i64, ptr %180, align 8, !tbaa !28
  %182 = icmp eq i64 %181, 4
  br i1 %182, label %185, label %183

183:                                              ; preds = %175
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 288)
          to label %184 unwind label %19

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184, %175
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %186, i64 0
  %188 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %188, i32 0, i32 1
  %190 = getelementptr inbounds [8 x i64], ptr %189, i64 0, i64 0
  %191 = load i64, ptr %190, align 8, !tbaa !28
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %192, i64 0
  %194 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %193, i32 0, i32 0
  %195 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %194, i32 0, i32 1
  %196 = getelementptr inbounds [8 x i64], ptr %195, i64 0, i64 1
  %197 = load i64, ptr %196, align 8, !tbaa !28
  %198 = mul nsw i64 %191, %197
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %199, i64 0
  %201 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %201, i32 0, i32 1
  %203 = getelementptr inbounds [8 x i64], ptr %202, i64 0, i64 2
  %204 = load i64, ptr %203, align 8, !tbaa !28
  %205 = mul nsw i64 %198, %204
  %206 = trunc i64 %205 to i32
  %207 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %208 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %207, i32 0, i32 15
  store i32 %206, ptr %208, align 8, !tbaa !32
  br label %209

209:                                              ; preds = %185, %127
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %210, i64 0
  %212 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %212, i32 0, i32 1
  %214 = getelementptr inbounds [8 x i64], ptr %213, i64 0, i64 0
  %215 = load i64, ptr %214, align 8, !tbaa !28
  %216 = trunc i64 %215 to i32
  %217 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %218 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %217, i32 0, i32 17
  store i32 %216, ptr %218, align 8, !tbaa !35
  %219 = load i32, ptr %8, align 4, !tbaa !9
  %220 = icmp eq i32 %219, 2
  br i1 %220, label %221, label %224

221:                                              ; preds = %209
  %222 = getelementptr inbounds %"class.nvinfer1::plugin::EfficientNMSImplicitTFTRTPlugin", ptr %14, i32 0, i32 1
  %223 = getelementptr inbounds %"struct.nvinfer1::plugin::EfficientNMSParameters", ptr %222, i32 0, i32 20
  store i8 0, ptr %223, align 2, !tbaa !36
  br label %224

224:                                              ; preds = %221, %209
  br label %33

225:                                              ; preds = %31, %27
  %226 = landingpad { ptr, i32 }
          catch ptr null
  %227 = extractvalue { ptr, i32 } %226, 0
  call void @__clang_call_terminate(ptr %227) #7
  unreachable

228:                                              ; preds = %23
  %229 = load ptr, ptr %11, align 8
  call void @__clang_call_terminate(ptr %229) #7
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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, !14, i64 72}
!12 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !13, i64 0, !14, i64 72, !15, i64 76, !16, i64 80}
!13 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!14 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!15 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !14, i64 80}
!18 = !{!"_ZTSN8nvinfer16plugin31EfficientNMSImplicitTFTRTPluginE", !19, i64 0, !22, i64 8, !24, i64 88}
!19 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!22 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !16, i64 0, !16, i64 4, !10, i64 8, !10, i64 12, !23, i64 16, !10, i64 20, !23, i64 24, !23, i64 25, !10, i64 28, !23, i64 32, !10, i64 36, !10, i64 40, !23, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !23, i64 68, !23, i64 69, !23, i64 70, !14, i64 72}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"long", !7, i64 0}
!27 = !{!12, !10, i64 0}
!28 = !{!26, !26, i64 0}
!29 = !{!18, !10, i64 68}
!30 = !{!18, !10, i64 60}
!31 = !{!18, !23, i64 76}
!32 = !{!18, !10, i64 64}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!18, !10, i64 72}
!36 = !{!18, !23, i64 78}


; 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.1 = external hidden unnamed_addr constant [117 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 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 @_ZN8nvinfer16plugin31EfficientNMSImplicitTFTRTPlugin15configurePluginEPKNS_16PluginTensorDescEiS4_i(ptr nocapture noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = icmp eq i32 %2, 2
  br i1 %6, label %18, label %7

7:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 263)
          to label %18 unwind label %8

8:                                                ; preds = %71, %66, %53, %44, %31, %20, %7
  %9 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %10 = extractvalue { ptr, i32 } %9, 0
  %11 = extractvalue { ptr, i32 } %9, 1
  %12 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %13 = icmp eq i32 %11, %12
  br i1 %13, label %14, label %89

14:                                               ; preds = %8
  %15 = tail call ptr @__cxa_begin_catch(ptr %10) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %16 unwind label %86

16:                                               ; preds = %14
  invoke void @__cxa_end_catch()
          to label %17 unwind label %86

17:                                               ; preds = %16, %78, %84
  ret void

18:                                               ; preds = %7, %5
  %19 = icmp eq i32 %4, 4
  br i1 %19, label %21, label %20

20:                                               ; preds = %18
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 264)
          to label %21 unwind label %8

21:                                               ; preds = %20, %18
  %22 = getelementptr inbounds i8, ptr %1, i64 72
  %23 = load i32, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %23, ptr %24, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %1, i64 88
  %26 = load i32, ptr %25, align 8, !tbaa !25
  switch i32 %26, label %31 [
    i32 2, label %32
    i32 3, label %27
  ]

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

31:                                               ; preds = %21, %27
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 270)
          to label %32 unwind label %8

32:                                               ; preds = %21, %31, %27
  %33 = getelementptr inbounds i8, ptr %1, i64 96
  %34 = load i64, ptr %33, align 8, !tbaa !26
  %35 = getelementptr inbounds i8, ptr %1, i64 104
  %36 = load i64, ptr %35, align 8, !tbaa !26
  %37 = mul nsw i64 %36, %34
  %38 = trunc i64 %37 to i32
  %39 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %38, ptr %39, align 4, !tbaa !27
  %40 = trunc i64 %36 to i32
  %41 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %40, ptr %41, align 4, !tbaa !28
  %42 = load i32, ptr %1, align 8, !tbaa !25
  %43 = and i32 %42, -2
  %switch = icmp eq i32 %43, 2
  br i1 %switch, label %45, label %44

44:                                               ; preds = %32
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 277)
          to label %thread-pre-split unwind label %8

thread-pre-split:                                 ; preds = %44
  %.pr = load i32, ptr %1, align 8, !tbaa !25
  br label %45

45:                                               ; preds = %thread-pre-split, %32
  %46 = phi i32 [ %.pr, %thread-pre-split ], [ %42, %32 ]
  %47 = icmp eq i32 %46, 2
  %48 = getelementptr inbounds i8, ptr %1, i64 8
  %49 = getelementptr inbounds i8, ptr %1, i64 16
  %50 = load i64, ptr %49, align 8, !tbaa !26
  br i1 %47, label %51, label %59

51:                                               ; preds = %45
  %52 = icmp eq i64 %50, 4
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 280)
          to label %._crit_edge28 unwind label %8

._crit_edge28:                                    ; preds = %53
  %.pre29 = load i64, ptr %49, align 8, !tbaa !26
  br label %54

54:                                               ; preds = %._crit_edge28, %51
  %55 = phi i64 [ %.pre29, %._crit_edge28 ], [ 4, %51 ]
  %56 = getelementptr inbounds i8, ptr %0, i64 76
  store i8 1, ptr %56, align 4, !tbaa !29
  %57 = load i64, ptr %48, align 8, !tbaa !26
  %58 = mul nsw i64 %55, %57
  br label %78

59:                                               ; preds = %45
  %60 = icmp eq i64 %50, 1
  %61 = getelementptr inbounds i8, ptr %0, i64 76
  %62 = zext i1 %60 to i8
  store i8 %62, ptr %61, align 4, !tbaa !29
  %63 = load i32, ptr %41, align 4, !tbaa !28
  %64 = sext i32 %63 to i64
  %65 = icmp eq i64 %50, %64
  %brmerge = or i1 %60, %65
  br i1 %brmerge, label %67, label %66

66:                                               ; preds = %59
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 287)
          to label %67 unwind label %8

67:                                               ; preds = %59, %66
  %68 = getelementptr inbounds i8, ptr %1, i64 24
  %69 = load i64, ptr %68, align 8, !tbaa !26
  %70 = icmp eq i64 %69, 4
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 288)
          to label %._crit_edge unwind label %8

._crit_edge:                                      ; preds = %71
  %.pre = load i64, ptr %68, align 8, !tbaa !26
  br label %72

72:                                               ; preds = %._crit_edge, %67
  %73 = phi i64 [ %.pre, %._crit_edge ], [ 4, %67 ]
  %74 = load i64, ptr %48, align 8, !tbaa !26
  %75 = load i64, ptr %49, align 8, !tbaa !26
  %76 = mul nsw i64 %75, %74
  %77 = mul nsw i64 %76, %73
  br label %78

78:                                               ; preds = %72, %54
  %.sink31 = phi i64 [ %77, %72 ], [ %58, %54 ]
  %79 = phi i64 [ %74, %72 ], [ %57, %54 ]
  %80 = trunc i64 %.sink31 to i32
  %81 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %80, ptr %81, align 8, !tbaa !30
  %82 = trunc i64 %79 to i32
  %83 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %82, ptr %83, align 8, !tbaa !31
  br i1 %6, label %84, label %17

84:                                               ; preds = %78
  %85 = getelementptr inbounds i8, ptr %0, i64 78
  store i8 0, ptr %85, align 2, !tbaa !32
  br label %17

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

89:                                               ; preds = %8
  tail call void @__clang_call_terminate(ptr %10) #6
  unreachable
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 72}
!6 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !7, i64 0, !11, i64 72, !12, i64 76, !13, i64 80}
!7 = !{!"_ZTSN8nvinfer16Dims64E", !8, i64 0, !9, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN8nvinfer18DataTypeE", !9, i64 0}
!12 = !{!"_ZTSN8nvinfer112TensorFormatE", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!15, !11, i64 80}
!15 = !{!"_ZTSN8nvinfer16plugin31EfficientNMSImplicitTFTRTPluginE", !16, i64 0, !19, i64 8, !21, i64 88}
!16 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSN8nvinfer16plugin22EfficientNMSParametersE", !13, i64 0, !13, i64 4, !8, i64 8, !8, i64 12, !20, i64 16, !8, i64 20, !20, i64 24, !20, i64 25, !8, i64 28, !20, i64 32, !8, i64 36, !8, i64 40, !20, i64 44, !8, i64 48, !8, i64 52, !8, i64 56, !8, i64 60, !8, i64 64, !20, i64 68, !20, i64 69, !20, i64 70, !11, i64 72}
!20 = !{!"bool", !9, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !24, i64 8, !9, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !23, i64 0}
!23 = !{!"any pointer", !9, i64 0}
!24 = !{!"long", !9, i64 0}
!25 = !{!6, !8, i64 0}
!26 = !{!24, !24, i64 0}
!27 = !{!15, !8, i64 68}
!28 = !{!15, !8, i64 60}
!29 = !{!15, !20, i64 76}
!30 = !{!15, !8, i64 64}
!31 = !{!15, !8, i64 72}
!32 = !{!15, !20, i64 78}


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