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

; 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.std::allocator" = type { i8 }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"class.nvinfer1::plugin::GridAnchorGenerator" = type { %"class.nvinfer1::IPluginV2Ext", %"class.std::__cxx11::basic_string", i32, %"class.std::vector.3", ptr, ptr, ptr, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<nvinfer1::plugin::GridAnchorParameters, std::allocator<nvinfer1::plugin::GridAnchorParameters>>::_Vector_impl" }
%"struct.std::_Vector_base<nvinfer1::plugin::GridAnchorParameters, std::allocator<nvinfer1::plugin::GridAnchorParameters>>::_Vector_impl" = type { %"struct.std::_Vector_base<nvinfer1::plugin::GridAnchorParameters, std::allocator<nvinfer1::plugin::GridAnchorParameters>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nvinfer1::plugin::GridAnchorParameters, std::allocator<nvinfer1::plugin::GridAnchorParameters>>::_Vector_impl_data" = type { 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] }
%"struct.nvinfer1::plugin::GridAnchorParameters" = type { float, float, ptr, i32, i32, i32, [4 x float] }

@_ZTVN8nvinfer16plugin19GridAnchorGeneratorE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = 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

; 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

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: 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 @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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

declare i32 @cudaMallocHost(ptr noundef, i64 noundef) #3

declare ptr @cudaGetErrorString(i32 noundef) #3

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKvmPKc(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.nvinfer1::Weights", align 8
  %25 = alloca %"class.nvinfer1::Weights", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin19GridAnchorGeneratorE, i32 0, i32 0, i32 2), ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %29 unwind label %53

29:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  call void @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %33, ptr %13, align 8, !tbaa !5
  %34 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %35 unwind label %57

35:                                               ; preds = %29
  %36 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 2
  store i32 %34, ptr %36, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 4
  %38 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = sext i32 %39 to i64
  %41 = mul i64 %40, 4
  %42 = invoke i32 @cudaMallocHost(ptr noundef %37, i64 noundef %41)
          to label %43 unwind label %61

43:                                               ; preds = %35
  store i32 %42, ptr %14, align 4, !tbaa !24
  %44 = load i32, ptr %14, align 4, !tbaa !24
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %69

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %47 = load i32, ptr %14, align 4, !tbaa !24
  %48 = invoke ptr @cudaGetErrorString(i32 noundef %47)
          to label %49 unwind label %65

49:                                               ; preds = %46
  store ptr %48, ptr %15, align 8, !tbaa !5
  %50 = load i32, ptr %14, align 4, !tbaa !24
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef @.str.4, ptr noundef @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 135, i32 noundef %50, ptr noundef %51) #8
          to label %52 unwind label %65

52:                                               ; preds = %49
  unreachable

53:                                               ; preds = %4
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  br label %286

57:                                               ; preds = %282, %121, %29
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  br label %285

61:                                               ; preds = %35
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %10, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %11, align 4
  br label %86

65:                                               ; preds = %49, %46
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %10, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %86

69:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %70 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 5
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 2
  %72 = load i32, ptr %71, align 8, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = mul i64 %73, 24
  %75 = invoke i32 @cudaMallocHost(ptr noundef %70, i64 noundef %74)
          to label %76 unwind label %87

76:                                               ; preds = %69
  store i32 %75, ptr %16, align 4, !tbaa !24
  %77 = load i32, ptr %16, align 4, !tbaa !24
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %95

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %80 = load i32, ptr %16, align 4, !tbaa !24
  %81 = invoke ptr @cudaGetErrorString(i32 noundef %80)
          to label %82 unwind label %91

82:                                               ; preds = %79
  store ptr %81, ptr %17, align 8, !tbaa !5
  %83 = load i32, ptr %16, align 4, !tbaa !24
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef @.str.4, ptr noundef @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 136, i32 noundef %83, ptr noundef %84) #8
          to label %85 unwind label %91

85:                                               ; preds = %82
  unreachable

86:                                               ; preds = %65, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %285

87:                                               ; preds = %69
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %10, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %11, align 4
  br label %112

91:                                               ; preds = %82, %79
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %10, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %112

95:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 6
  %97 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 2
  %98 = load i32, ptr %97, align 8, !tbaa !13
  %99 = sext i32 %98 to i64
  %100 = mul i64 %99, 24
  %101 = invoke i32 @cudaMallocHost(ptr noundef %96, i64 noundef %100)
          to label %102 unwind label %113

102:                                              ; preds = %95
  store i32 %101, ptr %18, align 4, !tbaa !24
  %103 = load i32, ptr %18, align 4, !tbaa !24
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %121

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %106 = load i32, ptr %18, align 4, !tbaa !24
  %107 = invoke ptr @cudaGetErrorString(i32 noundef %106)
          to label %108 unwind label %117

108:                                              ; preds = %105
  store ptr %107, ptr %19, align 8, !tbaa !5
  %109 = load i32, ptr %18, align 4, !tbaa !24
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef @.str.4, ptr noundef @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 137, i32 noundef %109, ptr noundef %110) #8
          to label %111 unwind label %117

111:                                              ; preds = %108
  unreachable

112:                                              ; preds = %91, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %285

113:                                              ; preds = %95
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  br label %133

117:                                              ; preds = %108, %105
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %10, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %133

121:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %122 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %123 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 2
  %124 = load i32, ptr %123, align 8, !tbaa !13
  %125 = sext i32 %124 to i64
  invoke void @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %125)
          to label %126 unwind label %57

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !26
  br label %127

127:                                              ; preds = %272, %126
  %128 = load i32, ptr %20, align 4, !tbaa !26
  %129 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 2
  %130 = load i32, ptr %129, align 8, !tbaa !13
  %131 = icmp slt i32 %128, %130
  br i1 %131, label %134, label %132

132:                                              ; preds = %127
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %276

133:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %285

134:                                              ; preds = %127
  %135 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %136 unwind label %180

136:                                              ; preds = %134
  %137 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %138 = load i32, ptr %20, align 4, !tbaa !26
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef %139) #7
  %141 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %140, i32 0, i32 0
  store float %135, ptr %141, align 8, !tbaa !27
  %142 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %143 unwind label %180

143:                                              ; preds = %136
  %144 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %145 = load i32, ptr %20, align 4, !tbaa !26
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #7
  %148 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %147, i32 0, i32 1
  store float %142, ptr %148, align 4, !tbaa !30
  %149 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %150 unwind label %180

150:                                              ; preds = %143
  %151 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %152 = load i32, ptr %20, align 4, !tbaa !26
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %153) #7
  %155 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %154, i32 0, i32 3
  store i32 %149, ptr %155, align 8, !tbaa !31
  %156 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %157 = load i32, ptr %20, align 4, !tbaa !26
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #7
  %160 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %159, i32 0, i32 3
  %161 = load i32, ptr %160, align 8, !tbaa !31
  %162 = sext i32 %161 to i64
  %163 = mul i64 4, %162
  %164 = call noalias ptr @malloc(i64 noundef %163) #9
  %165 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %166 = load i32, ptr %20, align 4, !tbaa !26
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %167) #7
  %169 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %168, i32 0, i32 2
  store ptr %164, ptr %169, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !26
  br label %170

170:                                              ; preds = %196, %150
  %171 = load i32, ptr %22, align 4, !tbaa !26
  %172 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %173 = load i32, ptr %20, align 4, !tbaa !26
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #7
  %176 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %175, i32 0, i32 3
  %177 = load i32, ptr %176, align 8, !tbaa !31
  %178 = icmp slt i32 %171, %177
  br i1 %178, label %184, label %179

179:                                              ; preds = %170
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %203

180:                                              ; preds = %240, %205, %203, %143, %136, %134
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %10, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %11, align 4
  br label %275

184:                                              ; preds = %170
  %185 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %186 unwind label %199

186:                                              ; preds = %184
  %187 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %188 = load i32, ptr %20, align 4, !tbaa !26
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #7
  %191 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %190, i32 0, i32 2
  %192 = load ptr, ptr %191, align 8, !tbaa !32
  %193 = load i32, ptr %22, align 4, !tbaa !26
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds float, ptr %192, i64 %194
  store float %185, ptr %195, align 4, !tbaa !33
  br label %196

196:                                              ; preds = %186
  %197 = load i32, ptr %22, align 4, !tbaa !26
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %22, align 4, !tbaa !26
  br label %170, !llvm.loop !34

199:                                              ; preds = %184
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %10, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %275

203:                                              ; preds = %179
  %204 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %205 unwind label %180

205:                                              ; preds = %203
  %206 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %207 = load i32, ptr %20, align 4, !tbaa !26
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208) #7
  %210 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %209, i32 0, i32 4
  store i32 %204, ptr %210, align 4, !tbaa !36
  %211 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %212 unwind label %180

212:                                              ; preds = %205
  %213 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %214 = load i32, ptr %20, align 4, !tbaa !26
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %215) #7
  %217 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %216, i32 0, i32 5
  store i32 %211, ptr %217, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !26
  br label %218

218:                                              ; preds = %233, %212
  %219 = load i32, ptr %23, align 4, !tbaa !26
  %220 = icmp slt i32 %219, 4
  br i1 %220, label %222, label %221

221:                                              ; preds = %218
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %240

222:                                              ; preds = %218
  %223 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %224 unwind label %236

224:                                              ; preds = %222
  %225 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 3
  %226 = load i32, ptr %20, align 4, !tbaa !26
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %227) #7
  %229 = getelementptr inbounds %"struct.nvinfer1::plugin::GridAnchorParameters", ptr %228, i32 0, i32 6
  %230 = load i32, ptr %23, align 4, !tbaa !26
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4 x float], ptr %229, i64 0, i64 %231
  store float %223, ptr %232, align 4, !tbaa !33
  br label %233

233:                                              ; preds = %224
  %234 = load i32, ptr %23, align 4, !tbaa !26
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %23, align 4, !tbaa !26
  br label %218, !llvm.loop !38

236:                                              ; preds = %222
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %10, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %275

240:                                              ; preds = %221
  %241 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %242 unwind label %180

242:                                              ; preds = %240
  %243 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 4
  %244 = load ptr, ptr %243, align 8, !tbaa !39
  %245 = load i32, ptr %20, align 4, !tbaa !26
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i32, ptr %244, i64 %246
  store i32 %241, ptr %247, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  %248 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !39
  %250 = load i32, ptr %20, align 4, !tbaa !26
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds i32, ptr %249, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !26
  %254 = sext i32 %253 to i64
  call void @_ZN8nvinfer16plugin19GridAnchorGenerator19deserializeToDeviceERPKcm(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %24, ptr noundef nonnull align 8 dereferenceable(128) %26, ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %254) #7
  %255 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 5
  %256 = load ptr, ptr %255, align 8, !tbaa !40
  %257 = load i32, ptr %20, align 4, !tbaa !26
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %256, i64 %258
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %259, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  %260 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 4
  %261 = load ptr, ptr %260, align 8, !tbaa !39
  %262 = load i32, ptr %20, align 4, !tbaa !26
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds i32, ptr %261, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !26
  %266 = sext i32 %265 to i64
  call void @_ZN8nvinfer16plugin19GridAnchorGenerator19deserializeToDeviceERPKcm(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %25, ptr noundef nonnull align 8 dereferenceable(128) %26, ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %266) #7
  %267 = getelementptr inbounds %"class.nvinfer1::plugin::GridAnchorGenerator", ptr %26, i32 0, i32 6
  %268 = load ptr, ptr %267, align 8, !tbaa !44
  %269 = load i32, ptr %20, align 4, !tbaa !26
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %268, i64 %270
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %271, ptr align 8 %25, i64 24, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  br label %272

272:                                              ; preds = %242
  %273 = load i32, ptr %20, align 4, !tbaa !26
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %20, align 4, !tbaa !26
  br label %127, !llvm.loop !45

275:                                              ; preds = %236, %199, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %285

276:                                              ; preds = %132
  %277 = load ptr, ptr %12, align 8, !tbaa !5
  %278 = load ptr, ptr %13, align 8, !tbaa !5
  %279 = load i64, ptr %7, align 8, !tbaa !9
  %280 = getelementptr inbounds i8, ptr %278, i64 %279
  %281 = icmp eq ptr %277, %280
  br i1 %281, label %284, label %282

282:                                              ; preds = %276
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.4, ptr noundef @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 162, i32 noundef 0, ptr noundef @.str.6) #8
          to label %283 unwind label %57

283:                                              ; preds = %282
  unreachable

284:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  ret void

285:                                              ; preds = %275, %133, %112, %86, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #7
  call void @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #7
  br label %286

286:                                              ; preds = %285, %53
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #7
  br label %287

287:                                              ; preds = %286
  %288 = load ptr, ptr %10, align 8
  %289 = load i32, ptr %11, align 4
  %290 = insertvalue { ptr, i32 } poison, ptr %288, 0
  %291 = insertvalue { ptr, i32 } %290, i32 %289, 1
  resume { ptr, i32 } %291
}

; 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 void @_ZN8nvinfer16plugin19GridAnchorGenerator19deserializeToDeviceERPKcm(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

; 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 @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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 = { "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind 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 #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { nounwind allocsize(0) }

!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, !19, i64 40}
!14 = !{!"_ZTSN8nvinfer16plugin19GridAnchorGeneratorE", !15, i64 0, !17, i64 8, !19, i64 40, !20, i64 48, !6, i64 72, !6, i64 80, !6, i64 88, !17, i64 96}
!15 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !10, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTS9cudaError", !7, i64 0}
!26 = !{!19, !19, i64 0}
!27 = !{!28, !29, i64 0}
!28 = !{!"_ZTSN8nvinfer16plugin20GridAnchorParametersE", !29, i64 0, !29, i64 4, !6, i64 8, !19, i64 16, !19, i64 20, !19, i64 24, !7, i64 28}
!29 = !{!"float", !7, i64 0}
!30 = !{!28, !29, i64 4}
!31 = !{!28, !19, i64 16}
!32 = !{!28, !6, i64 8}
!33 = !{!29, !29, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!28, !19, i64 20}
!37 = !{!28, !19, i64 24}
!38 = distinct !{!38, !35}
!39 = !{!14, !6, i64 72}
!40 = !{!14, !6, i64 80}
!41 = !{i64 0, i64 4, !42, i64 8, i64 8, !5, i64 16, i64 8, !9}
!42 = !{!43, !43, i64 0}
!43 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!44 = !{!14, !6, i64 88}
!45 = distinct !{!45, !35}


; 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.std::allocator" = type { i8 }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }

@_ZTVN8nvinfer16plugin19GridAnchorGeneratorE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str.4 = external hidden unnamed_addr constant [94 x i8], align 1
@__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = 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

; 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

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 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 @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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

declare i32 @cudaMallocHost(ptr noundef, i64 noundef) local_unnamed_addr #3

declare ptr @cudaGetErrorString(i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_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: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKvmPKc(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca %"class.nvinfer1::Weights", align 8
  %8 = alloca %"class.nvinfer1::Weights", align 8
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin19GridAnchorGeneratorE, i64 16), ptr %0, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %3, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %10 unwind label %24

10:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  call void @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store ptr %1, ptr %6, align 8, !tbaa !8
  %13 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %13, ptr %14, align 8, !tbaa !11
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  %16 = sext i32 %13 to i64
  %17 = shl nsw i64 %16, 2
  %18 = invoke i32 @cudaMallocHost(ptr noundef nonnull %15, i64 noundef %17)
          to label %19 unwind label %28

19:                                               ; preds = %10
  %.not = icmp eq i32 %18, 0
  br i1 %.not, label %32, label %20

20:                                               ; preds = %19
  %21 = invoke ptr @cudaGetErrorString(i32 noundef %18)
          to label %22 unwind label %30

22:                                               ; preds = %20
  invoke void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 135, i32 noundef %18, ptr noundef %21) #8
          to label %23 unwind label %30

23:                                               ; preds = %22
  unreachable

24:                                               ; preds = %4
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %137

26:                                               ; preds = %133, %62
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %136

28:                                               ; preds = %10
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %136

30:                                               ; preds = %22, %20
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %136

32:                                               ; preds = %19
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  %34 = load i32, ptr %14, align 8, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = mul nsw i64 %35, 24
  %37 = invoke i32 @cudaMallocHost(ptr noundef nonnull %33, i64 noundef %36)
          to label %38 unwind label %43

38:                                               ; preds = %32
  %.not52 = icmp eq i32 %37, 0
  br i1 %.not52, label %47, label %39

39:                                               ; preds = %38
  %40 = invoke ptr @cudaGetErrorString(i32 noundef %37)
          to label %41 unwind label %45

41:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 136, i32 noundef %37, ptr noundef %40) #8
          to label %42 unwind label %45

42:                                               ; preds = %41
  unreachable

43:                                               ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %136

45:                                               ; preds = %41, %39
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %136

47:                                               ; preds = %38
  %48 = getelementptr inbounds i8, ptr %0, i64 88
  %49 = load i32, ptr %14, align 8, !tbaa !11
  %50 = sext i32 %49 to i64
  %51 = mul nsw i64 %50, 24
  %52 = invoke i32 @cudaMallocHost(ptr noundef nonnull %48, i64 noundef %51)
          to label %53 unwind label %58

53:                                               ; preds = %47
  %.not53 = icmp eq i32 %52, 0
  br i1 %.not53, label %62, label %54

54:                                               ; preds = %53
  %55 = invoke ptr @cudaGetErrorString(i32 noundef %52)
          to label %56 unwind label %60

56:                                               ; preds = %54
  invoke void @_ZN8nvinfer16plugin14throwCudaErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 137, i32 noundef %52, ptr noundef %55) #8
          to label %57 unwind label %60

57:                                               ; preds = %56
  unreachable

58:                                               ; preds = %47
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %136

60:                                               ; preds = %56, %54
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %136

62:                                               ; preds = %53
  %63 = load i32, ptr %14, align 8, !tbaa !11
  %64 = sext i32 %63 to i64
  invoke void @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %64)
          to label %.preheader unwind label %26

.preheader:                                       ; preds = %62
  %65 = load i32, ptr %14, align 8, !tbaa !11
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph64, label %._crit_edge65

._crit_edge65:                                    ; preds = %._crit_edge, %.preheader
  %67 = load ptr, ptr %6, align 8, !tbaa !8
  %68 = getelementptr inbounds i8, ptr %1, i64 %2
  %69 = icmp eq ptr %67, %68
  br i1 %69, label %135, label %133

.lr.ph64:                                         ; preds = %.preheader, %._crit_edge
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %._crit_edge ], [ 0, %.preheader ]
  %70 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %71 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  store float %70, ptr %71, align 8, !tbaa !23
  %72 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %73 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  store float %72, ptr %74, align 4, !tbaa !26
  %75 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %76 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  store i32 %75, ptr %77, align 8, !tbaa !27
  %78 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %80 = load i32, ptr %79, align 8, !tbaa !27
  %81 = sext i32 %80 to i64
  %82 = shl nsw i64 %81, 2
  %83 = call noalias ptr @malloc(i64 noundef %82) #9
  %84 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %85 = getelementptr inbounds i8, ptr %84, i64 8
  store ptr %83, ptr %85, align 8, !tbaa !28
  %86 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  %88 = load i32, ptr %87, align 8, !tbaa !27
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph64
  %90 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %91 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %92 = getelementptr inbounds i8, ptr %91, i64 20
  store i32 %90, ptr %92, align 4, !tbaa !29
  %93 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %94 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %95 = getelementptr inbounds i8, ptr %94, i64 24
  store i32 %93, ptr %95, align 8, !tbaa !30
  %96 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %97 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %98 = getelementptr inbounds i8, ptr %97, i64 28
  store float %96, ptr %98, align 4, !tbaa !31
  %99 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %100 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %101 = getelementptr inbounds i8, ptr %100, i64 32
  store float %99, ptr %101, align 8, !tbaa !31
  %102 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %103 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %104 = getelementptr inbounds i8, ptr %103, i64 36
  store float %102, ptr %104, align 4, !tbaa !31
  %105 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %106 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %107 = getelementptr inbounds i8, ptr %106, i64 40
  store float %105, ptr %107, align 8, !tbaa !31
  %108 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %109 = load ptr, ptr %15, align 8, !tbaa !32
  %110 = getelementptr inbounds i32, ptr %109, i64 %indvars.iv70
  store i32 %108, ptr %110, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %111 = sext i32 %108 to i64
  call void @_ZN8nvinfer16plugin19GridAnchorGenerator19deserializeToDeviceERPKcm(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %7, ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %111) #7
  %112 = load ptr, ptr %33, align 8, !tbaa !34
  %113 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %112, i64 %indvars.iv70
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %113, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 24, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %114 = load ptr, ptr %15, align 8, !tbaa !32
  %115 = getelementptr inbounds i32, ptr %114, i64 %indvars.iv70
  %116 = load i32, ptr %115, align 4, !tbaa !33
  %117 = sext i32 %116 to i64
  call void @_ZN8nvinfer16plugin19GridAnchorGenerator19deserializeToDeviceERPKcm(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %117) #7
  %118 = load ptr, ptr %48, align 8, !tbaa !39
  %119 = getelementptr inbounds %"class.nvinfer1::Weights", ptr %118, i64 %indvars.iv70
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %120 = load i32, ptr %14, align 8, !tbaa !11
  %121 = sext i32 %120 to i64
  %122 = icmp slt i64 %indvars.iv.next71, %121
  br i1 %122, label %.lr.ph64, label %._crit_edge65, !llvm.loop !40

.lr.ph:                                           ; preds = %.lr.ph64, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph64 ]
  %123 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %124 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %125 = getelementptr inbounds i8, ptr %124, i64 8
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = getelementptr inbounds float, ptr %126, i64 %indvars.iv
  store float %123, ptr %127, align 4, !tbaa !31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %128 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv70) #7
  %129 = getelementptr inbounds i8, ptr %128, i64 16
  %130 = load i32, ptr %129, align 8, !tbaa !27
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %indvars.iv.next, %131
  br i1 %132, label %.lr.ph, label %._crit_edge, !llvm.loop !42

133:                                              ; preds = %._crit_edge65
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__._ZN8nvinfer16plugin19GridAnchorGeneratorC2EPKNS0_20GridAnchorParametersEiPKc, i32 noundef 162, i32 noundef 0, ptr noundef nonnull @.str.6) #8
          to label %134 unwind label %26

134:                                              ; preds = %133
  unreachable

135:                                              ; preds = %._crit_edge65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret void

136:                                              ; preds = %58, %60, %43, %45, %28, %30, %26
  %.pn57.pn = phi { ptr, i32 } [ %27, %26 ], [ %31, %30 ], [ %29, %28 ], [ %46, %45 ], [ %44, %43 ], [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZNSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %137

137:                                              ; preds = %136, %24
  %.pn57.pn.pn = phi { ptr, i32 } [ %.pn57.pn, %136 ], [ %25, %24 ]
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  resume { ptr, i32 } %.pn57.pn.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 void @_ZN8nvinfer16plugin19GridAnchorGenerator19deserializeToDeviceERPKcm(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

; 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 @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 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 = { "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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { nounwind allocsize(0) }

!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, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !18, i64 40}
!12 = !{!"_ZTSN8nvinfer16plugin19GridAnchorGeneratorE", !13, i64 0, !15, i64 8, !18, i64 40, !19, i64 48, !9, i64 72, !9, i64 80, !9, i64 88, !15, i64 96}
!13 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !10, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!17 = !{!"long", !10, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = !{!"_ZTSSt6vectorIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer16plugin20GridAnchorParametersESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTSN8nvinfer16plugin20GridAnchorParametersE", !25, i64 0, !25, i64 4, !9, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !10, i64 28}
!25 = !{!"float", !10, i64 0}
!26 = !{!24, !25, i64 4}
!27 = !{!24, !18, i64 16}
!28 = !{!24, !9, i64 8}
!29 = !{!24, !18, i64 20}
!30 = !{!24, !18, i64 24}
!31 = !{!25, !25, i64 0}
!32 = !{!12, !9, i64 72}
!33 = !{!18, !18, i64 0}
!34 = !{!12, !9, i64 80}
!35 = !{i64 0, i64 4, !36, i64 8, i64 8, !8, i64 16, i64 8, !38}
!36 = !{!37, !37, i64 0}
!37 = !{!"_ZTSN8nvinfer18DataTypeE", !10, i64 0}
!38 = !{!17, !17, i64 0}
!39 = !{!12, !9, i64 88}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}


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