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

; 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::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 }

@_ZTVN8nvinfer16plugin18DecodeBbox3DPluginE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [92 x i8], align 1
@__func__._ZN8nvinfer16plugin18DecodeBbox3DPluginC2EffffffiffRKSt6vectorIfSaIfEES6_f = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin18DecodeBbox3DPluginC2EPKvm(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %12 = load ptr, ptr %4, align 8
  call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  store ptr getelementptr inbounds inrange(-16, 240) ({ [32 x ptr] }, ptr @_ZTVN8nvinfer16plugin18DecodeBbox3DPluginE, i32 0, i32 0, i32 2), ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  %14 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 12
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %15 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 13
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %24, label %18

18:                                               ; preds = %3
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin18DecodeBbox3DPluginC2EffffffiffRKSt6vectorIfSaIfEES6_f, i32 noundef 86, i32 noundef 0, ptr noundef @.str.3) #6
          to label %19 unwind label %20

19:                                               ; preds = %18
  unreachable

20:                                               ; preds = %18
  %21 = landingpad { ptr, i32 }
          cleanup
  %22 = extractvalue { ptr, i32 } %21, 0
  store ptr %22, ptr %7, align 8
  %23 = extractvalue { ptr, i32 } %21, 1
  store i32 %23, ptr %8, align 4
  br label %134

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %25, ptr %9, align 8, !tbaa !5
  %26 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %27 unwind label %76

27:                                               ; preds = %24
  %28 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 2
  store float %26, ptr %28, align 8, !tbaa !13
  %29 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %30 unwind label %76

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 3
  store float %29, ptr %31, align 4, !tbaa !26
  %32 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %33 unwind label %76

33:                                               ; preds = %30
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 4
  store float %32, ptr %34, align 8, !tbaa !27
  %35 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %36 unwind label %76

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 5
  store float %35, ptr %37, align 4, !tbaa !28
  %38 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %39 unwind label %76

39:                                               ; preds = %36
  %40 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 6
  store float %38, ptr %40, align 8, !tbaa !29
  %41 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %42 unwind label %76

42:                                               ; preds = %39
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 7
  store float %41, ptr %43, align 4, !tbaa !30
  %44 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %45 unwind label %76

45:                                               ; preds = %42
  %46 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 8
  store i32 %44, ptr %46, align 8, !tbaa !31
  %47 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %48 unwind label %76

48:                                               ; preds = %45
  %49 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 9
  store float %47, ptr %49, align 4, !tbaa !32
  %50 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %51 unwind label %76

51:                                               ; preds = %48
  %52 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 10
  store float %50, ptr %52, align 8, !tbaa !33
  %53 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %54 unwind label %76

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 14
  store float %53, ptr %55, align 8, !tbaa !34
  %56 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %57 unwind label %76

57:                                               ; preds = %54
  %58 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 11
  store i32 %56, ptr %58, align 4, !tbaa !35
  %59 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %60 unwind label %76

60:                                               ; preds = %57
  %61 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 15
  store i32 %59, ptr %61, align 4, !tbaa !36
  %62 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %63 unwind label %76

63:                                               ; preds = %60
  %64 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 16
  store i32 %62, ptr %64, align 8, !tbaa !37
  %65 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 12
  %66 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 11
  %67 = load i32, ptr %66, align 4, !tbaa !35
  %68 = sext i32 %67 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %68)
          to label %69 unwind label %76

69:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !38
  br label %70

70:                                               ; preds = %87, %69
  %71 = load i32, ptr %10, align 4, !tbaa !38
  %72 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 11
  %73 = load i32, ptr %72, align 4, !tbaa !35
  %74 = icmp slt i32 %71, %73
  br i1 %74, label %80, label %75

75:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %94

76:                                               ; preds = %130, %94, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  br label %133

80:                                               ; preds = %70
  %81 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %82 unwind label %90

82:                                               ; preds = %80
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 12
  %84 = load i32, ptr %10, align 4, !tbaa !38
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %85) #5
  store float %81, ptr %86, align 4, !tbaa !39
  br label %87

87:                                               ; preds = %82
  %88 = load i32, ptr %10, align 4, !tbaa !38
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %10, align 4, !tbaa !38
  br label %70, !llvm.loop !40

90:                                               ; preds = %80
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %7, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %133

94:                                               ; preds = %75
  %95 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 13
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 11
  %97 = load i32, ptr %96, align 4, !tbaa !35
  %98 = mul nsw i32 %97, 2
  %99 = mul nsw i32 %98, 4
  %100 = sext i32 %99 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %100)
          to label %101 unwind label %76

101:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !38
  br label %102

102:                                              ; preds = %117, %101
  %103 = load i32, ptr %11, align 4, !tbaa !38
  %104 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 11
  %105 = load i32, ptr %104, align 4, !tbaa !35
  %106 = mul nsw i32 %105, 2
  %107 = mul nsw i32 %106, 4
  %108 = icmp slt i32 %103, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %124

110:                                              ; preds = %102
  %111 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %112 unwind label %120

112:                                              ; preds = %110
  %113 = getelementptr inbounds %"class.nvinfer1::plugin::DecodeBbox3DPlugin", ptr %12, i32 0, i32 13
  %114 = load i32, ptr %11, align 4, !tbaa !38
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %115) #5
  store float %111, ptr %116, align 4, !tbaa !39
  br label %117

117:                                              ; preds = %112
  %118 = load i32, ptr %11, align 4, !tbaa !38
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %11, align 4, !tbaa !38
  br label %102, !llvm.loop !42

120:                                              ; preds = %110
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %133

124:                                              ; preds = %109
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load i64, ptr %6, align 8, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %126, i64 %127
  %129 = icmp eq ptr %125, %128
  br i1 %129, label %132, label %130

130:                                              ; preds = %124
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin18DecodeBbox3DPluginC2EffffffiffRKSt6vectorIfSaIfEES6_f, i32 noundef 114, i32 noundef 0, ptr noundef @.str.4) #6
          to label %131 unwind label %76

131:                                              ; preds = %130
  unreachable

132:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void

133:                                              ; preds = %120, %90, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %134

134:                                              ; preds = %133, %20
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %7, align 8
  %137 = load i32, ptr %8, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

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

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

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

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


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

@_ZTVN8nvinfer16plugin18DecodeBbox3DPluginE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [92 x i8], align 1
@__func__._ZN8nvinfer16plugin18DecodeBbox3DPluginC2EffffffiffRKSt6vectorIfSaIfEES6_f = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [53 x i8], align 1

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

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

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

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 #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin18DecodeBbox3DPluginC2EPKvm(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  tail call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  store ptr getelementptr inbounds inrange(-16, 240) (i8, ptr @_ZTVN8nvinfer16plugin18DecodeBbox3DPluginE, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %8, label %12

8:                                                ; preds = %3
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin18DecodeBbox3DPluginC2EffffffiffRKSt6vectorIfSaIfEES6_f, i32 noundef 86, i32 noundef 0, ptr noundef nonnull @.str.3) #6
          to label %9 unwind label %10

9:                                                ; preds = %8
  unreachable

10:                                               ; preds = %8
  %11 = landingpad { ptr, i32 }
          cleanup
  br label %86

12:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store ptr %1, ptr %4, align 8, !tbaa !8
  %13 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %14 unwind label %60

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  store float %13, ptr %15, align 8, !tbaa !11
  %16 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %17 unwind label %60

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 44
  store float %16, ptr %18, align 4, !tbaa !25
  %19 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %20 unwind label %60

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  store float %19, ptr %21, align 8, !tbaa !26
  %22 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %23 unwind label %60

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 52
  store float %22, ptr %24, align 4, !tbaa !27
  %25 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %26 unwind label %60

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 56
  store float %25, ptr %27, align 8, !tbaa !28
  %28 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %29 unwind label %60

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 60
  store float %28, ptr %30, align 4, !tbaa !29
  %31 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %32 unwind label %60

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %31, ptr %33, align 8, !tbaa !30
  %34 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %35 unwind label %60

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %0, i64 68
  store float %34, ptr %36, align 4, !tbaa !31
  %37 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %38 unwind label %60

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %0, i64 72
  store float %37, ptr %39, align 8, !tbaa !32
  %40 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %41 unwind label %60

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %0, i64 128
  store float %40, ptr %42, align 8, !tbaa !33
  %43 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %44 unwind label %60

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %43, ptr %45, align 4, !tbaa !34
  %46 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %47 unwind label %60

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %46, ptr %48, align 4, !tbaa !35
  %49 = invoke noundef i32 @_ZN8nvinfer16plugin14readFromBufferIihEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %50 unwind label %60

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %49, ptr %51, align 8, !tbaa !36
  %52 = load i32, ptr %45, align 4, !tbaa !34
  %53 = sext i32 %52 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %53)
          to label %.preheader20 unwind label %60

.preheader20:                                     ; preds = %50
  %54 = load i32, ptr %45, align 4, !tbaa !34
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %63, %.preheader20
  %.lcssa = phi i32 [ %54, %.preheader20 ], [ %65, %63 ]
  %56 = shl nsw i32 %.lcssa, 3
  %57 = sext i32 %56 to i64
  invoke void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %57)
          to label %.preheader unwind label %60

.preheader:                                       ; preds = %._crit_edge
  %58 = load i32, ptr %45, align 4, !tbaa !34
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph24, label %._crit_edge25

60:                                               ; preds = %82, %._crit_edge, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %14, %12
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %85

.lr.ph:                                           ; preds = %.preheader20, %63
  %indvars.iv = phi i64 [ %indvars.iv.next, %63 ], [ 0, %.preheader20 ]
  %62 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %63 unwind label %68

63:                                               ; preds = %.lr.ph
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #5
  store float %62, ptr %64, align 4, !tbaa !37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %65 = load i32, ptr %45, align 4, !tbaa !34
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next, %66
  br i1 %67, label %.lr.ph, label %._crit_edge, !llvm.loop !38

68:                                               ; preds = %.lr.ph
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %85

._crit_edge25:                                    ; preds = %74, %.preheader
  %70 = load ptr, ptr %4, align 8, !tbaa !8
  %71 = getelementptr inbounds i8, ptr %1, i64 %2
  %72 = icmp eq ptr %70, %71
  br i1 %72, label %84, label %82

.lr.ph24:                                         ; preds = %.preheader, %74
  %indvars.iv28 = phi i64 [ %indvars.iv.next29, %74 ], [ 0, %.preheader ]
  %73 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %74 unwind label %80

74:                                               ; preds = %.lr.ph24
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv28) #5
  store float %73, ptr %75, align 4, !tbaa !37
  %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
  %76 = load i32, ptr %45, align 4, !tbaa !34
  %77 = shl nsw i32 %76, 3
  %78 = sext i32 %77 to i64
  %79 = icmp slt i64 %indvars.iv.next29, %78
  br i1 %79, label %.lr.ph24, label %._crit_edge25, !llvm.loop !40

80:                                               ; preds = %.lr.ph24
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %85

82:                                               ; preds = %._crit_edge25
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin18DecodeBbox3DPluginC2EffffffiffRKSt6vectorIfSaIfEES6_f, i32 noundef 114, i32 noundef 0, ptr noundef nonnull @.str.4) #6
          to label %83 unwind label %60

83:                                               ; preds = %82
  unreachable

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

85:                                               ; preds = %80, %68, %60
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %81, %80 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %86

86:                                               ; preds = %85, %10
  %.pn.pn = phi { ptr, i32 } [ %.pn, %85 ], [ %11, %10 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #5
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !19, i64 40}
!12 = !{!"_ZTSN8nvinfer16plugin18DecodeBbox3DPluginE", !13, i64 0, !16, i64 8, !19, i64 40, !19, i64 44, !19, i64 48, !19, i64 52, !19, i64 56, !19, i64 60, !20, i64 64, !19, i64 68, !19, i64 72, !20, i64 76, !21, i64 80, !21, i64 104, !19, i64 128, !20, i64 132, !20, i64 136}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !10, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!18 = !{!"long", !10, i64 0}
!19 = !{!"float", !10, i64 0}
!20 = !{!"int", !10, i64 0}
!21 = !{!"_ZTSSt6vectorIfSaIfEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!25 = !{!12, !19, i64 44}
!26 = !{!12, !19, i64 48}
!27 = !{!12, !19, i64 52}
!28 = !{!12, !19, i64 56}
!29 = !{!12, !19, i64 60}
!30 = !{!12, !20, i64 64}
!31 = !{!12, !19, i64 68}
!32 = !{!12, !19, i64 72}
!33 = !{!12, !19, i64 128}
!34 = !{!12, !20, i64 76}
!35 = !{!12, !20, i64 132}
!36 = !{!12, !20, i64 136}
!37 = !{!19, !19, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}


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