; 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::SkipLayerNormPluginV3" = 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", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", %"struct.nvinfer1::plugin::bert::WeightsWithOwnership", i32, i32, i32, i8, %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr", 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] }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }
%"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::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 @_ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(256) %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 140, 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 %139

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 %136

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

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 %134

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 141, 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 142, 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 143, 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 = load i32, ptr %8, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %109

68:                                               ; preds = %60
  %69 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %19, i32 0, i32 9
  %70 = load i32, ptr %69, align 8, !tbaa !11
  %71 = icmp eq i32 %70, 2
  br i1 %71, label %72, label %95

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 5, ptr %15, align 4, !tbaa !37
  %73 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %19, i32 0, i32 11
  %74 = load i32, ptr %73, align 8, !tbaa !39
  %75 = icmp slt i32 %74, 32
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  store i32 3, ptr %15, align 4, !tbaa !37
  %77 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %19, i32 0, i32 11
  br label %80

78:                                               ; preds = %72
  %79 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %19, i32 0, i32 11
  br label %80

80:                                               ; preds = %78, %76
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !40
  %84 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %19, i32 0, i32 9
  %85 = load i32, ptr %84, align 8, !tbaa !11
  %86 = icmp eq i32 %83, %85
  br i1 %86, label %87, label %93

87:                                               ; preds = %80
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !44
  %91 = load i32, ptr %15, align 4, !tbaa !37
  %92 = icmp eq i32 %90, %91
  br label %93

93:                                               ; preds = %87, %80
  %94 = phi i1 [ false, %80 ], [ %92, %87 ]
  store i1 %94, ptr %6, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %133

95:                                               ; preds = %68
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !40
  %99 = getelementptr inbounds %"class.nvinfer1::plugin::bert::SkipLayerNormPluginV3", ptr %19, i32 0, i32 9
  %100 = load i32, ptr %99, align 8, !tbaa !11
  %101 = icmp eq i32 %98, %100
  br i1 %101, label %102, label %107

102:                                              ; preds = %95
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 4, !tbaa !44
  %106 = icmp eq i32 %105, 0
  br label %107

107:                                              ; preds = %102, %95
  %108 = phi i1 [ false, %95 ], [ %106, %102 ]
  store i1 %108, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %133

109:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = sub nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %110, i64 %113
  %115 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %114, i32 0, i32 0
  store ptr %115, ptr %17, align 8, !tbaa !5
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %116, i32 0, i32 1
  %118 = load i32, ptr %117, align 8, !tbaa !40
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 8, !tbaa !40
  %122 = icmp eq i32 %118, %121
  br i1 %122, label %123, label %131

123:                                              ; preds = %109
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !44
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 4, !tbaa !44
  %130 = icmp eq i32 %126, %129
  br label %131

131:                                              ; preds = %123, %109
  %132 = phi i1 [ false, %109 ], [ %130, %123 ]
  store i1 %132, ptr %6, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %133

133:                                              ; preds = %131, %107, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %134

134:                                              ; preds = %133, %38
  %135 = load i1, ptr %6, align 1
  ret i1 %135

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

139:                                              ; preds = %28
  %140 = load ptr, ptr %12, align 8
  call void @__clang_call_terminate(ptr %140) #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, !24, i64 168}
!12 = !{!"_ZTSN8nvinfer16plugin4bert21SkipLayerNormPluginV3E", !13, i64 0, !15, i64 8, !17, i64 16, !18, i64 24, !19, i64 32, !19, i64 64, !22, i64 96, !22, i64 120, !22, i64 144, !24, i64 168, !24, i64 172, !10, i64 176, !25, i64 180, !26, i64 184, !26, i64 192, !26, i64 200, !21, i64 208, !32, i64 216, !36, i64 240}
!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 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !23, i64 0}
!23 = !{!"_ZTSN8nvinfer17WeightsE", !24, i64 0, !6, i64 8, !21, i64 16}
!24 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!25 = !{!"bool", !7, 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", !6, 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, !38, i64 0}
!38 = !{!"_ZTSN8nvinfer112TensorFormatE", !7, i64 0}
!39 = !{!12, !10, i64 176}
!40 = !{!41, !24, i64 72}
!41 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !42, i64 0, !24, i64 72, !38, i64 76, !43, i64 80}
!42 = !{!"_ZTSN8nvinfer16Dims64E", !10, i64 0, !7, i64 8}
!43 = !{!"float", !7, i64 0}
!44 = !{!41, !38, 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 @_ZN8nvinfer16plugin4bert21SkipLayerNormPluginV325supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(256) %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 %63

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 %60

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

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 [ 141, %15 ], [ 142, %17 ], [ 143, %19 ], [ 140, %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 %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %2, i64 %23
  %25 = icmp eq i32 %1, 0
  br i1 %25, label %26, label %47

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 168
  %28 = load i32, ptr %27, align 8, !tbaa !5
  %29 = icmp eq i32 %28, 2
  %30 = getelementptr inbounds i8, ptr %24, i64 72
  %31 = load i32, ptr %30, align 8, !tbaa !35
  br i1 %29, label %32, label %41

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

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

41:                                               ; preds = %26
  %42 = icmp eq i32 %31, %28
  br i1 %42, label %43, label %59

43:                                               ; preds = %41
  %44 = getelementptr inbounds i8, ptr %24, i64 76
  %45 = load i32, ptr %44, align 4, !tbaa !41
  %46 = icmp eq i32 %45, 0
  br label %59

47:                                               ; preds = %22
  %48 = getelementptr inbounds i8, ptr %24, i64 72
  %49 = load i32, ptr %48, align 8, !tbaa !35
  %50 = getelementptr i8, ptr %24, i64 -232
  %51 = load i32, ptr %50, align 8, !tbaa !35
  %52 = icmp eq i32 %49, %51
  br i1 %52, label %53, label %59

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %24, i64 76
  %55 = load i32, ptr %54, align 4, !tbaa !41
  %56 = getelementptr i8, ptr %24, i64 -228
  %57 = load i32, ptr %56, align 4, !tbaa !41
  %58 = icmp eq i32 %55, %57
  br label %59

59:                                               ; preds = %34, %32, %43, %41, %53, %47, %14
  %.1 = phi i1 [ false, %14 ], [ false, %32 ], [ %40, %34 ], [ false, %41 ], [ %46, %43 ], [ false, %47 ], [ %58, %53 ]
  ret i1 %.1

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

63:                                               ; 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, !21, i64 168}
!6 = !{!"_ZTSN8nvinfer16plugin4bert21SkipLayerNormPluginV3E", !7, i64 0, !9, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !13, i64 64, !19, i64 96, !19, i64 120, !19, i64 144, !21, i64 168, !21, i64 172, !22, i64 176, !23, i64 180, !24, i64 184, !24, i64 192, !24, i64 200, !18, i64 208, !30, i64 216, !34, i64 240}
!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 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !20, i64 0}
!20 = !{!"_ZTSN8nvinfer17WeightsE", !21, i64 0, !15, i64 8, !18, i64 16}
!21 = !{!"_ZTSN8nvinfer18DataTypeE", !16, i64 0}
!22 = !{!"int", !16, i64 0}
!23 = !{!"bool", !16, i64 0}
!24 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !26, i64 0}
!26 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !27, i64 0}
!27 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !29, i64 0}
!29 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !15, 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", !22, i64 0, !15, i64 8}
!35 = !{!36, !21, i64 72}
!36 = !{!"_ZTSN8nvinfer116PluginTensorDescE", !37, i64 0, !21, i64 72, !38, i64 76, !39, i64 80}
!37 = !{!"_ZTSN8nvinfer16Dims64E", !22, i64 0, !16, i64 8}
!38 = !{!"_ZTSN8nvinfer112TensorFormatE", !16, i64 0}
!39 = !{!"float", !16, i64 0}
!40 = !{!6, !22, i64 176}
!41 = !{!36, !38, i64 76}


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