; LLVM IR from NVIDIA/TensorRT :: plugin/decodeBbox3DPlugin (decodeBbox3D)

; 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::IDimensionExpr" = type { %"class.nvinfer1::INoCopy", ptr }
%"class.nvinfer1::INoCopy" = type { ptr }
%"class.nvinfer1::plugin::DecodeBbox3DPlugin" = type <{ %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", float, float, float, float, float, float, i32, float, float, i32, %"class.std::vector.3", %"class.std::vector.3", float, i32, i32, [4 x i8] }>
%"class.nvinfer1::IPluginV2DynamicExt" = 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] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias writable sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(140) %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #5 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 ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  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
  %19 = load ptr, ptr %7, align 8
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds ptr, ptr %20, i64 3
  %22 = load ptr, ptr %21, align 8
  %23 = call noundef i32 %22(ptr noundef nonnull align 8 dereferenceable(140) %19) #7
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %44, label %25

25:                                               ; preds = %6
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE, i32 noundef 139, i32 noundef 0, ptr noundef @.str.5) #8
          to label %26 unwind label %27

26:                                               ; preds = %25
  unreachable

27:                                               ; preds = %59, %54, %25
  %28 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %12, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %13, align 4
  br label %31

31:                                               ; preds = %27
  %32 = load i32, ptr %13, align 4
  %33 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %34 = icmp eq i32 %32, %33
  br i1 %34, label %35, label %117

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %36 = load ptr, ptr %12, align 8
  %37 = call ptr @__cxa_begin_catch(ptr %36) #7
  store ptr %37, ptr %18, align 8
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %39 unwind label %114

39:                                               ; preds = %35
  invoke void @__cxa_end_catch()
          to label %40 unwind label %114

40:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %41

41:                                               ; preds = %40
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %42 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  %43 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  br label %113

44:                                               ; preds = %6
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = icmp sge i32 %45, 0
  br i1 %46, label %47, label %54

47:                                               ; preds = %44
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = load ptr, ptr %19, align 8, !tbaa !11
  %50 = getelementptr inbounds ptr, ptr %49, i64 3
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef i32 %51(ptr noundef nonnull align 8 dereferenceable(140) %19) #7
  %53 = icmp slt i32 %48, %52
  br i1 %53, label %56, label %54

54:                                               ; preds = %47, %44
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE, i32 noundef 140, i32 noundef 0, ptr noundef @.str.6) #8
          to label %55 unwind label %27

55:                                               ; preds = %54
  unreachable

56:                                               ; preds = %47
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %61, label %59

59:                                               ; preds = %56
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE, i32 noundef 141, i32 noundef 0, ptr noundef @.str.7) #8
          to label %60 unwind label %27

60:                                               ; preds = %59
  unreachable

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %62, i64 0
  %64 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [8 x ptr], ptr %64, i64 0, i64 1
  store ptr %65, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %66, i64 0
  %68 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds [8 x ptr], ptr %68, i64 0, i64 2
  store ptr %69, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %70, i64 0
  %72 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds [8 x ptr], ptr %72, i64 0, i64 0
  store ptr %73, ptr %16, align 8, !tbaa !5
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %106

76:                                               ; preds = %61
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %77 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 3, ptr %77, align 8, !tbaa !13
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %81 = getelementptr inbounds [8 x ptr], ptr %80, i64 0, i64 0
  store ptr %79, ptr %81, align 8, !tbaa !5
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.nvinfer1::IDimensionExpr", ptr %84, i64 0
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.nvinfer1::IDimensionExpr", ptr %88, i64 0
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %19, i32 0, i32 11
  %92 = load i32, ptr %91, align 4, !tbaa !15
  %93 = mul nsw i32 %92, 2
  %94 = sext i32 %93 to i64
  %95 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %90, i64 noundef %94) #7
  %96 = getelementptr inbounds %"class.nvinfer1::IDimensionExpr", ptr %95, i64 0
  %97 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %86, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 8 dereferenceable(16) %96) #7
  %98 = getelementptr inbounds %"class.nvinfer1::IDimensionExpr", ptr %97, i64 0
  %99 = call noundef ptr @_ZN8nvinfer112IExprBuilder9operationENS_18DimensionOperationERKNS_14IDimensionExprES4_(ptr noundef nonnull align 8 dereferenceable(16) %82, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(16) %85, ptr noundef nonnull align 8 dereferenceable(16) %98) #7
  %100 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %101 = getelementptr inbounds [8 x ptr], ptr %100, i64 0, i64 1
  store ptr %99, ptr %101, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %102, i64 noundef 9) #7
  %104 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %105 = getelementptr inbounds [8 x ptr], ptr %104, i64 0, i64 2
  store ptr %103, ptr %105, align 8, !tbaa !5
  store i32 1, ptr %17, align 4
  br label %112

106:                                              ; preds = %61
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 72, i1 false)
  %107 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 0
  store i32 1, ptr %107, align 8, !tbaa !13
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = getelementptr inbounds %"class.nvinfer1::DimsExprs", ptr %0, i32 0, i32 1
  %111 = getelementptr inbounds [8 x ptr], ptr %110, i64 0, i64 0
  store ptr %109, ptr %111, align 8, !tbaa !5
  store i32 1, ptr %17, align 4
  br label %112

112:                                              ; preds = %106, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %113

113:                                              ; preds = %112, %41
  ret void

114:                                              ; preds = %39, %35
  %115 = landingpad { ptr, i32 }
          catch ptr null
  %116 = extractvalue { ptr, i32 } %115, 0
  call void @__clang_call_terminate(ptr %116) #9
  unreachable

117:                                              ; preds = %31
  %118 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %118) #9
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; 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)) #5 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind memory(none) }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { 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 76}
!16 = !{!"_ZTSN8nvinfer16plugin18DecodeBbox3DPluginE", !17, i64 0, !20, i64 8, !23, i64 40, !23, i64 44, !23, i64 48, !23, i64 52, !23, i64 56, !23, i64 60, !10, i64 64, !23, i64 68, !23, i64 72, !10, i64 76, !24, i64 80, !24, i64 104, !23, i64 128, !10, i64 132, !10, i64 136}
!17 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !22, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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 = external hidden unnamed_addr constant [92 x i8], align 1
@_ZTISt9exception = external constant ptr
@__func__._ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE(ptr dead_on_unwind noalias nocapture writable writeonly sret(%"class.nvinfer1::DimsExprs") align 8 %0, ptr noundef nonnull align 8 dereferenceable(140) %1, i32 noundef %2, ptr noundef readonly %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(16) %5) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = load ptr, ptr %1, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 24
  %9 = load ptr, ptr %8, align 8
  %10 = tail call noundef i32 %9(ptr noundef nonnull align 8 dereferenceable(140) %1) #6
  %11 = icmp eq i32 %10, 2
  br i1 %11, label %22, label %.invoke

12:                                               ; preds = %.invoke
  %13 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %14 = extractvalue { ptr, i32 } %13, 0
  %15 = extractvalue { ptr, i32 } %13, 1
  %16 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %17 = icmp eq i32 %15, %16
  br i1 %17, label %18, label %60

18:                                               ; preds = %12
  %19 = tail call ptr @__cxa_begin_catch(ptr %14) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %20 unwind label %57

20:                                               ; preds = %18
  invoke void @__cxa_end_catch()
          to label %21 unwind label %57

21:                                               ; preds = %20
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  br label %56

22:                                               ; preds = %6
  %23 = icmp sgt i32 %2, -1
  br i1 %23, label %24, label %.invoke

24:                                               ; preds = %22
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  %27 = load ptr, ptr %26, align 8
  %28 = tail call noundef i32 %27(ptr noundef nonnull align 8 dereferenceable(140) %1) #6
  %29 = icmp sgt i32 %28, %2
  br i1 %29, label %30, label %.invoke

30:                                               ; preds = %24
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.invoke, label %33

.invoke:                                          ; preds = %6, %30, %22, %24
  %31 = phi i32 [ 140, %24 ], [ 140, %22 ], [ 141, %30 ], [ 139, %6 ]
  %32 = phi ptr [ @.str.6, %24 ], [ @.str.6, %22 ], [ @.str.7, %30 ], [ @.str.5, %6 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin18DecodeBbox3DPlugin19getOutputDimensionsEiPKNS_9DimsExprsEiRNS_12IExprBuilderE, i32 noundef %31, i32 noundef 0, ptr noundef nonnull %32) #7
          to label %.cont unwind label %12

.cont:                                            ; preds = %.invoke
  unreachable

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %3, i64 8
  %35 = icmp eq i32 %2, 0
  br i1 %35, label %36, label %53

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %3, i64 24
  %38 = getelementptr inbounds i8, ptr %3, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  store i32 3, ptr %0, align 8, !tbaa !8
  %39 = load ptr, ptr %34, align 8, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %39, ptr %40, align 8, !tbaa !12
  %41 = load ptr, ptr %38, align 8, !tbaa !12
  %42 = load ptr, ptr %37, align 8, !tbaa !12
  %43 = getelementptr inbounds i8, ptr %1, i64 76
  %44 = load i32, ptr %43, align 4, !tbaa !14
  %45 = shl nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %46) #6
  %48 = 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) %42, ptr noundef nonnull align 8 dereferenceable(16) %47) #6
  %49 = 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) %41, ptr noundef nonnull align 8 dereferenceable(16) %48) #6
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %49, ptr %50, align 8, !tbaa !12
  %51 = tail call noundef ptr @_ZN8nvinfer112IExprBuilder8constantEl(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 9) #6
  %52 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %51, ptr %52, align 8, !tbaa !12
  br label %56

53:                                               ; preds = %33
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %0, i8 0, i64 72, i1 false)
  store i32 1, ptr %0, align 8, !tbaa !8
  %54 = load ptr, ptr %34, align 8, !tbaa !12
  %55 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %54, ptr %55, align 8, !tbaa !12
  br label %56

56:                                               ; preds = %36, %53, %21
  ret void

57:                                               ; preds = %20, %18
  %58 = landingpad { ptr, i32 }
          catch ptr null
  %59 = extractvalue { ptr, i32 } %58, 0
  tail call void @__clang_call_terminate(ptr %59) #8
  unreachable

60:                                               ; preds = %12
  tail call void @__clang_call_terminate(ptr %14) #8
  unreachable
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; 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 #4 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 #4 align 2

attributes #0 = { 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 #1 = { nofree nosync nounwind memory(none) }
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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn }
attributes #8 = { 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 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!15, !10, i64 76}
!15 = !{!"_ZTSN8nvinfer16plugin18DecodeBbox3DPluginE", !16, i64 0, !19, i64 8, !22, i64 40, !22, i64 44, !22, i64 48, !22, i64 52, !22, i64 56, !22, i64 60, !10, i64 64, !22, i64 68, !22, i64 72, !10, i64 76, !23, i64 80, !23, i64 104, !22, i64 128, !10, i64 132, !10, i64 136}
!16 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !11, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!21 = !{!"long", !11, i64 0}
!22 = !{!"float", !11, i64 0}
!23 = !{!"_ZTSSt6vectorIfSaIfEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}


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