; LLVM IR from NVIDIA/TensorRT :: plugin/regionPlugin/regionPlugin.ll (ZN8nvinfer16plugin6RegionC2EPKvm)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.nvinfer1::plugin::(anonymous namespace)::SoftmaxTreeDeleter" = type { i8 }
%"class.nvinfer1::plugin::Region" = type { %"class.nvinfer1::IPluginV2Ext", i32, i32, i32, %"class.std::shared_ptr", i32, i32, i32, i8, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { 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::softmaxTree" = type { ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr }

@_ZTVN8nvinfer16plugin6RegionE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [86 x i8], align 1
@__func__._ZN8nvinfer16plugin6RegionC2EPKvm = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEC2IS2_NS1_12_GLOBAL__N_118SoftmaxTreeDeleterEvEEPT_T0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin6RegionC2EPKvm(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %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 i32, align 4
  %25 = alloca %"class.std::shared_ptr", align 8
  %26 = alloca %"struct.nvinfer1::plugin::(anonymous namespace)::SoftmaxTreeDeleter", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %27 = load ptr, ptr %4, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin6RegionE, i32 0, i32 0, i32 2), ptr %27, align 8, !tbaa !11
  %28 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 4
  call void @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %30, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %31, ptr %8, align 8, !tbaa !5
  %32 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %33 unwind label %91

33:                                               ; preds = %3
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 5
  store i32 %32, ptr %34, align 8, !tbaa !13
  %35 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %36 unwind label %91

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 6
  store i32 %35, ptr %37, align 4, !tbaa !24
  %38 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %39 unwind label %91

39:                                               ; preds = %36
  %40 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 7
  store i32 %38, ptr %40, align 8, !tbaa !25
  %41 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %42 unwind label %91

42:                                               ; preds = %39
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 1
  store i32 %41, ptr %43, align 8, !tbaa !26
  %44 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %45 unwind label %91

45:                                               ; preds = %42
  %46 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 3
  store i32 %44, ptr %46, align 8, !tbaa !27
  %47 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %48 unwind label %91

48:                                               ; preds = %45
  %49 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 2
  store i32 %47, ptr %49, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %50 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %51 unwind label %95

51:                                               ; preds = %48
  %52 = zext i1 %50 to i8
  store i8 %52, ptr %11, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %53 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %54 unwind label %99

54:                                               ; preds = %51
  %55 = zext i1 %53 to i8
  store i8 %55, ptr %12, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %56 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %57 unwind label %103

57:                                               ; preds = %54
  %58 = zext i1 %56 to i8
  store i8 %58, ptr %13, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %59 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %60 unwind label %107

60:                                               ; preds = %57
  %61 = zext i1 %59 to i8
  store i8 %61, ptr %14, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %62 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %63 unwind label %111

63:                                               ; preds = %60
  %64 = zext i1 %62 to i8
  store i8 %64, ptr %15, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %65 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %66 unwind label %115

66:                                               ; preds = %63
  %67 = zext i1 %65 to i8
  store i8 %67, ptr %16, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  %68 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %69 unwind label %119

69:                                               ; preds = %66
  %70 = zext i1 %68 to i8
  store i8 %70, ptr %17, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %71 = invoke noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %72 unwind label %123

72:                                               ; preds = %69
  %73 = zext i1 %71 to i8
  store i8 %73, ptr %18, align 1, !tbaa !29
  %74 = load i8, ptr %11, align 1, !tbaa !29, !range !30, !noundef !31
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %383

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkINS0_11softmaxTreeEEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 1)
          to label %77 unwind label %127

77:                                               ; preds = %76
  %78 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %79 unwind label %127

79:                                               ; preds = %77
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %80, i32 0, i32 1
  store i32 %78, ptr %81, align 8, !tbaa !32
  %82 = load i8, ptr %12, align 1, !tbaa !29, !range !30, !noundef !31
  %83 = trunc i8 %82 to i1
  br i1 %83, label %84, label %131

84:                                               ; preds = %79
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %19, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !32
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %86, i32 noundef %89)
          to label %90 unwind label %127

90:                                               ; preds = %84
  br label %134

91:                                               ; preds = %45, %42, %39, %36, %33, %3
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  br label %402

95:                                               ; preds = %48
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %401

99:                                               ; preds = %51
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  br label %400

103:                                              ; preds = %54
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %9, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %10, align 4
  br label %399

107:                                              ; preds = %57
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  br label %398

111:                                              ; preds = %60
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %9, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %10, align 4
  br label %397

115:                                              ; preds = %63
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %10, align 4
  br label %396

119:                                              ; preds = %66
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %9, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %10, align 4
  br label %395

123:                                              ; preds = %391, %69
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  br label %394

127:                                              ; preds = %323, %310, %303, %240, %163, %150, %137, %84, %77, %76
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  br label %382

131:                                              ; preds = %79
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %132, i32 0, i32 0
  store ptr null, ptr %133, align 8, !tbaa !34
  br label %134

134:                                              ; preds = %131, %90
  %135 = load i8, ptr %13, align 1, !tbaa !29, !range !30, !noundef !31
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %144

137:                                              ; preds = %134
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 8, !tbaa !32
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %139, i32 noundef %142)
          to label %143 unwind label %127

143:                                              ; preds = %137
  br label %147

144:                                              ; preds = %134
  %145 = load ptr, ptr %19, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %145, i32 0, i32 2
  store ptr null, ptr %146, align 8, !tbaa !35
  br label %147

147:                                              ; preds = %144, %143
  %148 = load i8, ptr %14, align 1, !tbaa !29, !range !30, !noundef !31
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %157

150:                                              ; preds = %147
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %151, i32 0, i32 3
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %153, i32 0, i32 1
  %155 = load i32, ptr %154, align 8, !tbaa !32
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %152, i32 noundef %155)
          to label %156 unwind label %127

156:                                              ; preds = %150
  br label %160

157:                                              ; preds = %147
  %158 = load ptr, ptr %19, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %158, i32 0, i32 3
  store ptr null, ptr %159, align 8, !tbaa !36
  br label %160

160:                                              ; preds = %157, %156
  %161 = load i8, ptr %15, align 1, !tbaa !29, !range !30, !noundef !31
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %170

163:                                              ; preds = %160
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %166, i32 0, i32 1
  %168 = load i32, ptr %167, align 8, !tbaa !32
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %165, i32 noundef %168)
          to label %169 unwind label %127

169:                                              ; preds = %163
  br label %173

170:                                              ; preds = %160
  %171 = load ptr, ptr %19, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %171, i32 0, i32 4
  store ptr null, ptr %172, align 8, !tbaa !37
  br label %173

173:                                              ; preds = %170, %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !38
  br label %174

174:                                              ; preds = %234, %173
  %175 = load i32, ptr %20, align 4, !tbaa !38
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %176, i32 0, i32 1
  %178 = load i32, ptr %177, align 8, !tbaa !32
  %179 = icmp slt i32 %175, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %237

181:                                              ; preds = %174
  %182 = load i8, ptr %12, align 1, !tbaa !29, !range !30, !noundef !31
  %183 = trunc i8 %182 to i1
  br i1 %183, label %184, label %197

184:                                              ; preds = %181
  %185 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %186 unwind label %193

186:                                              ; preds = %184
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !34
  %190 = load i32, ptr %20, align 4, !tbaa !38
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds i32, ptr %189, i64 %191
  store i32 %185, ptr %192, align 4, !tbaa !38
  br label %197

193:                                              ; preds = %224, %212, %200, %184
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %9, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %382

197:                                              ; preds = %186, %181
  %198 = load i8, ptr %13, align 1, !tbaa !29, !range !30, !noundef !31
  %199 = trunc i8 %198 to i1
  br i1 %199, label %200, label %209

200:                                              ; preds = %197
  %201 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %202 unwind label %193

202:                                              ; preds = %200
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %203, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !35
  %206 = load i32, ptr %20, align 4, !tbaa !38
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds i32, ptr %205, i64 %207
  store i32 %201, ptr %208, align 4, !tbaa !38
  br label %209

209:                                              ; preds = %202, %197
  %210 = load i8, ptr %14, align 1, !tbaa !29, !range !30, !noundef !31
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %221

212:                                              ; preds = %209
  %213 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %214 unwind label %193

214:                                              ; preds = %212
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %215, i32 0, i32 3
  %217 = load ptr, ptr %216, align 8, !tbaa !36
  %218 = load i32, ptr %20, align 4, !tbaa !38
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i32, ptr %217, i64 %219
  store i32 %213, ptr %220, align 4, !tbaa !38
  br label %221

221:                                              ; preds = %214, %209
  %222 = load i8, ptr %15, align 1, !tbaa !29, !range !30, !noundef !31
  %223 = trunc i8 %222 to i1
  br i1 %223, label %224, label %233

224:                                              ; preds = %221
  %225 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %226 unwind label %193

226:                                              ; preds = %224
  %227 = load ptr, ptr %19, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !37
  %230 = load i32, ptr %20, align 4, !tbaa !38
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds i32, ptr %229, i64 %231
  store i32 %225, ptr %232, align 4, !tbaa !38
  br label %233

233:                                              ; preds = %226, %221
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr %20, align 4, !tbaa !38
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %20, align 4, !tbaa !38
  br label %174, !llvm.loop !39

237:                                              ; preds = %180
  %238 = load i8, ptr %16, align 1, !tbaa !29, !range !30, !noundef !31
  %239 = trunc i8 %238 to i1
  br i1 %239, label %240, label %247

240:                                              ; preds = %237
  %241 = load ptr, ptr %19, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %241, i32 0, i32 5
  %243 = load ptr, ptr %19, align 8, !tbaa !5
  %244 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %243, i32 0, i32 1
  %245 = load i32, ptr %244, align 8, !tbaa !32
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIPcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %242, i32 noundef %245)
          to label %246 unwind label %127

246:                                              ; preds = %240
  br label %250

247:                                              ; preds = %237
  %248 = load ptr, ptr %19, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %248, i32 0, i32 5
  store ptr null, ptr %249, align 8, !tbaa !41
  br label %250

250:                                              ; preds = %247, %246
  %251 = load i8, ptr %16, align 1, !tbaa !29, !range !30, !noundef !31
  %252 = trunc i8 %251 to i1
  br i1 %252, label %253, label %303

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !38
  br label %254

254:                                              ; preds = %298, %253
  %255 = load i32, ptr %21, align 4, !tbaa !38
  %256 = load ptr, ptr %19, align 8, !tbaa !5
  %257 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 8, !tbaa !32
  %259 = icmp slt i32 %255, %258
  br i1 %259, label %261, label %260

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

261:                                              ; preds = %254
  %262 = load ptr, ptr %19, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %262, i32 0, i32 5
  %264 = load ptr, ptr %263, align 8, !tbaa !41
  %265 = load i32, ptr %21, align 4, !tbaa !38
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds ptr, ptr %264, i64 %266
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %267, i32 noundef 256)
          to label %268 unwind label %273

268:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !38
  br label %269

269:                                              ; preds = %290, %268
  %270 = load i32, ptr %23, align 4, !tbaa !38
  %271 = icmp slt i32 %270, 256
  br i1 %271, label %277, label %272

272:                                              ; preds = %269
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %297

273:                                              ; preds = %261
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %9, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %10, align 4
  br label %301

277:                                              ; preds = %269
  %278 = invoke noundef signext i8 @_ZN8nvinfer16plugin4readIccEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %279 unwind label %293

279:                                              ; preds = %277
  %280 = load ptr, ptr %19, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %280, i32 0, i32 5
  %282 = load ptr, ptr %281, align 8, !tbaa !41
  %283 = load i32, ptr %21, align 4, !tbaa !38
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds ptr, ptr %282, i64 %284
  %286 = load ptr, ptr %285, align 8, !tbaa !5
  %287 = load i32, ptr %23, align 4, !tbaa !38
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds i8, ptr %286, i64 %288
  store i8 %278, ptr %289, align 1, !tbaa !42
  br label %290

290:                                              ; preds = %279
  %291 = load i32, ptr %23, align 4, !tbaa !38
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %23, align 4, !tbaa !38
  br label %269, !llvm.loop !43

293:                                              ; preds = %277
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %9, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %301

297:                                              ; preds = %272
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %21, align 4, !tbaa !38
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %21, align 4, !tbaa !38
  br label %254, !llvm.loop !44

301:                                              ; preds = %293, %273
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %382

302:                                              ; preds = %260
  br label %303

303:                                              ; preds = %302, %250
  %304 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %305 unwind label %127

305:                                              ; preds = %303
  %306 = load ptr, ptr %19, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %306, i32 0, i32 6
  store i32 %304, ptr %307, align 8, !tbaa !45
  %308 = load i8, ptr %17, align 1, !tbaa !29, !range !30, !noundef !31
  %309 = trunc i8 %308 to i1
  br i1 %309, label %310, label %317

310:                                              ; preds = %305
  %311 = load ptr, ptr %19, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %311, i32 0, i32 7
  %313 = load ptr, ptr %19, align 8, !tbaa !5
  %314 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %313, i32 0, i32 6
  %315 = load i32, ptr %314, align 8, !tbaa !45
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %312, i32 noundef %315)
          to label %316 unwind label %127

316:                                              ; preds = %310
  br label %320

317:                                              ; preds = %305
  %318 = load ptr, ptr %19, align 8, !tbaa !5
  %319 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %318, i32 0, i32 7
  store ptr null, ptr %319, align 8, !tbaa !46
  br label %320

320:                                              ; preds = %317, %316
  %321 = load i8, ptr %18, align 1, !tbaa !29, !range !30, !noundef !31
  %322 = trunc i8 %321 to i1
  br i1 %322, label %323, label %330

323:                                              ; preds = %320
  %324 = load ptr, ptr %19, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %324, i32 0, i32 8
  %326 = load ptr, ptr %19, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %326, i32 0, i32 6
  %328 = load i32, ptr %327, align 8, !tbaa !45
  invoke void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %325, i32 noundef %328)
          to label %329 unwind label %127

329:                                              ; preds = %323
  br label %333

330:                                              ; preds = %320
  %331 = load ptr, ptr %19, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %331, i32 0, i32 8
  store ptr null, ptr %332, align 8, !tbaa !47
  br label %333

333:                                              ; preds = %330, %329
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !38
  br label %334

334:                                              ; preds = %370, %333
  %335 = load i32, ptr %24, align 4, !tbaa !38
  %336 = load ptr, ptr %19, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %336, i32 0, i32 6
  %338 = load i32, ptr %337, align 8, !tbaa !45
  %339 = icmp slt i32 %335, %338
  br i1 %339, label %341, label %340

340:                                              ; preds = %334
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %373

341:                                              ; preds = %334
  %342 = load i8, ptr %17, align 1, !tbaa !29, !range !30, !noundef !31
  %343 = trunc i8 %342 to i1
  br i1 %343, label %344, label %357

344:                                              ; preds = %341
  %345 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %346 unwind label %353

346:                                              ; preds = %344
  %347 = load ptr, ptr %19, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %347, i32 0, i32 7
  %349 = load ptr, ptr %348, align 8, !tbaa !46
  %350 = load i32, ptr %24, align 4, !tbaa !38
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds i32, ptr %349, i64 %351
  store i32 %345, ptr %352, align 4, !tbaa !38
  br label %357

353:                                              ; preds = %360, %344
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %9, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %382

357:                                              ; preds = %346, %341
  %358 = load i8, ptr %18, align 1, !tbaa !29, !range !30, !noundef !31
  %359 = trunc i8 %358 to i1
  br i1 %359, label %360, label %369

360:                                              ; preds = %357
  %361 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %362 unwind label %353

362:                                              ; preds = %360
  %363 = load ptr, ptr %19, align 8, !tbaa !5
  %364 = getelementptr inbounds %"struct.nvinfer1::plugin::softmaxTree", ptr %363, i32 0, i32 8
  %365 = load ptr, ptr %364, align 8, !tbaa !47
  %366 = load i32, ptr %24, align 4, !tbaa !38
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds i32, ptr %365, i64 %367
  store i32 %361, ptr %368, align 4, !tbaa !38
  br label %369

369:                                              ; preds = %362, %357
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %24, align 4, !tbaa !38
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %24, align 4, !tbaa !38
  br label %334, !llvm.loop !48

373:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #4
  %374 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEC2IS2_NS1_12_GLOBAL__N_118SoftmaxTreeDeleterEvEEPT_T0_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef %374)
          to label %375 unwind label %378

375:                                              ; preds = %373
  %376 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 4
  %377 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %376, ptr noundef nonnull align 8 dereferenceable(16) %25) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %385

378:                                              ; preds = %373
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %9, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #4
  br label %382

382:                                              ; preds = %378, %353, %301, %193, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %394

383:                                              ; preds = %72
  %384 = getelementptr inbounds %"class.nvinfer1::plugin::Region", ptr %27, i32 0, i32 4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE5resetEv(ptr noundef nonnull align 8 dereferenceable(16) %384) #4
  br label %385

385:                                              ; preds = %383, %375
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = load ptr, ptr %8, align 8, !tbaa !5
  %388 = load i64, ptr %6, align 8, !tbaa !9
  %389 = getelementptr inbounds i8, ptr %387, i64 %388
  %390 = icmp eq ptr %386, %389
  br i1 %390, label %393, label %391

391:                                              ; preds = %385
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin6RegionC2EPKvm, i32 noundef 230, i32 noundef 0, ptr noundef @.str.2) #5
          to label %392 unwind label %123

392:                                              ; preds = %391
  unreachable

393:                                              ; preds = %385
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void

394:                                              ; preds = %382, %123
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  br label %395

395:                                              ; preds = %394, %119
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  br label %396

396:                                              ; preds = %395, %115
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %397

397:                                              ; preds = %396, %111
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %398

398:                                              ; preds = %397, %107
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %399

399:                                              ; preds = %398, %103
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  br label %400

400:                                              ; preds = %399, %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %401

401:                                              ; preds = %400, %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  br label %402

402:                                              ; preds = %401, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  br label %403

403:                                              ; preds = %402
  %404 = load ptr, ptr %9, align 8
  %405 = load i32, ptr %10, align 4
  %406 = insertvalue { ptr, i32 } poison, ptr %404, 0
  %407 = insertvalue { ptr, i32 } %406, i32 %405, 1
  resume { ptr, i32 } %407
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkINS0_11softmaxTreeEEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIPcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN8nvinfer16plugin4readIccEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !17, i64 40}
!14 = !{!"_ZTSN8nvinfer16plugin6RegionE", !15, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !18, i64 24, !17, i64 40, !17, i64 44, !17, i64 48, !21, i64 52, !22, i64 56}
!15 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEE", !19, i64 0}
!19 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !20, i64 8}
!20 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !10, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!14, !17, i64 44}
!25 = !{!14, !17, i64 48}
!26 = !{!14, !17, i64 8}
!27 = !{!14, !17, i64 16}
!28 = !{!14, !17, i64 12}
!29 = !{!21, !21, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!33, !17, i64 8}
!33 = !{!"_ZTSN8nvinfer16plugin11softmaxTreeE", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !6, i64 56, !6, i64 64}
!34 = !{!33, !6, i64 0}
!35 = !{!33, !6, i64 16}
!36 = !{!33, !6, i64 24}
!37 = !{!33, !6, i64 32}
!38 = !{!17, !17, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!33, !6, i64 40}
!42 = !{!7, !7, i64 0}
!43 = distinct !{!43, !40}
!44 = distinct !{!44, !40}
!45 = !{!33, !17, i64 48}
!46 = !{!33, !6, i64 56}
!47 = !{!33, !6, i64 64}
!48 = distinct !{!48, !40}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@_ZTVN8nvinfer16plugin6RegionE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [86 x i8], align 1
@__func__._ZN8nvinfer16plugin6RegionC2EPKvm = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEC2IS2_NS1_12_GLOBAL__N_118SoftmaxTreeDeleterEvEEPT_T0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin6RegionC2EPKvm(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::shared_ptr", align 8
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin6RegionE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store ptr %1, ptr %4, align 8, !tbaa !8
  %9 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %9, ptr %10, align 8, !tbaa !11
  %11 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %12 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %11, ptr %12, align 4, !tbaa !23
  %13 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %13, ptr %14, align 8, !tbaa !24
  %15 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %15, ptr %16, align 8, !tbaa !25
  %17 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %17, ptr %18, align 8, !tbaa !26
  %19 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %19, ptr %20, align 4, !tbaa !27
  %21 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %22 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %23 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %24 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %25 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %26 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %27 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %28 = call noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  br i1 %21, label %29, label %219

29:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkINS0_11softmaxTreeEEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 1)
  %30 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %31 = load ptr, ptr %5, align 8, !tbaa !8
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  store i32 %30, ptr %32, align 8, !tbaa !28
  br i1 %22, label %33, label %36

33:                                               ; preds = %29
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %30)
  br label %37

34:                                               ; preds = %224
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %227

36:                                               ; preds = %29
  store ptr null, ptr %31, align 8, !tbaa !30
  br label %37

37:                                               ; preds = %36, %33
  %38 = load ptr, ptr %5, align 8, !tbaa !8
  %39 = getelementptr inbounds i8, ptr %38, i64 16
  br i1 %23, label %40, label %43

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %38, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !28
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %39, i32 noundef %42)
  br label %44

43:                                               ; preds = %37
  store ptr null, ptr %39, align 8, !tbaa !31
  br label %44

44:                                               ; preds = %43, %40
  %45 = load ptr, ptr %5, align 8, !tbaa !8
  %46 = getelementptr inbounds i8, ptr %45, i64 24
  br i1 %24, label %47, label %50

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %45, i64 8
  %49 = load i32, ptr %48, align 8, !tbaa !28
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %46, i32 noundef %49)
  br label %51

50:                                               ; preds = %44
  store ptr null, ptr %46, align 8, !tbaa !32
  br label %51

51:                                               ; preds = %50, %47
  %52 = load ptr, ptr %5, align 8, !tbaa !8
  %53 = getelementptr inbounds i8, ptr %52, i64 32
  br i1 %25, label %54, label %57

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %52, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !28
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %53, i32 noundef %56)
  %.pre = load ptr, ptr %5, align 8, !tbaa !8
  br label %58

57:                                               ; preds = %51
  store ptr null, ptr %53, align 8, !tbaa !33
  br label %58

58:                                               ; preds = %57, %54
  %59 = phi ptr [ %52, %57 ], [ %.pre, %54 ]
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i32, ptr %60, align 8, !tbaa !28
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %58
  br i1 %22, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %89
  %indvars.iv101 = phi i64 [ %indvars.iv.next102, %89 ], [ 0, %.lr.ph ]
  %63 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %64 = load ptr, ptr %5, align 8, !tbaa !8
  %65 = load ptr, ptr %64, align 8, !tbaa !30
  %66 = getelementptr inbounds i32, ptr %65, i64 %indvars.iv101
  store i32 %63, ptr %66, align 4, !tbaa !34
  br i1 %23, label %67, label %73

67:                                               ; preds = %.lr.ph.split.us
  %68 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %69 = load ptr, ptr %5, align 8, !tbaa !8
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load ptr, ptr %70, align 8, !tbaa !31
  %72 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv101
  store i32 %68, ptr %72, align 4, !tbaa !34
  br label %73

73:                                               ; preds = %67, %.lr.ph.split.us
  %74 = phi ptr [ %69, %67 ], [ %64, %.lr.ph.split.us ]
  br i1 %24, label %75, label %81

75:                                               ; preds = %73
  %76 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %77 = load ptr, ptr %5, align 8, !tbaa !8
  %78 = getelementptr inbounds i8, ptr %77, i64 24
  %79 = load ptr, ptr %78, align 8, !tbaa !32
  %80 = getelementptr inbounds i32, ptr %79, i64 %indvars.iv101
  store i32 %76, ptr %80, align 4, !tbaa !34
  br label %81

81:                                               ; preds = %75, %73
  %82 = phi ptr [ %77, %75 ], [ %74, %73 ]
  br i1 %25, label %83, label %89

83:                                               ; preds = %81
  %84 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %85 = load ptr, ptr %5, align 8, !tbaa !8
  %86 = getelementptr inbounds i8, ptr %85, i64 32
  %87 = load ptr, ptr %86, align 8, !tbaa !33
  %88 = getelementptr inbounds i32, ptr %87, i64 %indvars.iv101
  store i32 %84, ptr %88, align 4, !tbaa !34
  br label %89

89:                                               ; preds = %83, %81
  %90 = phi ptr [ %85, %83 ], [ %82, %81 ]
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load i32, ptr %91, align 8, !tbaa !28
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next102, %93
  br i1 %94, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !35

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %23, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %114
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %114 ], [ 0, %.lr.ph.split ]
  %95 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %96 = load ptr, ptr %5, align 8, !tbaa !8
  %97 = getelementptr inbounds i8, ptr %96, i64 16
  %98 = load ptr, ptr %97, align 8, !tbaa !31
  %99 = getelementptr inbounds i32, ptr %98, i64 %indvars.iv98
  store i32 %95, ptr %99, align 4, !tbaa !34
  br i1 %24, label %100, label %106

100:                                              ; preds = %.lr.ph.split.split.us
  %101 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %102 = load ptr, ptr %5, align 8, !tbaa !8
  %103 = getelementptr inbounds i8, ptr %102, i64 24
  %104 = load ptr, ptr %103, align 8, !tbaa !32
  %105 = getelementptr inbounds i32, ptr %104, i64 %indvars.iv98
  store i32 %101, ptr %105, align 4, !tbaa !34
  br label %106

106:                                              ; preds = %100, %.lr.ph.split.split.us
  %107 = phi ptr [ %102, %100 ], [ %96, %.lr.ph.split.split.us ]
  br i1 %25, label %108, label %114

108:                                              ; preds = %106
  %109 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %110 = load ptr, ptr %5, align 8, !tbaa !8
  %111 = getelementptr inbounds i8, ptr %110, i64 32
  %112 = load ptr, ptr %111, align 8, !tbaa !33
  %113 = getelementptr inbounds i32, ptr %112, i64 %indvars.iv98
  store i32 %109, ptr %113, align 4, !tbaa !34
  br label %114

114:                                              ; preds = %108, %106
  %115 = phi ptr [ %110, %108 ], [ %107, %106 ]
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load i32, ptr %116, align 8, !tbaa !28
  %118 = sext i32 %117 to i64
  %119 = icmp slt i64 %indvars.iv.next99, %118
  br i1 %119, label %.lr.ph.split.split.us, label %._crit_edge, !llvm.loop !35

.lr.ph.split.split:                               ; preds = %.lr.ph.split
  br i1 %24, label %.lr.ph.split.split.split.us, label %.lr.ph.split.split.split

.lr.ph.split.split.split.us:                      ; preds = %.lr.ph.split.split
  br i1 %25, label %.lr.ph.split.split.split.us.split.us, label %.lr.ph.split.split.split.us.split

.lr.ph.split.split.split.us.split.us:             ; preds = %.lr.ph.split.split.split.us, %.lr.ph.split.split.split.us.split.us
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %.lr.ph.split.split.split.us.split.us ], [ 0, %.lr.ph.split.split.split.us ]
  %120 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %121 = load ptr, ptr %5, align 8, !tbaa !8
  %122 = getelementptr inbounds i8, ptr %121, i64 24
  %123 = load ptr, ptr %122, align 8, !tbaa !32
  %124 = getelementptr inbounds i32, ptr %123, i64 %indvars.iv95
  store i32 %120, ptr %124, align 4, !tbaa !34
  %125 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %126 = load ptr, ptr %5, align 8, !tbaa !8
  %127 = getelementptr inbounds i8, ptr %126, i64 32
  %128 = load ptr, ptr %127, align 8, !tbaa !33
  %129 = getelementptr inbounds i32, ptr %128, i64 %indvars.iv95
  store i32 %125, ptr %129, align 4, !tbaa !34
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %130 = getelementptr inbounds i8, ptr %126, i64 8
  %131 = load i32, ptr %130, align 8, !tbaa !28
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next96, %132
  br i1 %133, label %.lr.ph.split.split.split.us.split.us, label %._crit_edge, !llvm.loop !35

.lr.ph.split.split.split.us.split:                ; preds = %.lr.ph.split.split.split.us, %.lr.ph.split.split.split.us.split
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph.split.split.split.us.split ], [ 0, %.lr.ph.split.split.split.us ]
  %134 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %135 = load ptr, ptr %5, align 8, !tbaa !8
  %136 = getelementptr inbounds i8, ptr %135, i64 24
  %137 = load ptr, ptr %136, align 8, !tbaa !32
  %138 = getelementptr inbounds i32, ptr %137, i64 %indvars.iv92
  store i32 %134, ptr %138, align 4, !tbaa !34
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %139 = getelementptr inbounds i8, ptr %135, i64 8
  %140 = load i32, ptr %139, align 8, !tbaa !28
  %141 = sext i32 %140 to i64
  %142 = icmp slt i64 %indvars.iv.next93, %141
  br i1 %142, label %.lr.ph.split.split.split.us.split, label %._crit_edge, !llvm.loop !35

.lr.ph.split.split.split:                         ; preds = %.lr.ph.split.split
  br i1 %25, label %.lr.ph.split.split.split.split.us, label %._crit_edge

.lr.ph.split.split.split.split.us:                ; preds = %.lr.ph.split.split.split, %.lr.ph.split.split.split.split.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.split.split.split.us ], [ 0, %.lr.ph.split.split.split ]
  %143 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %144 = load ptr, ptr %5, align 8, !tbaa !8
  %145 = getelementptr inbounds i8, ptr %144, i64 32
  %146 = load ptr, ptr %145, align 8, !tbaa !33
  %147 = getelementptr inbounds i32, ptr %146, i64 %indvars.iv
  store i32 %143, ptr %147, align 4, !tbaa !34
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %148 = getelementptr inbounds i8, ptr %144, i64 8
  %149 = load i32, ptr %148, align 8, !tbaa !28
  %150 = sext i32 %149 to i64
  %151 = icmp slt i64 %indvars.iv.next, %150
  br i1 %151, label %.lr.ph.split.split.split.split.us, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %.lr.ph.split.split.split.split.us, %.lr.ph.split.split.split.us.split, %.lr.ph.split.split.split.us.split.us, %114, %89, %.lr.ph.split.split.split, %58
  %.lcssa45 = phi ptr [ %59, %58 ], [ %59, %.lr.ph.split.split.split ], [ %90, %89 ], [ %115, %114 ], [ %126, %.lr.ph.split.split.split.us.split.us ], [ %135, %.lr.ph.split.split.split.us.split ], [ %144, %.lr.ph.split.split.split.split.us ]
  %.lcssa44 = phi i32 [ %61, %58 ], [ %61, %.lr.ph.split.split.split ], [ %92, %89 ], [ %117, %114 ], [ %131, %.lr.ph.split.split.split.us.split.us ], [ %140, %.lr.ph.split.split.split.us.split ], [ %149, %.lr.ph.split.split.split.split.us ]
  %152 = getelementptr inbounds i8, ptr %.lcssa45, i64 40
  br i1 %26, label %153, label %.thread

.thread:                                          ; preds = %._crit_edge
  store ptr null, ptr %152, align 8, !tbaa !37
  br label %.loopexit

153:                                              ; preds = %._crit_edge
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIPcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %152, i32 noundef %.lcssa44)
  %154 = load ptr, ptr %5, align 8, !tbaa !8
  %155 = getelementptr inbounds i8, ptr %154, i64 8
  %156 = load i32, ptr %155, align 8, !tbaa !28
  %157 = icmp sgt i32 %156, 0
  br i1 %157, label %.lr.ph69, label %.loopexit

.lr.ph69:                                         ; preds = %153, %162
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %162 ], [ 0, %153 ]
  %158 = phi ptr [ %163, %162 ], [ %154, %153 ]
  %159 = getelementptr inbounds i8, ptr %158, i64 40
  %160 = load ptr, ptr %159, align 8, !tbaa !37
  %161 = getelementptr inbounds ptr, ptr %160, i64 %indvars.iv107
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %161, i32 noundef 256)
  br label %168

162:                                              ; preds = %168
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %163 = load ptr, ptr %5, align 8, !tbaa !8
  %164 = getelementptr inbounds i8, ptr %163, i64 8
  %165 = load i32, ptr %164, align 8, !tbaa !28
  %166 = sext i32 %165 to i64
  %167 = icmp slt i64 %indvars.iv.next108, %166
  br i1 %167, label %.lr.ph69, label %.loopexit, !llvm.loop !38

168:                                              ; preds = %.lr.ph69, %168
  %indvars.iv104 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next105, %168 ]
  %169 = call noundef signext i8 @_ZN8nvinfer16plugin4readIccEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %170 = load ptr, ptr %5, align 8, !tbaa !8
  %171 = getelementptr inbounds i8, ptr %170, i64 40
  %172 = load ptr, ptr %171, align 8, !tbaa !37
  %173 = getelementptr inbounds ptr, ptr %172, i64 %indvars.iv107
  %174 = load ptr, ptr %173, align 8, !tbaa !8
  %175 = getelementptr inbounds i8, ptr %174, i64 %indvars.iv104
  store i8 %169, ptr %175, align 1, !tbaa !39
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next105, 256
  br i1 %exitcond.not, label %162, label %168, !llvm.loop !40

.loopexit:                                        ; preds = %162, %153, %.thread
  %176 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %177 = load ptr, ptr %5, align 8, !tbaa !8
  %178 = getelementptr inbounds i8, ptr %177, i64 48
  store i32 %176, ptr %178, align 8, !tbaa !41
  %179 = getelementptr inbounds i8, ptr %177, i64 56
  br i1 %27, label %180, label %181

180:                                              ; preds = %.loopexit
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %179, i32 noundef %176)
  br label %182

181:                                              ; preds = %.loopexit
  store ptr null, ptr %179, align 8, !tbaa !42
  br label %182

182:                                              ; preds = %181, %180
  %183 = load ptr, ptr %5, align 8, !tbaa !8
  %184 = getelementptr inbounds i8, ptr %183, i64 64
  br i1 %28, label %185, label %188

185:                                              ; preds = %182
  %186 = getelementptr inbounds i8, ptr %183, i64 48
  %187 = load i32, ptr %186, align 8, !tbaa !41
  call void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8) %184, i32 noundef %187)
  %.pre113 = load ptr, ptr %5, align 8, !tbaa !8
  br label %189

188:                                              ; preds = %182
  store ptr null, ptr %184, align 8, !tbaa !43
  br label %189

189:                                              ; preds = %188, %185
  %190 = phi ptr [ %183, %188 ], [ %.pre113, %185 ]
  %191 = getelementptr inbounds i8, ptr %190, i64 48
  %192 = load i32, ptr %191, align 8, !tbaa !41
  %193 = icmp sgt i32 %192, 0
  br i1 %193, label %.lr.ph72, label %._crit_edge73

._crit_edge73:                                    ; preds = %209, %189
  %.lcssa = phi ptr [ %190, %189 ], [ %210, %209 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  invoke void @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEC2IS2_NS1_12_GLOBAL__N_118SoftmaxTreeDeleterEvEEPT_T0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %.lcssa)
          to label %215 unwind label %217

.lr.ph72:                                         ; preds = %189, %209
  %194 = phi ptr [ %210, %209 ], [ %190, %189 ]
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %209 ], [ 0, %189 ]
  br i1 %27, label %195, label %201

195:                                              ; preds = %.lr.ph72
  %196 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %197 = load ptr, ptr %5, align 8, !tbaa !8
  %198 = getelementptr inbounds i8, ptr %197, i64 56
  %199 = load ptr, ptr %198, align 8, !tbaa !42
  %200 = getelementptr inbounds i32, ptr %199, i64 %indvars.iv110
  store i32 %196, ptr %200, align 4, !tbaa !34
  br label %201

201:                                              ; preds = %195, %.lr.ph72
  %202 = phi ptr [ %197, %195 ], [ %194, %.lr.ph72 ]
  br i1 %28, label %203, label %209

203:                                              ; preds = %201
  %204 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %205 = load ptr, ptr %5, align 8, !tbaa !8
  %206 = getelementptr inbounds i8, ptr %205, i64 64
  %207 = load ptr, ptr %206, align 8, !tbaa !43
  %208 = getelementptr inbounds i32, ptr %207, i64 %indvars.iv110
  store i32 %204, ptr %208, align 4, !tbaa !34
  br label %209

209:                                              ; preds = %201, %203
  %210 = phi ptr [ %202, %201 ], [ %205, %203 ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %211 = getelementptr inbounds i8, ptr %210, i64 48
  %212 = load i32, ptr %211, align 8, !tbaa !41
  %213 = sext i32 %212 to i64
  %214 = icmp slt i64 %indvars.iv.next111, %213
  br i1 %214, label %.lr.ph72, label %._crit_edge73, !llvm.loop !44

215:                                              ; preds = %._crit_edge73
  %216 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %220

217:                                              ; preds = %._crit_edge73
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %227

219:                                              ; preds = %3
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE5resetEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  br label %220

220:                                              ; preds = %219, %215
  %221 = load ptr, ptr %4, align 8, !tbaa !8
  %222 = getelementptr inbounds i8, ptr %1, i64 %2
  %223 = icmp eq ptr %221, %222
  br i1 %223, label %226, label %224

224:                                              ; preds = %220
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin6RegionC2EPKvm, i32 noundef 230, i32 noundef 0, ptr noundef nonnull @.str.2) #5
          to label %225 unwind label %34

225:                                              ; preds = %224
  unreachable

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

227:                                              ; preds = %217, %34
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %218, %217 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  call void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4readIbcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkINS0_11softmaxTreeEEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIiEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIPcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN8nvinfer16plugin12_GLOBAL__N_113allocateChunkIcEEvRPT_i(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_ZN8nvinfer16plugin4readIccEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE5resetEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !15, i64 40}
!12 = !{!"_ZTSN8nvinfer16plugin6RegionE", !13, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !16, i64 24, !15, i64 40, !15, i64 44, !15, i64 48, !19, i64 52, !20, i64 56}
!13 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!15 = !{!"int", !10, i64 0}
!16 = !{!"_ZTSSt10shared_ptrIN8nvinfer16plugin11softmaxTreeEE", !17, i64 0}
!17 = !{!"_ZTSSt12__shared_ptrIN8nvinfer16plugin11softmaxTreeELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0}
!19 = !{!"bool", !10, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !10, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!22 = !{!"long", !10, i64 0}
!23 = !{!12, !15, i64 44}
!24 = !{!12, !15, i64 48}
!25 = !{!12, !15, i64 8}
!26 = !{!12, !15, i64 16}
!27 = !{!12, !15, i64 12}
!28 = !{!29, !15, i64 8}
!29 = !{!"_ZTSN8nvinfer16plugin11softmaxTreeE", !9, i64 0, !15, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !15, i64 48, !9, i64 56, !9, i64 64}
!30 = !{!29, !9, i64 0}
!31 = !{!29, !9, i64 16}
!32 = !{!29, !9, i64 24}
!33 = !{!29, !9, i64 32}
!34 = !{!15, !15, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!29, !9, i64 40}
!38 = distinct !{!38, !36}
!39 = !{!10, !10, i64 0}
!40 = distinct !{!40, !36}
!41 = !{!29, !15, i64 48}
!42 = !{!29, !9, i64 56}
!43 = !{!29, !9, i64 64}
!44 = distinct !{!44, !36}


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