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

; 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::bert::SkipLayerNormVarSeqlenPluginV3" = 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", i32, %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i8, %"class.std::unique_ptr", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i64, %"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 }
%"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 [100 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [41 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) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

declare ptr @__cxa_begin_catch(ptr)

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

declare void @__cxa_end_catch()

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(264) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %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 ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  %19 = load ptr, ptr %7, align 8
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %39, label %22

22:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii, i32 noundef 651, i32 noundef 0, ptr noundef @.str.13) #6
          to label %23 unwind label %24

23:                                               ; preds = %22
  unreachable

24:                                               ; preds = %58, %47, %42, %22
  %25 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %12, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %13, align 4
  br label %28

28:                                               ; preds = %24
  %29 = load i32, ptr %13, align 4
  %30 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %32, label %119

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %33 = load ptr, ptr %12, align 8
  %34 = call ptr @__cxa_begin_catch(ptr %33) #7
  store ptr %34, ptr %18, align 8
  %35 = load ptr, ptr %18, align 8, !tbaa !5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %36 unwind label %116

36:                                               ; preds = %32
  invoke void @__cxa_end_catch()
          to label %37 unwind label %116

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %38

38:                                               ; preds = %37
  store i1 false, ptr %6, align 1
  br label %114

39:                                               ; preds = %5
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 2
  br i1 %41, label %44, label %42

42:                                               ; preds = %39
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii, i32 noundef 652, i32 noundef 0, ptr noundef @.str.11) #6
          to label %43 unwind label %24

43:                                               ; preds = %42
  unreachable

44:                                               ; preds = %39
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %49, label %47

47:                                               ; preds = %44
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii, i32 noundef 653, i32 noundef 0, ptr noundef @.str.14) #6
          to label %48 unwind label %24

48:                                               ; preds = %47
  unreachable

49:                                               ; preds = %44
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = icmp sge i32 %50, 0
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = add nsw i32 %54, %55
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %60, label %58

58:                                               ; preds = %52, %49
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii, i32 noundef 654, i32 noundef 0, ptr noundef @.str.15) #6
          to label %59 unwind label %24

59:                                               ; preds = %58
  unreachable

60:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %61, i64 %63
  %65 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %64, i32 0, i32 0
  store ptr %65, ptr %14, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %19, i32 0, i32 11
  %67 = load i32, ptr %66, align 8, !tbaa !11
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !37
  %71 = icmp ne i32 %67, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %60
  store i1 false, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %113

73:                                               ; preds = %60
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %99

76:                                               ; preds = %73
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %19, i32 0, i32 11
  %78 = load i32, ptr %77, align 8, !tbaa !11
  %79 = icmp eq i32 %78, 2
  br i1 %79, label %80, label %94

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 5, ptr %16, align 4, !tbaa !42
  %81 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %19, i32 0, i32 8
  %82 = load i32, ptr %81, align 8, !tbaa !43
  %83 = icmp slt i32 %82, 32
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  store i32 3, ptr %16, align 4, !tbaa !42
  %85 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %19, i32 0, i32 8
  br label %88

86:                                               ; preds = %80
  %87 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormVarSeqlenPluginV3", ptr %19, i32 0, i32 8
  br label %88

88:                                               ; preds = %86, %84
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !44
  %92 = load i32, ptr %16, align 4, !tbaa !42
  %93 = icmp eq i32 %91, %92
  store i1 %93, ptr %6, align 1
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %113

94:                                               ; preds = %76
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 4, !tbaa !44
  %98 = icmp eq i32 %97, 0
  store i1 %98, ptr %6, align 1
  store i32 1, ptr %15, align 4
  br label %113

99:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %100, i64 %103
  %105 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %104, i32 0, i32 0
  store ptr %105, ptr %17, align 8, !tbaa !5
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 4, !tbaa !44
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %109, i32 0, i32 2
  %111 = load i32, ptr %110, align 4, !tbaa !44
  %112 = icmp eq i32 %108, %111
  store i1 %112, ptr %6, align 1
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %113

113:                                              ; preds = %99, %94, %88, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %114

114:                                              ; preds = %113, %38
  %115 = load i1, ptr %6, align 1
  ret i1 %115

116:                                              ; preds = %36, %32
  %117 = landingpad { ptr, i32 }
          catch ptr null
  %118 = extractvalue { ptr, i32 } %117, 0
  call void @__clang_call_terminate(ptr %118) #8
  unreachable

119:                                              ; preds = %28
  %120 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %120) #8
  unreachable
}

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

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

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


; 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 = external hidden unnamed_addr constant [100 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [41 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: 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 zeroext i1 @_ZN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(264) %0, i32 noundef %1, ptr noundef readonly %2, i32 noundef %3, i32 noundef %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %.invoke, label %15

6:                                                ; preds = %.invoke
  %7 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %8 = extractvalue { ptr, i32 } %7, 0
  %9 = extractvalue { ptr, i32 } %7, 1
  %10 = tail call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #5
  %11 = icmp eq i32 %9, %10
  br i1 %11, label %12, label %54

12:                                               ; preds = %6
  %13 = tail call ptr @__cxa_begin_catch(ptr %8) #5
  invoke void @_ZN8nvinfer16plugin11caughtErrorERKSt9exception(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %14 unwind label %51

14:                                               ; preds = %12
  invoke void @__cxa_end_catch()
          to label %50 unwind label %51

15:                                               ; preds = %5
  %16 = icmp eq i32 %3, 2
  br i1 %16, label %17, label %.invoke

17:                                               ; preds = %15
  %18 = icmp eq i32 %4, 1
  br i1 %18, label %19, label %.invoke

19:                                               ; preds = %17
  %or.cond = icmp ult i32 %1, 3
  br i1 %or.cond, label %22, label %.invoke

.invoke:                                          ; preds = %5, %19, %17, %15
  %20 = phi i32 [ 652, %15 ], [ 653, %17 ], [ 654, %19 ], [ 651, %5 ]
  %21 = phi ptr [ @.str.11, %15 ], [ @.str.14, %17 ], [ @.str.15, %19 ], [ @.str.13, %5 ]
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii, i32 noundef %20, i32 noundef 0, ptr noundef nonnull %21) #6
          to label %.cont unwind label %6

.cont:                                            ; preds = %.invoke
  unreachable

22:                                               ; preds = %19
  %23 = zext nneg i32 %1 to i64
  %24 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %2, i64 %23
  %25 = getelementptr inbounds i8, ptr %0, i64 168
  %26 = load i32, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %24, i64 72
  %28 = load i32, ptr %27, align 8, !tbaa !35
  %.not29 = icmp eq i32 %26, %28
  br i1 %.not29, label %29, label %50

29:                                               ; preds = %22
  %30 = icmp eq i32 %1, 0
  br i1 %30, label %31, label %44

31:                                               ; preds = %29
  %32 = icmp eq i32 %26, 2
  br i1 %32, label %33, label %40

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %0, i64 112
  %35 = load i32, ptr %34, align 8, !tbaa !40
  %36 = icmp slt i32 %35, 32
  %. = select i1 %36, i32 3, i32 5
  %37 = getelementptr inbounds i8, ptr %24, i64 76
  %38 = load i32, ptr %37, align 4, !tbaa !41
  %39 = icmp eq i32 %38, %.
  br label %50

40:                                               ; preds = %31
  %41 = getelementptr inbounds i8, ptr %24, i64 76
  %42 = load i32, ptr %41, align 4, !tbaa !41
  %43 = icmp eq i32 %42, 0
  br label %50

44:                                               ; preds = %29
  %45 = getelementptr inbounds i8, ptr %24, i64 76
  %46 = load i32, ptr %45, align 4, !tbaa !41
  %47 = getelementptr i8, ptr %24, i64 -228
  %48 = load i32, ptr %47, align 4, !tbaa !41
  %49 = icmp eq i32 %46, %48
  br label %50

50:                                               ; preds = %33, %40, %44, %22, %14
  %.1 = phi i1 [ false, %14 ], [ %39, %33 ], [ %43, %40 ], [ %49, %44 ], [ false, %22 ]
  ret i1 %.1

51:                                               ; preds = %14, %12
  %52 = landingpad { ptr, i32 }
          catch ptr null
  %53 = extractvalue { ptr, i32 } %52, 0
  tail call void @__clang_call_terminate(ptr %53) #7
  unreachable

54:                                               ; preds = %6
  tail call void @__clang_call_terminate(ptr %8) #7
  unreachable
}

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 = { 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 }
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, !28, i64 168}
!6 = !{!"_ZTSN8nvinfer16plugin4bert30SkipLayerNormVarSeqlenPluginV3E", !7, i64 0, !9, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !13, i64 64, !19, i64 96, !19, i64 104, !25, i64 112, !26, i64 120, !26, i64 144, !28, i64 168, !28, i64 172, !29, i64 176, !19, i64 184, !26, i64 192, !18, i64 216, !30, i64 224, !34, i64 248}
!7 = !{!"_ZTSN8nvinfer15v_1_09IPluginV3E", !8, i64 0}
!8 = !{!"_ZTSN8nvinfer119IVersionedInterfaceE"}
!9 = !{!"_ZTSN8nvinfer15v_1_016IPluginV3OneCoreE", !10, i64 0}
!10 = !{!"_ZTSN8nvinfer15v_1_017IPluginCapabilityE", !8, i64 0}
!11 = !{!"_ZTSN8nvinfer15v_1_017IPluginV3OneBuildE", !10, i64 0}
!12 = !{!"_ZTSN8nvinfer15v_1_019IPluginV3OneRuntimeE", !10, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !18, i64 8, !16, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !17, i64 0}
!17 = !{!"Simple C++ TBAA"}
!18 = !{!"long", !16, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !15, i64 0}
!25 = !{!"int", !16, i64 0}
!26 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !27, i64 0}
!27 = !{!"_ZTSN8nvinfer17WeightsE", !28, i64 0, !15, i64 8, !18, i64 16}
!28 = !{!"_ZTSN8nvinfer18DataTypeE", !16, i64 0}
!29 = !{!"bool", !16, i64 0}
!30 = !{!"_ZTSSt6vectorIN8nvinfer111PluginFieldESaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN8nvinfer111PluginFieldESaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!34 = !{!"_ZTSN8nvinfer121PluginFieldCollectionE", !25, i64 0, !15, i64 8}
!35 = !{!36, !28, i64 72}
!36 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !37, i64 0, !28, i64 72, !38, i64 76, !39, i64 80}
!37 = !{!"_ZTSN8nvinfer16Dims64E", !25, i64 0, !16, i64 8}
!38 = !{!"_ZTSN8nvinfer112TensorFormatE", !16, i64 0}
!39 = !{!"float", !16, i64 0}
!40 = !{!6, !25, i64 112}
!41 = !{!36, !38, i64 76}


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