; LLVM IR from NVIDIA/TensorRT :: plugin/multilevelProposeROI (multilevelProposeROIPlugin)

; 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::MultilevelProposeROIPluginCreator" = 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 [13 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__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_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 @_ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_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.std::set", align 8
  %9 = alloca %"class.std::initializer_list.5", align 8
  %10 = alloca [4 x %"class.std::__cxx11::basic_string"], align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::allocator.6", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::allocator.6", align 1
  %16 = alloca %"class.std::allocator.6", align 1
  %17 = alloca %"class.std::allocator.6", align 1
  %18 = alloca i1, align 1
  %19 = alloca %"struct.std::less", align 1
  %20 = alloca %"class.std::allocator.2", align 1
  %21 = alloca %"class.nvinfer1::Dims3", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"class.nvinfer1::Dims64", align 8
  %27 = 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
  %28 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr %10) #12
  store i1 true, ptr %18, align 1
  store ptr %10, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str.94, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %29 unwind label %62

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

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

33:                                               ; preds = %31
  %34 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %10, i64 3
  store ptr %34, ptr %11, 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) %34, ptr noundef @.str.97, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %35 unwind label %74

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

42:                                               ; preds = %35
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin31validateRequiredAttributesExistESt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS7_ESaIS7_EEPKNS_21PluginFieldCollectionE(ptr noundef %8, ptr noundef %43)
          to label %44 unwind label %82

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

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

51:                                               ; preds = %47
  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) %16) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #12
  call void @llvm.lifetime.end.p0(i64 128, ptr %10) #12
  call void @llvm.lifetime.start.p0(i64 72, ptr %21) #12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 @_ZN17TLTMaskRCNNConfigL11IMAGE_SHAPEE, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #12
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.nvinfer1::PluginFieldCollection", ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  store ptr %54, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #12
  store i32 0, ptr %23, align 4, !tbaa !16
  br label %55

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

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

62:                                               ; preds = %3
  %63 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  br label %97

66:                                               ; preds = %29
  %67 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %13, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %14, align 4
  br label %96

70:                                               ; preds = %31
  %71 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  br label %95

74:                                               ; preds = %33
  %75 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  br label %94

78:                                               ; preds = %35
  %79 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %13, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %14, align 4
  br label %86

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

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

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

93:                                               ; preds = %89
  br label %94

94:                                               ; preds = %93, %74
  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 %95

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

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

97:                                               ; preds = %96, %62
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #12
  %98 = load i1, ptr %18, align 1
  br i1 %98, label %99, label %107

99:                                               ; preds = %97
  %100 = load ptr, ptr %11, align 8
  %101 = icmp eq ptr %10, %100
  br i1 %101, label %106, label %102

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

106:                                              ; preds = %102, %99
  br label %107

107:                                              ; preds = %106, %97
  call void @llvm.lifetime.end.p0(i64 128, ptr %10) #12
  br label %266

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

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

126:                                              ; preds = %118
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 83, i32 noundef 0, ptr noundef @.str.102) #14
          to label %127 unwind label %128

127:                                              ; preds = %126
  unreachable

128:                                              ; preds = %222, %199, %176, %153, %126
  %129 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %13, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %14, align 4
  br label %244

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

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

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

153:                                              ; preds = %145
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 88, i32 noundef 0, ptr noundef @.str.102) #14
          to label %154 unwind label %128

154:                                              ; preds = %153
  unreachable

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

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

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

176:                                              ; preds = %168
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 93, i32 noundef 0, ptr noundef @.str.103) #14
          to label %177 unwind label %128

177:                                              ; preds = %176
  unreachable

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

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

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

199:                                              ; preds = %191
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 98, i32 noundef 0, ptr noundef @.str.103) #14
          to label %200 unwind label %128

200:                                              ; preds = %199
  unreachable

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

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

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

222:                                              ; preds = %214
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 103, i32 noundef 0, ptr noundef @.str.102) #14
          to label %223 unwind label %128

223:                                              ; preds = %222
  unreachable

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

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

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

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

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

244:                                              ; preds = %236, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #12
  br label %265

245:                                              ; preds = %61
  %246 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 384) #15
          to label %247 unwind label %257

247:                                              ; preds = %245
  %248 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROIPluginCreator", ptr %28, i32 0, i32 1
  %249 = load i32, ptr %248, align 8, !tbaa !23
  %250 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROIPluginCreator", ptr %28, i32 0, i32 2
  %251 = load i32, ptr %250, align 4, !tbaa !32
  %252 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROIPluginCreator", ptr %28, i32 0, i32 3
  %253 = load float, ptr %252, align 8, !tbaa !34
  %254 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROIPluginCreator", ptr %28, i32 0, i32 4
  %255 = load float, ptr %254, align 4, !tbaa !35
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %21, i64 72, i1 false), !tbaa.struct !38
  invoke void @_ZN8nvinfer16plugin20MultilevelProposeROIC1EiiffNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(384) %246, i32 noundef %249, i32 noundef %251, float noundef %253, float noundef %255, ptr noundef byval(%"class.nvinfer1::Dims64") align 8 %26)
          to label %256 unwind label %261

256:                                              ; preds = %247
  store ptr %246, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #12
  call void @llvm.lifetime.end.p0(i64 72, ptr %21) #12
  br label %277

257:                                              ; preds = %245
  %258 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %13, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %14, align 4
  br label %265

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

265:                                              ; preds = %261, %257, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #12
  call void @llvm.lifetime.end.p0(i64 72, ptr %21) #12
  br label %266

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

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

274:                                              ; preds = %270
  invoke void @__cxa_end_catch()
          to label %275 unwind label %279

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

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

277:                                              ; preds = %276, %256
  %278 = load ptr, ptr %4, align 8
  ret ptr %278

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

282:                                              ; preds = %266
  %283 = load ptr, ptr %13, align 8
  call void @__clang_call_terminate(ptr %283) #17
  unreachable
}

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

; 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: 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) #5

; 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 @_ZN8nvinfer16plugin20MultilevelProposeROIC1EiiffNS_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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 0}
!10 = !{!"_ZTSSt16initializer_listINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE", !6, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !15, i64 0, !6, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!14, !15, i64 0}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN8nvinfer111PluginFieldE", !6, i64 0, !6, i64 8, !20, i64 16, !15, i64 20}
!20 = !{!"_ZTSN8nvinfer115PluginFieldTypeE", !7, i64 0}
!21 = !{!19, !20, i64 16}
!22 = !{!19, !6, i64 8}
!23 = !{!24, !15, i64 40}
!24 = !{!"_ZTSN8nvinfer16plugin33MultilevelProposeROIPluginCreatorE", !25, i64 0, !15, i64 40, !15, 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, !11, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"float", !7, i64 0}
!32 = !{!24, !15, 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"}
!38 = !{i64 0, i64 4, !16, i64 8, i64 64, !39}
!39 = !{!7, !7, i64 0}


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

%"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 [13 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__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_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 @_ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_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.std::set", align 8
  %5 = alloca [4 x %"class.std::__cxx11::basic_string"], align 8
  %6 = alloca %"class.std::allocator.6", align 1
  %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 %"struct.std::less", align 1
  %11 = alloca %"class.std::allocator.2", align 1
  %12 = alloca %"class.nvinfer1::Dims3", align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #12
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str.94, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %13 unwind label %.thread

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %5, i64 32
  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) %14, ptr noundef nonnull @.str.95, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %15 unwind label %36

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %5, i64 64
  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.96, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %17 unwind label %38

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %5, i64 96
  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.97, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %19 unwind label %40

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

20:                                               ; preds = %19
  invoke void @_ZN8nvinfer16plugin31validateRequiredAttributesExistESt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS7_ESaIS7_EEPKNS_21PluginFieldCollectionE(ptr noundef nonnull %4, ptr noundef %2)
          to label %21 unwind label %44

21:                                               ; preds = %20
  call void @_ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #12
  call void @_ZNSt15__new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #12
  %22 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #12
  %23 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #12
  %24 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #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 @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #12
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %12) #12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef nonnull align 8 dereferenceable(72) @_ZN17TLTMaskRCNNConfigL11IMAGE_SHAPEE, i64 72, i1 false)
  %25 = getelementptr inbounds i8, ptr %2, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %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 = %21
  %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 %12, i64 8
  br label %55

._crit_edge:                                      ; preds = %114, %21
  %34 = invoke noalias noundef nonnull dereferenceable(384) ptr @_Znwm(i64 noundef 384) #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) %6) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #12
  br label %.loopexit

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

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

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

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

44:                                               ; preds = %20
  %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) %4) #12
  br label %.loopexit77.loopexit

.loopexit77.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) %11) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #12
  %46 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #12
  %47 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #12
  %48 = getelementptr inbounds i8, ptr %5, 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) %5) #12
  br label %.loopexit77

.loopexit77:                                      ; preds = %.loopexit77.loopexit, %40
  %49 = phi i1 [ false, %40 ], [ true, %.loopexit77.loopexit ]
  %.pn.pn = phi { ptr, i32 } [ %41, %40 ], [ %.pn, %.loopexit77.loopexit ]
  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 %50

50:                                               ; preds = %.loopexit77, %38
  %.155 = phi i1 [ %49, %.loopexit77 ], [ false, %38 ]
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit77 ], [ %39, %38 ]
  %.041 = phi ptr [ %18, %.loopexit77 ], [ %16, %38 ]
  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
  br label %51

51:                                               ; preds = %36, %50
  %.256 = phi i1 [ %.155, %50 ], [ false, %36 ]
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %50 ], [ %37, %36 ]
  %.1 = phi ptr [ %.041, %50 ], [ %14, %36 ]
  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 @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #12
  br i1 %.256, 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, %5
  br i1 %54, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread, %51
  %.pn.pn.pn.pn.pn76 = 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 %5) #12
  br label %133

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 %26, 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
  %.not64 = icmp eq i32 %71, 0
  br i1 %.not64, 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
  %.not65 = icmp eq i32 %81, 0
  br i1 %.not65, 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
  %.not66 = icmp eq i32 %91, 0
  br i1 %.not66, 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
  %.not67 = icmp eq i32 %101, 0
  br i1 %.not67, 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 [ 88, %72 ], [ 93, %82 ], [ 98, %92 ], [ 103, %102 ], [ 83, %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__._ZN8nvinfer16plugin33MultilevelProposeROIPluginCreator12createPluginEPKcPKNS_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_edge80 unwind label %112

._crit_edge80:                                    ; 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_edge80, %100
  %115 = phi i32 [ %.pre, %._crit_edge80 ], [ %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 @_ZN8nvinfer16plugin20MultilevelProposeROIC1EiiffNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(384) %34, i32 noundef %120, i32 noundef %122, float noundef %124, float noundef %126, ptr noundef nonnull byval(%"class.nvinfer1::Dims64") align 8 %12)
          to label %127 unwind label %130

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

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 384) #16
  br label %132

132:                                              ; preds = %64, %112, %130, %128
  %.pn68.pn = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ], [ %113, %112 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #12
  br label %133

133:                                              ; preds = %132, %.loopexit
  %.pn68.pn.pn = phi { ptr, i32 } [ %.pn68.pn, %132 ], [ %.pn.pn.pn.pn.pn76, %.loopexit ]
  %.7 = extractvalue { ptr, i32 } %.pn68.pn.pn, 0
  %.753 = extractvalue { ptr, i32 } %.pn68.pn.pn, 1
  %134 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #12
  %135 = icmp eq i32 %.753, %134
  br i1 %135, label %136, label %143

136:                                              ; preds = %133
  %137 = call ptr @__cxa_begin_catch(ptr %.7) #12
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %137)
          to label %138 unwind label %140

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

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

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

143:                                              ; preds = %133
  call void @__clang_call_terminate(ptr %.7) #17
  unreachable
}

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

; 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 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) #5

; 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 @_ZN8nvinfer16plugin20MultilevelProposeROIC1EiiffNS_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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTSN8nvinfer16plugin33MultilevelProposeROIPluginCreatorE", !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,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass