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

; 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::EmbLayerNormPluginDynamicLegacy" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::unique_ptr", %"class.std::unique_ptr", %"class.std::unique_ptr.5", %"class.std::unique_ptr.5", %"class.std::unique_ptr.5", i64, 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, i8, i32, i32 }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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.4" }
%"struct.std::_Head_base.4" = type { ptr }
%"class.std::unique_ptr.5" = type { %"struct.std::__uniq_ptr_data.6" }
%"struct.std::__uniq_ptr_data.6" = type { %"class.std::__uniq_ptr_impl.7" }
%"class.std::__uniq_ptr_impl.7" = type { %"class.std::tuple.8" }
%"class.std::tuple.8" = type { %"struct.std::_Tuple_impl.9" }
%"struct.std::_Tuple_impl.9" = type { %"struct.std::_Head_base.12" }
%"struct.std::_Head_base.12" = type { ptr }
%"struct.nvinfer1::plugin::bert::WeightsWithOwnership" = type { %"class.nvinfer1::Weights" }
%"class.nvinfer1::Weights" = type { i32, ptr, i64 }

@.str = external hidden unnamed_addr constant [104 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert31EmbLayerNormPluginDynamicLegacy25supportsFormatCombinationEiPKNS_16PluginTensorDescEii(ptr noundef nonnull align 8 dereferenceable(288) %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, 3
  br i1 %17, label %20, label %18

18:                                               ; preds = %5
  invoke void @_ZN8nvinfer16plugin15reportAssertionEPKcS2_i(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 220)
          to label %19 unwind label %163

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.15, ptr noundef @.str, i32 noundef 221)
          to label %24 unwind label %163

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::PluginTensorDesc", ptr %26, i64 %28
  store ptr %29, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 4, !tbaa !11
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

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

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

38:                                               ; preds = %35
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !17
  %42 = icmp eq i32 %41, 3
  br i1 %42, label %43, label %49

43:                                               ; preds = %38
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !18
  %48 = icmp eq i32 %47, 2
  br label %49

49:                                               ; preds = %43, %38
  %50 = phi i1 [ false, %38 ], [ %48, %43 ]
  store i1 %50, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %161

51:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sub nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %52, i64 %55
  store ptr %56, ptr %14, align 8, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %62, label %59

59:                                               ; preds = %51
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %62, label %99

62:                                               ; preds = %59, %51
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = icmp eq i32 %65, 3
  br i1 %66, label %67, label %97

67:                                               ; preds = %62
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !18
  %72 = icmp eq i32 %71, 2
  br i1 %72, label %73, label %97

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

85:                                               ; preds = %73
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %87, i32 0, i32 1
  %89 = getelementptr inbounds [8 x i64], ptr %88, i64 0, i64 0
  %90 = load i64, ptr %89, align 8, !tbaa !19
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds [8 x i64], ptr %93, i64 0, i64 0
  %95 = load i64, ptr %94, align 8, !tbaa !19
  %96 = icmp eq i64 %90, %95
  br label %97

97:                                               ; preds = %85, %73, %67, %62
  %98 = phi i1 [ false, %73 ], [ false, %67 ], [ false, %62 ], [ %96, %85 ]
  store i1 %98, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %160

99:                                               ; preds = %59
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = icmp eq i32 %100, 3
  br i1 %101, label %102, label %155

102:                                              ; preds = %99
  %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::EmbLayerNormPluginDynamicLegacy", ptr %15, i32 0, i32 18
  %107 = load i32, ptr %106, align 8, !tbaa !21
  %108 = icmp eq i32 %105, %107
  br i1 %108, label %109, label %153

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, 5
  br i1 %114, label %115, label %153

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 1
  %120 = load i64, ptr %119, align 8, !tbaa !19
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds [8 x i64], ptr %123, i64 0, i64 1
  %125 = load i64, ptr %124, align 8, !tbaa !19
  %126 = icmp eq i64 %120, %125
  br i1 %126, label %127, label %153

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

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

146:                                              ; preds = %139
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %"class.nvinfer1::Dims64", ptr %148, i32 0, i32 1
  %150 = getelementptr inbounds [8 x i64], ptr %149, i64 0, i64 4
  %151 = load i64, ptr %150, align 8, !tbaa !19
  %152 = icmp eq i64 %151, 1
  br label %153

153:                                              ; preds = %146, %139, %127, %115, %109, %102
  %154 = phi i1 [ false, %139 ], [ false, %127 ], [ false, %115 ], [ false, %109 ], [ false, %102 ], [ %152, %146 ]
  store i1 %154, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %160

155:                                              ; preds = %99
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 8, !tbaa !17
  %159 = icmp eq i32 %158, 3
  store i1 %159, ptr %6, align 1
  store i32 1, ptr %13, align 4
  br label %160

160:                                              ; preds = %155, %153, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %161

161:                                              ; preds = %160, %49, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %162 = load i1, ptr %6, align 1
  ret i1 %162

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 272}
!22 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormPluginDynamicLegacyE", !23, i64 0, !26, i64 8, !26, i64 40, !28, i64 72, !28, i64 80, !34, i64 88, !34, i64 96, !34, i64 104, !20, i64 112, !20, i64 120, !20, i64 128, !20, i64 136, !20, i64 144, !40, i64 152, !40, i64 176, !40, i64 200, !40, i64 224, !40, i64 248, !14, i64 272, !42, i64 276, !14, i64 280, !10, i64 284}
!23 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !24, i64 0}
!24 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !25, i64 0}
!25 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !20, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!34 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !37, i64 0}
!37 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !38, i64 0}
!38 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !39, i64 0}
!39 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !6, i64 0}
!40 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !41, i64 0}
!41 = !{!"_ZTSN8nvinfer17WeightsE", !14, i64 0, !6, i64 8, !20, i64 16}
!42 = !{!"bool", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.nvinfer1::PluginTensorDesc" = type { %"class.nvinfer1::Dims64", i32, i32, float }
%"class.nvinfer1::Dims64" = type { i32, [8 x i64] }

@.str = external hidden unnamed_addr constant [104 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZN8nvinfer16plugin4bert31EmbLayerNormPluginDynamicLegacy25supportsFormatCombinationEiPKNS_16PluginTensorDescEii(ptr nocapture noundef nonnull readonly align 8 dereferenceable(288) %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, 3
  br i1 %6, label %8, label %7

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

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.15, ptr noundef nonnull @.str, i32 noundef 221)
          to label %11 unwind label %79

11:                                               ; preds = %10, %8
  %12 = sext i32 %1 to i64
  %13 = getelementptr inbounds %"struct.nvinfer1::PluginTensorDesc", 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 %78

16:                                               ; preds = %11
  %17 = icmp eq i32 %1, 0
  br i1 %17, 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 %78

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

25:                                               ; preds = %16
  %or.cond = icmp ult i32 %1, 3
  br i1 %or.cond, label %26, label %45

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

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

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

39:                                               ; preds = %33
  %40 = getelementptr i8, ptr %13, i64 -80
  %41 = getelementptr inbounds i8, ptr %13, i64 8
  %42 = load i64, ptr %41, align 8, !tbaa !16
  %43 = load i64, ptr %40, align 8, !tbaa !16
  %44 = icmp eq i64 %42, %43
  br label %78

45:                                               ; preds = %25
  %46 = icmp eq i32 %1, 3
  %47 = getelementptr inbounds i8, ptr %13, i64 72
  %48 = load i32, ptr %47, align 8, !tbaa !14
  br i1 %46, label %49, label %76

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %0, i64 272
  %51 = load i32, ptr %50, align 8, !tbaa !18
  %52 = icmp eq i32 %48, %51
  br i1 %52, label %53, label %78

53:                                               ; preds = %49
  %54 = load i32, ptr %13, align 8, !tbaa !15
  %55 = icmp eq i32 %54, 5
  br i1 %55, label %56, label %78

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %13, i64 16
  %58 = load i64, ptr %57, align 8, !tbaa !16
  %59 = getelementptr i8, ptr %13, i64 -72
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = icmp eq i64 %58, %60
  br i1 %61, label %62, label %78

62:                                               ; preds = %56
  %63 = getelementptr inbounds i8, ptr %13, i64 8
  %64 = getelementptr i8, ptr %13, i64 -80
  %65 = load i64, ptr %63, align 8, !tbaa !16
  %66 = load i64, ptr %64, align 8, !tbaa !16
  %67 = icmp eq i64 %65, %66
  br i1 %67, label %68, label %78

68:                                               ; preds = %62
  %69 = getelementptr inbounds i8, ptr %13, i64 32
  %70 = load i64, ptr %69, align 8, !tbaa !16
  %71 = icmp eq i64 %70, 1
  br i1 %71, label %72, label %78

72:                                               ; preds = %68
  %73 = getelementptr inbounds i8, ptr %13, i64 40
  %74 = load i64, ptr %73, align 8, !tbaa !16
  %75 = icmp eq i64 %74, 1
  br label %78

76:                                               ; preds = %45
  %77 = icmp eq i32 %48, 3
  br label %78

78:                                               ; preds = %76, %39, %33, %30, %26, %72, %68, %62, %56, %53, %49, %18, %22, %11
  %.1 = phi i1 [ false, %11 ], [ false, %18 ], [ %24, %22 ], [ %77, %76 ], [ false, %33 ], [ false, %30 ], [ false, %26 ], [ %44, %39 ], [ false, %68 ], [ false, %62 ], [ false, %56 ], [ false, %53 ], [ false, %49 ], [ %75, %72 ]
  ret i1 %.1

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

attributes #0 = { 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 #1 = { "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 272}
!19 = !{!"_ZTSN8nvinfer16plugin4bert31EmbLayerNormPluginDynamicLegacyE", !20, i64 0, !23, i64 8, !23, i64 40, !26, i64 72, !26, i64 80, !32, i64 88, !32, i64 96, !32, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !38, i64 152, !38, i64 176, !38, i64 200, !38, i64 224, !38, i64 248, !11, i64 272, !40, i64 276, !11, i64 280, !8, i64 284}
!20 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !21, i64 0}
!21 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !22, i64 0}
!22 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !17, i64 8, !9, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !25, i64 0}
!25 = !{!"any pointer", !9, i64 0}
!26 = !{!"_ZTSSt10unique_ptrIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIfN8nvinfer114pluginInternal11CudaDeleterIfEELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIfN8nvinfer114pluginInternal11CudaDeleterIfEEE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPfN8nvinfer114pluginInternal11CudaDeleterIfEEEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !25, i64 0}
!32 = !{!"_ZTSSt10unique_ptrIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !33, i64 0}
!33 = !{!"_ZTSSt15__uniq_ptr_dataIvN8nvinfer114pluginInternal11CudaDeleterIvEELb1ELb1EE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_implIvN8nvinfer114pluginInternal11CudaDeleterIvEEE", !35, i64 0}
!35 = !{!"_ZTSSt5tupleIJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !36, i64 0}
!36 = !{!"_ZTSSt11_Tuple_implILm0EJPvN8nvinfer114pluginInternal11CudaDeleterIvEEEE", !37, i64 0}
!37 = !{!"_ZTSSt10_Head_baseILm0EPvLb0EE", !25, i64 0}
!38 = !{!"_ZTSN8nvinfer16plugin4bert20WeightsWithOwnershipE", !39, i64 0}
!39 = !{!"_ZTSN8nvinfer17WeightsE", !11, i64 0, !25, i64 8, !17, i64 16}
!40 = !{!"bool", !9, i64 0}


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