; 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.nvinfer1::plugin::MultilevelProposeROI" = type { %"class.nvinfer1::IPluginV2Ext", i32, i32, i32, i32, float, float, i32, %"class.std::vector.17", %"class.std::shared_ptr", %"class.std::vector.22", %"class.std::vector.27", %"class.std::vector.22", %"class.std::vector.22", %"class.std::vector.32", %"class.std::vector.32", ptr, ptr, %"class.std::shared_ptr.37", %"class.nvinfer1::Dims64", i32, %struct.RefineNMSParameters, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector.27" = type { %"struct.std::_Vector_base.28" }
%"struct.std::_Vector_base.28" = type { %"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<float>, std::allocator<std::vector<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>, std::allocator<std::shared_ptr<nvinfer1::plugin::CudaBind<unsigned short>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.37" = type { %"class.std::__shared_ptr.38" }
%"class.std::__shared_ptr.38" = type { ptr, %"class.std::__shared_count" }
%struct.RefineNMSParameters = type { i32, i32, i32, float, float }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.101 = external hidden unnamed_addr constant [108 x i8], align 1
@_ZTVN8nvinfer16plugin20MultilevelProposeROIE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin20MultilevelProposeROIC2EiiffNS_6Dims64E = external hidden unnamed_addr constant [21 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [16 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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) #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin20MultilevelProposeROI24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin20MultilevelProposeROIC2EPKvm(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.nvinfer1::Dims3", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %18 = load ptr, ptr %4, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin20MultilevelProposeROIE, i32 0, i32 0, i32 2), ptr %18, align 8, !tbaa !11
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 9
  call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 10
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %22 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 11
  call void @_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  %23 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 12
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 13
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 14
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 15
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 18
  call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  %28 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 19
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 21
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 22
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 4
  store i32 5, ptr %31, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %32, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %33, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %34 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %35 unwind label %50

35:                                               ; preds = %3
  store i32 %34, ptr %9, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %36 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %37 unwind label %54

37:                                               ; preds = %35
  store i32 %36, ptr %12, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %38 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %39 unwind label %58

39:                                               ; preds = %37
  store float %38, ptr %13, align 4, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %40 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %41 unwind label %62

41:                                               ; preds = %39
  store float %40, ptr %14, align 4, !tbaa !46
  %42 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %43 unwind label %62

43:                                               ; preds = %41
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 7
  store i32 %42, ptr %44, align 8, !tbaa !47
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 8
  %46 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #5
  %47 = icmp eq i64 %46, 0
  br i1 %47, label %66, label %48

48:                                               ; preds = %43
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin20MultilevelProposeROIC2EiiffNS_6Dims64E, i32 noundef 311, i32 noundef 0, ptr noundef @.str.112) #6
          to label %49 unwind label %62

49:                                               ; preds = %48
  unreachable

50:                                               ; preds = %3
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %10, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %11, align 4
  br label %133

54:                                               ; preds = %35
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %10, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %11, align 4
  br label %132

58:                                               ; preds = %37
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  br label %131

62:                                               ; preds = %102, %96, %86, %48, %41, %39
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  br label %130

66:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !45
  br label %67

67:                                               ; preds = %78, %66
  %68 = load i32, ptr %15, align 4, !tbaa !45
  %69 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 4
  %70 = load i32, ptr %69, align 4, !tbaa !13
  %71 = icmp slt i32 %68, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %85

73:                                               ; preds = %67
  %74 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %75 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %76 unwind label %81

76:                                               ; preds = %73
  store i32 %75, ptr %16, align 4, !tbaa !45
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %77 unwind label %81

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %15, align 4, !tbaa !45
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %15, align 4, !tbaa !45
  br label %67, !llvm.loop !48

81:                                               ; preds = %76, %73
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %10, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %130

85:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #5
  invoke void @_ZN8nvinfer16plugin4readINS_5Dims3EcEET_RPKT0_(ptr dead_on_unwind writable sret(%"class.nvinfer1::Dims3") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %86 unwind label %98

86:                                               ; preds = %85
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %17, i64 72, i1 false), !tbaa.struct !50
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #5
  %88 = invoke noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %89 unwind label %62

89:                                               ; preds = %86
  %90 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 20
  store i32 %88, ptr %90, align 8, !tbaa !52
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i64, ptr %6, align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %92, i64 %93
  %95 = icmp eq ptr %91, %94
  br i1 %95, label %102, label %96

96:                                               ; preds = %89
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.101, ptr noundef @__func__._ZN8nvinfer16plugin20MultilevelProposeROIC2EiiffNS_6Dims64E, i32 noundef 318, i32 noundef 0, ptr noundef @.str.113) #6
          to label %97 unwind label %62

97:                                               ; preds = %96
  unreachable

98:                                               ; preds = %85
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %10, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #5
  br label %130

102:                                              ; preds = %89
  %103 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 1
  store i32 -1, ptr %103, align 8, !tbaa !53
  %104 = load i32, ptr %9, align 4, !tbaa !45
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 2
  store i32 %104, ptr %105, align 4, !tbaa !54
  %106 = load i32, ptr %12, align 4, !tbaa !45
  %107 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 3
  store i32 %106, ptr %107, align 8, !tbaa !55
  %108 = load float, ptr %13, align 4, !tbaa !46
  %109 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 5
  store float %108, ptr %109, align 8, !tbaa !56
  %110 = load float, ptr %14, align 4, !tbaa !46
  %111 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 6
  store float %110, ptr %111, align 4, !tbaa !57
  %112 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 21
  %113 = getelementptr inbounds %struct.RefineNMSParameters, ptr %112, i32 0, i32 0
  store i32 -1, ptr %113, align 4, !tbaa !58
  %114 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 21
  %115 = getelementptr inbounds %struct.RefineNMSParameters, ptr %114, i32 0, i32 1
  store i32 1, ptr %115, align 4, !tbaa !59
  %116 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 3
  %117 = load i32, ptr %116, align 8, !tbaa !55
  %118 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 21
  %119 = getelementptr inbounds %struct.RefineNMSParameters, ptr %118, i32 0, i32 2
  store i32 %117, ptr %119, align 4, !tbaa !60
  %120 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 5
  %121 = load float, ptr %120, align 8, !tbaa !56
  %122 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 21
  %123 = getelementptr inbounds %struct.RefineNMSParameters, ptr %122, i32 0, i32 3
  store float %121, ptr %123, align 4, !tbaa !61
  %124 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 6
  %125 = load float, ptr %124, align 4, !tbaa !57
  %126 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 21
  %127 = getelementptr inbounds %struct.RefineNMSParameters, ptr %126, i32 0, i32 4
  store float %125, ptr %127, align 4, !tbaa !62
  %128 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelProposeROI", ptr %18, i32 0, i32 19
  invoke void @_ZN8nvinfer16plugin20MultilevelProposeROI24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(384) %18, ptr noundef nonnull align 8 dereferenceable(72) %128)
          to label %129 unwind label %62

129:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void

130:                                              ; preds = %98, %81, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %131

131:                                              ; preds = %130, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %132

132:                                              ; preds = %131, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %133

133:                                              ; preds = %132, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #5
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %10, align 8
  %136 = load i32, ptr %11, align 4
  %137 = insertvalue { ptr, i32 } poison, ptr %135, 0
  %138 = insertvalue { ptr, i32 } %137, i32 %136, 1
  resume { ptr, i32 } %138
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4readINS_5Dims3EcEET_RPKT0_(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Dims3") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 20}
!14 = !{!"_ZTSN8nvinfer16plugin20MultilevelProposeROIE", !15, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !18, i64 24, !18, i64 28, !17, i64 32, !19, i64 40, !23, i64 64, !26, i64 80, !30, i64 104, !26, i64 128, !26, i64 152, !34, i64 176, !34, i64 200, !6, i64 224, !6, i64 232, !38, i64 240, !40, i64 256, !41, i64 328, !42, i64 332, !43, i64 352}
!15 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!17 = !{!"int", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEE", !24, i64 0}
!24 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !25, i64 8}
!25 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!26 = !{!"_ZTSSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIS_IfSaIfEESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEE", !39, i64 0}
!39 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !25, i64 8}
!40 = !{!"_ZTSN8nvinfer16Dims64E", !17, i64 0, !7, i64 8}
!41 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!42 = !{!"_ZTS19RefineNMSParameters", !17, i64 0, !17, i64 4, !17, i64 8, !18, i64 12, !18, i64 16}
!43 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !44, i64 0, !10, i64 8, !7, i64 16}
!44 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!45 = !{!17, !17, i64 0}
!46 = !{!18, !18, i64 0}
!47 = !{!14, !17, i64 32}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{i64 0, i64 4, !45, i64 8, i64 64, !51}
!51 = !{!7, !7, i64 0}
!52 = !{!14, !41, i64 328}
!53 = !{!14, !17, i64 8}
!54 = !{!14, !17, i64 12}
!55 = !{!14, !17, i64 16}
!56 = !{!14, !18, i64 24}
!57 = !{!14, !18, i64 28}
!58 = !{!14, !17, i64 332}
!59 = !{!14, !17, i64 336}
!60 = !{!14, !17, i64 340}
!61 = !{!14, !18, i64 344}
!62 = !{!14, !18, i64 348}


; 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] }

@.str.101 = external hidden unnamed_addr constant [108 x i8], align 1
@_ZTVN8nvinfer16plugin20MultilevelProposeROIE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin20MultilevelProposeROIC2EiiffNS_6Dims64E = external hidden unnamed_addr constant [21 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [16 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 @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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) #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin20MultilevelProposeROI24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(384), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin20MultilevelProposeROIC2EPKvm(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.nvinfer1::Dims3", align 8
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin20MultilevelProposeROIE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt6vectorIS_IfSaIfEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %11 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %15 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  %16 = getelementptr inbounds i8, ptr %0, i64 352
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  %17 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 5, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store ptr %1, ptr %4, align 8, !tbaa !43
  %18 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %19 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %20 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %21 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %22 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %22, ptr %23, align 8, !tbaa !44
  %24 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %.preheader, label %.invoke

.preheader:                                       ; preds = %3
  %26 = load i32, ptr %17, align 4, !tbaa !8
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

28:                                               ; preds = %.invoke, %48
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %60

._crit_edge:                                      ; preds = %31, %.preheader
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #5
  invoke void @_ZN8nvinfer16plugin4readINS_5Dims3EcEET_RPKT0_(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Dims3") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %37 unwind label %46

.lr.ph:                                           ; preds = %.preheader, %31
  %.014 = phi i32 [ %32, %31 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %30 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %30, ptr %5, align 4, !tbaa !45
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %31 unwind label %35

31:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %32 = add nuw nsw i32 %.014, 1
  %33 = load i32, ptr %17, align 4, !tbaa !8
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !46

35:                                               ; preds = %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %60

37:                                               ; preds = %._crit_edge
  %38 = getelementptr inbounds i8, ptr %0, i64 256
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %38, ptr noundef nonnull align 8 dereferenceable(72) %6, i64 72, i1 false), !tbaa.struct !48
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  %39 = call noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %40 = getelementptr inbounds i8, ptr %0, i64 328
  store i32 %39, ptr %40, align 8, !tbaa !50
  %41 = load ptr, ptr %4, align 8, !tbaa !43
  %42 = getelementptr inbounds i8, ptr %1, i64 %2
  %43 = icmp eq ptr %41, %42
  br i1 %43, label %48, label %.invoke

.invoke:                                          ; preds = %3, %37
  %44 = phi i32 [ 318, %37 ], [ 311, %3 ]
  %45 = phi ptr [ @.str.113, %37 ], [ @.str.112, %3 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.101, ptr noundef nonnull @__func__._ZN8nvinfer16plugin20MultilevelProposeROIC2EiiffNS_6Dims64E, i32 noundef %44, i32 noundef 0, ptr noundef nonnull %45) #6
          to label %.cont unwind label %28

.cont:                                            ; preds = %.invoke
  unreachable

46:                                               ; preds = %._crit_edge
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #5
  br label %60

48:                                               ; preds = %37
  %49 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 -1, ptr %49, align 8, !tbaa !51
  %50 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %18, ptr %50, align 4, !tbaa !52
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %19, ptr %51, align 8, !tbaa !53
  %52 = getelementptr inbounds i8, ptr %0, i64 24
  store float %20, ptr %52, align 8, !tbaa !54
  %53 = getelementptr inbounds i8, ptr %0, i64 28
  store float %21, ptr %53, align 4, !tbaa !55
  %54 = getelementptr inbounds i8, ptr %0, i64 332
  store i32 -1, ptr %54, align 4, !tbaa !56
  %55 = getelementptr inbounds i8, ptr %0, i64 336
  store i32 1, ptr %55, align 8, !tbaa !57
  %56 = getelementptr inbounds i8, ptr %0, i64 340
  store i32 %19, ptr %56, align 4, !tbaa !58
  %57 = getelementptr inbounds i8, ptr %0, i64 344
  store float %20, ptr %57, align 8, !tbaa !59
  %58 = getelementptr inbounds i8, ptr %0, i64 348
  store float %21, ptr %58, align 4, !tbaa !60
  invoke void @_ZN8nvinfer16plugin20MultilevelProposeROI24generate_pyramid_anchorsERKNS_6Dims64E(ptr noundef nonnull align 8 dereferenceable(384) %0, ptr noundef nonnull align 8 dereferenceable(72) %38)
          to label %59 unwind label %28

59:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

60:                                               ; preds = %46, %35, %28
  %.pn = phi { ptr, i32 } [ %36, %35 ], [ %29, %28 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @_ZNSt6vectorIS_IfSaIfEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @_ZNSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4readINS_5Dims3EcEET_RPKT0_(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Dims3") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 20}
!9 = !{!"_ZTSN8nvinfer16plugin20MultilevelProposeROIE", !10, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !14, i64 24, !14, i64 28, !12, i64 32, !15, i64 40, !20, i64 64, !23, i64 80, !27, i64 104, !23, i64 128, !23, i64 152, !31, i64 176, !31, i64 200, !19, i64 224, !19, i64 232, !35, i64 240, !37, i64 256, !38, i64 328, !39, i64 332, !40, i64 352}
!10 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !11, i64 0}
!11 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"float", !13, i64 0}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !13, i64 0}
!20 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIiEEE", !21, i64 0}
!21 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIiEELN9__gnu_cxx12_Lock_policyE2EE", !19, i64 0, !22, i64 8}
!22 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !19, i64 0}
!23 = !{!"_ZTSSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEESaIS5_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!27 = !{!"_ZTSSt6vectorIS_IfSaIfEESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt6vectorIfSaIfEESaIS2_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!31 = !{!"_ZTSSt6vectorISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt10shared_ptrIN8nvinfer16plugin8CudaBindItEEESaIS5_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!35 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin8CudaBindIfEEE", !36, i64 0}
!36 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin8CudaBindIfEELN9__gnu_cxx12_Lock_policyE2EE", !19, i64 0, !22, i64 8}
!37 = !{!"_ZTSN8nvinfer16Dims64E", !12, i64 0, !13, i64 8}
!38 = !{!"_ZTSN8nvinfer18DataTypeE", !13, i64 0}
!39 = !{!"_ZTS19RefineNMSParameters", !12, i64 0, !12, i64 4, !12, i64 8, !14, i64 12, !14, i64 16}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !41, i64 0, !42, i64 8, !13, i64 16}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!42 = !{!"long", !13, i64 0}
!43 = !{!19, !19, i64 0}
!44 = !{!9, !12, i64 32}
!45 = !{!12, !12, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{i64 0, i64 4, !45, i64 8, i64 64, !49}
!49 = !{!13, !13, i64 0}
!50 = !{!9, !38, i64 328}
!51 = !{!9, !12, i64 8}
!52 = !{!9, !12, i64 12}
!53 = !{!9, !12, i64 16}
!54 = !{!9, !14, i64 24}
!55 = !{!9, !14, i64 28}
!56 = !{!9, !12, i64 332}
!57 = !{!9, !12, i64 336}
!58 = !{!9, !12, i64 340}
!59 = !{!9, !14, i64 344}
!60 = !{!9, !14, i64 348}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass