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

; 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.nvinfer1::DynamicPluginTensorDesc" = type { %"struct.nvinfer1::PluginTensorDesc", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64" }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::DetectionOutputDynamic" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"struct.nvinfer1::plugin::DetectionOutputParameters", 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 }
%"struct.nvinfer1::plugin::DetectionOutputParameters" = type <{ i8, i8, [2 x i8], i32, i32, i32, i32, float, float, i32, [3 x i32], i8, i8, i8, i8 }>
%"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.2 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [71 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin22DetectionOutputDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS4_i(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  %15 = load ptr, ptr %6, align 8
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 3
  br i1 %17, label %20, label %18

18:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 539)
          to label %19 unwind label %175

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19, %5
  %21 = load i32, ptr %10, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 2
  br i1 %22, label %25, label %23

23:                                               ; preds = %20
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.16, ptr noundef @.str.2, i32 noundef 540)
          to label %24 unwind label %175

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %44, %25
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %47

31:                                               ; preds = %26
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %32, i64 %34
  %36 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = icmp eq i32 %39, 4
  br i1 %40, label %43, label %41

41:                                               ; preds = %31
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.21, ptr noundef @.str.2, i32 noundef 545)
          to label %42 unwind label %175

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42, %31
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %11, align 4, !tbaa !9
  br label %26, !llvm.loop !18

47:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %66, %47
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %69

53:                                               ; preds = %48
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %54, i64 %56
  %58 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = icmp eq i32 %61, 4
  br i1 %62, label %65, label %63

63:                                               ; preds = %53
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.22, ptr noundef @.str.2, i32 noundef 551)
          to label %64 unwind label %175

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %53
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %12, align 4, !tbaa !9
  br label %48, !llvm.loop !20

69:                                               ; preds = %52
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %72 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %71, i32 0, i32 10
  %73 = getelementptr inbounds [3 x i32], ptr %72, i64 0, i64 0
  %74 = load i32, ptr %73, align 8, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %70, i64 %75
  %77 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds [8 x i64], ptr %79, i64 0, i64 1
  %81 = load i64, ptr %80, align 8, !tbaa !21
  %82 = trunc i64 %81 to i32
  %83 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 2
  store i32 %82, ptr %83, align 8, !tbaa !23
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %86 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %85, i32 0, i32 10
  %87 = getelementptr inbounds [3 x i32], ptr %86, i64 0, i64 1
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %84, i64 %89
  %91 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds [8 x i64], ptr %93, i64 0, i64 1
  %95 = load i64, ptr %94, align 8, !tbaa !21
  %96 = trunc i64 %95 to i32
  %97 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 3
  store i32 %96, ptr %97, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 4, ptr %13, align 4, !tbaa !9
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %100 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %99, i32 0, i32 10
  %101 = getelementptr inbounds [3 x i32], ptr %100, i64 0, i64 2
  %102 = load i32, ptr %101, align 8, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %98, i64 %103
  %105 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %106, i32 0, i32 1
  %108 = getelementptr inbounds [8 x i64], ptr %107, i64 0, i64 2
  %109 = load i64, ptr %108, align 8, !tbaa !21
  %110 = sdiv i64 %109, 4
  %111 = trunc i64 %110 to i32
  %112 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 4
  store i32 %111, ptr %112, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %113 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %114 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %113, i32 0, i32 0
  %115 = load i8, ptr %114, align 8, !tbaa !35, !range !36, !noundef !37
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %118

117:                                              ; preds = %69
  br label %122

118:                                              ; preds = %69
  %119 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %120 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %119, i32 0, i32 4
  %121 = load i32, ptr %120, align 8, !tbaa !38
  br label %122

122:                                              ; preds = %118, %117
  %123 = phi i32 [ 1, %117 ], [ %121, %118 ]
  store i32 %123, ptr %14, align 4, !tbaa !9
  %124 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 4
  %125 = load i32, ptr %124, align 8, !tbaa !34
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = mul nsw i32 %125, %126
  %128 = mul nsw i32 %127, 4
  %129 = sext i32 %128 to i64
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %132 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %131, i32 0, i32 10
  %133 = getelementptr inbounds [3 x i32], ptr %132, i64 0, i64 0
  %134 = load i32, ptr %133, align 8, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %130, i64 %135
  %137 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds [8 x i64], ptr %139, i64 0, i64 1
  %141 = load i64, ptr %140, align 8, !tbaa !21
  %142 = icmp eq i64 %129, %141
  br i1 %142, label %145, label %143

143:                                              ; preds = %122
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.23, ptr noundef @.str.2, i32 noundef 564)
          to label %144 unwind label %175

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144, %122
  %146 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 4
  %147 = load i32, ptr %146, align 8, !tbaa !34
  %148 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %149 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %148, i32 0, i32 4
  %150 = load i32, ptr %149, align 8, !tbaa !38
  %151 = mul nsw i32 %147, %150
  %152 = sext i32 %151 to i64
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 1
  %155 = getelementptr inbounds %"struct.nvinfer1::plugin::DetectionOutputParameters", ptr %154, i32 0, i32 10
  %156 = getelementptr inbounds [3 x i32], ptr %155, i64 0, i64 1
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %153, i64 %158
  %160 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %161, i32 0, i32 1
  %163 = getelementptr inbounds [8 x i64], ptr %162, i64 0, i64 1
  %164 = load i64, ptr %163, align 8, !tbaa !21
  %165 = icmp eq i64 %152, %164
  br i1 %165, label %168, label %166

166:                                              ; preds = %145
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.24, ptr noundef @.str.2, i32 noundef 567)
          to label %167 unwind label %175

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167, %145
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %169, i64 0
  %171 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 8, !tbaa !39
  %174 = getelementptr inbounds %"class.nvinfer1::plugin::DetectionOutputDynamic", ptr %15, i32 0, i32 5
  store i32 %173, ptr %174, align 4, !tbaa !40
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret void

175:                                              ; preds = %166, %143, %63, %41, %23, %18
  %176 = landingpad { ptr, i32 }
          catch ptr null
  %177 = extractvalue { ptr, i32 } %176, 0
  call void @__clang_call_terminate(ptr %177) #5
  unreachable
}

attributes #0 = { 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 = { 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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !13, i64 0, !14, i64 88, !14, i64 160, !14, i64 232}
!13 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !14, i64 0, !15, i64 72, !16, i64 76, !17, i64 80}
!14 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!15 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!16 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !10, i64 56}
!24 = !{!"_ZTSN8nvinfer16plugin22DetectionOutputDynamicE", !25, i64 0, !28, i64 8, !10, i64 56, !10, i64 60, !10, i64 64, !15, i64 68, !10, i64 72, !31, i64 80}
!25 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !26, i64 0}
!26 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !27, i64 0}
!27 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!28 = !{!"_ZTSN8nvinfer16plugin25DetectionOutputParametersE", !29, i64 0, !29, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !17, i64 20, !17, i64 24, !30, i64 28, !7, i64 32, !29, i64 44, !29, i64 45, !29, i64 46}
!29 = !{!"bool", !7, i64 0}
!30 = !{!"_ZTSN8nvinfer16plugin11CodeTypeSSDE", !7, i64 0}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !32, i64 0, !22, i64 8, !7, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!33 = !{!24, !10, i64 60}
!34 = !{!24, !10, i64 64}
!35 = !{!24, !29, i64 8}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!24, !10, i64 16}
!39 = !{!12, !15, i64 72}
!40 = !{!24, !15, i64 68}


; 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.nvinfer1::DynamicPluginTensorDesc" = type { %"struct.nvinfer1::PluginTensorDesc", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64", %"class.nvinfer1::Dims64" }
%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str.2 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [71 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8nvinfer16plugin22DetectionOutputDynamic15configurePluginEPKNS_23DynamicPluginTensorDescEiS4_i(ptr nocapture noundef nonnull align 8 dereferenceable(112) %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = icmp eq i32 %2, 3
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 539)
          to label %8 unwind label %.loopexit.split-lp.loopexit.split-lp

8:                                                ; preds = %7, %5
  %9 = icmp eq i32 %4, 2
  br i1 %9, label %11, label %10

10:                                               ; preds = %8
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2, i32 noundef 540)
          to label %11 unwind label %.loopexit.split-lp.loopexit.split-lp

11:                                               ; preds = %10, %8
  %12 = icmp sgt i32 %2, 0
  br i1 %12, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %11
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %18, %11
  %13 = icmp sgt i32 %4, 0
  br i1 %13, label %.lr.ph25.preheader, label %._crit_edge

.lr.ph25.preheader:                               ; preds = %.preheader
  %wide.trip.count30 = zext nneg i32 %4 to i64
  br label %.lr.ph25

.lr.ph:                                           ; preds = %.lr.ph.preheader, %18
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %18 ]
  %14 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %1, i64 %indvars.iv
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, 4
  br i1 %16, label %18, label %17

17:                                               ; preds = %.lr.ph
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.2, i32 noundef 545)
          to label %18 unwind label %.loopexit.split-lp.loopexit

18:                                               ; preds = %.lr.ph, %17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %55, %.preheader
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load i32, ptr %20, align 8, !tbaa !17
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %1, i64 %22, i32 0, i32 0, i32 1, i64 1
  %24 = load i64, ptr %23, align 8, !tbaa !18
  %25 = trunc i64 %24 to i32
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %25, ptr %26, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %0, i64 44
  %28 = load i32, ptr %27, align 4, !tbaa !17
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %1, i64 %29, i32 0, i32 0, i32 1, i64 1
  %31 = load i64, ptr %30, align 8, !tbaa !18
  %32 = trunc i64 %31 to i32
  %33 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %32, ptr %33, align 4, !tbaa !31
  %34 = getelementptr inbounds i8, ptr %0, i64 48
  %35 = load i32, ptr %34, align 8, !tbaa !17
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %1, i64 %36, i32 0, i32 0, i32 1, i64 2
  %38 = load i64, ptr %37, align 8, !tbaa !18
  %39 = sdiv i64 %38, 4
  %40 = trunc i64 %39 to i32
  %41 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %40, ptr %41, align 8, !tbaa !32
  %42 = load i8, ptr %19, align 8, !tbaa !33, !range !34, !noundef !35
  %43 = trunc nuw i8 %42 to i1
  %44 = getelementptr inbounds i8, ptr %0, i64 16
  %45 = load i32, ptr %44, align 8
  %46 = select i1 %43, i32 1, i32 %45
  %47 = shl i32 %40, 2
  %48 = mul i32 %47, %46
  %49 = sext i32 %48 to i64
  %50 = icmp eq i64 %24, %49
  br i1 %50, label %57, label %56

.lr.ph25:                                         ; preds = %.lr.ph25.preheader, %55
  %indvars.iv27 = phi i64 [ 0, %.lr.ph25.preheader ], [ %indvars.iv.next28, %55 ]
  %51 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %3, i64 %indvars.iv27
  %52 = load i32, ptr %51, align 8, !tbaa !5
  %53 = icmp eq i32 %52, 4
  br i1 %53, label %55, label %54

54:                                               ; preds = %.lr.ph25
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.2, i32 noundef 551)
          to label %55 unwind label %.loopexit

55:                                               ; preds = %.lr.ph25, %54
  %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1
  %exitcond31.not = icmp eq i64 %indvars.iv.next28, %wide.trip.count30
  br i1 %exitcond31.not, label %._crit_edge, label %.lr.ph25, !llvm.loop !36

56:                                               ; preds = %._crit_edge
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.2, i32 noundef 564)
          to label %._crit_edge32 unwind label %.loopexit.split-lp.loopexit.split-lp

._crit_edge32:                                    ; preds = %56
  %.pre = load i32, ptr %41, align 8, !tbaa !32
  %.pre33 = load i32, ptr %44, align 8, !tbaa !37
  %.pre34 = load i32, ptr %27, align 4, !tbaa !17
  %.phi.trans.insert = sext i32 %.pre34 to i64
  %.phi.trans.insert35 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %1, i64 %.phi.trans.insert, i32 0, i32 0, i32 1, i64 1
  %.pre36 = load i64, ptr %.phi.trans.insert35, align 8, !tbaa !18
  br label %57

57:                                               ; preds = %._crit_edge32, %._crit_edge
  %58 = phi i64 [ %.pre36, %._crit_edge32 ], [ %31, %._crit_edge ]
  %59 = phi i32 [ %.pre33, %._crit_edge32 ], [ %45, %._crit_edge ]
  %60 = phi i32 [ %.pre, %._crit_edge32 ], [ %40, %._crit_edge ]
  %61 = mul nsw i32 %59, %60
  %62 = sext i32 %61 to i64
  %63 = icmp eq i64 %58, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %57
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.2, i32 noundef 567)
          to label %65 unwind label %.loopexit.split-lp.loopexit.split-lp

65:                                               ; preds = %64, %57
  %66 = getelementptr inbounds i8, ptr %1, i64 72
  %67 = load i32, ptr %66, align 8, !tbaa !38
  %68 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %67, ptr %68, align 4, !tbaa !39
  ret void

.loopexit:                                        ; preds = %54
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %17
  %lpad.loopexit20 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %64, %56, %10, %7
  %lpad.loopexit.split-lp21 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit20, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp21, %.loopexit.split-lp.loopexit.split-lp ]
  %69 = extractvalue { ptr, i32 } %lpad.phi, 0
  tail call void @__clang_call_terminate(ptr %69) #3
  unreachable
}

attributes #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 #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 = { 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 = { 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, !9, i64 0}
!6 = !{!"_ZTSN8nvinfer123DynamicPluginTensorDescE", !7, i64 0, !8, i64 88, !8, i64 160, !8, i64 232}
!7 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !8, i64 0, !12, i64 72, !13, i64 76, !14, i64 80}
!8 = !{!"_ZTSN8nvinfer16Dims64E", !9, i64 0, !10, i64 8}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN8nvinfer18DataTypeE", !10, i64 0}
!13 = !{!"_ZTSN8nvinfer112TensorFormatE", !10, i64 0}
!14 = !{!"float", !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!9, !9, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !10, i64 0}
!20 = !{!21, !9, i64 56}
!21 = !{!"_ZTSN8nvinfer16plugin22DetectionOutputDynamicE", !22, i64 0, !25, i64 8, !9, i64 56, !9, i64 60, !9, i64 64, !12, i64 68, !9, i64 72, !28, i64 80}
!22 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!25 = !{!"_ZTSN8nvinfer16plugin25DetectionOutputParametersE", !26, i64 0, !26, i64 1, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !14, i64 20, !14, i64 24, !27, i64 28, !10, i64 32, !26, i64 44, !26, i64 45, !26, i64 46}
!26 = !{!"bool", !10, i64 0}
!27 = !{!"_ZTSN8nvinfer16plugin11CodeTypeSSDE", !10, i64 0}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !19, i64 8, !10, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !30, i64 0}
!30 = !{!"any pointer", !10, i64 0}
!31 = !{!21, !9, i64 60}
!32 = !{!21, !9, i64 64}
!33 = !{!21, !26, i64 8}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = distinct !{!36, !16}
!37 = !{!21, !9, i64 16}
!38 = !{!6, !12, i64 72}
!39 = !{!21, !12, i64 68}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass