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

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

%"class.nvinfer1::plugin::LogStream" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kVERBOSE>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kVERBOSE>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = 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::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.nvinfer1::plugin::bert::GeluPluginDynamic" = type { %"class.nvinfer1::IPluginV2DynamicExt", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i8, %"class.std::shared_ptr", i64 }
%"class.nvinfer1::IPluginV2DynamicExt" = type { %"class.nvinfer1::IPluginV2Ext" }
%"class.nvinfer1::IPluginV2Ext" = type { %"class.nvinfer1::IPluginV2" }
%"class.nvinfer1::IPluginV2" = type { ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

@_ZTVN8nvinfer16plugin4bert17GeluPluginDynamicE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [82 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert17GeluPluginDynamicC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsE = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN8nvinfer16plugin11gLogVerboseE = external global %"class.nvinfer1::plugin::LogStream", align 8
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIvEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert16make_cuda_sharedIvEEvRSt10shared_ptrIT_EPv(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin4bert17GeluPluginDynamicC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKvm(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !9
  %12 = load ptr, ptr %5, align 8
  call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  store ptr getelementptr inbounds inrange(-16, 240) ({ [32 x ptr] }, ptr @_ZTVN8nvinfer16plugin4bert17GeluPluginDynamicE, i32 0, i32 0, i32 2), ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %14 unwind label %34

14:                                               ; preds = %4
  %15 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 2
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  %16 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 5
  call void @_ZNSt10shared_ptrIvEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  %17 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE4EA31_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin11gLogVerboseE, ptr noundef nonnull align 1 dereferenceable(31) @.str.3)
          to label %18 unwind label %38

18:                                               ; preds = %14
  %19 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 3
  invoke void @_Z17deserialize_valueIN8nvinfer18DataTypeEEvPPKvPmPT_(ptr noundef %7, ptr noundef %8, ptr noundef %19)
          to label %20 unwind label %38

20:                                               ; preds = %18
  %21 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 6
  invoke void @_Z17deserialize_valueImEvPPKvPmPT_(ptr noundef %7, ptr noundef %8, ptr noundef %21)
          to label %22 unwind label %38

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 4
  invoke void @_Z17deserialize_valueIbEvPPKvPmPT_(ptr noundef %7, ptr noundef %8, ptr noundef %23)
          to label %24 unwind label %38

24:                                               ; preds = %22
  %25 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 4
  %26 = load i8, ptr %25, align 4, !tbaa !13, !range !25, !noundef !26
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %59

28:                                               ; preds = %24
  %29 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 6
  %30 = load i64, ptr %29, align 8, !tbaa !27
  %31 = icmp ugt i64 %30, 0
  br i1 %31, label %42, label %32

32:                                               ; preds = %28
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str, ptr noundef @__func__._ZN8nvinfer16plugin4bert17GeluPluginDynamicC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsE, i32 noundef 70, i32 noundef 0, ptr noundef @.str.4) #7
          to label %33 unwind label %38

33:                                               ; preds = %32
  unreachable

34:                                               ; preds = %4
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  br label %61

38:                                               ; preds = %32, %22, %20, %18, %14
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %9, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %10, align 4
  br label %60

42:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %43, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 5
  %45 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 6
  %46 = load i64, ptr %45, align 8, !tbaa !27
  %47 = getelementptr inbounds %"class.nvinfer1::plugin::bert::GeluPluginDynamic", ptr %12, i32 0, i32 3
  %48 = load i32, ptr %47, align 8, !tbaa !28
  %49 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %48) #6
  %50 = zext i32 %49 to i64
  %51 = mul i64 %46, %50
  %52 = invoke noundef ptr @_ZN8nvinfer16plugin4bert10deserToDevIcEEPT_RPKcm(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %51)
          to label %53 unwind label %55

53:                                               ; preds = %42
  invoke void @_ZN8nvinfer16plugin4bert16make_cuda_sharedIvEEvRSt10shared_ptrIT_EPv(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef %52)
          to label %54 unwind label %55

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %59

55:                                               ; preds = %53, %42
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %9, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %60

59:                                               ; preds = %54, %24
  ret void

60:                                               ; preds = %55, %38
  call void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %61

61:                                               ; preds = %60, %34
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %9, align 8
  %64 = load i32, ptr %10, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE4EA31_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 1 dereferenceable(31)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17deserialize_valueIN8nvinfer18DataTypeEEvPPKvPmPT_(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17deserialize_valueImEvPPKvPmPT_(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17deserialize_valueIbEvPPKvPmPT_(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !21, i64 76}
!14 = !{!"_ZTSN8nvinfer16plugin4bert17GeluPluginDynamicE", !15, i64 0, !18, i64 8, !18, i64 40, !20, i64 72, !21, i64 76, !22, i64 80, !10, i64 96}
!15 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !10, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIvE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!14, !10, i64 96}
!28 = !{!14, !20, i64 72}


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

%"class.nvinfer1::plugin::LogStream" = type { %"class.std::basic_ostream.base", %"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kVERBOSE>::Buf", %"class.std::mutex", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.nvinfer1::plugin::LogStream<nvinfer1::ILogger::Severity::kVERBOSE>::Buf" = type { %"class.std::__cxx11::basic_stringbuf" }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = 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::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@_ZTVN8nvinfer16plugin4bert17GeluPluginDynamicE = external dso_local unnamed_addr constant { [32 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [82 x i8], align 1
@__func__._ZN8nvinfer16plugin4bert17GeluPluginDynamicC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsE = external hidden unnamed_addr constant [18 x i8], align 1
@_ZN8nvinfer16plugin11gLogVerboseE = external global %"class.nvinfer1::plugin::LogStream", align 8
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrIvEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8nvinfer16plugin4bert16make_cuda_sharedIvEEvRSt10shared_ptrIT_EPv(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer16plugin4bert17GeluPluginDynamicC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKvm(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  store ptr %2, ptr %5, align 8, !tbaa !5
  store i64 %3, ptr %6, align 8, !tbaa !9
  tail call void @_ZN8nvinfer119IPluginV2DynamicExtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store ptr getelementptr inbounds inrange(-16, 240) (i8, ptr @_ZTVN8nvinfer16plugin4bert17GeluPluginDynamicE, i64 16), ptr %0, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %9 unwind label %26

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZNSt10shared_ptrIvEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  %12 = invoke noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE4EA31_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152) @_ZN8nvinfer16plugin11gLogVerboseE, ptr noundef nonnull align 1 dereferenceable(31) @.str.3)
          to label %13 unwind label %28

13:                                               ; preds = %9
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_Z17deserialize_valueIN8nvinfer18DataTypeEEvPPKvPmPT_(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %14)
          to label %15 unwind label %28

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  invoke void @_Z17deserialize_valueImEvPPKvPmPT_(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %16)
          to label %17 unwind label %28

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %0, i64 76
  invoke void @_Z17deserialize_valueIbEvPPKvPmPT_(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %18)
          to label %19 unwind label %28

19:                                               ; preds = %17
  %20 = load i8, ptr %18, align 4, !tbaa !13, !range !25, !noundef !26
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %22, label %41

22:                                               ; preds = %19
  %23 = load i64, ptr %16, align 8, !tbaa !27
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %24, label %30

24:                                               ; preds = %22
  invoke void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN8nvinfer16plugin4bert17GeluPluginDynamicC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_8DataTypeERKNS_7WeightsE, i32 noundef 70, i32 noundef 0, ptr noundef nonnull @.str.4) #7
          to label %25 unwind label %28

25:                                               ; preds = %24
  unreachable

26:                                               ; preds = %4
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %43

28:                                               ; preds = %24, %17, %15, %13, %9
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %42

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %31, ptr %7, align 8, !tbaa !5
  %32 = load i32, ptr %14, align 8, !tbaa !28
  %33 = call noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef %32) #6
  %34 = zext i32 %33 to i64
  %35 = mul i64 %23, %34
  %36 = invoke noundef ptr @_ZN8nvinfer16plugin4bert10deserToDevIcEEPT_RPKcm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %35)
          to label %37 unwind label %39

37:                                               ; preds = %30
  invoke void @_ZN8nvinfer16plugin4bert16make_cuda_sharedIvEEvRSt10shared_ptrIT_EPv(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %36)
          to label %38 unwind label %39

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

39:                                               ; preds = %37, %30
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %42

41:                                               ; preds = %38, %19
  ret void

42:                                               ; preds = %39, %28
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %29, %28 ]
  call void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %43

43:                                               ; preds = %42, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %42 ], [ %27, %26 ]
  call void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(152) ptr @_ZN8nvinfer16pluginlsILNS_7ILogger8SeverityE4EA31_cEERNS0_9LogStreamIXT_EEES7_RKT0_(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef nonnull align 1 dereferenceable(31)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17deserialize_valueIN8nvinfer18DataTypeEEvPPKvPmPT_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17deserialize_valueImEvPPKvPmPT_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z17deserialize_valueIbEvPPKvPmPT_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: noreturn
declare void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN8nvinfer16plugin4bert10deserToDevIcEEPT_RPKcm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8nvinfer16plugin4bert14getElementSizeENS_8DataTypeE(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8nvinfer19IPluginV2D2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !21, i64 76}
!14 = !{!"_ZTSN8nvinfer16plugin4bert17GeluPluginDynamicE", !15, i64 0, !18, i64 8, !18, i64 40, !20, i64 72, !21, i64 76, !22, i64 80, !10, i64 96}
!15 = !{!"_ZTSN8nvinfer119IPluginV2DynamicExtE", !16, i64 0}
!16 = !{!"_ZTSN8nvinfer112IPluginV2ExtE", !17, i64 0}
!17 = !{!"_ZTSN8nvinfer19IPluginV2E"}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !10, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"_ZTSN8nvinfer18DataTypeE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSSt10shared_ptrIvE", !23, i64 0}
!23 = !{!"_ZTSSt12__shared_ptrIvLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !24, i64 8}
!24 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!14, !10, i64 96}
!28 = !{!14, !20, i64 72}


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