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

; 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::plugin::RegionParameters" = type { i32, i32, i32, ptr }
%"struct.nvinfer1::PluginFieldCollection" = type { i32, ptr }
%"class.nvinfer1::PluginField" = type { ptr, ptr, i32, i32 }
%"class.nvinfer1::plugin::RegionPluginCreator" = type { %"class.nvinfer1::pluginInternal::BaseCreator", %"struct.nvinfer1::plugin::RegionParameters" }
%"class.nvinfer1::pluginInternal::BaseCreator" = type { %"class.nvinfer1::v_1_0::IPluginCreator", %"class.std::__cxx11::basic_string" }
%"class.nvinfer1::v_1_0::IPluginCreator" = type { %"class.nvinfer1::v_1_0::IPluginCreatorInterface" }
%"class.nvinfer1::v_1_0::IPluginCreatorInterface" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::IVersionedInterface" = 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 = external hidden unnamed_addr constant [86 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@__func__._ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [42 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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #6 align 2

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

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

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.nvinfer1::plugin::RegionParameters", align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.nvinfer1::PluginFieldCollection", ptr %18, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  store ptr %20, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !12
  br label %21

21:                                               ; preds = %125, %3
  %22 = load i32, ptr %9, align 4, !tbaa !12
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.nvinfer1::PluginFieldCollection", ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = icmp slt i32 %22, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %128

28:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i32, ptr %9, align 4, !tbaa !12
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %29, i64 %31
  %33 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  store ptr %34, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = call i32 @strcmp(ptr noundef %35, ptr noundef @.str.12) #11
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %62, label %38

38:                                               ; preds = %28
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i32, ptr %9, align 4, !tbaa !12
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %39, i64 %41
  %43 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = icmp eq i32 %44, 5
  br i1 %45, label %52, label %46

46:                                               ; preds = %38
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 516, i32 noundef 0, ptr noundef @.str.16) #12
          to label %47 unwind label %48

47:                                               ; preds = %46
  unreachable

48:                                               ; preds = %98, %74, %46
  %49 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %11, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %149

52:                                               ; preds = %38
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i32, ptr %9, align 4, !tbaa !12
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %53, i64 %55
  %57 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %56, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = load i32, ptr %58, align 4, !tbaa !12
  %60 = getelementptr inbounds %"class.nvinfer1::plugin::RegionPluginCreator", ptr %17, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.nvinfer1::plugin::RegionParameters", ptr %60, i32 0, i32 0
  store i32 %59, ptr %61, align 8, !tbaa !19
  br label %62

62:                                               ; preds = %52, %28
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call i32 @strcmp(ptr noundef %63, ptr noundef @.str.13) #11
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %86, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !12
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %67, i64 %69
  %71 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp eq i32 %72, 5
  br i1 %73, label %76, label %74

74:                                               ; preds = %66
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 521, i32 noundef 0, ptr noundef @.str.16) #12
          to label %75 unwind label %48

75:                                               ; preds = %74
  unreachable

76:                                               ; preds = %66
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !12
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %77, i64 %79
  %81 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::RegionPluginCreator", ptr %17, i32 0, i32 1
  %85 = getelementptr inbounds %"struct.nvinfer1::plugin::RegionParameters", ptr %84, i32 0, i32 1
  store i32 %83, ptr %85, align 4, !tbaa !29
  br label %86

86:                                               ; preds = %76, %62
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call i32 @strcmp(ptr noundef %87, ptr noundef @.str.14) #11
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %110, label %90

90:                                               ; preds = %86
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !12
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %91, i64 %93
  %95 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !17
  %97 = icmp eq i32 %96, 5
  br i1 %97, label %100, label %98

98:                                               ; preds = %90
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef 526, i32 noundef 0, ptr noundef @.str.16) #12
          to label %99 unwind label %48

99:                                               ; preds = %98
  unreachable

100:                                              ; preds = %90
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i32, ptr %9, align 4, !tbaa !12
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %101, i64 %103
  %105 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  %107 = load i32, ptr %106, align 4, !tbaa !12
  %108 = getelementptr inbounds %"class.nvinfer1::plugin::RegionPluginCreator", ptr %17, i32 0, i32 1
  %109 = getelementptr inbounds %"struct.nvinfer1::plugin::RegionParameters", ptr %108, i32 0, i32 2
  store i32 %107, ptr %109, align 8, !tbaa !30
  br label %110

110:                                              ; preds = %100, %86
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = call i32 @strcmp(ptr noundef %111, ptr noundef @.str.15) #11
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %124, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i32, ptr %9, align 4, !tbaa !12
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %115, i64 %117
  %119 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !18
  store ptr %120, ptr %13, align 8, !tbaa !5
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.nvinfer1::plugin::RegionPluginCreator", ptr %17, i32 0, i32 1
  %123 = getelementptr inbounds %"struct.nvinfer1::plugin::RegionParameters", ptr %122, i32 0, i32 3
  store ptr %121, ptr %123, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %124

124:                                              ; preds = %114, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %9, align 4, !tbaa !12
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %9, align 4, !tbaa !12
  br label %21, !llvm.loop !32

128:                                              ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %129 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 88) #13
          to label %130 unwind label %140

130:                                              ; preds = %128
  %131 = getelementptr inbounds %"class.nvinfer1::plugin::RegionPluginCreator", ptr %17, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %131, i64 24, i1 false), !tbaa.struct !34
  invoke void @_ZN8nvinfer16plugin6RegionC1ENS0_16RegionParametersE(ptr noundef nonnull align 8 dereferenceable(88) %129, ptr noundef byval(%"struct.nvinfer1::plugin::RegionParameters") align 8 %15)
          to label %132 unwind label %144

132:                                              ; preds = %130
  store ptr %129, ptr %14, align 8, !tbaa !5
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %"class.nvinfer1::pluginInternal::BaseCreator", ptr %17, i32 0, i32 1
  %135 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %134) #10
  %136 = load ptr, ptr %133, align 8, !tbaa !35
  %137 = getelementptr inbounds ptr, ptr %136, i64 15
  %138 = load ptr, ptr %137, align 8
  call void %138(ptr noundef nonnull align 8 dereferenceable(88) %133, ptr noundef %135) #10
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %139, ptr %4, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  br label %161

140:                                              ; preds = %128
  %141 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %11, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %12, align 4
  br label %148

144:                                              ; preds = %130
  %145 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %11, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %129, i64 noundef 88) #14
  br label %148

148:                                              ; preds = %144, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  br label %149

149:                                              ; preds = %148, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %12, align 4
  %152 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #10
  %153 = icmp eq i32 %151, %152
  br i1 %153, label %154, label %166

154:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %155 = load ptr, ptr %11, align 8
  %156 = call ptr @__cxa_begin_catch(ptr %155) #10
  store ptr %156, ptr %16, align 8
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %157)
          to label %158 unwind label %163

158:                                              ; preds = %154
  invoke void @__cxa_end_catch()
          to label %159 unwind label %163

159:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %160

160:                                              ; preds = %159
  store ptr null, ptr %4, align 8
  br label %161

161:                                              ; preds = %160, %132
  %162 = load ptr, ptr %4, align 8
  ret ptr %162

163:                                              ; preds = %158, %154
  %164 = landingpad { ptr, i32 }
          catch ptr null
  %165 = extractvalue { ptr, i32 } %164, 0
  call void @__clang_call_terminate(ptr %165) #15
  unreachable

166:                                              ; preds = %150
  %167 = load ptr, ptr %11, align 8
  call void @__clang_call_terminate(ptr %167) #15
  unreachable
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #9

declare void @_ZN8nvinfer16plugin6RegionC1ENS0_16RegionParametersE(ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin 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 = { 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 #7 = { nounwind memory(none) }
attributes #8 = { 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 #9 = { nounwind willreturn memory(read) "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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { builtin nounwind }
attributes #15 = { 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, !6, i64 8}
!10 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !11, i64 0, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN8nvinfer111PluginFieldE", !6, i64 0, !6, i64 8, !16, i64 16, !11, i64 20}
!16 = !{!"_ZTSN8nvinfer115PluginFieldTypeE", !7, i64 0}
!17 = !{!15, !16, i64 16}
!18 = !{!15, !6, i64 8}
!19 = !{!20, !11, i64 40}
!20 = !{!"_ZTSN8nvinfer16plugin19RegionPluginCreatorE", !21, i64 0, !28, i64 40}
!21 = !{!"_ZTSN8nvinfer114pluginInternal11BaseCreatorE", !22, i64 0, !25, i64 8}
!22 = !{!"_ZTSN8nvinfer15v_1_014IPluginCreatorE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer15v_1_023IPluginCreatorInterfaceE", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !27, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSN8nvinfer16plugin16RegionParametersE", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!29 = !{!20, !11, i64 44}
!30 = !{!20, !11, i64 48}
!31 = !{!20, !6, i64 56}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 16, i64 8, !5}
!35 = !{!36, !36, i64 0}
!36 = !{!"vtable pointer", !8, i64 0}


; 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::PluginField" = type { ptr, ptr, i32, i32 }
%"struct.nvinfer1::plugin::RegionParameters" = type { i32, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@__func__._ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [42 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

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

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readonly %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load i32, ptr %2, align 8, !tbaa !11
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = getelementptr inbounds i8, ptr %0, i64 44
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %13

._crit_edge:                                      ; preds = %53, %3
  %12 = invoke noalias noundef nonnull dereferenceable(88) ptr @_Znwm(i64 noundef 88) #8
          to label %54 unwind label %62

13:                                               ; preds = %.lr.ph, %53
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %53 ]
  %14 = getelementptr inbounds %"class.nvinfer1::PluginField", ptr %5, i64 %indvars.iv
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %17, label %27

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %14, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !15
  %20 = icmp eq i32 %19, 5
  br i1 %20, label %23, label %.invoke

21:                                               ; preds = %.invoke
  %22 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %66

23:                                               ; preds = %17
  %24 = getelementptr inbounds i8, ptr %14, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = load i32, ptr %25, align 4, !tbaa !17
  store i32 %26, ptr %8, align 8, !tbaa !18
  br label %27

27:                                               ; preds = %23, %13
  %28 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.13) #9
  %.not37 = icmp eq i32 %28, 0
  br i1 %.not37, label %29, label %37

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %14, i64 16
  %31 = load i32, ptr %30, align 8, !tbaa !15
  %32 = icmp eq i32 %31, 5
  br i1 %32, label %33, label %.invoke

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %14, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !16
  %36 = load i32, ptr %35, align 4, !tbaa !17
  store i32 %36, ptr %9, align 4, !tbaa !28
  br label %37

37:                                               ; preds = %33, %27
  %38 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.14) #9
  %.not38 = icmp eq i32 %38, 0
  br i1 %.not38, label %39, label %48

39:                                               ; preds = %37
  %40 = getelementptr inbounds i8, ptr %14, i64 16
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = icmp eq i32 %41, 5
  br i1 %42, label %44, label %.invoke

.invoke:                                          ; preds = %17, %39, %29
  %43 = phi i32 [ 521, %29 ], [ 526, %39 ], [ 516, %17 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin19RegionPluginCreator12createPluginEPKcPKNS_21PluginFieldCollectionE, i32 noundef %43, i32 noundef 0, ptr noundef nonnull @.str.16) #10
          to label %.cont unwind label %21

.cont:                                            ; preds = %.invoke
  unreachable

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %14, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !16
  %47 = load i32, ptr %46, align 4, !tbaa !17
  store i32 %47, ptr %10, align 8, !tbaa !29
  br label %48

48:                                               ; preds = %44, %37
  %49 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %15, ptr noundef nonnull dereferenceable(1) @.str.15) #9
  %.not41 = icmp eq i32 %49, 0
  br i1 %.not41, label %50, label %53

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %14, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  store ptr %52, ptr %11, align 8, !tbaa !30
  br label %53

53:                                               ; preds = %50, %48
  %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 %._crit_edge, label %13, !llvm.loop !31

54:                                               ; preds = %._crit_edge
  %55 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN8nvinfer16plugin6RegionC1ENS0_16RegionParametersE(ptr noundef nonnull align 8 dereferenceable(88) %12, ptr noundef nonnull byval(%"struct.nvinfer1::plugin::RegionParameters") align 8 %55)
          to label %56 unwind label %64

56:                                               ; preds = %54
  %57 = getelementptr inbounds i8, ptr %0, i64 8
  %58 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %57) #11
  %59 = load ptr, ptr %12, align 8, !tbaa !33
  %60 = getelementptr inbounds i8, ptr %59, i64 120
  %61 = load ptr, ptr %60, align 8
  tail call void %61(ptr noundef nonnull align 8 dereferenceable(88) %12, ptr noundef %58) #11
  br label %72

62:                                               ; preds = %._crit_edge
  %63 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %66

64:                                               ; preds = %54
  %65 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  tail call void @_ZdlPvm(ptr noundef nonnull %12, i64 noundef 88) #12
  br label %66

66:                                               ; preds = %62, %64, %21
  %.pn39 = phi { ptr, i32 } [ %22, %21 ], [ %65, %64 ], [ %63, %62 ]
  %.1 = extractvalue { ptr, i32 } %.pn39, 0
  %.135 = extractvalue { ptr, i32 } %.pn39, 1
  %67 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #11
  %68 = icmp eq i32 %.135, %67
  br i1 %68, label %69, label %76

69:                                               ; preds = %66
  %70 = tail call ptr @__cxa_begin_catch(ptr %.1) #11
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %70)
          to label %71 unwind label %73

71:                                               ; preds = %69
  invoke void @__cxa_end_catch()
          to label %72 unwind label %73

72:                                               ; preds = %71, %56
  %.0 = phi ptr [ %12, %56 ], [ null, %71 ]
  ret ptr %.0

73:                                               ; preds = %71, %69
  %74 = landingpad { ptr, i32 }
          catch ptr null
  %75 = extractvalue { ptr, i32 } %74, 0
  tail call void @__clang_call_terminate(ptr %75) #13
  unreachable

76:                                               ; preds = %66
  tail call void @__clang_call_terminate(ptr %.1) #13
  unreachable
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

declare void @_ZN8nvinfer16plugin6RegionC1ENS0_16RegionParametersE(ptr, ptr) local_unnamed_addr

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { nofree nosync nounwind memory(none) }
attributes #6 = { 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 #7 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn }
attributes #11 = { nounwind }
attributes #12 = { builtin nounwind }
attributes #13 = { 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, !10, i64 8}
!6 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"_ZTSN8nvinfer111PluginFieldE", !10, i64 0, !10, i64 8, !14, i64 16, !7, i64 20}
!14 = !{!"_ZTSN8nvinfer115PluginFieldTypeE", !8, i64 0}
!15 = !{!13, !14, i64 16}
!16 = !{!13, !10, i64 8}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 40}
!19 = !{!"_ZTSN8nvinfer16plugin19RegionPluginCreatorE", !20, i64 0, !27, i64 40}
!20 = !{!"_ZTSN8nvinfer114pluginInternal11BaseCreatorE", !21, i64 0, !24, i64 8}
!21 = !{!"_ZTSN8nvinfer15v_1_014IPluginCreatorE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer15v_1_023IPluginCreatorInterfaceE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !8, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!26 = !{!"long", !8, i64 0}
!27 = !{!"_ZTSN8nvinfer16plugin16RegionParametersE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!28 = !{!19, !7, i64 44}
!29 = !{!19, !7, i64 48}
!30 = !{!19, !10, i64 56}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !9, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass