; LLVM IR from NVIDIA/TensorRT :: plugin/proposalPlugin/proposalPlugin.ll (ZN8nvinfer16plugin14ProposalPluginC2EPKvm)

; 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::ProposalPlugin" = type { %"class.nvinfer1::IPluginV2Ext", %"class.std::__cxx11::basic_string", i64, i64, i64, i64, float, i64, float, float, i64, i64, %"class.std::vector.3", i64, %"class.std::vector.3", i64 }
%"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 }

@_ZTVN8nvinfer16plugin14ProposalPluginE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin14ProposalPluginC2EPKvm(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #2 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 ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca float, align 4
  %13 = alloca i64, align 8
  %14 = alloca float, 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
  %15 = load ptr, ptr %4, align 8
  call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  store ptr getelementptr inbounds inrange(-16, 200) ({ [27 x ptr] }, ptr @_ZTVN8nvinfer16plugin14ProposalPluginE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  %17 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 12
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %18 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 14
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %27, label %21

21:                                               ; preds = %3
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str, ptr noundef @.str.2, i32 noundef 151)
          to label %22 unwind label %23

22:                                               ; preds = %21
  br label %27

23:                                               ; preds = %21
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %7, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %8, align 4
  br label %117

27:                                               ; preds = %22, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %28, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %29, ptr %10, align 8, !tbaa !5
  %30 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %31 unwind label %72

31:                                               ; preds = %27
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 2
  store i64 %30, ptr %32, align 8, !tbaa !13
  %33 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %34 unwind label %72

34:                                               ; preds = %31
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 3
  store i64 %33, ptr %35, align 8, !tbaa !24
  %36 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %37 unwind label %72

37:                                               ; preds = %34
  %38 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 4
  store i64 %36, ptr %38, align 8, !tbaa !25
  %39 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %40 unwind label %72

40:                                               ; preds = %37
  %41 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 5
  store i64 %39, ptr %41, align 8, !tbaa !26
  %42 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %43 unwind label %72

43:                                               ; preds = %40
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 7
  store i64 %42, ptr %44, align 8, !tbaa !27
  %45 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %46 unwind label %72

46:                                               ; preds = %43
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 10
  store i64 %45, ptr %47, align 8, !tbaa !28
  %48 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %49 unwind label %72

49:                                               ; preds = %46
  %50 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 11
  store i64 %48, ptr %50, align 8, !tbaa !29
  %51 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %52 unwind label %72

52:                                               ; preds = %49
  %53 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 13
  store i64 %51, ptr %53, align 8, !tbaa !30
  %54 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %55 unwind label %72

55:                                               ; preds = %52
  %56 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 15
  store i64 %54, ptr %56, align 8, !tbaa !31
  %57 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %58 unwind label %72

58:                                               ; preds = %55
  %59 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 6
  store float %57, ptr %59, align 8, !tbaa !32
  %60 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %61 unwind label %72

61:                                               ; preds = %58
  %62 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 8
  store float %60, ptr %62, align 8, !tbaa !33
  %63 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %64 unwind label %72

64:                                               ; preds = %61
  %65 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 9
  store float %63, ptr %65, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %81, %64
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 13
  %69 = load i64, ptr %68, align 8, !tbaa !30
  %70 = icmp ult i64 %67, %69
  br i1 %70, label %76, label %71

71:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %88

72:                                               ; preds = %113, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %27
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  br label %116

76:                                               ; preds = %66
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %78 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %79 unwind label %84

79:                                               ; preds = %76
  store float %78, ptr %12, align 4, !tbaa !35
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %80 unwind label %84

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %81

81:                                               ; preds = %80
  %82 = load i64, ptr %11, align 8, !tbaa !9
  %83 = add i64 %82, 1
  store i64 %83, ptr %11, align 8, !tbaa !9
  br label %66, !llvm.loop !36

84:                                               ; preds = %79, %76
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %116

88:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %100, %88
  %90 = load i64, ptr %13, align 8, !tbaa !9
  %91 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 15
  %92 = load i64, ptr %91, align 8, !tbaa !31
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %107

95:                                               ; preds = %89
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::ProposalPlugin", ptr %15, i32 0, i32 14
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %97 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %98 unwind label %103

98:                                               ; preds = %95
  store float %97, ptr %14, align 4, !tbaa !35
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %96, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %99 unwind label %103

99:                                               ; preds = %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %100

100:                                              ; preds = %99
  %101 = load i64, ptr %13, align 8, !tbaa !9
  %102 = add i64 %101, 1
  store i64 %102, ptr %13, align 8, !tbaa !9
  br label %89, !llvm.loop !38

103:                                              ; preds = %98, %95
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %116

107:                                              ; preds = %94
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i64, ptr %6, align 8, !tbaa !9
  %111 = getelementptr inbounds i8, ptr %109, i64 %110
  %112 = icmp eq ptr %108, %111
  br i1 %112, label %115, label %113

113:                                              ; preds = %107
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 177)
          to label %114 unwind label %72

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void

116:                                              ; preds = %103, %84, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %117

117:                                              ; preds = %116, %23
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %7, align 8
  %120 = load i32, ptr %8, align 4
  %121 = insertvalue { ptr, i32 } poison, ptr %119, 0
  %122 = insertvalue { ptr, i32 } %121, i32 %120, 1
  resume { ptr, i32 } %122
}

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

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

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

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

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

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

!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, !10, i64 40}
!14 = !{!"_ZTSN8nvinfer16plugin14ProposalPluginE", !15, i64 0, !17, i64 8, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !19, i64 72, !10, i64 80, !19, i64 88, !19, i64 92, !10, i64 96, !10, i64 104, !20, i64 112, !10, i64 136, !20, i64 144, !10, i64 168}
!15 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !10, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIfSaIfEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!14, !10, i64 48}
!25 = !{!14, !10, i64 56}
!26 = !{!14, !10, i64 64}
!27 = !{!14, !10, i64 80}
!28 = !{!14, !10, i64 96}
!29 = !{!14, !10, i64 104}
!30 = !{!14, !10, i64 136}
!31 = !{!14, !10, i64 168}
!32 = !{!14, !19, i64 72}
!33 = !{!14, !19, i64 88}
!34 = !{!14, !19, i64 92}
!35 = !{!19, !19, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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

@_ZTVN8nvinfer16plugin14ProposalPluginE = external dso_local unnamed_addr constant { [27 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin14ProposalPluginC2EPKvm(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  tail call void @_ZN8nvinfer112IPluginV2ExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  store ptr getelementptr inbounds inrange(-16, 200) (i8, ptr @_ZTVN8nvinfer16plugin14ProposalPluginE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %10, label %13

10:                                               ; preds = %3
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, i32 noundef 151)
          to label %13 unwind label %11

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

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

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

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %17, ptr %19, align 8, !tbaa !23
  %20 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %21 unwind label %52

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %20, ptr %22, align 8, !tbaa !24
  %23 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %24 unwind label %52

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

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %26, ptr %28, align 8, !tbaa !26
  %29 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %30 unwind label %52

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %29, ptr %31, align 8, !tbaa !27
  %32 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %33 unwind label %52

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 104
  store i64 %32, ptr %34, align 8, !tbaa !28
  %35 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %36 unwind label %52

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 136
  store i64 %35, ptr %37, align 8, !tbaa !29
  %38 = invoke noundef i64 @_ZN8nvinfer16plugin14readFromBufferImhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %39 unwind label %52

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %0, i64 168
  store i64 %38, ptr %40, align 8, !tbaa !30
  %41 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %42 unwind label %52

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 72
  store float %41, ptr %43, align 8, !tbaa !31
  %44 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %45 unwind label %52

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %0, i64 88
  store float %44, ptr %46, align 8, !tbaa !32
  %47 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %48 unwind label %52

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %0, i64 92
  store float %47, ptr %49, align 4, !tbaa !33
  %50 = load i64, ptr %37, align 8, !tbaa !29
  %.not20 = icmp eq i64 %50, 0
  br i1 %.not20, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %56, %48
  %51 = load i64, ptr %40, align 8, !tbaa !30
  %.not21 = icmp eq i64 %51, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph19

52:                                               ; preds = %73, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %13
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %75

.lr.ph:                                           ; preds = %48, %56
  %.01117 = phi i64 [ %57, %56 ], [ 0, %48 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %54 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %55 unwind label %60

55:                                               ; preds = %.lr.ph
  store float %54, ptr %5, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %56 unwind label %60

56:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %57 = add nuw i64 %.01117, 1
  %58 = load i64, ptr %37, align 8, !tbaa !29
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %.lr.ph, label %.preheader, !llvm.loop !35

60:                                               ; preds = %55, %.lr.ph
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %75

._crit_edge:                                      ; preds = %67, %.preheader
  %62 = load ptr, ptr %4, align 8, !tbaa !8
  %63 = getelementptr inbounds i8, ptr %1, i64 %2
  %64 = icmp eq ptr %62, %63
  br i1 %64, label %74, label %73

.lr.ph19:                                         ; preds = %.preheader, %67
  %.018 = phi i64 [ %68, %67 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %65 = invoke noundef float @_ZN8nvinfer16plugin14readFromBufferIfhEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %66 unwind label %71

66:                                               ; preds = %.lr.ph19
  store float %65, ptr %6, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %67 unwind label %71

67:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  %68 = add nuw i64 %.018, 1
  %69 = load i64, ptr %40, align 8, !tbaa !30
  %70 = icmp ult i64 %68, %69
  br i1 %70, label %.lr.ph19, label %._crit_edge, !llvm.loop !37

71:                                               ; preds = %66, %.lr.ph19
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %75

73:                                               ; preds = %._crit_edge
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 177)
          to label %74 unwind label %52

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

75:                                               ; preds = %71, %60, %52
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %72, %71 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %76

76:                                               ; preds = %75, %11
  %.pn.pn = phi { ptr, i32 } [ %.pn, %75 ], [ %12, %11 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #4
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

!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, !17, i64 40}
!12 = !{!"_ZTSN8nvinfer16plugin14ProposalPluginE", !13, i64 0, !15, i64 8, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !18, i64 72, !17, i64 80, !18, i64 88, !18, i64 92, !17, i64 96, !17, i64 104, !19, i64 112, !17, i64 136, !19, i64 144, !17, i64 168}
!13 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !10, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!17 = !{!"long", !10, i64 0}
!18 = !{!"float", !10, i64 0}
!19 = !{!"_ZTSSt6vectorIfSaIfEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!23 = !{!12, !17, i64 48}
!24 = !{!12, !17, i64 56}
!25 = !{!12, !17, i64 64}
!26 = !{!12, !17, i64 80}
!27 = !{!12, !17, i64 96}
!28 = !{!12, !17, i64 104}
!29 = !{!12, !17, i64 136}
!30 = !{!12, !17, i64 168}
!31 = !{!12, !18, i64 72}
!32 = !{!12, !18, i64 88}
!33 = !{!12, !18, i64 92}
!34 = !{!18, !18, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass