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

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

%"class.nvinfer1::plugin::RPROIPlugin" = type <{ %"class.nvinfer1::IPluginV2IOExt", ptr, %"class.std::__cxx11::basic_string", i32, i32, i64, %"struct.nvinfer1::plugin::RPROIParams", i32, i32, i32, i32, ptr, ptr, i32, i32, i32, [4 x i8] }>
%"class.nvinfer1::IPluginV2IOExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.nvinfer1::plugin::RPROIParams" = type { i32, i32, i32, i32, i32, i32, i32, float, float, float }

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@__func__._ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

declare i32 @cudaMalloc(ptr noundef, i64 noundef) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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

declare noundef i32 @_ZN8nvinfer16plugin15generateAnchorsEP11CUstream_stiPfiS3_iS3_(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef %1, i64 noundef %2) #6 align 2 {
  %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
  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
  %9 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %10, ptr %7, align 8, !tbaa !5
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 4 %11, i64 40, i1 false), !tbaa.struct !11
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 40
  store ptr %14, ptr %7, align 8, !tbaa !5
  %15 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %16 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 7
  store i32 %15, ptr %16, align 8, !tbaa !16
  %17 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %18 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 8
  store i32 %17, ptr %18, align 4, !tbaa !26
  %19 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 9
  store i32 %19, ptr %20, align 8, !tbaa !27
  %21 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %22 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 10
  store i32 %21, ptr %22, align 4, !tbaa !28
  %23 = call noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %24 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 13
  store i32 %23, ptr %24, align 8, !tbaa !29
  %25 = call noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 14
  store i32 %25, ptr %26, align 4, !tbaa !30
  %27 = call noundef i32 @_ZN8nvinfer16plugin4readINS0_9DLayout_tEaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %28 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 15
  store i32 %27, ptr %28, align 8, !tbaa !31
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %31 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %30, i32 0, i32 5
  %32 = load i32, ptr %31, align 4, !tbaa !32
  %33 = call noundef ptr @_ZN8nvinfer16plugin11RPROIPlugin10copyToHostEPKvi(ptr noundef nonnull align 8 dereferenceable(148) %9, ptr noundef %29, i32 noundef %32) #7
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 11
  store ptr %33, ptr %34, align 8, !tbaa !33
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %36 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %35, i32 0, i32 5
  %37 = load i32, ptr %36, align 4, !tbaa !32
  %38 = sext i32 %37 to i64
  %39 = mul i64 %38, 4
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 %39
  store ptr %41, ptr %7, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %44 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %43, i32 0, i32 6
  %45 = load i32, ptr %44, align 8, !tbaa !34
  %46 = call noundef ptr @_ZN8nvinfer16plugin11RPROIPlugin10copyToHostEPKvi(ptr noundef nonnull align 8 dereferenceable(148) %9, ptr noundef %42, i32 noundef %45) #7
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 12
  store ptr %46, ptr %47, align 8, !tbaa !35
  %48 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %49 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %48, i32 0, i32 6
  %50 = load i32, ptr %49, align 8, !tbaa !34
  %51 = sext i32 %50 to i64
  %52 = mul i64 %51, 4
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 %52
  store ptr %54, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i64, ptr %6, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %56, i64 %57
  %59 = icmp eq ptr %55, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %3
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam, i32 noundef 104, i32 noundef 0, ptr noundef @.str.4) #8
  unreachable

61:                                               ; preds = %3
  br label %62

62:                                               ; preds = %61
  %63 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 1
  %64 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %65 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %64, i32 0, i32 5
  %66 = load i32, ptr %65, align 4, !tbaa !32
  %67 = mul nsw i32 4, %66
  %68 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %69 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %68, i32 0, i32 6
  %70 = load i32, ptr %69, align 8, !tbaa !34
  %71 = mul nsw i32 %67, %70
  %72 = sext i32 %71 to i64
  %73 = mul i64 %72, 4
  %74 = call i32 @cudaMalloc(ptr noundef %63, i64 noundef %73)
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %62
  call void @exit(i32 noundef 1) #9
  unreachable

77:                                               ; preds = %62
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %80 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %81 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %80, i32 0, i32 5
  %82 = load i32, ptr %81, align 4, !tbaa !32
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 11
  %84 = load ptr, ptr %83, align 8, !tbaa !33
  %85 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %86 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %85, i32 0, i32 6
  %87 = load i32, ptr %86, align 8, !tbaa !34
  %88 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 12
  %89 = load ptr, ptr %88, align 8, !tbaa !35
  %90 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 6
  %91 = getelementptr inbounds %"struct.nvinfer1::plugin::RPROIParams", ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !36
  %93 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !37
  %95 = call noundef i32 @_ZN8nvinfer16plugin15generateAnchorsEP11CUstream_stiPfiS3_iS3_(ptr noundef null, i32 noundef %82, ptr noundef %84, i32 noundef %87, ptr noundef %89, i32 noundef %92, ptr noundef %94)
  store i32 %95, ptr %8, align 4, !tbaa !38
  %96 = load i32, ptr %8, align 4, !tbaa !38
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %99, label %98

98:                                               ; preds = %79
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam, i32 noundef 110, i32 noundef 0, ptr noundef @.str.3) #8
  unreachable

99:                                               ; preds = %79
  %100 = call noundef i64 @_ZNK8nvinfer16plugin11RPROIPlugin11getSmemSizeEv(ptr noundef nonnull align 8 dereferenceable(148) %9) #7
  %101 = getelementptr inbounds %"class.nvinfer1::plugin::RPROIPlugin", ptr %9, i32 0, i32 5
  store i64 %100, ptr %101, align 8, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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 = !{!"long", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12, i64 20, i64 4, !12, i64 24, i64 4, !12, i64 28, i64 4, !14, i64 32, i64 4, !14, i64 36, i64 4, !14}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !13, i64 104}
!17 = !{!"_ZTSN8nvinfer16plugin11RPROIPluginE", !18, i64 0, !6, i64 8, !21, i64 16, !13, i64 48, !13, i64 52, !10, i64 56, !23, i64 64, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !6, i64 120, !6, i64 128, !24, i64 136, !24, i64 140, !25, i64 144}
!18 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !19, i64 0}
!19 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !10, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSN8nvinfer16plugin11RPROIParamsE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !15, i64 28, !15, i64 32, !15, i64 36}
!24 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!25 = !{!"_ZTSN8nvinfer16plugin9DLayout_tE", !7, i64 0}
!26 = !{!17, !13, i64 108}
!27 = !{!17, !13, i64 112}
!28 = !{!17, !13, i64 116}
!29 = !{!17, !24, i64 136}
!30 = !{!17, !24, i64 140}
!31 = !{!17, !25, i64 144}
!32 = !{!17, !13, i64 84}
!33 = !{!17, !6, i64 120}
!34 = !{!17, !13, i64 88}
!35 = !{!17, !6, i64 128}
!36 = !{!17, !13, i64 72}
!37 = !{!17, !6, i64 8}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTS14pluginStatus_t", !7, i64 0}
!40 = !{!17, !10, i64 56}


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

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [25 x i8], align 1
@__func__._ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

declare i32 @cudaMalloc(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

declare noundef i32 @_ZN8nvinfer16plugin15generateAnchorsEP11CUstream_stiPfiS3_iS3_(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #6 align 2 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 4 dereferenceable(40) %1, i64 40, i1 false), !tbaa.struct !5
  %6 = getelementptr inbounds i8, ptr %1, i64 40
  store ptr %6, ptr %4, align 8, !tbaa !12
  %7 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %8 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %7, ptr %8, align 8, !tbaa !14
  %9 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %10 = getelementptr inbounds i8, ptr %0, i64 108
  store i32 %9, ptr %10, align 4, !tbaa !25
  %11 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %11, ptr %12, align 8, !tbaa !26
  %13 = call noundef i32 @_ZN8nvinfer16plugin4readIiaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %14 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %13, ptr %14, align 4, !tbaa !27
  %15 = call noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  store i32 %15, ptr %16, align 8, !tbaa !28
  %17 = call noundef i32 @_ZN8nvinfer16plugin4readINS_8DataTypeEaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %18 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %17, ptr %18, align 4, !tbaa !29
  %19 = call noundef i32 @_ZN8nvinfer16plugin4readINS0_9DLayout_tEaEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 %19, ptr %20, align 8, !tbaa !30
  %21 = load ptr, ptr %4, align 8, !tbaa !12
  %22 = getelementptr inbounds i8, ptr %0, i64 84
  %23 = load i32, ptr %22, align 4, !tbaa !31
  %24 = call noundef ptr @_ZN8nvinfer16plugin11RPROIPlugin10copyToHostEPKvi(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef %21, i32 noundef %23) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %24, ptr %25, align 8, !tbaa !32
  %26 = load i32, ptr %22, align 4, !tbaa !31
  %27 = sext i32 %26 to i64
  %28 = shl nsw i64 %27, 2
  %29 = load ptr, ptr %4, align 8, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %29, i64 %28
  store ptr %30, ptr %4, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %0, i64 88
  %32 = load i32, ptr %31, align 8, !tbaa !33
  %33 = call noundef ptr @_ZN8nvinfer16plugin11RPROIPlugin10copyToHostEPKvi(ptr noundef nonnull align 8 dereferenceable(148) %0, ptr noundef %30, i32 noundef %32) #7
  %34 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %33, ptr %34, align 8, !tbaa !34
  %35 = load i32, ptr %31, align 8, !tbaa !33
  %36 = sext i32 %35 to i64
  %37 = shl nsw i64 %36, 2
  %38 = load ptr, ptr %4, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %38, i64 %37
  store ptr %39, ptr %4, align 8, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %1, i64 %2
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %3
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam, i32 noundef 104, i32 noundef 0, ptr noundef nonnull @.str.4) #8
  unreachable

43:                                               ; preds = %3
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %45 = load i32, ptr %22, align 4, !tbaa !31
  %46 = shl i32 %35, 2
  %47 = mul i32 %46, %45
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 2
  %50 = call i32 @cudaMalloc(ptr noundef nonnull %44, i64 noundef %49)
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %52, label %51

51:                                               ; preds = %43
  call void @exit(i32 noundef 1) #9
  unreachable

52:                                               ; preds = %43
  %53 = load i32, ptr %22, align 4, !tbaa !31
  %54 = load ptr, ptr %25, align 8, !tbaa !32
  %55 = load i32, ptr %31, align 8, !tbaa !33
  %56 = load ptr, ptr %34, align 8, !tbaa !34
  %57 = getelementptr inbounds i8, ptr %0, i64 72
  %58 = load i32, ptr %57, align 8, !tbaa !35
  %59 = load ptr, ptr %44, align 8, !tbaa !36
  %60 = call noundef i32 @_ZN8nvinfer16plugin15generateAnchorsEP11CUstream_stiPfiS3_iS3_(ptr noundef null, i32 noundef %53, ptr noundef %54, i32 noundef %55, ptr noundef %56, i32 noundef %58, ptr noundef %59)
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %63, label %62

62:                                               ; preds = %52
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin11RPROIPlugin11deserializeEPKam, i32 noundef 110, i32 noundef 0, ptr noundef nonnull @.str.3) #8
  unreachable

63:                                               ; preds = %52
  %64 = call noundef i64 @_ZNK8nvinfer16plugin11RPROIPlugin11getSmemSizeEv(ptr noundef nonnull align 8 dereferenceable(148) %0) #7
  %65 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %64, ptr %65, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret void
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { noreturn nounwind "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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 4, !6, i64 20, i64 4, !6, i64 24, i64 4, !6, i64 28, i64 4, !10, i64 32, i64 4, !10, i64 36, i64 4, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!15, !7, i64 104}
!15 = !{!"_ZTSN8nvinfer16plugin11RPROIPluginE", !16, i64 0, !13, i64 8, !19, i64 16, !7, i64 48, !7, i64 52, !21, i64 56, !22, i64 64, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !13, i64 120, !13, i64 128, !23, i64 136, !23, i64 140, !24, i64 144}
!16 = !{!"_ZTSN8nvinfer114IPluginV2IOExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !21, i64 8, !8, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!21 = !{!"long", !8, i64 0}
!22 = !{!"_ZTSN8nvinfer16plugin11RPROIParamsE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !11, i64 28, !11, i64 32, !11, i64 36}
!23 = !{!"_ZTSN8nvinfer18DataTypeE", !8, i64 0}
!24 = !{!"_ZTSN8nvinfer16plugin9DLayout_tE", !8, i64 0}
!25 = !{!15, !7, i64 108}
!26 = !{!15, !7, i64 112}
!27 = !{!15, !7, i64 116}
!28 = !{!15, !23, i64 136}
!29 = !{!15, !23, i64 140}
!30 = !{!15, !24, i64 144}
!31 = !{!15, !7, i64 84}
!32 = !{!15, !13, i64 120}
!33 = !{!15, !7, i64 88}
!34 = !{!15, !13, i64 128}
!35 = !{!15, !7, i64 72}
!36 = !{!15, !13, i64 8}
!37 = !{!15, !21, i64 56}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass