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

; 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::MultilevelCropAndResize" = type <{ %"class.nvinfer1::IPluginV2Ext", %struct.xy_t, i32, i32, float, i32, i32, [5 x %struct.xy_t], [4 x i8], %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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] }

@_ZTISt9exception = external constant ptr
@.str.98 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.113 = 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

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: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @__cxa_end_catch()

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin23MultilevelCropAndResize15configurePluginEPKNS_6Dims64EiS4_iPKNS_8DataTypeES7_PKbS9_NS_12TensorFormatEi(ptr noundef nonnull align 8 dereferenceable(116) %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 #5 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 ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca %struct.xy_t, align 4
  %27 = alloca ptr, align 8
  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
  %28 = load ptr, ptr %12, align 8
  %29 = load ptr, ptr %17, align 8, !tbaa !5
  %30 = getelementptr inbounds i32, ptr %29, i64 0
  %31 = load i32, ptr %30, align 4, !tbaa !13
  %32 = load i32, ptr %21, align 4, !tbaa !11
  %33 = load ptr, ptr %28, align 8, !tbaa !15
  %34 = getelementptr inbounds ptr, ptr %33, i64 5
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef zeroext i1 %35(ptr noundef nonnull align 8 dereferenceable(116) %28, i32 noundef %31, i32 noundef %32) #7
  br i1 %36, label %39, label %37

37:                                               ; preds = %11
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.111, ptr noundef @.str.98, i32 noundef 320)
          to label %38 unwind label %122

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38, %11
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN8nvinfer16plugin23MultilevelCropAndResize18check_valid_inputsEPKNS_6Dims64Ei(ptr noundef nonnull align 8 dereferenceable(116) %28, ptr noundef %40, i32 noundef %41) #7
  %42 = load i32, ptr %16, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %46, label %44

44:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.112, ptr noundef @.str.98, i32 noundef 323)
          to label %45 unwind label %122

45:                                               ; preds = %44
  br label %46

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

49:                                               ; preds = %46
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.113, ptr noundef @.str.98, i32 noundef 324)
          to label %50 unwind label %122

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50, %46
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %52, i64 0
  %54 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %53, i32 0, i32 1
  %55 = getelementptr inbounds [8 x i64], ptr %54, i64 0, i64 0
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %56)
          to label %58 unwind label %72

58:                                               ; preds = %51
  %59 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelCropAndResize", ptr %28, i32 0, i32 3
  store i32 %57, ptr %59, align 4, !tbaa !19
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %60, i64 1
  %62 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds [8 x i64], ptr %62, i64 0, i64 0
  %64 = load i64, ptr %63, align 8, !tbaa !17
  %65 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %64)
          to label %66 unwind label %72

66:                                               ; preds = %58
  %67 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelCropAndResize", ptr %28, i32 0, i32 2
  store i32 %65, ptr %67, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 0, ptr %25, align 8, !tbaa !17
  br label %68

68:                                               ; preds = %99, %66
  %69 = load i64, ptr %25, align 8, !tbaa !17
  %70 = icmp ult i64 %69, 5
  br i1 %70, label %76, label %71

71:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %121

72:                                               ; preds = %58, %51
  %73 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %23, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %24, align 4
  br label %106

76:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load i64, ptr %25, align 8, !tbaa !17
  %79 = add i64 %78, 1
  %80 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %77, i64 %79
  %81 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds [8 x i64], ptr %81, i64 0, i64 1
  %83 = load i64, ptr %82, align 8, !tbaa !17
  %84 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %83)
          to label %85 unwind label %102

85:                                               ; preds = %76
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load i64, ptr %25, align 8, !tbaa !17
  %88 = add i64 %87, 1
  %89 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %86, i64 %88
  %90 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds [8 x i64], ptr %90, i64 0, i64 2
  %92 = load i64, ptr %91, align 8, !tbaa !17
  %93 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %92)
          to label %94 unwind label %102

94:                                               ; preds = %85
  invoke void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %26, i32 noundef %84, i32 noundef %93)
          to label %95 unwind label %102

95:                                               ; preds = %94
  %96 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelCropAndResize", ptr %28, i32 0, i32 7
  %97 = load i64, ptr %25, align 8, !tbaa !17
  %98 = getelementptr inbounds [5 x %struct.xy_t], ptr %96, i64 0, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %99

99:                                               ; preds = %95
  %100 = load i64, ptr %25, align 8, !tbaa !17
  %101 = add i64 %100, 1
  store i64 %101, ptr %25, align 8, !tbaa !17
  br label %68, !llvm.loop !29

102:                                              ; preds = %94, %85, %76
  %103 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %23, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %106

106:                                              ; preds = %102, %72
  %107 = load i32, ptr %24, align 4
  %108 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %109 = icmp eq i32 %107, %108
  br i1 %109, label %110, label %125

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %111 = load ptr, ptr %23, align 8
  %112 = call ptr @__cxa_begin_catch(ptr %111) #7
  store ptr %112, ptr %27, align 8
  %113 = load ptr, ptr %27, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %113)
          to label %114 unwind label %122

114:                                              ; preds = %110
  invoke void @__cxa_end_catch()
          to label %115 unwind label %122

115:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %116

116:                                              ; preds = %121, %115
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = getelementptr inbounds i32, ptr %117, i64 1
  %119 = load i32, ptr %118, align 4, !tbaa !13
  %120 = getelementptr inbounds %"class.nvinfer1::plugin::MultilevelCropAndResize", ptr %28, i32 0, i32 10
  store i32 %119, ptr %120, align 8, !tbaa !31
  ret void

121:                                              ; preds = %71
  br label %116

122:                                              ; preds = %114, %110, %49, %44, %37
  %123 = landingpad { ptr, i32 }
          catch ptr null
  %124 = extractvalue { ptr, i32 } %123, 0
  call void @__clang_call_terminate(ptr %124) #8
  unreachable

125:                                              ; preds = %106
  %126 = load ptr, ptr %23, align 8
  call void @__clang_call_terminate(ptr %126) #8
  unreachable
}

declare noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind memory(none) }
attributes #4 = { inlinehint 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 = { 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 #6 = { "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 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 20}
!20 = !{!"_ZTSN8nvinfer16plugin23MultilevelCropAndResizeE", !21, i64 0, !23, i64 8, !10, i64 16, !10, i64 20, !24, i64 24, !10, i64 28, !10, i64 32, !7, i64 36, !25, i64 80, !14, i64 112}
!21 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!23 = !{!"_ZTS4xy_t", !10, i64 0, !10, i64 4}
!24 = !{!"float", !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 16}
!28 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!20, !14, i64 112}


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

@_ZTISt9exception = external constant ptr
@.str.98 = external hidden unnamed_addr constant [120 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.113 = 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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

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

declare void @__cxa_end_catch() local_unnamed_addr

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin23MultilevelCropAndResize15configurePluginEPKNS_6Dims64EiS4_iPKNS_8DataTypeES7_PKbS9_NS_12TensorFormatEi(ptr noundef nonnull align 8 dereferenceable(116) %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 #4 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(116) %0, i32 noundef %13, i32 noundef %9) #6
  br i1 %17, label %19, label %18

18:                                               ; preds = %11
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.111, ptr noundef nonnull @.str.98, i32 noundef 320)
          to label %19 unwind label %98

19:                                               ; preds = %18, %11
  tail call void @_ZN8nvinfer16plugin23MultilevelCropAndResize18check_valid_inputsEPKNS_6Dims64Ei(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef %1, i32 noundef %2) #6
  %20 = icmp eq i32 %4, 1
  br i1 %20, label %22, label %21

21:                                               ; preds = %19
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.112, ptr noundef nonnull @.str.98, i32 noundef 323)
          to label %22 unwind label %98

22:                                               ; preds = %21, %19
  %23 = icmp eq i32 %2, 6
  br i1 %23, label %25, label %24

24:                                               ; preds = %22
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.113, ptr noundef nonnull @.str.98, i32 noundef 324)
          to label %25 unwind label %98

25:                                               ; preds = %24, %22
  %26 = getelementptr inbounds i8, ptr %1, i64 8
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %27)
          to label %29 unwind label %40

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %28, ptr %30, align 4, !tbaa !13
  %31 = getelementptr inbounds i8, ptr %1, i64 80
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %32)
          to label %34 unwind label %40

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %33, ptr %35, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %0, i64 36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %37 = getelementptr inbounds i8, ptr %1, i64 88
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %38)
          to label %42 unwind label %87

40:                                               ; preds = %29, %25
  %41 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %89

42:                                               ; preds = %34
  %43 = getelementptr inbounds i8, ptr %1, i64 96
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %44)
          to label %46 unwind label %87

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

51:                                               ; preds = %46
  %52 = getelementptr inbounds i8, ptr %1, i64 168
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %53)
          to label %55 unwind label %87

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

61:                                               ; preds = %55
  %62 = getelementptr inbounds i8, ptr %1, i64 240
  %63 = load i64, ptr %62, align 8, !tbaa !11
  %64 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %63)
          to label %65 unwind label %87

65:                                               ; preds = %61
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %60, i32 noundef %64)
  %66 = getelementptr inbounds i8, ptr %0, i64 52
  %67 = load i64, ptr %12, align 8
  store i64 %67, ptr %66, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %68 = getelementptr inbounds i8, ptr %1, i64 304
  %69 = load i64, ptr %68, align 8, !tbaa !11
  %70 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %69)
          to label %71 unwind label %87

71:                                               ; preds = %65
  %72 = getelementptr inbounds i8, ptr %1, i64 312
  %73 = load i64, ptr %72, align 8, !tbaa !11
  %74 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %73)
          to label %75 unwind label %87

75:                                               ; preds = %71
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %70, i32 noundef %74)
  %76 = getelementptr inbounds i8, ptr %0, i64 60
  %77 = load i64, ptr %12, align 8
  store i64 %77, ptr %76, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %78 = getelementptr inbounds i8, ptr %1, i64 376
  %79 = load i64, ptr %78, align 8, !tbaa !11
  %80 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %79)
          to label %81 unwind label %87

81:                                               ; preds = %75
  %82 = getelementptr inbounds i8, ptr %1, i64 384
  %83 = load i64, ptr %82, align 8, !tbaa !11
  %84 = invoke noundef i32 @_ZN8nvinfer16plugin10dimToInt32El(i64 noundef %83)
          to label %.loopexit.loopexit unwind label %87

.loopexit.loopexit:                               ; preds = %81
  call void @_ZN4xy_tC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %80, i32 noundef %84)
  %85 = getelementptr inbounds i8, ptr %0, i64 68
  %86 = load i64, ptr %12, align 8
  store i64 %86, ptr %85, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %.loopexit

87:                                               ; preds = %81, %75, %71, %65, %61, %55, %51, %46, %42, %34
  %88 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %89

89:                                               ; preds = %87, %40
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %41, %40 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.021 = extractvalue { ptr, i32 } %.pn, 1
  %90 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #6
  %91 = icmp eq i32 %.021, %90
  br i1 %91, label %92, label %101

92:                                               ; preds = %89
  %93 = call ptr @__cxa_begin_catch(ptr %.0) #6
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %93)
          to label %94 unwind label %98

94:                                               ; preds = %92
  invoke void @__cxa_end_catch()
          to label %.loopexit unwind label %98

.loopexit:                                        ; preds = %.loopexit.loopexit, %94
  %95 = getelementptr inbounds i8, ptr %5, i64 4
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %96, ptr %97, align 8, !tbaa !24
  ret void

98:                                               ; preds = %94, %92, %24, %21, %18
  %99 = landingpad { ptr, i32 }
          catch ptr null
  %100 = extractvalue { ptr, i32 } %99, 0
  call void @__clang_call_terminate(ptr %100) #7
  unreachable

101:                                              ; preds = %89
  call void @__clang_call_terminate(ptr %.0) #7
  unreachable
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nofree nosync nounwind memory(none) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 = { "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 = !{!"_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 20}
!14 = !{!"_ZTSN8nvinfer16plugin23MultilevelCropAndResizeE", !15, i64 0, !17, i64 8, !18, i64 16, !18, i64 20, !19, i64 24, !18, i64 28, !18, i64 32, !7, i64 36, !20, i64 80, !6, i64 112}
!15 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!17 = !{!"_ZTS4xy_t", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"float", !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 16}
!24 = !{!14, !6, i64 112}


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