; LLVM IR from NVIDIA/TensorRT :: plugin/embLayerNormPlugin (embLayerNormVarSeqlenPlugin)

; 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::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }
%"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase" = type { %"class.nvinfer1::v_1_0::IPluginV3", %"class.nvinfer1::v_1_0::IPluginV3OneCore", %"class.nvinfer1::v_1_0::IPluginV3OneBuild", %"class.nvinfer1::v_1_0::IPluginV3OneRuntime", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr.6", %"class.std::unique_ptr.6", %"class.std::unique_ptr.6", i64, i64, i64, i64, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, %"class.std::vector", %"struct.nvinfer1::PluginFieldCollection" }
%"class.nvinfer1::v_1_0::IPluginV3" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::IVersionedInterface" = type { ptr }
%"class.nvinfer1::v_1_0::IPluginV3OneCore" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginCapability" = type { %"class.nvinfer1::IVersionedInterface" }
%"class.nvinfer1::v_1_0::IPluginV3OneBuild" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"class.nvinfer1::v_1_0::IPluginV3OneRuntime" = type { %"class.nvinfer1::v_1_0::IPluginCapability" }
%"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] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.5" }
%"struct.std::_Head_base.5" = type { ptr }
%"class.std::unique_ptr.6" = type { %"struct.std::__uniq_ptr_data.7" }
%"struct.std::__uniq_ptr_data.7" = type { %"class.std::__uniq_ptr_impl.8" }
%"class.std::__uniq_ptr_impl.8" = type { %"class.std::tuple.9" }
%"class.std::tuple.9" = type { %"struct.std::_Tuple_impl.10" }
%"struct.std::_Tuple_impl.10" = type { %"struct.std::_Head_base.13" }
%"struct.std::_Head_base.13" = type { ptr }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl" = type { %"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" }
%"struct.std::_Vector_base<nvinfer1::PluginField, std::allocator<nvinfer1::PluginField>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.nvinfer1::PluginFieldCollection" = type { i32, ptr }

@.str = external hidden unnamed_addr constant [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.23 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace13onShapeChangeEPKNS_16PluginTensorDescEiS5_i(ptr noundef nonnull align 8 dereferenceable(336) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  %15 = load ptr, ptr %7, align 8
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  %19 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef %16, i32 noundef %17, ptr noundef %18, i32 noundef %19) #6
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %20, i64 0
  %22 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %22, i32 0, i32 1
  %24 = getelementptr inbounds [8 x i64], ptr %23, i64 0, i64 1
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 11
  %27 = load i64, ptr %26, align 8, !tbaa !13
  %28 = icmp eq i64 %25, %27
  br i1 %28, label %46, label %29

29:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.23, ptr noundef @.str, i32 noundef 323)
          to label %30 unwind label %31

30:                                               ; preds = %29
  br label %46

31:                                               ; preds = %73, %63, %54, %29
  %32 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %12, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %13, align 4
  br label %35

35:                                               ; preds = %31
  %36 = load i32, ptr %13, align 4
  %37 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #6
  %38 = icmp eq i32 %36, %37
  br i1 %38, label %39, label %81

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %40 = load ptr, ptr %12, align 8
  %41 = call ptr @__cxa_begin_catch(ptr %40) #6
  store ptr %41, ptr %14, align 8
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %43 unwind label %78

43:                                               ; preds = %39
  invoke void @__cxa_end_catch()
          to label %44 unwind label %78

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %45

45:                                               ; preds = %44
  store i32 1, ptr %6, align 4
  br label %76

46:                                               ; preds = %30, %5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %47, i64 0
  %49 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 8, !tbaa !43
  %51 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 20
  %52 = load i32, ptr %51, align 8, !tbaa !48
  %53 = icmp eq i32 %50, %52
  br i1 %53, label %56, label %54

54:                                               ; preds = %46
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 324)
          to label %55 unwind label %31

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55, %46
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %57, i64 1
  %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 !49
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %65, label %63

63:                                               ; preds = %56
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.25, ptr noundef @.str, i32 noundef 326)
          to label %64 unwind label %31

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %56
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %66, i64 1
  %68 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !43
  %70 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 21
  %71 = load i32, ptr %70, align 4, !tbaa !50
  %72 = icmp eq i32 %69, %71
  br i1 %72, label %75, label %73

73:                                               ; preds = %65
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.26, ptr noundef @.str, i32 noundef 327)
          to label %74 unwind label %31

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74, %65
  store i32 0, ptr %6, align 4
  br label %76

76:                                               ; preds = %75, %45
  %77 = load i32, ptr %6, align 4
  ret i32 %77

78:                                               ; preds = %43, %39
  %79 = landingpad { ptr, i32 }
          catch ptr null
  %80 = extractvalue { ptr, i32 } %79, 0
  call void @__clang_call_terminate(ptr %80) #7
  unreachable

81:                                               ; preds = %35
  %82 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %82) #7
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

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 = { nounwind memory(none) }
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 nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #7 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 136}
!14 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !15, i64 0, !17, i64 8, !19, i64 16, !20, i64 24, !21, i64 32, !21, i64 64, !23, i64 96, !23, i64 104, !29, i64 112, !29, i64 120, !29, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !35, i64 168, !35, i64 192, !35, i64 216, !35, i64 240, !35, i64 264, !37, i64 288, !37, i64 292, !38, i64 296, !42, i64 320}
!15 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!17 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !18, i64 0}
!18 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !16, i64 0}
!19 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !18, i64 0}
!20 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !18, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !12, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!35 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !36, i64 0}
!36 = !{!"_ZTSN8nvinfer17WeightsE", !37, i64 0, !6, i64 8, !12, i64 16}
!37 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!38 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !10, i64 0, !6, i64 8}
!43 = !{!44, !37, i64 72}
!44 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !45, i64 0, !37, i64 72, !46, i64 76, !47, i64 80}
!45 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!46 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!47 = !{!"float", !7, i64 0}
!48 = !{!14, !37, i64 288}
!49 = !{!44, !10, i64 0}
!50 = !{!14, !37, i64 292}


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

@.str = external hidden unnamed_addr constant [107 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.23 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [29 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: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #1

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; 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
define dso_local noundef range(i32 0, 2) i32 @_ZN8nvinfer16plugin4bert32EmbLayerNormVarSeqlenPluginHFace13onShapeChangeEPKNS_16PluginTensorDescEiS5_i(ptr nocapture noundef nonnull readonly align 8 dereferenceable(336) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #5
  %6 = getelementptr inbounds i8, ptr %3, i64 16
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 136
  %9 = load i64, ptr %8, align 8, !tbaa !9
  %10 = icmp eq i64 %7, %9
  br i1 %10, label %21, label %11

11:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str, i32 noundef 323)
          to label %21 unwind label %12

12:                                               ; preds = %39, %32, %27, %11
  %13 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %14 = extractvalue { ptr, i32 } %13, 0
  %15 = extractvalue { ptr, i32 } %13, 1
  %16 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %17 = icmp eq i32 %15, %16
  br i1 %17, label %18, label %44

18:                                               ; preds = %12
  %19 = tail call ptr @__cxa_begin_catch(ptr %14) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %20 unwind label %41

20:                                               ; preds = %18
  invoke void @__cxa_end_catch()
          to label %40 unwind label %41

21:                                               ; preds = %11, %5
  %22 = getelementptr inbounds i8, ptr %3, i64 72
  %23 = load i32, ptr %22, align 8, !tbaa !41
  %24 = getelementptr inbounds i8, ptr %0, i64 288
  %25 = load i32, ptr %24, align 8, !tbaa !46
  %26 = icmp eq i32 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %21
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 324)
          to label %28 unwind label %12

28:                                               ; preds = %27, %21
  %29 = getelementptr inbounds i8, ptr %3, i64 88
  %30 = load i32, ptr %29, align 8, !tbaa !47
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str, i32 noundef 326)
          to label %33 unwind label %12

33:                                               ; preds = %32, %28
  %34 = getelementptr inbounds i8, ptr %3, i64 160
  %35 = load i32, ptr %34, align 8, !tbaa !41
  %36 = getelementptr inbounds i8, ptr %0, i64 292
  %37 = load i32, ptr %36, align 4, !tbaa !48
  %38 = icmp eq i32 %35, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %33
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str, i32 noundef 327)
          to label %40 unwind label %12

40:                                               ; preds = %33, %39, %20
  %.0 = phi i32 [ 1, %20 ], [ 0, %39 ], [ 0, %33 ]
  ret i32 %.0

41:                                               ; preds = %20, %18
  %42 = landingpad { ptr, i32 }
          catch ptr null
  %43 = extractvalue { ptr, i32 } %42, 0
  tail call void @__clang_call_terminate(ptr %43) #6
  unreachable

44:                                               ; preds = %12
  tail call void @__clang_call_terminate(ptr %14) #6
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_124checkConfigurationInputsEPKN8nvinfer116PluginTensorDescEiS3_i(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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 = { nofree nosync nounwind memory(none) }
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 = { 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 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 136}
!10 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBaseE", !11, i64 0, !13, i64 8, !15, i64 16, !16, i64 24, !17, i64 32, !17, i64 64, !20, i64 96, !20, i64 104, !26, i64 112, !26, i64 120, !26, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !32, i64 168, !32, i64 192, !32, i64 216, !32, i64 240, !32, i64 264, !34, i64 288, !34, i64 292, !35, i64 296, !39, i64 320}
!11 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !12, i64 0}
!12 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!13 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !14, i64 0}
!14 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !12, i64 0}
!15 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !14, i64 0}
!16 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !14, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !6, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !23, i64 0}
!23 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !24, i64 0}
!24 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !25, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !19, i64 0}
!26 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !19, i64 0}
!32 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !33, i64 0}
!33 = !{!"_ZTSN8nvinfer17WeightsE", !34, i64 0, !19, i64 8, !6, i64 16}
!34 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!35 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!39 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !40, i64 0, !19, i64 8}
!40 = !{!"int", !7, i64 0}
!41 = !{!42, !34, i64 72}
!42 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !43, i64 0, !34, i64 72, !44, i64 76, !45, i64 80}
!43 = !{!"_ZTSN8nvinfer16Dims64E", !40, i64 0, !7, i64 8}
!44 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!45 = !{!"float", !7, i64 0}
!46 = !{!10, !34, i64 288}
!47 = !{!42, !40, i64 0}
!48 = !{!10, !34, i64 292}


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