; LLVM IR from NVIDIA/TensorRT :: plugin/pyramidROIAlignPlugin (pyramidROIAlignPlugin)

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

%struct.xy_t = type { i32, i32 }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::PyramidROIAlign" = type { %"class.nvinfer1::IPluginV2Ext", %struct.xy_t, %struct.xy_t, i32, i32, i32, i32, i8, i8, i8, i32, i8, [4 x %struct.xy_t], %"class.std::__cxx11::basic_string" }
%"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.107 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [33 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

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

declare noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin15PyramidROIAlign18check_valid_inputsEPKNS_6Dims64Ei(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i32 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin15PyramidROIAlign15configurePluginEPKNS_6Dims64EiS4_iPKNS_8DataTypeES7_PKbS9_NS_12TensorFormatEi(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca %struct.xy_t, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store ptr %3, ptr %15, align 8, !tbaa !5
  store i32 %4, ptr %16, align 4, !tbaa !9
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store i32 %9, ptr %21, align 4, !tbaa !11
  store i32 %10, ptr %22, align 4, !tbaa !9
  %25 = load ptr, ptr %12, align 8
  %26 = load ptr, ptr %17, align 8, !tbaa !5
  %27 = getelementptr inbounds i32, ptr %26, i64 0
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = load i32, ptr %21, align 4, !tbaa !11
  %30 = load ptr, ptr %25, align 8, !tbaa !15
  %31 = getelementptr inbounds ptr, ptr %30, i64 5
  %32 = load ptr, ptr %31, align 8
  %33 = call noundef zeroext i1 %32(ptr noundef nonnull align 8 dereferenceable(120) %25, i32 noundef %28, i32 noundef %29) #6
  br i1 %33, label %36, label %34

34:                                               ; preds = %11
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.122, ptr noundef @.str.107, i32 noundef 425)
          to label %35 unwind label %95

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35, %11
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load i32, ptr %14, align 4, !tbaa !9
  invoke void @_ZN8nvinfer16plugin15PyramidROIAlign18check_valid_inputsEPKNS_6Dims64Ei(ptr noundef nonnull align 8 dereferenceable(120) %25, ptr noundef %37, i32 noundef %38)
          to label %39 unwind label %95

39:                                               ; preds = %36
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %44, label %42

42:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.123, ptr noundef @.str.107, i32 noundef 428)
          to label %43 unwind label %95

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43, %39
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = icmp eq i32 %45, 5
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.124, ptr noundef @.str.107, i32 noundef 429)
          to label %48 unwind label %95

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48, %44
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %50, i64 0
  %52 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds [8 x i64], ptr %52, i64 0, i64 0
  %54 = load i64, ptr %53, align 8, !tbaa !17
  %55 = trunc i64 %54 to i32
  %56 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %25, i32 0, i32 4
  store i32 %55, ptr %56, align 4, !tbaa !19
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %57, i64 1
  %59 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %58, i32 0, i32 1
  %60 = getelementptr inbounds [8 x i64], ptr %59, i64 0, i64 0
  %61 = load i64, ptr %60, align 8, !tbaa !17
  %62 = trunc i64 %61 to i32
  %63 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %25, i32 0, i32 3
  store i32 %62, ptr %63, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 0, ptr %23, align 8, !tbaa !17
  br label %64

64:                                               ; preds = %91, %49
  %65 = load i64, ptr %23, align 8, !tbaa !17
  %66 = icmp ult i64 %65, 4
  br i1 %66, label %68, label %67

67:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %94

68:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i64, ptr %23, align 8, !tbaa !17
  %71 = add i64 %70, 1
  %72 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %69, i64 %71
  %73 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds [8 x i64], ptr %73, i64 0, i64 1
  %75 = load i64, ptr %74, align 8, !tbaa !17
  %76 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %75)
          to label %77 unwind label %95

77:                                               ; preds = %68
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i64, ptr %23, align 8, !tbaa !17
  %80 = add i64 %79, 1
  %81 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %78, i64 %80
  %82 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds [8 x i64], ptr %82, i64 0, i64 2
  %84 = load i64, ptr %83, align 8, !tbaa !17
  %85 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %84)
          to label %86 unwind label %95

86:                                               ; preds = %77
  invoke void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %24, i32 noundef %76, i32 noundef %85)
          to label %87 unwind label %95

87:                                               ; preds = %86
  %88 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %25, i32 0, i32 12
  %89 = load i64, ptr %23, align 8, !tbaa !17
  %90 = getelementptr inbounds [4 x %struct.xy_t], ptr %88, i64 0, i64 %89
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %90, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %91

91:                                               ; preds = %87
  %92 = load i64, ptr %23, align 8, !tbaa !17
  %93 = add i64 %92, 1
  store i64 %93, ptr %23, align 8, !tbaa !17
  br label %64, !llvm.loop !29

94:                                               ; preds = %67
  ret void

95:                                               ; preds = %86, %77, %68, %47, %42, %36, %34
  %96 = landingpad { ptr, i32 }
          catch ptr null
  %97 = extractvalue { ptr, i32 } %96, 0
  call void @__clang_call_terminate(ptr %97) #7
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !10, i64 28}
!20 = !{!"_ZTSN8nvinfer16plugin15PyramidROIAlignE", !21, i64 0, !23, i64 8, !23, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !24, i64 40, !24, i64 41, !24, i64 42, !10, i64 44, !24, i64 48, !7, i64 52, !25, i64 88}
!21 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!23 = !{!"_ZTS4xy_t", !10, i64 0, !10, i64 4}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !18, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!20, !10, i64 24}
!28 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


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

%struct.xy_t = type { i32, i32 }

@.str.107 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [33 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

declare noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin15PyramidROIAlign15configurePluginEPKNS_6Dims64EiS4_iPKNS_8DataTypeES7_PKbS9_NS_12TensorFormatEi(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readnone %3, i32 noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readnone %6, ptr nocapture noundef readnone %7, ptr nocapture noundef readnone %8, i32 noundef %9, i32 noundef %10) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %struct.xy_t, align 8
  %13 = load i32, ptr %5, align 4, !tbaa !5
  %14 = load ptr, ptr %0, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %14, i64 40
  %16 = load ptr, ptr %15, align 8
  %17 = tail call noundef zeroext i1 %16(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %13, i32 noundef %9) #5
  br i1 %17, label %19, label %18

18:                                               ; preds = %11
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.122, ptr noundef nonnull @.str.107, i32 noundef 425)
          to label %19 unwind label %.loopexit.split-lp

19:                                               ; preds = %18, %11
  invoke void @_ZN8nvinfer16plugin15PyramidROIAlign18check_valid_inputsEPKNS_6Dims64Ei(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, i32 noundef %2)
          to label %20 unwind label %.loopexit.split-lp

20:                                               ; preds = %19
  %21 = icmp eq i32 %4, 1
  br i1 %21, label %23, label %22

22:                                               ; preds = %20
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.123, ptr noundef nonnull @.str.107, i32 noundef 428)
          to label %23 unwind label %.loopexit.split-lp

23:                                               ; preds = %22, %20
  %24 = icmp eq i32 %2, 5
  br i1 %24, label %26, label %25

25:                                               ; preds = %23
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.124, ptr noundef nonnull @.str.107, i32 noundef 429)
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %25, %23
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = trunc i64 %28 to i32
  %30 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %29, ptr %30, align 4, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %1, i64 80
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %33, ptr %34, align 8, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %0, i64 52
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %36 = getelementptr inbounds i8, ptr %1, i64 88
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %37)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %26
  %40 = getelementptr inbounds i8, ptr %1, i64 96
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %41)
          to label %43 unwind label %.loopexit

43:                                               ; preds = %39
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %38, i32 noundef %42)
  %44 = load i64, ptr %12, align 8
  store i64 %44, ptr %35, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %45 = getelementptr inbounds i8, ptr %1, i64 160
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %46)
          to label %48 unwind label %.loopexit

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %1, i64 168
  %50 = load i64, ptr %49, align 8, !tbaa !11
  %51 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %50)
          to label %52 unwind label %.loopexit

52:                                               ; preds = %48
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %47, i32 noundef %51)
  %53 = getelementptr inbounds i8, ptr %0, i64 60
  %54 = load i64, ptr %12, align 8
  store i64 %54, ptr %53, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %55 = getelementptr inbounds i8, ptr %1, i64 232
  %56 = load i64, ptr %55, align 8, !tbaa !11
  %57 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %56)
          to label %58 unwind label %.loopexit

58:                                               ; preds = %52
  %59 = getelementptr inbounds i8, ptr %1, i64 240
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %60)
          to label %62 unwind label %.loopexit

62:                                               ; preds = %58
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %57, i32 noundef %61)
  %63 = getelementptr inbounds i8, ptr %0, i64 68
  %64 = load i64, ptr %12, align 8
  store i64 %64, ptr %63, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %65 = getelementptr inbounds i8, ptr %1, i64 304
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %66)
          to label %68 unwind label %.loopexit

68:                                               ; preds = %62
  %69 = getelementptr inbounds i8, ptr %1, i64 312
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %70)
          to label %72 unwind label %.loopexit

72:                                               ; preds = %68
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %67, i32 noundef %71)
  %73 = getelementptr inbounds i8, ptr %0, i64 76
  %74 = load i64, ptr %12, align 8
  store i64 %74, ptr %73, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  ret void

.loopexit:                                        ; preds = %68, %62, %58, %52, %48, %43, %26, %39
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %75

.loopexit.split-lp:                               ; preds = %18, %19, %22, %25
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %75

75:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  %76 = extractvalue { ptr, i32 } %lpad.phi, 0
  call void @__clang_call_terminate(ptr %76) #6
  unreachable
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !18, i64 28}
!14 = !{!"_ZTSN8nvinfer16plugin15PyramidROIAlignE", !15, i64 0, !17, i64 8, !17, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !19, i64 40, !19, i64 41, !19, i64 42, !18, i64 44, !19, i64 48, !7, i64 52, !20, i64 88}
!15 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!17 = !{!"_ZTS4xy_t", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !12, i64 8, !7, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !22, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!23 = !{!14, !18, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass