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

; 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::DimsExprs" = type { i32, [8 x ptr] }
%"class.nvinfer1::plugin::DetectionOutputDynamic" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"struct.nvinfer1::plugin::DetectionOutputParameters", i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"struct.nvinfer1::plugin::DetectionOutputParameters" = type <{ i8, i8, [2 x i8], i32, i32, i32, i32, float, float, i32, [3 x i32], i8, i8, i8, i8 }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str.2 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin22DetectionOutputDynamic19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  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
  store ptr %5, ptr %11, align 8, !tbaa !5
  %14 = load ptr, ptr %7, align 8
  %15 = load i32, ptr %10, align 4, !tbaa !9
  %16 = icmp eq i32 %15, 3
  br i1 %16, label %19, label %17

17:                                               ; preds = %6
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 164)
          to label %18 unwind label %225

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18, %6
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp sge i32 %20, 0
  br i1 %21, label %22, label %29

22:                                               ; preds = %19
  %23 = load i32, ptr %8, align 4, !tbaa !9
  %24 = load ptr, ptr %14, align 8, !tbaa !11
  %25 = getelementptr inbounds ptr, ptr %24, i64 3
  %26 = load ptr, ptr %25, align 8
  %27 = call noundef i32 %26(ptr noundef nonnull align 8 dereferenceable(112) %14) #4
  %28 = icmp slt i32 %23, %27
  br i1 %28, label %31, label %29

29:                                               ; preds = %22, %19
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 165)
          to label %30 unwind label %225

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30, %22
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %32, i64 0
  %34 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !13
  %36 = icmp eq i32 %35, 4
  br i1 %36, label %39, label %37

37:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 167)
          to label %38 unwind label %225

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38, %31
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %40, i64 1
  %42 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !13
  %44 = icmp eq i32 %43, 4
  br i1 %44, label %47, label %45

45:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 169)
          to label %46 unwind label %225

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46, %39
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %48, i64 2
  %50 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !13
  %52 = icmp eq i32 %51, 4
  br i1 %52, label %55, label %53

53:                                               ; preds = %47
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 171)
          to label %54 unwind label %225

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54, %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %56 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %14, i32 0, i32 1
  %57 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %56, i32 0, i32 10
  %58 = getelementptr inbounds [3 x i32], ptr %57, i64 0, i64 0
  %59 = load i32, ptr %58, align 8, !tbaa !9
  store i32 %59, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %60 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %14, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %60, i32 0, i32 10
  %62 = getelementptr inbounds [3 x i32], ptr %61, i64 0, i64 1
  %63 = load i32, ptr %62, align 4, !tbaa !9
  store i32 %63, ptr %13, align 4, !tbaa !9
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i32, ptr %12, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %64, i64 %66
  %68 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [8 x ptr], ptr %68, i64 0, i64 0
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %70) #4
  br i1 %71, label %72, label %128

72:                                               ; preds = %55
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %73, i64 %75
  %77 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds [8 x ptr], ptr %77, i64 0, i64 1
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %79) #4
  br i1 %80, label %81, label %128

81:                                               ; preds = %72
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load i32, ptr %12, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %82, i64 %84
  %86 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [8 x ptr], ptr %86, i64 0, i64 2
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %88) #4
  br i1 %89, label %90, label %128

90:                                               ; preds = %81
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %91, i64 %93
  %95 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %94, i32 0, i32 1
  %96 = getelementptr inbounds [8 x ptr], ptr %95, i64 0, i64 3
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %97) #4
  br i1 %98, label %99, label %128

99:                                               ; preds = %90
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %102, i64 %104
  %106 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds [8 x ptr], ptr %106, i64 0, i64 1
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %109, i64 %111
  %113 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds [8 x ptr], ptr %113, i64 0, i64 2
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %101, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull align 8 dereferenceable(16) %115) #4
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %117, i64 %119
  %121 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds [8 x ptr], ptr %121, i64 0, i64 3
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %100, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %116, ptr noundef nonnull align 8 dereferenceable(16) %123) #4
  %125 = call noundef i64 @_ZNK8nvinfer114IDimensionExpr16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(16) %124) #4
  %126 = trunc i64 %125 to i32
  %127 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %14, i32 0, i32 2
  store i32 %126, ptr %127, align 8, !tbaa !15
  br label %128

128:                                              ; preds = %99, %90, %81, %72, %55
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %129, i64 %131
  %133 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %132, i32 0, i32 1
  %134 = getelementptr inbounds [8 x ptr], ptr %133, i64 0, i64 0
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %135) #4
  br i1 %136, label %137, label %175

137:                                              ; preds = %128
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %138, i64 %140
  %142 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %141, i32 0, i32 1
  %143 = getelementptr inbounds [8 x ptr], ptr %142, i64 0, i64 1
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %144) #4
  br i1 %145, label %146, label %175

146:                                              ; preds = %137
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load i32, ptr %13, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %147, i64 %149
  %151 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds [8 x ptr], ptr %151, i64 0, i64 2
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %153) #4
  br i1 %154, label %155, label %175

155:                                              ; preds = %146
  %156 = load ptr, ptr %11, align 8, !tbaa !5
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = load i32, ptr %13, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %157, i64 %159
  %161 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds [8 x ptr], ptr %161, i64 0, i64 1
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %164, i64 %166
  %168 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds [8 x ptr], ptr %168, i64 0, i64 2
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %156, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %163, ptr noundef nonnull align 8 dereferenceable(16) %170) #4
  %172 = call noundef i64 @_ZNK8nvinfer114IDimensionExpr16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(16) %171) #4
  %173 = trunc i64 %172 to i32
  %174 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %14, i32 0, i32 3
  store i32 %173, ptr %174, align 4, !tbaa !28
  br label %175

175:                                              ; preds = %155, %146, %137, %128
  %176 = load i32, ptr %8, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %203

178:                                              ; preds = %175
  %179 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 4, ptr %179, align 8, !tbaa !13
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %180, i64 0
  %182 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %181, i32 0, i32 1
  %183 = getelementptr inbounds [8 x ptr], ptr %182, i64 0, i64 0
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %186 = getelementptr inbounds [8 x ptr], ptr %185, i64 0, i64 0
  store ptr %184, ptr %186, align 8, !tbaa !5
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %187, i64 noundef 1) #4
  %189 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %190 = getelementptr inbounds [8 x ptr], ptr %189, i64 0, i64 1
  store ptr %188, ptr %190, align 8, !tbaa !5
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %14, i32 0, i32 1
  %193 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %192, i32 0, i32 6
  %194 = load i32, ptr %193, align 8, !tbaa !29
  %195 = sext i32 %194 to i64
  %196 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %191, i64 noundef %195) #4
  %197 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %198 = getelementptr inbounds [8 x ptr], ptr %197, i64 0, i64 2
  store ptr %196, ptr %198, align 8, !tbaa !5
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %199, i64 noundef 7) #4
  %201 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %202 = getelementptr inbounds [8 x ptr], ptr %201, i64 0, i64 3
  store ptr %200, ptr %202, align 8, !tbaa !5
  br label %224

203:                                              ; preds = %175
  %204 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 4, ptr %204, align 8, !tbaa !13
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %205, i64 0
  %207 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %206, i32 0, i32 1
  %208 = getelementptr inbounds [8 x ptr], ptr %207, i64 0, i64 0
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %211 = getelementptr inbounds [8 x ptr], ptr %210, i64 0, i64 0
  store ptr %209, ptr %211, align 8, !tbaa !5
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %212, i64 noundef 1) #4
  %214 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %215 = getelementptr inbounds [8 x ptr], ptr %214, i64 0, i64 1
  store ptr %213, ptr %215, align 8, !tbaa !5
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %216, i64 noundef 1) #4
  %218 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %219 = getelementptr inbounds [8 x ptr], ptr %218, i64 0, i64 2
  store ptr %217, ptr %219, align 8, !tbaa !5
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %220, i64 noundef 1) #4
  %222 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %223 = getelementptr inbounds [8 x ptr], ptr %222, i64 0, i64 3
  store ptr %221, ptr %223, align 8, !tbaa !5
  br label %224

224:                                              ; preds = %203, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  ret void

225:                                              ; preds = %53, %45, %37, %29, %17
  %226 = landingpad { ptr, i32 }
          catch ptr null
  %227 = extractvalue { ptr, i32 } %226, 0
  call void @__clang_call_terminate(ptr %227) #5
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN8nvinfer19DimsExprsE", !10, i64 0, !7, i64 8}
!15 = !{!16, !10, i64 56}
!16 = !{!"_ZTSN8nvinfer16plugin22DetectionOutputDynamicE", !17, i64 0, !20, i64 8, !10, i64 56, !10, i64 60, !10, i64 64, !24, i64 68, !10, i64 72, !25, i64 80}
!17 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!20 = !{!"_ZTSN8nvinfer16plugin25DetectionOutputParametersE", !21, i64 0, !21, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !22, i64 20, !22, i64 24, !23, i64 28, !7, i64 32, !21, i64 44, !21, i64 45, !21, i64 46}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSN8nvinfer16plugin11CodeTypeSSDE", !7, i64 0}
!24 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!16, !10, i64 60}
!29 = !{!16, !10, i64 24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.nvinfer1::DimsExprs" = type { i32, [8 x ptr] }

@.str.2 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin22DetectionOutputDynamic19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = icmp eq i32 %4, 3
  br i1 %7, label %9, label %8

8:                                                ; preds = %6
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 164)
          to label %9 unwind label %95

9:                                                ; preds = %8, %6
  %10 = icmp sgt i32 %2, -1
  br i1 %10, label %11, label %17

11:                                               ; preds = %9
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(112) %1) #3
  %16 = icmp sgt i32 %15, %2
  br i1 %16, label %18, label %17

17:                                               ; preds = %11, %9
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 165)
          to label %18 unwind label %95

18:                                               ; preds = %17, %11
  %19 = load i32, ptr %3, align 8, !tbaa !8
  %20 = icmp eq i32 %19, 4
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 167)
          to label %22 unwind label %95

22:                                               ; preds = %21, %18
  %23 = getelementptr inbounds i8, ptr %3, i64 72
  %24 = load i32, ptr %23, align 8, !tbaa !8
  %25 = icmp eq i32 %24, 4
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 169)
          to label %27 unwind label %95

27:                                               ; preds = %26, %22
  %28 = getelementptr inbounds i8, ptr %3, i64 144
  %29 = load i32, ptr %28, align 8, !tbaa !8
  %30 = icmp eq i32 %29, 4
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 171)
          to label %32 unwind label %95

32:                                               ; preds = %31, %27
  %33 = getelementptr inbounds i8, ptr %1, i64 40
  %34 = load i32, ptr %33, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %1, i64 44
  %36 = load i32, ptr %35, align 4, !tbaa !12
  %37 = sext i32 %34 to i64
  %38 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %3, i64 %37, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %39) #3
  br i1 %40, label %41, label %62

41:                                               ; preds = %32
  %42 = getelementptr inbounds i8, ptr %38, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %43) #3
  br i1 %44, label %45, label %62

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %38, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %47) #3
  br i1 %48, label %49, label %62

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %38, i64 24
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %51) #3
  br i1 %52, label %53, label %62

53:                                               ; preds = %49
  %54 = load ptr, ptr %42, align 8, !tbaa !13
  %55 = load ptr, ptr %46, align 8, !tbaa !13
  %56 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %55) #3
  %57 = load ptr, ptr %50, align 8, !tbaa !13
  %58 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %57) #3
  %59 = tail call noundef i64 @_ZNK8nvinfer114IDimensionExpr16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(16) %58) #3
  %60 = trunc i64 %59 to i32
  %61 = getelementptr inbounds i8, ptr %1, i64 56
  store i32 %60, ptr %61, align 8, !tbaa !15
  br label %62

62:                                               ; preds = %53, %49, %45, %41, %32
  %63 = sext i32 %36 to i64
  %64 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %3, i64 %63, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !13
  %66 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %65) #3
  br i1 %66, label %67, label %82

67:                                               ; preds = %62
  %68 = getelementptr inbounds i8, ptr %64, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %69) #3
  br i1 %70, label %71, label %82

71:                                               ; preds = %67
  %72 = getelementptr inbounds i8, ptr %64, i64 16
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  %74 = tail call noundef zeroext i1 @_ZNK8nvinfer114IDimensionExpr10isConstantEv(ptr noundef nonnull align 8 dereferenceable(16) %73) #3
  br i1 %74, label %75, label %82

75:                                               ; preds = %71
  %76 = load ptr, ptr %68, align 8, !tbaa !13
  %77 = load ptr, ptr %72, align 8, !tbaa !13
  %78 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull align 8 dereferenceable(16) %77) #3
  %79 = tail call noundef i64 @_ZNK8nvinfer114IDimensionExpr16getConstantValueEv(ptr noundef nonnull align 8 dereferenceable(16) %78) #3
  %80 = trunc i64 %79 to i32
  %81 = getelementptr inbounds i8, ptr %1, i64 60
  store i32 %80, ptr %81, align 4, !tbaa !28
  br label %82

82:                                               ; preds = %75, %71, %67, %62
  %83 = icmp eq i32 %2, 0
  %84 = getelementptr inbounds i8, ptr %3, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 1) #3
  %87 = getelementptr inbounds i8, ptr %1, i64 24
  %88 = load i32, ptr %87, align 8
  %narrow = select i1 %83, i32 %88, i32 1
  %.sink = sext i32 %narrow to i64
  %.sink45 = select i1 %83, i64 7, i64 1
  %89 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %.sink) #3
  %90 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %.sink45) #3
  store i32 4, ptr %0, align 8
  %91 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %85, ptr %91, align 8
  %92 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %86, ptr %92, align 8
  %93 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %89, ptr %93, align 8
  %94 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %90, ptr %94, align 8
  ret void

95:                                               ; preds = %31, %26, %21, %17, %8
  %96 = landingpad { ptr, i32 }
          catch ptr null
  %97 = extractvalue { ptr, i32 } %96, 0
  tail call void @__clang_call_terminate(ptr %97) #4
  unreachable
}

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

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

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

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

attributes #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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN8nvinfer19DimsExprsE", !10, i64 0, !11, i64 8}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !11, i64 0}
!15 = !{!16, !10, i64 56}
!16 = !{!"_ZTSN8nvinfer16plugin22DetectionOutputDynamicE", !17, i64 0, !20, i64 8, !10, i64 56, !10, i64 60, !10, i64 64, !24, i64 68, !10, i64 72, !25, i64 80}
!17 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!20 = !{!"_ZTSN8nvinfer16plugin25DetectionOutputParametersE", !21, i64 0, !21, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !22, i64 20, !22, i64 24, !23, i64 28, !11, i64 32, !21, i64 44, !21, i64 45, !21, i64 46}
!21 = !{!"bool", !11, i64 0}
!22 = !{!"float", !11, i64 0}
!23 = !{!"_ZTSN8nvinfer16plugin11CodeTypeSSDE", !11, i64 0}
!24 = !{!"_ZTSN8nvinfer18DataTypeE", !11, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !11, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!27 = !{!"long", !11, i64 0}
!28 = !{!16, !10, i64 60}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass