; LLVM IR from NVIDIA/TensorRT :: plugin/nvFasterRCNN (nvFasterRCNNPlugin)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.nvinfer1::plugin::RPROIPlugin" = type <{ %"class.nvinfer1::IPluginV2IOExt", ptr, %"class.std::__cxx11::basic_string", i32, i32, i64, %"struct.nvinfer1::plugin::RPROIParams", i32, i32, i32, i32, ptr, ptr, i32, i32, i32, [4 x i8] }>
%"class.nvinfer1::IPluginV2IOExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"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::RPROIParams" = type { i32, i32, i32, i32, i32, i32, i32, float, float, float }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [140 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8nvinfer16plugin11RPROIPlugin19convertTensorFormatERKNS_12TensorFormatE(ptr noundef nonnull align 8 dereferenceable(148), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin11RPROIPlugin15configurePluginEPKNS_16PluginTensorDescEiS4_i(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %11 = load ptr, ptr %6, align 8
  %12 = load i32, ptr %8, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 3
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = icmp eq i32 %12, %14
  br i1 %15, label %18, label %16

16:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.14, ptr noundef @.str, i32 noundef 357)
          to label %17 unwind label %254

17:                                               ; preds = %16
  br label %18

18:                                               ; preds = %17, %5
  %19 = load i32, ptr %10, align 4, !tbaa !9
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 4
  %21 = load i32, ptr %20, align 4, !tbaa !23
  %22 = icmp eq i32 %19, %21
  br i1 %22, label %25, label %23

23:                                               ; preds = %18
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.15, ptr noundef @.str, i32 noundef 358)
          to label %24 unwind label %254

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24, %18
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 6
  %27 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %26, i32 0, i32 5
  %28 = load i32, ptr %27, align 4, !tbaa !24
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 6
  %30 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %29, i32 0, i32 6
  %31 = load i32, ptr %30, align 8, !tbaa !25
  %32 = mul nsw i32 %28, %31
  %33 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 7
  store i32 %32, ptr %33, align 8, !tbaa !26
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %34, i64 2
  %36 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds [8 x i64], ptr %37, i64 0, i64 0
  %39 = load i64, ptr %38, align 8, !tbaa !27
  %40 = trunc i64 %39 to i32
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 8
  store i32 %40, ptr %41, align 4, !tbaa !28
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %42, i64 2
  %44 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds [8 x i64], ptr %45, i64 0, i64 1
  %47 = load i64, ptr %46, align 8, !tbaa !27
  %48 = trunc i64 %47 to i32
  %49 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 9
  store i32 %48, ptr %49, align 8, !tbaa !29
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %50, i64 2
  %52 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds [8 x i64], ptr %53, i64 0, i64 2
  %55 = load i64, ptr %54, align 8, !tbaa !27
  %56 = trunc i64 %55 to i32
  %57 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 10
  store i32 %56, ptr %57, align 4, !tbaa !30
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %58, i64 2
  %60 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !31
  %62 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 13
  store i32 %61, ptr %62, align 8, !tbaa !35
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %63, i64 1
  %65 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !31
  %67 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 14
  store i32 %66, ptr %67, align 4, !tbaa !36
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %68, i64 2
  %70 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %69, i32 0, i32 2
  %71 = call noundef i32 @_ZNK8nvinfer16plugin11RPROIPlugin19convertTensorFormatERKNS_12TensorFormatE(ptr noundef nonnull align 8 dereferenceable(148) %11, ptr noundef nonnull align 4 dereferenceable(4) %70) #3
  %72 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 15
  store i32 %71, ptr %72, align 8, !tbaa !37
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %73, i64 0
  %75 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds [8 x i64], ptr %76, i64 0, i64 0
  %78 = load i64, ptr %77, align 8, !tbaa !27
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 7
  %80 = load i32, ptr %79, align 8, !tbaa !26
  %81 = mul nsw i32 2, %80
  %82 = sext i32 %81 to i64
  %83 = icmp eq i64 %78, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %25
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %85, i64 1
  %87 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %87, i32 0, i32 1
  %89 = getelementptr inbounds [8 x i64], ptr %88, i64 0, i64 0
  %90 = load i64, ptr %89, align 8, !tbaa !27
  %91 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 7
  %92 = load i32, ptr %91, align 8, !tbaa !26
  %93 = mul nsw i32 4, %92
  %94 = sext i32 %93 to i64
  %95 = icmp eq i64 %90, %94
  br i1 %95, label %98, label %96

96:                                               ; preds = %84, %25
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.16, ptr noundef @.str, i32 noundef 368)
          to label %97 unwind label %254

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97, %84
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %99, i64 0
  %101 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds [8 x i64], ptr %102, i64 0, i64 1
  %104 = load i64, ptr %103, align 8, !tbaa !27
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %105, i64 1
  %107 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %107, i32 0, i32 1
  %109 = getelementptr inbounds [8 x i64], ptr %108, i64 0, i64 1
  %110 = load i64, ptr %109, align 8, !tbaa !27
  %111 = icmp eq i64 %104, %110
  br i1 %111, label %112, label %126

112:                                              ; preds = %98
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %113, i64 0
  %115 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %115, i32 0, i32 1
  %117 = getelementptr inbounds [8 x i64], ptr %116, i64 0, i64 1
  %118 = load i64, ptr %117, align 8, !tbaa !27
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %119, i64 2
  %121 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %121, i32 0, i32 1
  %123 = getelementptr inbounds [8 x i64], ptr %122, i64 0, i64 1
  %124 = load i64, ptr %123, align 8, !tbaa !27
  %125 = icmp eq i64 %118, %124
  br i1 %125, label %128, label %126

126:                                              ; preds = %112, %98
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.17, ptr noundef @.str, i32 noundef 369)
          to label %127 unwind label %254

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127, %112
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %129, i64 0
  %131 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %131, i32 0, i32 1
  %133 = getelementptr inbounds [8 x i64], ptr %132, i64 0, i64 2
  %134 = load i64, ptr %133, align 8, !tbaa !27
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %135, i64 1
  %137 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %137, i32 0, i32 1
  %139 = getelementptr inbounds [8 x i64], ptr %138, i64 0, i64 2
  %140 = load i64, ptr %139, align 8, !tbaa !27
  %141 = icmp eq i64 %134, %140
  br i1 %141, label %142, label %156

142:                                              ; preds = %128
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %143, i64 0
  %145 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds [8 x i64], ptr %146, i64 0, i64 2
  %148 = load i64, ptr %147, align 8, !tbaa !27
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %149, i64 2
  %151 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %151, i32 0, i32 1
  %153 = getelementptr inbounds [8 x i64], ptr %152, i64 0, i64 2
  %154 = load i64, ptr %153, align 8, !tbaa !27
  %155 = icmp eq i64 %148, %154
  br i1 %155, label %158, label %156

156:                                              ; preds = %142, %128
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.18, ptr noundef @.str, i32 noundef 370)
          to label %157 unwind label %254

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157, %142
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %159, i64 0
  %161 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !38
  %164 = icmp eq i32 %163, 3
  br i1 %164, label %165, label %172

165:                                              ; preds = %158
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %166, i64 1
  %168 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %167, i32 0, i32 0
  %169 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %168, i32 0, i32 0
  %170 = load i32, ptr %169, align 8, !tbaa !38
  %171 = icmp eq i32 %170, 4
  br i1 %171, label %174, label %172

172:                                              ; preds = %165, %158
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.19, ptr noundef @.str, i32 noundef 372)
          to label %173 unwind label %254

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173, %165
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %175, i64 0
  %177 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %177, i32 0, i32 1
  %179 = getelementptr inbounds [8 x i64], ptr %178, i64 0, i64 0
  %180 = load i64, ptr %179, align 8, !tbaa !27
  %181 = icmp eq i64 %180, 1
  br i1 %181, label %182, label %202

182:                                              ; preds = %174
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %183, i64 0
  %185 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds [8 x i64], ptr %186, i64 0, i64 1
  %188 = load i64, ptr %187, align 8, !tbaa !27
  %189 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 6
  %190 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %189, i32 0, i32 4
  %191 = load i32, ptr %190, align 8, !tbaa !39
  %192 = sext i32 %191 to i64
  %193 = icmp eq i64 %188, %192
  br i1 %193, label %194, label %202

194:                                              ; preds = %182
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %195, i64 0
  %197 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %197, i32 0, i32 1
  %199 = getelementptr inbounds [8 x i64], ptr %198, i64 0, i64 2
  %200 = load i64, ptr %199, align 8, !tbaa !27
  %201 = icmp eq i64 %200, 4
  br i1 %201, label %204, label %202

202:                                              ; preds = %194, %182, %174
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.20, ptr noundef @.str, i32 noundef 373)
          to label %203 unwind label %254

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203, %194
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %205, i64 1
  %207 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %206, i32 0, i32 0
  %208 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %207, i32 0, i32 1
  %209 = getelementptr inbounds [8 x i64], ptr %208, i64 0, i64 0
  %210 = load i64, ptr %209, align 8, !tbaa !27
  %211 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 6
  %212 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %211, i32 0, i32 4
  %213 = load i32, ptr %212, align 8, !tbaa !39
  %214 = sext i32 %213 to i64
  %215 = icmp eq i64 %210, %214
  br i1 %215, label %216, label %251

216:                                              ; preds = %204
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %217, i64 1
  %219 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %218, i32 0, i32 0
  %220 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %219, i32 0, i32 1
  %221 = getelementptr inbounds [8 x i64], ptr %220, i64 0, i64 1
  %222 = load i64, ptr %221, align 8, !tbaa !27
  %223 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 8
  %224 = load i32, ptr %223, align 4, !tbaa !28
  %225 = sext i32 %224 to i64
  %226 = icmp eq i64 %222, %225
  br i1 %226, label %227, label %251

227:                                              ; preds = %216
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %228, i64 1
  %230 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds [8 x i64], ptr %231, i64 0, i64 2
  %233 = load i64, ptr %232, align 8, !tbaa !27
  %234 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 6
  %235 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 8, !tbaa !40
  %237 = sext i32 %236 to i64
  %238 = icmp eq i64 %233, %237
  br i1 %238, label %239, label %251

239:                                              ; preds = %227
  %240 = load ptr, ptr %9, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %240, i64 1
  %242 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %242, i32 0, i32 1
  %244 = getelementptr inbounds [8 x i64], ptr %243, i64 0, i64 3
  %245 = load i64, ptr %244, align 8, !tbaa !27
  %246 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %11, i32 0, i32 6
  %247 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %246, i32 0, i32 1
  %248 = load i32, ptr %247, align 4, !tbaa !41
  %249 = sext i32 %248 to i64
  %250 = icmp eq i64 %245, %249
  br i1 %250, label %253, label %251

251:                                              ; preds = %239, %227, %216, %204
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.21, ptr noundef @.str, i32 noundef 375)
          to label %252 unwind label %254

252:                                              ; preds = %251
  br label %253

253:                                              ; preds = %252, %239
  ret void

254:                                              ; preds = %251, %202, %172, %156, %126, %96, %23, %16
  %255 = landingpad { ptr, i32 }
          catch ptr null
  %256 = extractvalue { ptr, i32 } %255, 0
  call void @__clang_call_terminate(ptr %256) #4
  unreachable
}

attributes #0 = { 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 #1 = { "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 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 = { nounwind }
attributes #4 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"_ZTSN8nvinfer16plugin11RPROIPluginE", !13, i64 0, !6, i64 8, !16, i64 16, !10, i64 48, !10, i64 52, !18, i64 56, !19, i64 64, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !6, i64 120, !6, i64 128, !21, i64 136, !21, i64 140, !22, i64 144}
!13 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSN8nvinfer16plugin11RPROIParamsE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !20, i64 28, !20, i64 32, !20, i64 36}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!22 = !{!"_ZTSN8nvinfer16plugin9DLayout_tE", !7, i64 0}
!23 = !{!12, !10, i64 52}
!24 = !{!12, !10, i64 84}
!25 = !{!12, !10, i64 88}
!26 = !{!12, !10, i64 104}
!27 = !{!18, !18, i64 0}
!28 = !{!12, !10, i64 108}
!29 = !{!12, !10, i64 112}
!30 = !{!12, !10, i64 116}
!31 = !{!32, !21, i64 72}
!32 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !33, i64 0, !21, i64 72, !34, i64 76, !20, i64 80}
!33 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!34 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!35 = !{!12, !21, i64 136}
!36 = !{!12, !21, i64 140}
!37 = !{!12, !22, i64 144}
!38 = !{!32, !10, i64 0}
!39 = !{!12, !10, i64 80}
!40 = !{!12, !10, i64 64}
!41 = !{!12, !10, i64 68}


; 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"

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [140 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8nvinfer16plugin11RPROIPlugin19convertTensorFormatERKNS_12TensorFormatE(ptr noundef nonnull align 8 dereferenceable(148), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin11RPROIPlugin15configurePluginEPKNS_16PluginTensorDescEiS4_i(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i32 %7, %2
  br i1 %8, label %10, label %9

9:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 357)
          to label %10 unwind label %123

10:                                               ; preds = %9, %5
  %11 = getelementptr inbounds i8, ptr %0, i64 52
  %12 = load i32, ptr %11, align 4, !tbaa !21
  %13 = icmp eq i32 %12, %4
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str, i32 noundef 358)
          to label %15 unwind label %123

15:                                               ; preds = %14, %10
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  %17 = getelementptr inbounds i8, ptr %0, i64 84
  %18 = load i32, ptr %17, align 4, !tbaa !22
  %19 = getelementptr inbounds i8, ptr %0, i64 88
  %20 = load i32, ptr %19, align 8, !tbaa !23
  %21 = mul nsw i32 %20, %18
  %22 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %21, ptr %22, align 8, !tbaa !24
  %23 = getelementptr inbounds i8, ptr %1, i64 184
  %24 = getelementptr inbounds i8, ptr %0, i64 108
  %25 = getelementptr inbounds i8, ptr %1, i64 192
  %26 = load <2 x i64>, ptr %23, align 8, !tbaa !25
  %27 = trunc <2 x i64> %26 to <2 x i32>
  store <2 x i32> %27, ptr %24, align 4, !tbaa !26
  %28 = getelementptr inbounds i8, ptr %1, i64 200
  %29 = load i64, ptr %28, align 8, !tbaa !25
  %30 = trunc i64 %29 to i32
  %31 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %30, ptr %31, align 4, !tbaa !27
  %32 = getelementptr inbounds i8, ptr %1, i64 248
  %33 = load i32, ptr %32, align 8, !tbaa !28
  %34 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %33, ptr %34, align 8, !tbaa !32
  %35 = getelementptr inbounds i8, ptr %3, i64 88
  %36 = getelementptr inbounds i8, ptr %3, i64 160
  %37 = load i32, ptr %36, align 8, !tbaa !28
  %38 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %37, ptr %38, align 4, !tbaa !33
  %39 = getelementptr inbounds i8, ptr %1, i64 252
  %40 = tail call noundef i32 @_ZNK8nvinfer16plugin11RPROIPlugin19convertTensorFormatERKNS_12TensorFormatE(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef nonnull align 4 dereferenceable(4) %39) #3
  %41 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %40, ptr %41, align 8, !tbaa !34
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load i64, ptr %42, align 8, !tbaa !25
  %44 = load i32, ptr %22, align 8, !tbaa !24
  %45 = shl nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = icmp eq i64 %43, %46
  br i1 %47, label %48, label %54

48:                                               ; preds = %15
  %49 = getelementptr inbounds i8, ptr %1, i64 96
  %50 = load i64, ptr %49, align 8, !tbaa !25
  %51 = shl nsw i32 %44, 2
  %52 = sext i32 %51 to i64
  %53 = icmp eq i64 %50, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %48, %15
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str, i32 noundef 368)
          to label %55 unwind label %123

55:                                               ; preds = %54, %48
  %56 = getelementptr inbounds i8, ptr %1, i64 16
  %57 = load i64, ptr %56, align 8, !tbaa !25
  %58 = getelementptr inbounds i8, ptr %1, i64 104
  %59 = load i64, ptr %58, align 8, !tbaa !25
  %60 = icmp eq i64 %57, %59
  br i1 %60, label %61, label %64

61:                                               ; preds = %55
  %62 = load i64, ptr %25, align 8, !tbaa !25
  %63 = icmp eq i64 %57, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %61, %55
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str, i32 noundef 369)
          to label %65 unwind label %123

65:                                               ; preds = %64, %61
  %66 = getelementptr inbounds i8, ptr %1, i64 24
  %67 = load i64, ptr %66, align 8, !tbaa !25
  %68 = getelementptr inbounds i8, ptr %1, i64 112
  %69 = load i64, ptr %68, align 8, !tbaa !25
  %70 = icmp eq i64 %67, %69
  br i1 %70, label %71, label %74

71:                                               ; preds = %65
  %72 = load i64, ptr %28, align 8, !tbaa !25
  %73 = icmp eq i64 %67, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %71, %65
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str, i32 noundef 370)
          to label %75 unwind label %123

75:                                               ; preds = %74, %71
  %76 = load i32, ptr %3, align 8, !tbaa !35
  %77 = icmp eq i32 %76, 3
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i32, ptr %35, align 8, !tbaa !35
  %80 = icmp eq i32 %79, 4
  br i1 %80, label %82, label %81

81:                                               ; preds = %78, %75
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str, i32 noundef 372)
          to label %82 unwind label %123

82:                                               ; preds = %81, %78
  %83 = getelementptr inbounds i8, ptr %3, i64 8
  %84 = load i64, ptr %83, align 8, !tbaa !25
  %85 = icmp eq i64 %84, 1
  br i1 %85, label %86, label %97

86:                                               ; preds = %82
  %87 = getelementptr inbounds i8, ptr %3, i64 16
  %88 = load i64, ptr %87, align 8, !tbaa !25
  %89 = getelementptr inbounds i8, ptr %0, i64 80
  %90 = load i32, ptr %89, align 8, !tbaa !36
  %91 = sext i32 %90 to i64
  %92 = icmp eq i64 %88, %91
  br i1 %92, label %93, label %97

93:                                               ; preds = %86
  %94 = getelementptr inbounds i8, ptr %3, i64 24
  %95 = load i64, ptr %94, align 8, !tbaa !25
  %96 = icmp eq i64 %95, 4
  br i1 %96, label %98, label %97

97:                                               ; preds = %93, %86, %82
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 373)
          to label %._crit_edge unwind label %123

._crit_edge:                                      ; preds = %97
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 80
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !36
  %.pre28 = sext i32 %.pre to i64
  br label %98

98:                                               ; preds = %._crit_edge, %93
  %.pre-phi = phi i64 [ %.pre28, %._crit_edge ], [ %91, %93 ]
  %99 = getelementptr inbounds i8, ptr %3, i64 96
  %100 = load i64, ptr %99, align 8, !tbaa !25
  %101 = icmp eq i64 %100, %.pre-phi
  br i1 %101, label %102, label %121

102:                                              ; preds = %98
  %103 = getelementptr inbounds i8, ptr %3, i64 104
  %104 = load i64, ptr %103, align 8, !tbaa !25
  %105 = load i32, ptr %24, align 4, !tbaa !37
  %106 = sext i32 %105 to i64
  %107 = icmp eq i64 %104, %106
  br i1 %107, label %108, label %121

108:                                              ; preds = %102
  %109 = getelementptr inbounds i8, ptr %3, i64 112
  %110 = load i64, ptr %109, align 8, !tbaa !25
  %111 = load i32, ptr %16, align 8, !tbaa !38
  %112 = sext i32 %111 to i64
  %113 = icmp eq i64 %110, %112
  br i1 %113, label %114, label %121

114:                                              ; preds = %108
  %115 = getelementptr inbounds i8, ptr %3, i64 120
  %116 = load i64, ptr %115, align 8, !tbaa !25
  %117 = getelementptr inbounds i8, ptr %0, i64 68
  %118 = load i32, ptr %117, align 4, !tbaa !39
  %119 = sext i32 %118 to i64
  %120 = icmp eq i64 %116, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %114, %108, %102, %98
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str, i32 noundef 375)
          to label %122 unwind label %123

122:                                              ; preds = %121, %114
  ret void

123:                                              ; preds = %121, %97, %81, %74, %64, %54, %14, %9
  %124 = landingpad { ptr, i32 }
          catch ptr null
  %125 = extractvalue { ptr, i32 } %124, 0
  tail call void @__clang_call_terminate(ptr %125) #4
  unreachable
}

attributes #0 = { 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 #1 = { "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 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 = { nounwind }
attributes #4 = { 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, !16, i64 48}
!6 = !{!"_ZTSN8nvinfer16plugin11RPROIPluginE", !7, i64 0, !10, i64 8, !13, i64 16, !16, i64 48, !16, i64 52, !15, i64 56, !17, i64 64, !16, i64 104, !16, i64 108, !16, i64 112, !16, i64 116, !10, i64 120, !10, i64 128, !19, i64 136, !19, i64 140, !20, i64 144}
!7 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !9, i64 0}
!9 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !11, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!15 = !{!"long", !11, i64 0}
!16 = !{!"int", !11, i64 0}
!17 = !{!"_ZTSN8nvinfer16plugin11RPROIParamsE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !18, i64 28, !18, i64 32, !18, i64 36}
!18 = !{!"float", !11, i64 0}
!19 = !{!"_ZTSN8nvinfer18DataTypeE", !11, i64 0}
!20 = !{!"_ZTSN8nvinfer16plugin9DLayout_tE", !11, i64 0}
!21 = !{!6, !16, i64 52}
!22 = !{!6, !16, i64 84}
!23 = !{!6, !16, i64 88}
!24 = !{!6, !16, i64 104}
!25 = !{!15, !15, i64 0}
!26 = !{!16, !16, i64 0}
!27 = !{!6, !16, i64 116}
!28 = !{!29, !19, i64 72}
!29 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !30, i64 0, !19, i64 72, !31, i64 76, !18, i64 80}
!30 = !{!"_ZTSN8nvinfer16Dims64E", !16, i64 0, !11, i64 8}
!31 = !{!"_ZTSN8nvinfer112TensorFormatE", !11, i64 0}
!32 = !{!6, !19, i64 136}
!33 = !{!6, !19, i64 140}
!34 = !{!6, !20, i64 144}
!35 = !{!29, !16, i64 0}
!36 = !{!6, !16, i64 80}
!37 = !{!6, !16, i64 108}
!38 = !{!6, !16, i64 64}
!39 = !{!6, !16, i64 68}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass