; 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::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::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
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert31EmbLayerNormVarSeqlenPluginBase25supportsFormatCombinationEiPKNS_23DynamicPluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(336) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) unnamed_addr #3 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
  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
  %15 = load ptr, ptr %7, align 8
  %16 = load i32, ptr %10, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 4
  br i1 %17, label %20, label %18

18:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.35, ptr noundef @.str, i32 noundef 537)
          to label %19 unwind label %155

19:                                               ; preds = %18
  br label %20

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

23:                                               ; preds = %20
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.36, ptr noundef @.str, i32 noundef 539)
          to label %24 unwind label %155

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %26, i64 %28
  %30 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %29, i32 0, i32 0
  store ptr %30, ptr %12, align 8, !tbaa !5
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %25
  store i1 false, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %153

36:                                               ; preds = %25
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %42, label %39

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

42:                                               ; preds = %39, %36
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp eq i32 %45, 3
  br i1 %46, label %47, label %53

47:                                               ; preds = %42
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = icmp eq i32 %51, 1
  br label %53

53:                                               ; preds = %47, %42
  %54 = phi i1 [ false, %42 ], [ %52, %47 ]
  store i1 %54, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %153

55:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = sub nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %56, i64 %59
  %61 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %60, i32 0, i32 0
  store ptr %61, ptr %14, align 8, !tbaa !5
  %62 = load i32, ptr %8, align 4, !tbaa !9
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %89

64:                                               ; preds = %55
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !17
  %68 = icmp eq i32 %67, 3
  br i1 %68, label %69, label %87

69:                                               ; preds = %64
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !18
  %74 = icmp eq i32 %73, 1
  br i1 %74, label %75, label %87

75:                                               ; preds = %69
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds [8 x i64], ptr %78, i64 0, i64 0
  %80 = load i64, ptr %79, align 8, !tbaa !19
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [8 x i64], ptr %83, i64 0, i64 0
  %85 = load i64, ptr %84, align 8, !tbaa !19
  %86 = icmp eq i64 %80, %85
  br label %87

87:                                               ; preds = %75, %69, %64
  %88 = phi i1 [ false, %69 ], [ false, %64 ], [ %86, %75 ]
  store i1 %88, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %152

89:                                               ; preds = %55
  %90 = load i32, ptr %8, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 3
  br i1 %91, label %92, label %98

92:                                               ; preds = %89
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !18
  %97 = icmp eq i32 %96, 1
  store i1 %97, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %152

98:                                               ; preds = %89
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = icmp eq i32 %99, %100
  br i1 %101, label %102, label %145

102:                                              ; preds = %98
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 8, !tbaa !17
  %106 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 20
  %107 = load i32, ptr %106, align 8, !tbaa !21
  %108 = icmp eq i32 %105, %107
  br i1 %108, label %109, label %143

109:                                              ; preds = %102
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !18
  %114 = icmp eq i32 %113, 4
  br i1 %114, label %115, label %143

115:                                              ; preds = %109
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [8 x i64], ptr %118, i64 0, i64 0
  %120 = load i64, ptr %119, align 8, !tbaa !19
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %121, i64 0
  %123 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %124, i32 0, i32 1
  %126 = getelementptr inbounds [8 x i64], ptr %125, i64 0, i64 0
  %127 = load i64, ptr %126, align 8, !tbaa !19
  %128 = icmp eq i64 %120, %127
  br i1 %128, label %129, label %143

129:                                              ; preds = %115
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %131, i32 0, i32 1
  %133 = getelementptr inbounds [8 x i64], ptr %132, i64 0, i64 2
  %134 = load i64, ptr %133, align 8, !tbaa !19
  %135 = icmp eq i64 %134, 1
  br i1 %135, label %136, label %143

136:                                              ; preds = %129
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %138, i32 0, i32 1
  %140 = getelementptr inbounds [8 x i64], ptr %139, i64 0, i64 3
  %141 = load i64, ptr %140, align 8, !tbaa !19
  %142 = icmp eq i64 %141, 1
  br label %143

143:                                              ; preds = %136, %129, %115, %109, %102
  %144 = phi i1 [ false, %129 ], [ false, %115 ], [ false, %109 ], [ false, %102 ], [ %142, %136 ]
  store i1 %144, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %152

145:                                              ; preds = %98
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !17
  %149 = getelementptr inbounds %"class.nvinfer1::plugin::bert::EmbLayerNormVarSeqlenPluginBase", ptr %15, i32 0, i32 21
  %150 = load i32, ptr %149, align 4, !tbaa !50
  %151 = icmp eq i32 %148, %150
  store i1 %151, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %152

152:                                              ; preds = %145, %143, %92, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %153

153:                                              ; preds = %152, %53, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %154 = load i1, ptr %6, align 1
  ret i1 %154

155:                                              ; preds = %23, %18
  %156 = landingpad { ptr, i32 }
          catch ptr null
  %157 = extractvalue { ptr, i32 } %156, 0
  call void @__clang_call_terminate(ptr %157) #5
  unreachable
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

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

%"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 [107 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

7:                                                ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.35, ptr noundef nonnull @.str, i32 noundef 537)
          to label %8 unwind label %72

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

10:                                               ; preds = %8
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str, i32 noundef 539)
          to label %11 unwind label %72

11:                                               ; preds = %10, %8
  %12 = sext i32 %1 to i64
  %13 = getelementptr inbounds %"struct.nvinfer1::DynamicPluginTensorDesc", ptr %2, i64 %12
  %14 = getelementptr inbounds i8, ptr %13, i64 76
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %71

16:                                               ; preds = %11
  %17 = and i32 %1, -3
  %or.cond = icmp eq i32 %17, 0
  br i1 %or.cond, label %18, label %25

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %13, i64 72
  %20 = load i32, ptr %19, align 8, !tbaa !14
  %21 = icmp eq i32 %20, 3
  br i1 %21, label %22, label %71

22:                                               ; preds = %18
  %23 = load i32, ptr %13, align 8, !tbaa !15
  %24 = icmp eq i32 %23, 1
  br label %71

25:                                               ; preds = %16
  switch i32 %1, label %42 [
    i32 1, label %26
    i32 3, label %39
  ]

26:                                               ; preds = %25
  %27 = getelementptr inbounds i8, ptr %13, i64 72
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = icmp eq i32 %28, 3
  br i1 %29, label %30, label %71

30:                                               ; preds = %26
  %31 = load i32, ptr %13, align 8, !tbaa !15
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %71

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %13, i64 8
  %35 = load i64, ptr %34, align 8, !tbaa !16
  %36 = getelementptr i8, ptr %13, i64 -296
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %38 = icmp eq i64 %35, %37
  br label %71

39:                                               ; preds = %25
  %40 = load i32, ptr %13, align 8, !tbaa !15
  %41 = icmp eq i32 %40, 1
  br label %71

42:                                               ; preds = %25
  %43 = icmp eq i32 %1, %3
  %44 = getelementptr inbounds i8, ptr %13, i64 72
  %45 = load i32, ptr %44, align 8, !tbaa !14
  br i1 %43, label %46, label %67

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %0, i64 288
  %48 = load i32, ptr %47, align 8, !tbaa !18
  %49 = icmp eq i32 %45, %48
  br i1 %49, label %50, label %71

50:                                               ; preds = %46
  %51 = load i32, ptr %13, align 8, !tbaa !15
  %52 = icmp eq i32 %51, 4
  br i1 %52, label %53, label %71

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %13, i64 8
  %55 = load i64, ptr %54, align 8, !tbaa !16
  %56 = getelementptr inbounds i8, ptr %2, i64 8
  %57 = load i64, ptr %56, align 8, !tbaa !16
  %58 = icmp eq i64 %55, %57
  br i1 %58, label %59, label %71

59:                                               ; preds = %53
  %60 = getelementptr inbounds i8, ptr %13, i64 24
  %61 = load i64, ptr %60, align 8, !tbaa !16
  %62 = icmp eq i64 %61, 1
  br i1 %62, label %63, label %71

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %13, i64 32
  %65 = load i64, ptr %64, align 8, !tbaa !16
  %66 = icmp eq i64 %65, 1
  br label %71

67:                                               ; preds = %42
  %68 = getelementptr inbounds i8, ptr %0, i64 292
  %69 = load i32, ptr %68, align 4, !tbaa !48
  %70 = icmp eq i32 %45, %69
  br label %71

71:                                               ; preds = %39, %67, %33, %30, %26, %63, %59, %53, %50, %46, %18, %22, %11
  %.1 = phi i1 [ false, %11 ], [ false, %18 ], [ %24, %22 ], [ %41, %39 ], [ %70, %67 ], [ false, %30 ], [ false, %26 ], [ %38, %33 ], [ false, %59 ], [ false, %53 ], [ false, %50 ], [ false, %46 ], [ %66, %63 ]
  ret i1 %.1

72:                                               ; preds = %10, %7
  %73 = landingpad { ptr, i32 }
          catch ptr null
  %74 = extractvalue { ptr, i32 } %73, 0
  tail call void @__clang_call_terminate(ptr %74) #3
  unreachable
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noinline noreturn nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }

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

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


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