; LLVM IR from NVIDIA/TensorRT :: plugin/priorBoxPlugin/priorBoxPlugin.ll (ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv)

; 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.anon.8 = type { i8 }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.nvinfer1::plugin::PriorBox" = type { %"class.nvinfer1::IPluginV2Ext", %"struct.nvinfer1::plugin::PriorBoxParameters", i32, i32, i32, %"class.nvinfer1::Weights", %"class.nvinfer1::Weights", %"class.nvinfer1::Weights", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"struct.nvinfer1::plugin::PriorBoxParameters" = type { ptr, ptr, ptr, i32, i32, i32, i8, i8, [4 x float], i32, i32, float, 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 = external hidden unnamed_addr constant [90 x i8], align 1
@__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv(ptr noundef nonnull align 8 dereferenceable(280) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.anon.8, align 1
  %4 = alloca i32, align 4
  %5 = alloca %"class.nvinfer1::Weights", align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca float, align 4
  %8 = alloca %"class.std::allocator.2", align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca %"class.nvinfer1::Weights", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.nvinfer1::Weights", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #8
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %20 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %25, label %23

23:                                               ; preds = %1
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 71, i32 noundef 0, ptr noundef @.str.2) #9
          to label %24 unwind label %223

24:                                               ; preds = %23
  unreachable

25:                                               ; preds = %1
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %27 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !26
  %29 = icmp ne ptr %28, null
  br i1 %29, label %32, label %30

30:                                               ; preds = %25
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 72, i32 noundef 0, ptr noundef @.str.3) #9
          to label %31 unwind label %223

31:                                               ; preds = %30
  unreachable

32:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !27
  br label %33

33:                                               ; preds = %52, %32
  %34 = load i32, ptr %4, align 4, !tbaa !27
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %35, i32 0, i32 3
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp slt i32 %34, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %55

40:                                               ; preds = %33
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %42 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %44 = load i32, ptr %4, align 4, !tbaa !27
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %43, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !28
  %48 = fcmp ogt float %47, 0.000000e+00
  br i1 %48, label %51, label %49

49:                                               ; preds = %40
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 75, i32 noundef 0, ptr noundef @.str.4) #9
          to label %50 unwind label %223

50:                                               ; preds = %49
  unreachable

51:                                               ; preds = %40
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %4, align 4, !tbaa !27
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %4, align 4, !tbaa !27
  br label %33, !llvm.loop !29

55:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  %56 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %57 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !26
  %59 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %60 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !9
  invoke void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %5, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %58, i32 noundef %61)
          to label %62 unwind label %223

62:                                               ; preds = %55
  %63 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  %64 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %65 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %64, i32 0, i32 5
  %66 = load i32, ptr %65, align 8, !tbaa !34
  %67 = icmp sge i32 %66, 0
  br i1 %67, label %70, label %68

68:                                               ; preds = %62
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 79, i32 noundef 0, ptr noundef @.str.5) #9
          to label %69 unwind label %223

69:                                               ; preds = %68
  unreachable

70:                                               ; preds = %62
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %72 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !35
  %74 = icmp ne ptr %73, null
  br i1 %74, label %77, label %75

75:                                               ; preds = %70
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 80, i32 noundef 0, ptr noundef @.str.6) #9
          to label %76 unwind label %223

76:                                               ; preds = %75
  unreachable

77:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store float 1.000000e+00, ptr %7, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %78 unwind label %223

78:                                               ; preds = %77
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !27
  br label %79

79:                                               ; preds = %135, %78
  %80 = load i32, ptr %9, align 4, !tbaa !27
  %81 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %82 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %81, i32 0, i32 5
  %83 = load i32, ptr %82, align 8, !tbaa !34
  %84 = icmp slt i32 %80, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %79
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %138

86:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %88 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !35
  %90 = load i32, ptr %9, align 4, !tbaa !27
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !28
  store float %93, ptr %11, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  store i8 0, ptr %12, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !33
  br label %94

94:                                               ; preds = %111, %86
  %95 = load i64, ptr %13, align 8, !tbaa !33
  %96 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 8, ptr %10, align 4
  br label %114

99:                                               ; preds = %94
  %100 = load float, ptr %11, align 4, !tbaa !28
  %101 = load i64, ptr %13, align 8, !tbaa !33
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %101) #8
  %103 = load float, ptr %102, align 4, !tbaa !28
  %104 = fsub float %100, %103
  %105 = invoke noundef float @_ZSt4fabsf(float noundef %104)
          to label %106 unwind label %223

106:                                              ; preds = %99
  %107 = fpext float %105 to double
  %108 = fcmp olt double %107, 0x3EB0C6F7A0B5ED8D
  br i1 %108, label %109, label %110

109:                                              ; preds = %106
  store i8 1, ptr %12, align 1, !tbaa !36
  store i32 8, ptr %10, align 4
  br label %114

110:                                              ; preds = %106
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %13, align 8, !tbaa !33
  %113 = add i64 %112, 1
  store i64 %113, ptr %13, align 8, !tbaa !33
  br label %94, !llvm.loop !37

114:                                              ; preds = %109, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %115

115:                                              ; preds = %114
  %116 = load i8, ptr %12, align 1, !tbaa !36, !range !38, !noundef !39
  %117 = trunc i8 %116 to i1
  br i1 %117, label %134, label %118

118:                                              ; preds = %115
  %119 = load float, ptr %11, align 4, !tbaa !28
  %120 = fcmp ogt float %119, 0.000000e+00
  br i1 %120, label %123, label %121

121:                                              ; preds = %118
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 98, i32 noundef 0, ptr noundef @.str.7) #9
          to label %122 unwind label %223

122:                                              ; preds = %121
  unreachable

123:                                              ; preds = %118
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %124 unwind label %223

124:                                              ; preds = %123
  %125 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %126 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %125, i32 0, i32 6
  %127 = load i8, ptr %126, align 4, !tbaa !40, !range !38, !noundef !39
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %133

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %130 = load float, ptr %11, align 4, !tbaa !28
  %131 = fdiv float 1.000000e+00, %130
  store float %131, ptr %14, align 4, !tbaa !28
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %132 unwind label %223

132:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %133

133:                                              ; preds = %132, %124
  br label %134

134:                                              ; preds = %133, %115
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %9, align 4, !tbaa !27
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %9, align 4, !tbaa !27
  br label %79, !llvm.loop !41

138:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  %140 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %141 = trunc i64 %140 to i32
  invoke void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %15, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %139, i32 noundef %141)
          to label %142 unwind label %223

142:                                              ; preds = %138
  %143 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %143, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  %144 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %145 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %146 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 8, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = mul i64 %144, %148
  %150 = trunc i64 %149 to i32
  %151 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 2
  store i32 %150, ptr %151, align 8, !tbaa !42
  %152 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %153 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %152, i32 0, i32 4
  %154 = load i32, ptr %153, align 4, !tbaa !43
  %155 = icmp sgt i32 %154, 0
  br i1 %155, label %156, label %222

156:                                              ; preds = %142
  %157 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %158 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %157, i32 0, i32 3
  %159 = load i32, ptr %158, align 8, !tbaa !9
  %160 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %161 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %160, i32 0, i32 4
  %162 = load i32, ptr %161, align 4, !tbaa !43
  %163 = icmp eq i32 %159, %162
  br i1 %163, label %166, label %164

164:                                              ; preds = %156
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 126, i32 noundef 0, ptr noundef @.str.8) #9
          to label %165 unwind label %223

165:                                              ; preds = %164
  unreachable

166:                                              ; preds = %156
  %167 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %168 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !44
  %170 = icmp ne ptr %169, null
  br i1 %170, label %173, label %171

171:                                              ; preds = %166
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 127, i32 noundef 0, ptr noundef @.str.9) #9
          to label %172 unwind label %223

172:                                              ; preds = %171
  unreachable

173:                                              ; preds = %166
  %174 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %175 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !26
  %177 = icmp ne ptr %176, null
  br i1 %177, label %180, label %178

178:                                              ; preds = %173
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 128, i32 noundef 0, ptr noundef @.str.3) #9
          to label %179 unwind label %223

179:                                              ; preds = %178
  unreachable

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !27
  br label %181

181:                                              ; preds = %210, %180
  %182 = load i32, ptr %16, align 4, !tbaa !27
  %183 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %184 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %183, i32 0, i32 4
  %185 = load i32, ptr %184, align 4, !tbaa !43
  %186 = icmp slt i32 %182, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %181
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %213

188:                                              ; preds = %181
  %189 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %190 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %189, i32 0, i32 1
  %191 = load ptr, ptr %190, align 8, !tbaa !44
  %192 = load i32, ptr %16, align 4, !tbaa !27
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds float, ptr %191, i64 %193
  %195 = load float, ptr %194, align 4, !tbaa !28
  %196 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %197 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !26
  %199 = load i32, ptr %16, align 4, !tbaa !27
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds float, ptr %198, i64 %200
  %202 = load float, ptr %201, align 4, !tbaa !28
  %203 = fcmp ogt float %195, %202
  br i1 %203, label %206, label %204

204:                                              ; preds = %188
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef 133, i32 noundef 0, ptr noundef @.str.10) #9
          to label %205 unwind label %223

205:                                              ; preds = %204
  unreachable

206:                                              ; preds = %188
  %207 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 2
  %208 = load i32, ptr %207, align 8, !tbaa !42
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %207, align 8, !tbaa !42
  br label %210

210:                                              ; preds = %206
  %211 = load i32, ptr %16, align 4, !tbaa !27
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %16, align 4, !tbaa !27
  br label %181, !llvm.loop !45

213:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  %214 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %215 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %214, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !44
  %217 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 1
  %218 = getelementptr inbounds %"struct.nvinfer1::plugin::PriorBoxParameters", ptr %217, i32 0, i32 4
  %219 = load i32, ptr %218, align 4, !tbaa !43
  invoke void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind writable sret(%"class.nvinfer1::Weights") align 8 %17, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %216, i32 noundef %219)
          to label %220 unwind label %223

220:                                              ; preds = %213
  %221 = getelementptr inbounds %"class.nvinfer1::plugin::PriorBox", ptr %18, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %221, ptr align 8 %17, i64 24, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  br label %222

222:                                              ; preds = %220, %142
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #8
  ret void

223:                                              ; preds = %213, %204, %178, %171, %164, %138, %129, %123, %121, %99, %77, %75, %68, %55, %49, %30, %23
  %224 = landingpad { ptr, i32 }
          catch ptr null
  %225 = extractvalue { ptr, i32 } %224, 0
  call void @__clang_call_terminate(ptr %225) #10
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) #7

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 32}
!10 = !{!"_ZTSN8nvinfer16plugin8PriorBoxE", !11, i64 0, !13, i64 8, !14, i64 88, !14, i64 92, !14, i64 96, !17, i64 104, !17, i64 128, !17, i64 152, !20, i64 176, !20, i64 200, !20, i64 224, !24, i64 248}
!11 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!13 = !{!"_ZTSN8nvinfer16plugin18PriorBoxParametersE", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !15, i64 36, !15, i64 37, !7, i64 40, !14, i64 56, !14, i64 60, !16, i64 64, !16, i64 68, !16, i64 72}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSN8nvinfer17WeightsE", !18, i64 0, !6, i64 8, !19, i64 16}
!18 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIfSaIfEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !19, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!10, !6, i64 8}
!27 = !{!14, !14, i64 0}
!28 = !{!16, !16, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{i64 0, i64 4, !32, i64 8, i64 8, !5, i64 16, i64 8, !33}
!32 = !{!18, !18, i64 0}
!33 = !{!19, !19, i64 0}
!34 = !{!10, !14, i64 40}
!35 = !{!10, !6, i64 24}
!36 = !{!15, !15, i64 0}
!37 = distinct !{!37, !30}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{!10, !15, i64 44}
!41 = distinct !{!41, !30}
!42 = !{!10, !14, i64 88}
!43 = !{!10, !14, i64 36}
!44 = !{!10, !6, i64 16}
!45 = distinct !{!45, !30}


; 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.anon.8 = type { i8 }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }

@.str = external hidden unnamed_addr constant [90 x i8], align 1
@__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv(ptr nocapture noundef nonnull align 8 dereferenceable(280) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.anon.8, align 1
  %3 = alloca %"class.nvinfer1::Weights", align 8
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca float, align 4
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"class.nvinfer1::Weights", align 8
  %10 = alloca %"class.nvinfer1::Weights", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #8
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load i32, ptr %12, align 8, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %17, label %.invoke

.invoke:                                          ; preds = %.lr.ph, %.critedge, %.lr.ph33, %83, %80, %78, %28, %23, %17, %1
  %15 = phi i32 [ 71, %1 ], [ 72, %17 ], [ 79, %23 ], [ 80, %28 ], [ 126, %78 ], [ 127, %80 ], [ 128, %83 ], [ 133, %.lr.ph33 ], [ 98, %.critedge ], [ 75, %.lr.ph ]
  %16 = phi ptr [ @.str.2, %1 ], [ @.str.3, %17 ], [ @.str.5, %23 ], [ @.str.6, %28 ], [ @.str.8, %78 ], [ @.str.9, %80 ], [ @.str.3, %83 ], [ @.str.10, %.lr.ph33 ], [ @.str.7, %.critedge ], [ @.str.4, %.lr.ph ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEv, i32 noundef %15, i32 noundef 0, ptr noundef nonnull %16) #9
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

17:                                               ; preds = %1
  %18 = load ptr, ptr %11, align 8, !tbaa !25
  %.not = icmp eq ptr %18, null
  br i1 %.not, label %.invoke, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %17
  %wide.trip.count = zext nneg i32 %13 to i64
  br label %.lr.ph

19:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  invoke void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %3, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull %18, i32 noundef %13)
          to label %23 unwind label %.loopexit.split-lp

.lr.ph:                                           ; preds = %.lr.ph.preheader, %19
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %19 ]
  %20 = getelementptr inbounds float, ptr %18, i64 %indvars.iv
  %21 = load float, ptr %20, align 4, !tbaa !28
  %22 = fcmp ogt float %21, 0.000000e+00
  br i1 %22, label %19, label %.invoke

23:                                               ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = load i32, ptr %25, align 8, !tbaa !33
  %27 = icmp sgt i32 %26, -1
  br i1 %27, label %28, label %.invoke

28:                                               ; preds = %23
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !34
  %.not19 = icmp eq ptr %30, null
  br i1 %.not19, label %.invoke, label %31

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store float 1.000000e+00, ptr %5, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKfRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %32 unwind label %.loopexit.split-lp

32:                                               ; preds = %31
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %33 = load i32, ptr %25, align 8, !tbaa !33
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph30, label %._crit_edge31

.lr.ph30:                                         ; preds = %32
  %35 = getelementptr inbounds i8, ptr %0, i64 44
  br label %39

._crit_edge31:                                    ; preds = %.loopexit, %32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #8
  %37 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %38 = trunc i64 %37 to i32
  invoke void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %9, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull %36, i32 noundef %38)
          to label %68 unwind label %.loopexit.split-lp

39:                                               ; preds = %.lr.ph30, %.loopexit
  %indvars.iv37 = phi i64 [ 0, %.lr.ph30 ], [ %indvars.iv.next38, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %40 = load ptr, ptr %29, align 8, !tbaa !34
  %41 = getelementptr inbounds float, ptr %40, i64 %indvars.iv37
  %42 = load float, ptr %41, align 4, !tbaa !28
  store float %42, ptr %7, align 4, !tbaa !28
  %43 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %.not35 = icmp eq i64 %43, 0
  br i1 %.not35, label %.critedge, label %.lr.ph27

44:                                               ; preds = %.lr.ph27
  %45 = add nuw i64 %.01425, 1
  %46 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %47 = icmp ult i64 %45, %46
  br i1 %47, label %.lr.ph27, label %.critedge, !llvm.loop !35

.lr.ph27:                                         ; preds = %39, %44
  %.01425 = phi i64 [ %45, %44 ], [ 0, %39 ]
  %48 = load float, ptr %7, align 4, !tbaa !28
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.01425) #8
  %50 = load float, ptr %49, align 4, !tbaa !28
  %51 = fsub float %48, %50
  %52 = call noundef float @_ZSt4fabsf(float noundef %51)
  %53 = fpext float %52 to double
  %54 = fcmp olt double %53, 0x3EB0C6F7A0B5ED8D
  br i1 %54, label %.loopexit, label %44

.critedge:                                        ; preds = %44, %39
  %55 = load float, ptr %7, align 4, !tbaa !28
  %56 = fcmp ogt float %55, 0.000000e+00
  br i1 %56, label %57, label %.invoke

57:                                               ; preds = %.critedge
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %58 unwind label %.loopexit22

58:                                               ; preds = %57
  %59 = load i8, ptr %35, align 4, !tbaa !36, !range !37, !noundef !38
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %61, label %.loopexit

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %62 = load float, ptr %7, align 4, !tbaa !28
  %63 = fdiv float 1.000000e+00, %62
  store float %63, ptr %8, align 4, !tbaa !28
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %64 unwind label %.loopexit22

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph27, %58, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %65 = load i32, ptr %25, align 8, !tbaa !33
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next38, %66
  br i1 %67, label %39, label %._crit_edge31, !llvm.loop !39

68:                                               ; preds = %._crit_edge31
  %69 = getelementptr inbounds i8, ptr %0, i64 152
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 8 dereferenceable(24) %9, i64 24, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  %70 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  %71 = load i32, ptr %12, align 8, !tbaa !5
  %72 = trunc i64 %70 to i32
  %73 = mul i32 %71, %72
  %74 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %73, ptr %74, align 8, !tbaa !40
  %75 = getelementptr inbounds i8, ptr %0, i64 36
  %76 = load i32, ptr %75, align 4, !tbaa !41
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %78, label %95

78:                                               ; preds = %68
  %79 = icmp eq i32 %71, %76
  br i1 %79, label %80, label %.invoke

80:                                               ; preds = %78
  %81 = getelementptr inbounds i8, ptr %0, i64 16
  %82 = load ptr, ptr %81, align 8, !tbaa !42
  %.not20 = icmp eq ptr %82, null
  br i1 %.not20, label %.invoke, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr %11, align 8, !tbaa !25
  %.not21 = icmp eq ptr %84, null
  br i1 %.not21, label %.invoke, label %.lr.ph33.preheader

.lr.ph33.preheader:                               ; preds = %83
  %wide.trip.count43 = zext nneg i32 %71 to i64
  br label %.lr.ph33

._crit_edge34:                                    ; preds = %91
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  invoke void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind nonnull writable sret(%"class.nvinfer1::Weights") align 8 %10, ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull %82, i32 noundef %71)
          to label %93 unwind label %.loopexit.split-lp

.lr.ph33:                                         ; preds = %.lr.ph33.preheader, %91
  %indvars.iv40 = phi i64 [ 0, %.lr.ph33.preheader ], [ %indvars.iv.next41, %91 ]
  %85 = phi i32 [ %73, %.lr.ph33.preheader ], [ %92, %91 ]
  %86 = getelementptr inbounds float, ptr %82, i64 %indvars.iv40
  %87 = load float, ptr %86, align 4, !tbaa !28
  %88 = getelementptr inbounds float, ptr %84, i64 %indvars.iv40
  %89 = load float, ptr %88, align 4, !tbaa !28
  %90 = fcmp ogt float %87, %89
  br i1 %90, label %91, label %.invoke

91:                                               ; preds = %.lr.ph33
  %92 = add nsw i32 %85, 1
  store i32 %92, ptr %74, align 8, !tbaa !40
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next41, %wide.trip.count43
  br i1 %exitcond44.not, label %._crit_edge34, label %.lr.ph33, !llvm.loop !43

93:                                               ; preds = %._crit_edge34
  %94 = getelementptr inbounds i8, ptr %0, i64 128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(24) %10, i64 24, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %95

95:                                               ; preds = %93, %68
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #8
  ret void

.loopexit22:                                      ; preds = %57, %61
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %96

.loopexit.split-lp:                               ; preds = %.invoke, %._crit_edge, %31, %._crit_edge31, %._crit_edge34
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %96

96:                                               ; preds = %.loopexit.split-lp, %.loopexit22
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit22 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  %97 = extractvalue { ptr, i32 } %lpad.phi, 0
  call void @__clang_call_terminate(ptr %97) #10
  unreachable
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN8nvinfer16plugin8PriorBox17setupDeviceMemoryEvENK3$_0clEPKvi"(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::Weights") align 8, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) local_unnamed_addr #7

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !13, i64 32}
!6 = !{!"_ZTSN8nvinfer16plugin8PriorBoxE", !7, i64 0, !9, i64 8, !13, i64 88, !13, i64 92, !13, i64 96, !16, i64 104, !16, i64 128, !16, i64 152, !19, i64 176, !19, i64 200, !19, i64 224, !23, i64 248}
!7 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!9 = !{!"_ZTSN8nvinfer16plugin18PriorBoxParametersE", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !14, i64 36, !14, i64 37, !11, i64 40, !13, i64 56, !13, i64 60, !15, i64 64, !15, i64 68, !15, i64 72}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"int", !11, i64 0}
!14 = !{!"bool", !11, i64 0}
!15 = !{!"float", !11, i64 0}
!16 = !{!"_ZTSN8nvinfer17WeightsE", !17, i64 0, !10, i64 8, !18, i64 16}
!17 = !{!"_ZTSN8nvinfer18DataTypeE", !11, i64 0}
!18 = !{!"long", !11, i64 0}
!19 = !{!"_ZTSSt6vectorIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !18, i64 8, !11, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!25 = !{!6, !10, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!15, !15, i64 0}
!29 = !{i64 0, i64 4, !30, i64 8, i64 8, !31, i64 16, i64 8, !32}
!30 = !{!17, !17, i64 0}
!31 = !{!10, !10, i64 0}
!32 = !{!18, !18, i64 0}
!33 = !{!6, !13, i64 40}
!34 = !{!6, !10, i64 24}
!35 = distinct !{!35, !27}
!36 = !{!6, !14, i64 44}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = distinct !{!39, !27}
!40 = !{!6, !13, i64 88}
!41 = !{!6, !13, i64 36}
!42 = !{!6, !10, i64 16}
!43 = distinct !{!43, !27}


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