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

%"class.nvinfer1::Dims3" = type { %"class.nvinfer1::Dims2" }
%"class.nvinfer1::Dims2" = type { %"class.nvinfer1::Dims64" }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%struct.xy_t = type { i32, i32 }
%"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] }

@_ZN14MaskRCNNConfigL11IMAGE_SHAPEE = external hidden global %"class.nvinfer1::Dims3", align 8

; 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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin15PyramidROIAlign7enqueueEiPKPKvPKPvS6_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca %struct.xy_t, align 4
  %17 = alloca %struct.xy_t, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %struct.xy_t, align 4
  %22 = alloca %struct.xy_t, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %23 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = getelementptr inbounds ptr, ptr %24, i64 0
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %27 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 11
  %28 = load i8, ptr %27, align 8, !tbaa !11, !range !20, !noundef !21
  %29 = trunc i8 %28 to i1
  br i1 %29, label %30, label %76

30:                                               ; preds = %6
  %31 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 6
  store i32 -1, ptr %31, align 4, !tbaa !22
  %32 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 9
  store i8 0, ptr %32, align 2, !tbaa !23
  %33 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 8
  store i8 1, ptr %33, align 1, !tbaa !24
  %34 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 7
  store i8 0, ptr %34, align 8, !tbaa !25
  %35 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 10
  store i32 1, ptr %35, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %36 = load i64, ptr getelementptr inbounds ([8 x i64], ptr getelementptr inbounds (%"class.nvinfer1::Dims64", ptr @_ZN14MaskRCNNConfigL11IMAGE_SHAPEE, i32 0, i32 1), i64 0, i64 1), align 8, !tbaa !27
  %37 = load i64, ptr getelementptr inbounds ([8 x i64], ptr getelementptr inbounds (%"class.nvinfer1::Dims64", ptr @_ZN14MaskRCNNConfigL11IMAGE_SHAPEE, i32 0, i32 1), i64 0, i64 2), align 8, !tbaa !27
  %38 = mul nsw i64 %36, %37
  %39 = sitofp i64 %38 to float
  %40 = fdiv float 1.003520e+05, %39
  %41 = fdiv float %40, 1.600000e+01
  store float %41, ptr %15, align 4, !tbaa !28
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %44, i64 8, i1 false), !tbaa.struct !30
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 3
  %46 = load i32, ptr %45, align 8, !tbaa !31
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 4
  %48 = load i32, ptr %47, align 4, !tbaa !32
  %49 = load float, ptr %15, align 4, !tbaa !28
  %50 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 6
  %51 = load i32, ptr %50, align 4, !tbaa !22
  %52 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 7
  %53 = load i8, ptr %52, align 8, !tbaa !25, !range !20, !noundef !21
  %54 = trunc i8 %53 to i1
  %55 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 8
  %56 = load i8, ptr %55, align 1, !tbaa !24, !range !20, !noundef !21
  %57 = trunc i8 %56 to i1
  %58 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 9
  %59 = load i8, ptr %58, align 2, !tbaa !23, !range !20, !noundef !21
  %60 = trunc i8 %59 to i1
  %61 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 10
  %62 = load i32, ptr %61, align 4, !tbaa !26
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds ptr, ptr %63, i64 0
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i64 1
  %68 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 12
  %69 = getelementptr inbounds [4 x %struct.xy_t], ptr %68, i64 0, i64 0
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %71, i64 8, i1 false), !tbaa.struct !30
  %72 = load i64, ptr %16, align 4
  %73 = load i64, ptr %17, align 4
  %74 = invoke noundef i32 @_Z8roiAlignP11CUstream_sti4xy_tiifibbbiPKvPKS3_PKS1_PvS1_(ptr noundef %42, i32 noundef %43, i64 %72, i32 noundef %46, i32 noundef %48, float noundef %49, i32 noundef %51, i1 noundef zeroext %54, i1 noundef zeroext %57, i1 noundef zeroext %60, i32 noundef %62, ptr noundef %65, ptr noundef %67, ptr noundef %69, ptr noundef %70, i64 %73)
          to label %75 unwind label %133

75:                                               ; preds = %30
  store i32 %74, ptr %14, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %131

76:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 5
  %78 = load i32, ptr %77, align 8, !tbaa !35
  %79 = sitofp i32 %78 to float
  store float %79, ptr %18, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %80 = load float, ptr %18, align 4, !tbaa !28
  %81 = load float, ptr %18, align 4, !tbaa !28
  %82 = fmul float %80, %81
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 2
  %84 = getelementptr inbounds %struct.xy_t, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !36
  %86 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 2
  %87 = getelementptr inbounds %struct.xy_t, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !37
  %89 = mul nsw i32 %85, %88
  %90 = sitofp i32 %89 to float
  %91 = fdiv float %82, %90
  %92 = call float @sqrtf(float noundef %91) #6
  store float %92, ptr %19, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %93 = load float, ptr %19, align 4, !tbaa !28
  %94 = load float, ptr %19, align 4, !tbaa !28
  %95 = fmul float %93, %94
  %96 = fdiv float %95, 4.000000e+00
  store float %96, ptr %20, align 4, !tbaa !28
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %99, i64 8, i1 false), !tbaa.struct !30
  %100 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 3
  %101 = load i32, ptr %100, align 8, !tbaa !31
  %102 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 4
  %103 = load i32, ptr %102, align 4, !tbaa !32
  %104 = load float, ptr %20, align 4, !tbaa !28
  %105 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 6
  %106 = load i32, ptr %105, align 4, !tbaa !22
  %107 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 7
  %108 = load i8, ptr %107, align 8, !tbaa !25, !range !20, !noundef !21
  %109 = trunc i8 %108 to i1
  %110 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 8
  %111 = load i8, ptr %110, align 1, !tbaa !24, !range !20, !noundef !21
  %112 = trunc i8 %111 to i1
  %113 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 9
  %114 = load i8, ptr %113, align 2, !tbaa !23, !range !20, !noundef !21
  %115 = trunc i8 %114 to i1
  %116 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 10
  %117 = load i32, ptr %116, align 4, !tbaa !26
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds ptr, ptr %118, i64 0
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %121, i64 1
  %123 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 12
  %124 = getelementptr inbounds [4 x %struct.xy_t], ptr %123, i64 0, i64 0
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.nvinfer1::plugin::PyramidROIAlign", ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %126, i64 8, i1 false), !tbaa.struct !30
  %127 = load i64, ptr %21, align 4
  %128 = load i64, ptr %22, align 4
  %129 = invoke noundef i32 @_Z8roiAlignP11CUstream_sti4xy_tiifibbbiPKvPKS3_PKS1_PvS1_(ptr noundef %97, i32 noundef %98, i64 %127, i32 noundef %101, i32 noundef %103, float noundef %104, i32 noundef %106, i1 noundef zeroext %109, i1 noundef zeroext %112, i1 noundef zeroext %115, i32 noundef %117, ptr noundef %120, ptr noundef %122, ptr noundef %124, ptr noundef %125, i64 %128)
          to label %130 unwind label %133

130:                                              ; preds = %76
  store i32 %129, ptr %14, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %131

131:                                              ; preds = %130, %75
  %132 = load i32, ptr %14, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret i32 %132

133:                                              ; preds = %76, %30
  %134 = landingpad { ptr, i32 }
          catch ptr null
  %135 = extractvalue { ptr, i32 } %134, 0
  call void @__clang_call_terminate(ptr %135) #7
  unreachable
}

declare noundef i32 @_Z8roiAlignP11CUstream_sti4xy_tiifibbbiPKvPKS3_PKS1_PvS1_(ptr noundef, i32 noundef, i64, i32 noundef, i32 noundef, float noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64) #4

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { "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 "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, !16, i64 48}
!12 = !{!"_ZTSN8nvinfer16plugin15PyramidROIAlignE", !13, i64 0, !15, i64 8, !15, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !16, i64 40, !16, i64 41, !16, i64 42, !10, i64 44, !16, i64 48, !7, i64 52, !17, i64 88}
!13 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!15 = !{!"_ZTS4xy_t", !10, i64 0, !10, i64 4}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !10, i64 36}
!23 = !{!12, !16, i64 42}
!24 = !{!12, !16, i64 41}
!25 = !{!12, !16, i64 40}
!26 = !{!12, !10, i64 44}
!27 = !{!19, !19, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!31 = !{!12, !10, i64 24}
!32 = !{!12, !10, i64 28}
!33 = !{!34, !34, i64 0}
!34 = !{!"_ZTS9cudaError", !7, i64 0}
!35 = !{!12, !10, i64 32}
!36 = !{!12, !10, i64 16}
!37 = !{!12, !10, i64 20}


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

%"class.nvinfer1::Dims3" = type { %"class.nvinfer1::Dims2" }
%"class.nvinfer1::Dims2" = type { %"class.nvinfer1::Dims64" }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@_ZN14MaskRCNNConfigL11IMAGE_SHAPEE = external hidden local_unnamed_addr global %"class.nvinfer1::Dims3", align 8

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin15PyramidROIAlign7enqueueEiPKPKvPKPvS6_P11CUstream_st(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readnone %4, ptr noundef %5) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = load i8, ptr %8, align 8, !tbaa !9, !range !19, !noundef !20
  %10 = trunc nuw i8 %9 to i1
  br i1 %10, label %11, label %24

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 -1, ptr %12, align 4, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %0, i64 42
  store i8 0, ptr %13, align 2, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %0, i64 41
  store i8 1, ptr %14, align 1, !tbaa !23
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  store i8 0, ptr %15, align 8, !tbaa !24
  %16 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 1, ptr %16, align 4, !tbaa !25
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @_ZN14MaskRCNNConfigL11IMAGE_SHAPEE, i64 16), align 8, !tbaa !26
  %18 = load i64, ptr getelementptr inbounds (i8, ptr @_ZN14MaskRCNNConfigL11IMAGE_SHAPEE, i64 24), align 8, !tbaa !26
  %19 = mul nsw i64 %18, %17
  %20 = sitofp i64 %19 to float
  %21 = fdiv float 1.003520e+05, %20
  %22 = fmul float %21, 6.250000e-02
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  br label %.invoke

24:                                               ; preds = %6
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = load i32, ptr %25, align 8, !tbaa !27
  %27 = sitofp i32 %26 to float
  %28 = fmul float %27, %27
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i32, ptr %29, align 8, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %0, i64 20
  %32 = load i32, ptr %31, align 4, !tbaa !29
  %33 = mul nsw i32 %32, %30
  %34 = sitofp i32 %33 to float
  %35 = fdiv float %28, %34
  %36 = tail call float @sqrtf(float noundef %35) #4
  %37 = fmul float %36, %36
  %38 = fmul float %37, 2.500000e-01
  %39 = getelementptr inbounds i8, ptr %0, i64 36
  %40 = load i32, ptr %39, align 4, !tbaa !21
  %41 = getelementptr inbounds i8, ptr %0, i64 40
  %42 = load i8, ptr %41, align 8, !tbaa !24, !range !19, !noundef !20
  %43 = trunc nuw i8 %42 to i1
  %44 = getelementptr inbounds i8, ptr %0, i64 41
  %45 = load i8, ptr %44, align 1, !tbaa !23, !range !19, !noundef !20
  %46 = trunc nuw i8 %45 to i1
  %47 = getelementptr inbounds i8, ptr %0, i64 42
  %48 = load i8, ptr %47, align 2, !tbaa !22, !range !19, !noundef !20
  %49 = trunc nuw i8 %48 to i1
  %50 = getelementptr inbounds i8, ptr %0, i64 44
  %51 = load i32, ptr %50, align 4, !tbaa !25
  br label %.invoke

.invoke:                                          ; preds = %11, %24
  %.in = phi ptr [ %29, %24 ], [ %23, %11 ]
  %52 = phi float [ %38, %24 ], [ %22, %11 ]
  %53 = phi i32 [ %40, %24 ], [ -1, %11 ]
  %54 = phi i1 [ %43, %24 ], [ false, %11 ]
  %55 = phi i1 [ %46, %24 ], [ true, %11 ]
  %56 = phi i1 [ %49, %24 ], [ false, %11 ]
  %57 = phi i32 [ %51, %24 ], [ 1, %11 ]
  %.in22 = getelementptr inbounds i8, ptr %0, i64 28
  %58 = load i32, ptr %.in22, align 4, !tbaa !30
  %.in21 = getelementptr inbounds i8, ptr %0, i64 24
  %59 = load i32, ptr %.in21, align 8, !tbaa !31
  %60 = load i64, ptr %.in, align 8
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %2, i64 8
  %63 = getelementptr inbounds i8, ptr %0, i64 52
  %64 = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.06.0.copyload = load i64, ptr %64, align 8
  %65 = invoke noundef i32 @_Z8roiAlignP11CUstream_sti4xy_tiifibbbiPKvPKS3_PKS1_PvS1_(ptr noundef %5, i32 noundef %1, i64 %60, i32 noundef %59, i32 noundef %58, float noundef %52, i32 noundef %53, i1 noundef zeroext %54, i1 noundef zeroext %55, i1 noundef zeroext %56, i32 noundef %57, ptr noundef %61, ptr noundef nonnull %62, ptr noundef nonnull %63, ptr noundef %7, i64 %.sroa.06.0.copyload)
          to label %66 unwind label %67

66:                                               ; preds = %.invoke
  ret i32 %65

67:                                               ; preds = %.invoke
  %68 = landingpad { ptr, i32 }
          catch ptr null
  %69 = extractvalue { ptr, i32 } %68, 0
  tail call void @__clang_call_terminate(ptr %69) #5
  unreachable
}

declare noundef i32 @_Z8roiAlignP11CUstream_sti4xy_tiifibbbiPKvPKS3_PKS1_PvS1_(ptr noundef, i32 noundef, i64, i32 noundef, i32 noundef, float noundef, i32 noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #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 nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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, !15, i64 48}
!10 = !{!"_ZTSN8nvinfer16plugin15PyramidROIAlignE", !11, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !15, i64 40, !15, i64 41, !15, i64 42, !14, i64 44, !15, i64 48, !7, i64 52, !16, i64 88}
!11 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!13 = !{!"_ZTS4xy_t", !14, i64 0, !14, i64 4}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !14, i64 36}
!22 = !{!10, !15, i64 42}
!23 = !{!10, !15, i64 41}
!24 = !{!10, !15, i64 40}
!25 = !{!10, !14, i64 44}
!26 = !{!18, !18, i64 0}
!27 = !{!10, !14, i64 32}
!28 = !{!10, !14, i64 16}
!29 = !{!10, !14, i64 20}
!30 = !{!10, !14, i64 28}
!31 = !{!10, !14, i64 24}


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