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

; 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::Dims3" = type { %"class.nvinfer1::Dims2" }
%"class.nvinfer1::Dims2" = type { %"class.nvinfer1::Dims64" }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::initializer_list.5" = type { ptr, i64 }
%"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] }
%"class.std::allocator.6" = type { i8 }
%"struct.std::less" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"struct.nvinfer1::PluginFieldCollection" = type { i32, ptr }
%"class.nvinfer1::PluginField" = type { ptr, ptr, i32, i32 }
%"class.nvinfer1::plugin::GenerateDetectionPluginCreator" = type { %"class.nvinfer1::pluginInternal::BaseCreator", i32, i32, float, float }
%"class.nvinfer1::pluginInternal::BaseCreator" = type { %"class.nvinfer1::v_1_0::IPluginCreator", %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::v_1_0::IPluginCreator" = type { %"class.nvinfer1::v_1_0::IPluginCreatorInterface" }
%"class.nvinfer1::v_1_0::IPluginCreatorInterface" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::IVersionedInterface" = type { ptr }

@_ZN17TLTMaskRCNNConfigL11IMAGE_SHAPEE = external hidden global %"class.nvinfer1::Dims3", align 8
@.str.94 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.101 = external hidden unnamed_addr constant [108 x i8], align 1
@__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [44 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.nvinfer1::Dims3", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::set", align 8
  %11 = alloca %"class.std::initializer_list.5", align 8
  %12 = alloca [4 x %"class.std::__cxx11::basic_string"], align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::allocator.6", align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::allocator.6", align 1
  %18 = alloca %"class.std::allocator.6", align 1
  %19 = alloca %"class.std::allocator.6", align 1
  %20 = alloca i1, align 1
  %21 = alloca %"struct.std::less", align 1
  %22 = alloca %"class.std::allocator.2", align 1
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @_ZN17TLTMaskRCNNConfigL11IMAGE_SHAPEE, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #12
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.nvinfer1::PluginFieldCollection", ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #12
  store i1 true, ptr %20, align 1
  store ptr %12, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.94, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %31 unwind label %61

31:                                               ; preds = %3
  %32 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %12, i64 1
  store ptr %32, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.95, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %33 unwind label %65

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %12, i64 2
  store ptr %34, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.96, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %35 unwind label %69

35:                                               ; preds = %33
  %36 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %12, i64 3
  store ptr %36, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.97, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %37 unwind label %73

37:                                               ; preds = %35
  store i1 false, ptr %20, align 1
  %38 = getelementptr inbounds %"class.std::initializer_list.5", ptr %11, i32 0, i32 0
  store ptr %12, ptr %38, align 8, !tbaa !12
  %39 = getelementptr inbounds %"class.std::initializer_list.5", ptr %11, i32 0, i32 1
  store i64 4, ptr %39, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #12
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #12
  %40 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %43 = load i64, ptr %42, align 8
  invoke void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2ESt16initializer_listIS5_ERKS7_RKS8_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr %41, i64 %43, ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %44 unwind label %77

44:                                               ; preds = %37
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin31validateRequiredAttributesExistESt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS7_ESaIS7_EEPKNS_21PluginFieldCollectionE(ptr noundef %10, ptr noundef %45)
          to label %46 unwind label %81

46:                                               ; preds = %44
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #12
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #12
  %47 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %12, i32 0, i32 0
  %48 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %47, i64 4
  br label %49

49:                                               ; preds = %49, %46
  %50 = phi ptr [ %48, %46 ], [ %51, %49 ]
  %51 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %50, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #12
  %52 = icmp eq ptr %51, %47
  br i1 %52, label %53, label %49

53:                                               ; preds = %49
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #12
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #12
  store i32 0, ptr %23, align 4, !tbaa !16
  br label %54

54:                                               ; preds = %240, %53
  %55 = load i32, ptr %23, align 4, !tbaa !16
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.nvinfer1::PluginFieldCollection", ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = icmp slt i32 %55, %58
  br i1 %59, label %107, label %60

60:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #12
  br label %244

61:                                               ; preds = %3
  %62 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %15, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %16, align 4
  br label %96

65:                                               ; preds = %31
  %66 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %15, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %16, align 4
  br label %95

69:                                               ; preds = %33
  %70 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %15, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %16, align 4
  br label %94

73:                                               ; preds = %35
  %74 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %15, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %16, align 4
  br label %93

77:                                               ; preds = %37
  %78 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %15, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %16, align 4
  br label %85

81:                                               ; preds = %44
  %82 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %15, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %16, align 4
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #12
  br label %85

85:                                               ; preds = %81, %77
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #12
  %86 = getelementptr inbounds [4 x %"class.std::__cxx11::basic_string"], ptr %12, i32 0, i32 0
  %87 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %86, i64 4
  br label %88

88:                                               ; preds = %88, %85
  %89 = phi ptr [ %87, %85 ], [ %90, %88 ]
  %90 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %89, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %90) #12
  %91 = icmp eq ptr %90, %86
  br i1 %91, label %92, label %88

92:                                               ; preds = %88
  br label %93

93:                                               ; preds = %92, %73
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #12
  br label %94

94:                                               ; preds = %93, %69
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #12
  br label %95

95:                                               ; preds = %94, %65
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #12
  br label %96

96:                                               ; preds = %95, %61
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #12
  %97 = load i1, ptr %20, align 1
  br i1 %97, label %98, label %106

98:                                               ; preds = %96
  %99 = load ptr, ptr %13, align 8
  %100 = icmp eq ptr %12, %99
  br i1 %100, label %105, label %101

101:                                              ; preds = %101, %98
  %102 = phi ptr [ %99, %98 ], [ %103, %101 ]
  %103 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %102, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %103) #12
  %104 = icmp eq ptr %103, %12
  br i1 %104, label %105, label %101

105:                                              ; preds = %101, %98
  br label %106

106:                                              ; preds = %105, %96
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #12
  br label %264

107:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #12
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load i32, ptr %23, align 4, !tbaa !16
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %108, i64 %110
  %112 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  store ptr %113, ptr %24, align 8, !tbaa !5
  %114 = load ptr, ptr %24, align 8, !tbaa !5
  %115 = call i32 @strcmp(ptr noundef %114, ptr noundef @.str.94) #13
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %140, label %117

117:                                              ; preds = %107
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load i32, ptr %23, align 4, !tbaa !16
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %118, i64 %120
  %122 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %121, i32 0, i32 2
  %123 = load i32, ptr %122, align 8, !tbaa !21
  %124 = icmp eq i32 %123, 5
  br i1 %124, label %131, label %125

125:                                              ; preds = %117
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 80, i32 noundef 0, ptr noundef @.str.102) #14
          to label %126 unwind label %127

126:                                              ; preds = %125
  unreachable

127:                                              ; preds = %221, %198, %175, %152, %125
  %128 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %15, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %16, align 4
  br label %243

131:                                              ; preds = %117
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = load i32, ptr %23, align 4, !tbaa !16
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %132, i64 %134
  %136 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %135, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !22
  %138 = load i32, ptr %137, align 4, !tbaa !16
  %139 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 1
  store i32 %138, ptr %139, align 8, !tbaa !23
  br label %140

140:                                              ; preds = %131, %107
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = call i32 @strcmp(ptr noundef %141, ptr noundef @.str.95) #13
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %163, label %144

144:                                              ; preds = %140
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i32, ptr %23, align 4, !tbaa !16
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %145, i64 %147
  %149 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %148, i32 0, i32 2
  %150 = load i32, ptr %149, align 8, !tbaa !21
  %151 = icmp eq i32 %150, 5
  br i1 %151, label %154, label %152

152:                                              ; preds = %144
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 85, i32 noundef 0, ptr noundef @.str.102) #14
          to label %153 unwind label %127

153:                                              ; preds = %152
  unreachable

154:                                              ; preds = %144
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load i32, ptr %23, align 4, !tbaa !16
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %155, i64 %157
  %159 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !22
  %161 = load i32, ptr %160, align 4, !tbaa !16
  %162 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 2
  store i32 %161, ptr %162, align 4, !tbaa !32
  br label %163

163:                                              ; preds = %154, %140
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = call i32 @strcmp(ptr noundef %164, ptr noundef @.str.96) #13
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %186, label %167

167:                                              ; preds = %163
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load i32, ptr %23, align 4, !tbaa !16
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %168, i64 %170
  %172 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %171, i32 0, i32 2
  %173 = load i32, ptr %172, align 8, !tbaa !21
  %174 = icmp eq i32 %173, 1
  br i1 %174, label %177, label %175

175:                                              ; preds = %167
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 90, i32 noundef 0, ptr noundef @.str.103) #14
          to label %176 unwind label %127

176:                                              ; preds = %175
  unreachable

177:                                              ; preds = %167
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load i32, ptr %23, align 4, !tbaa !16
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %178, i64 %180
  %182 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %181, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !22
  %184 = load float, ptr %183, align 4, !tbaa !33
  %185 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 3
  store float %184, ptr %185, align 8, !tbaa !34
  br label %186

186:                                              ; preds = %177, %163
  %187 = load ptr, ptr %24, align 8, !tbaa !5
  %188 = call i32 @strcmp(ptr noundef %187, ptr noundef @.str.97) #13
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %209, label %190

190:                                              ; preds = %186
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = load i32, ptr %23, align 4, !tbaa !16
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %191, i64 %193
  %195 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %194, i32 0, i32 2
  %196 = load i32, ptr %195, align 8, !tbaa !21
  %197 = icmp eq i32 %196, 1
  br i1 %197, label %200, label %198

198:                                              ; preds = %190
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 95, i32 noundef 0, ptr noundef @.str.103) #14
          to label %199 unwind label %127

199:                                              ; preds = %198
  unreachable

200:                                              ; preds = %190
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = load i32, ptr %23, align 4, !tbaa !16
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %201, i64 %203
  %205 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %204, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !22
  %207 = load float, ptr %206, align 4, !tbaa !33
  %208 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 4
  store float %207, ptr %208, align 4, !tbaa !35
  br label %209

209:                                              ; preds = %200, %186
  %210 = load ptr, ptr %24, align 8, !tbaa !5
  %211 = call i32 @strcmp(ptr noundef %210, ptr noundef @.str.98) #13
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %239, label %213

213:                                              ; preds = %209
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = load i32, ptr %23, align 4, !tbaa !16
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %214, i64 %216
  %218 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %217, i32 0, i32 2
  %219 = load i32, ptr %218, align 8, !tbaa !21
  %220 = icmp eq i32 %219, 5
  br i1 %220, label %223, label %221

221:                                              ; preds = %213
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 100, i32 noundef 0, ptr noundef @.str.102) #14
          to label %222 unwind label %127

222:                                              ; preds = %221
  unreachable

223:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #12
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = load i32, ptr %23, align 4, !tbaa !16
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %224, i64 %226
  %228 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %227, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !22
  store ptr %229, ptr %25, align 8, !tbaa !5
  %230 = load ptr, ptr %25, align 8, !tbaa !5
  %231 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %8, i32 0, i32 1
  %232 = getelementptr inbounds [8 x i64], ptr %231, i64 0, i64 0
  %233 = invoke noundef ptr @_ZSt6copy_nIPKiiPlET1_T_T0_S3_(ptr noundef %230, i32 noundef 3, ptr noundef %232)
          to label %234 unwind label %235

234:                                              ; preds = %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #12
  br label %239

235:                                              ; preds = %223
  %236 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %15, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #12
  br label %243

239:                                              ; preds = %234, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #12
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %23, align 4, !tbaa !16
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %23, align 4, !tbaa !16
  br label %54, !llvm.loop !36

243:                                              ; preds = %235, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #12
  br label %264

244:                                              ; preds = %60
  %245 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 200) #15
          to label %246 unwind label %256

246:                                              ; preds = %244
  %247 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 1
  %248 = load i32, ptr %247, align 8, !tbaa !23
  %249 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 2
  %250 = load i32, ptr %249, align 4, !tbaa !32
  %251 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 3
  %252 = load float, ptr %251, align 8, !tbaa !34
  %253 = getelementptr inbounds %"class.nvinfer1::plugin::GenerateDetectionPluginCreator", ptr %27, i32 0, i32 4
  %254 = load float, ptr %253, align 4, !tbaa !35
  invoke void @_ZN8nvinfer16plugin17GenerateDetectionC1EiiffRKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(200) %245, i32 noundef %248, i32 noundef %250, float noundef %252, float noundef %254, ptr noundef nonnull align 8 dereferenceable(72) %8)
          to label %255 unwind label %260

255:                                              ; preds = %246
  store ptr %245, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #12
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #12
  br label %276

256:                                              ; preds = %244
  %257 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %15, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %16, align 4
  br label %264

260:                                              ; preds = %246
  %261 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %15, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %16, align 4
  call void @_ZdlPvm(ptr noundef %245, i64 noundef 200) #16
  br label %264

264:                                              ; preds = %260, %256, %243, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #12
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #12
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %16, align 4
  %267 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #12
  %268 = icmp eq i32 %266, %267
  br i1 %268, label %269, label %281

269:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #12
  %270 = load ptr, ptr %15, align 8
  %271 = call ptr @__cxa_begin_catch(ptr %270) #12
  store ptr %271, ptr %26, align 8
  %272 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %272)
          to label %273 unwind label %278

273:                                              ; preds = %269
  invoke void @__cxa_end_catch()
          to label %274 unwind label %278

274:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #12
  br label %275

275:                                              ; preds = %274
  store ptr null, ptr %4, align 8
  br label %276

276:                                              ; preds = %275, %255
  %277 = load ptr, ptr %4, align 8
  ret ptr %277

278:                                              ; preds = %273, %269
  %279 = landingpad { ptr, i32 }
          catch ptr null
  %280 = extractvalue { ptr, i32 } %279, 0
  call void @__clang_call_terminate(ptr %280) #17
  unreachable

281:                                              ; preds = %265
  %282 = load ptr, ptr %15, align 8
  call void @__clang_call_terminate(ptr %282) #17
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_ZN8nvinfer16plugin31validateRequiredAttributesExistESt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS7_ESaIS7_EEPKNS_21PluginFieldCollectionE(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2ESt16initializer_listIS5_ERKS7_RKS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #6

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPKiiPlET1_T_T0_S3_(ptr noundef, i32 noundef, ptr noundef) #8

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #9

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #10

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

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

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare void @_ZN8nvinfer16plugin17GenerateDetectionC1EiiffRKNS_6Dims64E(ptr, i32, i32, float, float, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind willreturn memory(read) "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 #7 = { noreturn "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 #8 = { 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 #9 = { nobuiltin allocsize(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 #10 = { nobuiltin nounwind "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 #11 = { nounwind memory(none) }
attributes #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { noreturn }
attributes #15 = { builtin allocsize(0) }
attributes #16 = { builtin nounwind }
attributes #17 = { 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, !6, i64 8}
!10 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !6, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !11, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN8nvinfer111PluginFieldE", !6, i64 0, !6, i64 8, !20, i64 16, !11, i64 20}
!20 = !{!"_ZTSN8nvinfer115PluginFieldTypeE", !7, i64 0}
!21 = !{!19, !20, i64 16}
!22 = !{!19, !6, i64 8}
!23 = !{!24, !11, i64 40}
!24 = !{!"_ZTSN8nvinfer16plugin30GenerateDetectionPluginCreatorE", !25, i64 0, !11, i64 40, !11, i64 44, !31, i64 48, !31, i64 52}
!25 = !{!"_ZTSN8nvinfer114pluginInternal11BaseCreatorE", !26, i64 0, !29, i64 8}
!26 = !{!"_ZTSN8nvinfer15v_1_014IPluginCreatorE", !27, i64 0}
!27 = !{!"_ZTSN8nvinfer15v_1_023IPluginCreatorInterfaceE", !28, i64 0}
!28 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !14, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"float", !7, i64 0}
!32 = !{!24, !11, i64 44}
!33 = !{!31, !31, i64 0}
!34 = !{!24, !31, i64 48}
!35 = !{!24, !31, i64 52}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


; 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::Dims3" = type { %"class.nvinfer1::Dims2" }
%"class.nvinfer1::Dims2" = type { %"class.nvinfer1::Dims64" }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"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] }
%"class.std::allocator.6" = type { i8 }
%"struct.std::less" = type { i8 }
%"class.std::allocator.2" = type { i8 }
%"class.nvinfer1::PluginField" = type { ptr, ptr, i32, i32 }

@_ZN17TLTMaskRCNNConfigL11IMAGE_SHAPEE = external hidden local_unnamed_addr global %"class.nvinfer1::Dims3", align 8
@.str.94 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [11 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.101 = external hidden unnamed_addr constant [108 x i8], align 1
@__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [44 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE(ptr nocapture noundef nonnull align 8 dereferenceable(56) %0, ptr nocapture noundef readnone %1, ptr noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.nvinfer1::Dims3", align 8
  %5 = alloca %"class.std::set", align 8
  %6 = alloca [4 x %"class.std::__cxx11::basic_string"], align 8
  %7 = alloca %"class.std::allocator.6", align 1
  %8 = alloca %"class.std::allocator.6", align 1
  %9 = alloca %"class.std::allocator.6", align 1
  %10 = alloca %"class.std::allocator.6", align 1
  %11 = alloca %"struct.std::less", align 1
  %12 = alloca %"class.std::allocator.2", align 1
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(72) @_ZN17TLTMaskRCNNConfigL11IMAGE_SHAPEE, i64 72, i1 false)
  %13 = getelementptr inbounds i8, ptr %2, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.94, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %15 unwind label %.thread

15:                                               ; preds = %3
  %16 = getelementptr inbounds i8, ptr %6, i64 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.95, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %17 unwind label %36

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %6, i64 64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.96, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %19 unwind label %38

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %6, i64 96
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.97, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %21 unwind label %40

21:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #12
  call void @_ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  invoke void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2ESt16initializer_listIS5_ERKS7_RKS8_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr nonnull %6, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %22 unwind label %42

22:                                               ; preds = %21
  invoke void @_ZN8nvinfer16plugin31validateRequiredAttributesExistESt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS7_ESaIS7_EEPKNS_21PluginFieldCollectionE(ptr noundef nonnull %5, ptr noundef nonnull %2)
          to label %23 unwind label %44

23:                                               ; preds = %22
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #12
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #12
  %24 = getelementptr inbounds i8, ptr %6, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #12
  %25 = getelementptr inbounds i8, ptr %6, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #12
  %26 = getelementptr inbounds i8, ptr %6, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #12
  %27 = load i32, ptr %2, align 8, !tbaa !11
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %23
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = getelementptr inbounds i8, ptr %0, i64 44
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = getelementptr inbounds i8, ptr %0, i64 52
  %33 = getelementptr inbounds i8, ptr %4, i64 8
  br label %55

._crit_edge:                                      ; preds = %114, %23
  %34 = invoke noalias noundef nonnull dereferenceable(200) ptr @_Znwm(i64 noundef 200) #13
          to label %118 unwind label %128

.thread:                                          ; preds = %3
  %35 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  br label %.loopexit

36:                                               ; preds = %15
  %37 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %51

38:                                               ; preds = %17
  %39 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %50

40:                                               ; preds = %19
  %41 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %.loopexit75

42:                                               ; preds = %21
  %43 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %.loopexit75.loopexit

44:                                               ; preds = %22
  %45 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #12
  br label %.loopexit75.loopexit

.loopexit75.loopexit:                             ; preds = %44, %42
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %43, %42 ]
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #12
  %46 = getelementptr inbounds i8, ptr %6, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #12
  %47 = getelementptr inbounds i8, ptr %6, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #12
  %48 = getelementptr inbounds i8, ptr %6, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #12
  br label %.loopexit75

.loopexit75:                                      ; preds = %.loopexit75.loopexit, %40
  %.pn.pn = phi { ptr, i32 } [ %41, %40 ], [ %.pn, %.loopexit75.loopexit ]
  %49 = phi i1 [ false, %40 ], [ true, %.loopexit75.loopexit ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #12
  br label %50

50:                                               ; preds = %.loopexit75, %38
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit75 ], [ %39, %38 ]
  %.147 = phi i1 [ %49, %.loopexit75 ], [ false, %38 ]
  %.041 = phi ptr [ %20, %.loopexit75 ], [ %18, %38 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #12
  br label %51

51:                                               ; preds = %36, %50
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %50 ], [ %37, %36 ]
  %.248 = phi i1 [ %.147, %50 ], [ false, %36 ]
  %.1 = phi ptr [ %.041, %50 ], [ %16, %36 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #12
  br i1 %.248, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %51, %.preheader
  %52 = phi ptr [ %53, %.preheader ], [ %.1, %51 ]
  %53 = getelementptr inbounds i8, ptr %52, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #12
  %54 = icmp eq ptr %53, %6
  br i1 %54, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread, %51
  %.pn.pn.pn.pn.pn74 = phi { ptr, i32 } [ %35, %.thread ], [ %.pn.pn.pn.pn, %51 ], [ %.pn.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #12
  br label %132

55:                                               ; preds = %.lr.ph, %114
  %56 = phi i32 [ %27, %.lr.ph ], [ %115, %114 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %114 ]
  %57 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %14, i64 %indvars.iv
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %59 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.94) #14
  %.not = icmp eq i32 %59, 0
  br i1 %.not, label %60, label %70

60:                                               ; preds = %55
  %61 = getelementptr inbounds i8, ptr %57, i64 16
  %62 = load i32, ptr %61, align 8, !tbaa !15
  %63 = icmp eq i32 %62, 5
  br i1 %63, label %66, label %.invoke

64:                                               ; preds = %.invoke
  %65 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %132

66:                                               ; preds = %60
  %67 = getelementptr inbounds i8, ptr %57, i64 8
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load i32, ptr %68, align 4, !tbaa !17
  store i32 %69, ptr %29, align 8, !tbaa !18
  br label %70

70:                                               ; preds = %66, %55
  %71 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.95) #14
  %.not63 = icmp eq i32 %71, 0
  br i1 %.not63, label %72, label %80

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %57, i64 16
  %74 = load i32, ptr %73, align 8, !tbaa !15
  %75 = icmp eq i32 %74, 5
  br i1 %75, label %76, label %.invoke

76:                                               ; preds = %72
  %77 = getelementptr inbounds i8, ptr %57, i64 8
  %78 = load ptr, ptr %77, align 8, !tbaa !16
  %79 = load i32, ptr %78, align 4, !tbaa !17
  store i32 %79, ptr %30, align 4, !tbaa !28
  br label %80

80:                                               ; preds = %76, %70
  %81 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.96) #14
  %.not64 = icmp eq i32 %81, 0
  br i1 %.not64, label %82, label %90

82:                                               ; preds = %80
  %83 = getelementptr inbounds i8, ptr %57, i64 16
  %84 = load i32, ptr %83, align 8, !tbaa !15
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %.invoke

86:                                               ; preds = %82
  %87 = getelementptr inbounds i8, ptr %57, i64 8
  %88 = load ptr, ptr %87, align 8, !tbaa !16
  %89 = load float, ptr %88, align 4, !tbaa !29
  store float %89, ptr %31, align 8, !tbaa !30
  br label %90

90:                                               ; preds = %86, %80
  %91 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.97) #14
  %.not65 = icmp eq i32 %91, 0
  br i1 %.not65, label %92, label %100

92:                                               ; preds = %90
  %93 = getelementptr inbounds i8, ptr %57, i64 16
  %94 = load i32, ptr %93, align 8, !tbaa !15
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %.invoke

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %57, i64 8
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  %99 = load float, ptr %98, align 4, !tbaa !29
  store float %99, ptr %32, align 4, !tbaa !31
  br label %100

100:                                              ; preds = %96, %90
  %101 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %58, ptr noundef nonnull dereferenceable(1) @.str.98) #14
  %.not66 = icmp eq i32 %101, 0
  br i1 %.not66, label %102, label %114

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %57, i64 16
  %104 = load i32, ptr %103, align 8, !tbaa !15
  %105 = icmp eq i32 %104, 5
  br i1 %105, label %108, label %.invoke

.invoke:                                          ; preds = %60, %102, %92, %82, %72
  %106 = phi i32 [ 85, %72 ], [ 90, %82 ], [ 95, %92 ], [ 100, %102 ], [ 80, %60 ]
  %107 = phi ptr [ @.str.102, %72 ], [ @.str.103, %82 ], [ @.str.103, %92 ], [ @.str.102, %102 ], [ @.str.102, %60 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.101, ptr noundef nonnull @__func__._ZN8nvinfer16plugin30GenerateDetectionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef %106, i32 noundef 0, ptr noundef nonnull %107) #15
          to label %.cont unwind label %64

.cont:                                            ; preds = %.invoke
  unreachable

108:                                              ; preds = %102
  %109 = getelementptr inbounds i8, ptr %57, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !16
  %111 = invoke noundef ptr @_ZSt6copy_nIPKiiPlET1_T_T0_S3_(ptr noundef %110, i32 noundef 3, ptr noundef nonnull %33)
          to label %._crit_edge78 unwind label %112

._crit_edge78:                                    ; preds = %108
  %.pre = load i32, ptr %2, align 8, !tbaa !11
  br label %114

112:                                              ; preds = %108
  %113 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %132

114:                                              ; preds = %._crit_edge78, %100
  %115 = phi i32 [ %.pre, %._crit_edge78 ], [ %56, %100 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next, %116
  br i1 %117, label %55, label %._crit_edge, !llvm.loop !32

118:                                              ; preds = %._crit_edge
  %119 = getelementptr inbounds i8, ptr %0, i64 40
  %120 = load i32, ptr %119, align 8, !tbaa !18
  %121 = getelementptr inbounds i8, ptr %0, i64 44
  %122 = load i32, ptr %121, align 4, !tbaa !28
  %123 = getelementptr inbounds i8, ptr %0, i64 48
  %124 = load float, ptr %123, align 8, !tbaa !30
  %125 = getelementptr inbounds i8, ptr %0, i64 52
  %126 = load float, ptr %125, align 4, !tbaa !31
  invoke void @_ZN8nvinfer16plugin17GenerateDetectionC1EiiffRKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(200) %34, i32 noundef %120, i32 noundef %122, float noundef %124, float noundef %126, ptr noundef nonnull align 8 dereferenceable(72) %4)
          to label %127 unwind label %130

127:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #12
  br label %138

128:                                              ; preds = %._crit_edge
  %129 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %132

130:                                              ; preds = %118
  %131 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @_ZdlPvm(ptr noundef nonnull %34, i64 noundef 200) #16
  br label %132

132:                                              ; preds = %64, %112, %130, %128, %.loopexit
  %.pn67.pn = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ], [ %.pn.pn.pn.pn.pn74, %.loopexit ], [ %113, %112 ], [ %65, %64 ]
  %.6 = extractvalue { ptr, i32 } %.pn67.pn, 0
  %.656 = extractvalue { ptr, i32 } %.pn67.pn, 1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #12
  %133 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #12
  %134 = icmp eq i32 %.656, %133
  br i1 %134, label %135, label %142

135:                                              ; preds = %132
  %136 = call ptr @__cxa_begin_catch(ptr %.6) #12
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %136)
          to label %137 unwind label %139

137:                                              ; preds = %135
  invoke void @__cxa_end_catch()
          to label %138 unwind label %139

138:                                              ; preds = %137, %127
  %.0 = phi ptr [ %34, %127 ], [ null, %137 ]
  ret ptr %.0

139:                                              ; preds = %137, %135
  %140 = landingpad { ptr, i32 }
          catch ptr null
  %141 = extractvalue { ptr, i32 } %140, 0
  call void @__clang_call_terminate(ptr %141) #17
  unreachable

142:                                              ; preds = %132
  call void @__clang_call_terminate(ptr %.6) #17
  unreachable
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_ZN8nvinfer16plugin31validateRequiredAttributesExistESt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS7_ESaIS7_EEPKNS_21PluginFieldCollectionE(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EEC2ESt16initializer_listIS5_ERKS7_RKS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6copy_nIPKiiPlET1_T_T0_S3_(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #9

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #10

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

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare void @_ZN8nvinfer16plugin17GenerateDetectionC1EiiffRKNS_6Dims64E(ptr, i32, i32, float, float, ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #7 = { noreturn "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 #8 = { 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 #9 = { nobuiltin allocsize(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 #10 = { nobuiltin nounwind "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 #11 = { nofree nosync nounwind memory(none) }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { noreturn }
attributes #16 = { builtin nounwind }
attributes #17 = { 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, !10, i64 8}
!6 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"_ZTSN8nvinfer111PluginFieldE", !10, i64 0, !10, i64 8, !14, i64 16, !7, i64 20}
!14 = !{!"_ZTSN8nvinfer115PluginFieldTypeE", !8, i64 0}
!15 = !{!13, !14, i64 16}
!16 = !{!13, !10, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 40}
!19 = !{!"_ZTSN8nvinfer16plugin30GenerateDetectionPluginCreatorE", !20, i64 0, !7, i64 40, !7, i64 44, !27, i64 48, !27, i64 52}
!20 = !{!"_ZTSN8nvinfer114pluginInternal11BaseCreatorE", !21, i64 0, !24, i64 8}
!21 = !{!"_ZTSN8nvinfer15v_1_014IPluginCreatorE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer15v_1_023IPluginCreatorInterfaceE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !8, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!26 = !{!"long", !8, i64 0}
!27 = !{!"float", !8, i64 0}
!28 = !{!19, !7, i64 44}
!29 = !{!27, !27, i64 0}
!30 = !{!19, !27, i64 48}
!31 = !{!19, !27, i64 52}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass