; LLVM IR from NVIDIA/TensorRT :: plugin/roiAlignPlugin/roiAlignPluginLegacy.ll (ZN8nvinfer16plugin8ROIAlignC2EPKvm)

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

@.str.7 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTVN8nvinfer16plugin8ROIAlignE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm = external hidden unnamed_addr constant [9 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [16 x i8], align 1

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

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) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin8ROIAlign18validateAttributesEiiiifi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin8ROIAlignC2EPKvm(ptr noundef nonnull align 8 dereferenceable(88) %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
  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
  %11 = load ptr, ptr %4, align 8
  call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  store ptr getelementptr inbounds inrange(-16, 240) ({ [32 x ptr] }, ptr @_ZTVN8nvinfer16plugin8ROIAlignE, i32 0, i32 0, i32 2), ptr %11, align 8, !tbaa !11
  %12 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 1
  store i32 0, ptr %12, align 8, !tbaa !13
  %13 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 2
  store i32 0, ptr %13, align 4, !tbaa !22
  %14 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 3
  store i32 0, ptr %14, align 8, !tbaa !23
  %15 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 4
  store float 0.000000e+00, ptr %15, align 4, !tbaa !24
  %16 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 5
  store i32 0, ptr %16, align 8, !tbaa !25
  %17 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 6
  store i32 0, ptr %17, align 4, !tbaa !26
  %18 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 7
  store i32 0, ptr %18, align 8, !tbaa !27
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 8
  store i32 0, ptr %19, align 4, !tbaa !28
  %20 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 9
  store i32 0, ptr %20, align 8, !tbaa !29
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 10
  store i32 0, ptr %21, align 4, !tbaa !30
  %22 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 11
  store i32 0, ptr %22, align 8, !tbaa !31
  %23 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %32, label %26

26:                                               ; preds = %3
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.7, ptr noundef @__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm, i32 noundef 382, i32 noundef 0, ptr noundef @.str.11) #6
          to label %27 unwind label %28

27:                                               ; preds = %26
  unreachable

28:                                               ; preds = %35, %26
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %7, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %8, align 4
  br label %95

32:                                               ; preds = %3
  %33 = load i64, ptr %6, align 8, !tbaa !9
  %34 = icmp eq i64 %33, 40
  br i1 %34, label %37, label %35

35:                                               ; preds = %32
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.7, ptr noundef @__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm, i32 noundef 383, i32 noundef 0, ptr noundef @.str.36) #6
          to label %36 unwind label %28

36:                                               ; preds = %35
  unreachable

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %38, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %39, ptr %10, align 8, !tbaa !5
  %40 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %41 unwind label %77

41:                                               ; preds = %37
  %42 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 6
  store i32 %40, ptr %42, align 4, !tbaa !26
  %43 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %44 unwind label %77

44:                                               ; preds = %41
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 5
  store i32 %43, ptr %45, align 8, !tbaa !25
  %46 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %47 unwind label %77

47:                                               ; preds = %44
  %48 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 1
  store i32 %46, ptr %48, align 8, !tbaa !13
  %49 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %50 unwind label %77

50:                                               ; preds = %47
  %51 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 2
  store i32 %49, ptr %51, align 4, !tbaa !22
  %52 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %53 unwind label %77

53:                                               ; preds = %50
  %54 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 3
  store i32 %52, ptr %54, align 8, !tbaa !23
  %55 = invoke noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %56 unwind label %77

56:                                               ; preds = %53
  %57 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 4
  store float %55, ptr %57, align 4, !tbaa !24
  %58 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %59 unwind label %77

59:                                               ; preds = %56
  %60 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 7
  store i32 %58, ptr %60, align 8, !tbaa !27
  %61 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %62 unwind label %77

62:                                               ; preds = %59
  %63 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 8
  store i32 %61, ptr %63, align 4, !tbaa !28
  %64 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %65 unwind label %77

65:                                               ; preds = %62
  %66 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 9
  store i32 %64, ptr %66, align 8, !tbaa !29
  %67 = invoke noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %68 unwind label %77

68:                                               ; preds = %65
  %69 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 10
  store i32 %67, ptr %69, align 4, !tbaa !30
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load i64, ptr %6, align 8, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %71, i64 %72
  %74 = icmp eq ptr %70, %73
  br i1 %74, label %81, label %75

75:                                               ; preds = %68
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.7, ptr noundef @__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm, i32 noundef 400, i32 noundef 0, ptr noundef @.str.37) #6
          to label %76 unwind label %77

76:                                               ; preds = %75
  unreachable

77:                                               ; preds = %81, %75, %65, %62, %59, %56, %53, %50, %47, %44, %41, %37
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %95

81:                                               ; preds = %68
  %82 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !22
  %86 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 3
  %87 = load i32, ptr %86, align 8, !tbaa !23
  %88 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 5
  %89 = load i32, ptr %88, align 8, !tbaa !25
  %90 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 4
  %91 = load float, ptr %90, align 4, !tbaa !24
  %92 = getelementptr inbounds %"class.nvinfer1::plugin::ROIAlign", ptr %11, i32 0, i32 6
  %93 = load i32, ptr %92, align 4, !tbaa !26
  invoke void @_ZN8nvinfer16plugin8ROIAlign18validateAttributesEiiiifi(ptr noundef nonnull align 8 dereferenceable(88) %11, i32 noundef %83, i32 noundef %85, i32 noundef %87, i32 noundef %89, float noundef %91, i32 noundef %93)
          to label %94 unwind label %77

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

95:                                               ; preds = %77, %28
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #5
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %7, align 8
  %98 = load i32, ptr %8, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

attributes #0 = { nocallback nofree nosync 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 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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !18, i64 8}
!14 = !{!"_ZTSN8nvinfer16plugin8ROIAlignE", !15, i64 0, !18, i64 8, !18, i64 12, !18, i64 16, !19, i64 20, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !20, i64 56}
!15 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"int", !7, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !10, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!22 = !{!14, !18, i64 12}
!23 = !{!14, !18, i64 16}
!24 = !{!14, !19, i64 20}
!25 = !{!14, !18, i64 24}
!26 = !{!14, !18, i64 28}
!27 = !{!14, !18, i64 32}
!28 = !{!14, !18, i64 36}
!29 = !{!14, !18, i64 40}
!30 = !{!14, !18, i64 44}
!31 = !{!14, !18, i64 48}


; 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.7 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZTVN8nvinfer16plugin8ROIAlignE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm = external hidden unnamed_addr constant [9 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [16 x i8], align 1

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

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) #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 uwtable
declare dso_local void @_ZN8nvinfer16plugin8ROIAlign18validateAttributesEiiiifi(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin8ROIAlignC2EPKvm(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  tail call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store ptr getelementptr inbounds inrange(-16, 240) (i8, ptr @_ZTVN8nvinfer16plugin8ROIAlignE, i64 16), ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = getelementptr inbounds i8, ptr %0, i64 20
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = getelementptr inbounds i8, ptr %0, i64 36
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = getelementptr inbounds i8, ptr %0, i64 44
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(44) %5, i8 0, i64 44, i1 false)
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.invoke, label %18

16:                                               ; preds = %.invoke
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %48

18:                                               ; preds = %3
  %19 = icmp eq i64 %2, 40
  br i1 %19, label %22, label %.invoke

.invoke:                                          ; preds = %3, %18
  %20 = phi i32 [ 383, %18 ], [ 382, %3 ]
  %21 = phi ptr [ @.str.36, %18 ], [ @.str.11, %3 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm, i32 noundef %20, i32 noundef 0, ptr noundef nonnull %21) #7
          to label %.cont unwind label %16

.cont:                                            ; preds = %.invoke
  unreachable

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr %1, ptr %4, align 8, !tbaa !8
  %23 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %23, ptr %10, align 4, !tbaa !11
  %24 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %24, ptr %9, align 8, !tbaa !21
  %25 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %25, ptr %5, align 8, !tbaa !22
  %26 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %26, ptr %6, align 4, !tbaa !23
  %27 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %27, ptr %7, align 8, !tbaa !24
  %28 = call noundef float @_ZN8nvinfer16plugin4readIfcEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store float %28, ptr %8, align 4, !tbaa !25
  %29 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %29, ptr %11, align 8, !tbaa !26
  %30 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %30, ptr %12, align 4, !tbaa !27
  %31 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %31, ptr %13, align 8, !tbaa !28
  %32 = call noundef i32 @_ZN8nvinfer16plugin4readIicEET_RPKT0_(ptr noundef nonnull align 8 dereferenceable(8) %4)
  store i32 %32, ptr %14, align 4, !tbaa !29
  %33 = load ptr, ptr %4, align 8, !tbaa !8
  %34 = getelementptr inbounds i8, ptr %1, i64 40
  %35 = icmp eq ptr %33, %34
  br i1 %35, label %40, label %36

36:                                               ; preds = %22
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.7, ptr noundef nonnull @__func__._ZN8nvinfer16plugin8ROIAlignC2EPKvm, i32 noundef 400, i32 noundef 0, ptr noundef nonnull @.str.37) #7
          to label %37 unwind label %38

37:                                               ; preds = %36
  unreachable

38:                                               ; preds = %40, %36
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %48

40:                                               ; preds = %22
  %41 = load i32, ptr %5, align 8, !tbaa !22
  %42 = load i32, ptr %6, align 4, !tbaa !23
  %43 = load i32, ptr %7, align 8, !tbaa !24
  %44 = load i32, ptr %9, align 8, !tbaa !21
  %45 = load float, ptr %8, align 4, !tbaa !25
  %46 = load i32, ptr %10, align 4, !tbaa !11
  invoke void @_ZN8nvinfer16plugin8ROIAlign18validateAttributesEiiiifi(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, float noundef %45, i32 noundef %46)
          to label %47 unwind label %38

47:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void

48:                                               ; preds = %38, %16
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %17, %16 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync 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 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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { 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, !16, i64 28}
!12 = !{!"_ZTSN8nvinfer16plugin8ROIAlignE", !13, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !17, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !16, i64 44, !16, i64 48, !18, i64 56}
!13 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !15, i64 0}
!15 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!16 = !{!"int", !10, i64 0}
!17 = !{!"float", !10, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !10, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!20 = !{!"long", !10, i64 0}
!21 = !{!12, !16, i64 24}
!22 = !{!12, !16, i64 8}
!23 = !{!12, !16, i64 12}
!24 = !{!12, !16, i64 16}
!25 = !{!12, !17, i64 20}
!26 = !{!12, !16, i64 32}
!27 = !{!12, !16, i64 36}
!28 = !{!12, !16, i64 40}
!29 = !{!12, !16, i64 44}


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