; LLVM IR from NVIDIA/TensorRT :: plugin/common/cublasWrapper.ll (ZN8nvinfer114pluginInternal13CublasWrapperC2Eb)

; 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.anon = type { i8 }
%"class.nvinfer1::pluginInternal::CublasWrapper" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 x i8], align 1

; 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: mustprogress uwtable
define dso_local void @_ZN8nvinfer114pluginInternal13CublasWrapperC2Eb(ptr noundef nonnull align 8 dereferenceable(152) %0, i1 noundef zeroext %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca %class.anon, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %6 = zext i1 %1 to i8
  store i8 %6, ptr %4, align 1, !tbaa !9
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %9 = call noundef ptr @_ZN8nvinfer114pluginInternal13CublasWrapper16tryLoadingCublasEv(ptr noundef nonnull align 8 dereferenceable(152) %7)
  store ptr %9, ptr %8, align 8, !tbaa !11
  %10 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 1
  store ptr null, ptr %10, align 8, !tbaa !13
  %11 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %15, label %14

14:                                               ; preds = %2
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb, i32 noundef 52, i32 noundef 0, ptr noundef @.str.2) #4
  unreachable

15:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  %16 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %17, ptr noundef @.str.3)
  %19 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 2
  store ptr %18, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %21, ptr noundef @.str.4)
  %23 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 3
  store ptr %22, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %25, ptr noundef @.str.5)
  %27 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 4
  store ptr %26, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %29, ptr noundef @.str.6)
  %31 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 5
  store ptr %30, ptr %31, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %33, ptr noundef @.str.7)
  %35 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 6
  store ptr %34, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %37, ptr noundef @.str.8)
  %39 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 7
  store ptr %38, ptr %39, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %41, ptr noundef @.str.9)
  %43 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 8
  store ptr %42, ptr %43, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %45, ptr noundef @.str.10)
  %47 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 9
  store ptr %46, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %49, ptr noundef @.str.11)
  %51 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 10
  store ptr %50, ptr %51, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %53, ptr noundef @.str.12)
  %55 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 11
  store ptr %54, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %57, ptr noundef @.str.13)
  %59 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 12
  store ptr %58, ptr %59, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %61, ptr noundef @.str.14)
  %63 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 13
  store ptr %62, ptr %63, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %65, ptr noundef @.str.15)
  %67 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 14
  store ptr %66, ptr %67, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %69, ptr noundef @.str.16)
  %71 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 15
  store ptr %70, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %73, ptr noundef @.str.17)
  %75 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 16
  store ptr %74, ptr %75, align 8, !tbaa !5
  %76 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %77, ptr noundef @.str.18)
  %79 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 17
  store ptr %78, ptr %79, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %81, ptr noundef @.str.19)
  %83 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 18
  store ptr %82, ptr %83, align 8, !tbaa !5
  %84 = load i8, ptr %4, align 1, !tbaa !9, !range !14, !noundef !15
  %85 = trunc i8 %84 to i1
  br i1 %85, label %86, label %97

86:                                               ; preds = %15
  %87 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 1
  %88 = call noundef i32 @_ZN8nvinfer114pluginInternal13CublasWrapper12cublasCreateEPP13cublasContext(ptr noundef nonnull align 8 dereferenceable(152) %7, ptr noundef %87)
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb, i32 noundef 79, i32 noundef 0, ptr noundef @.str.20) #4
  unreachable

91:                                               ; preds = %86
  %92 = getelementptr inbounds %"class.nvinfer1::pluginInternal::CublasWrapper", ptr %7, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = icmp ne ptr %93, null
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef @.str.1, ptr noundef @__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb, i32 noundef 80, i32 noundef 0, ptr noundef @.str.21) #4
  unreachable

96:                                               ; preds = %91
  br label %97

97:                                               ; preds = %96, %15
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { noreturn }
attributes #5 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN8nvinfer114pluginInternal13CublasWrapperE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!13 = !{!12, !6, i64 8}
!14 = !{i8 0, i8 2}
!15 = !{}


; 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.anon = type { i8 }

@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8nvinfer114pluginInternal13CublasWrapperC2Eb(ptr noundef nonnull align 8 dereferenceable(152) %0, i1 noundef zeroext %1) unnamed_addr #1 align 2 {
  %3 = alloca %class.anon, align 1
  %4 = tail call noundef ptr @_ZN8nvinfer114pluginInternal13CublasWrapper16tryLoadingCublasEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
  store ptr %4, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr null, ptr %5, align 8, !tbaa !10
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %2
  tail call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb, i32 noundef 52, i32 noundef 0, ptr noundef nonnull @.str.2) #4
  unreachable

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  %8 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef nonnull %4, ptr noundef nonnull @.str.3)
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %8, ptr %9, align 8, !tbaa !11
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %10, ptr noundef nonnull @.str.4)
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %11, ptr %12, align 8, !tbaa !11
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %14 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %13, ptr noundef nonnull @.str.5)
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %14, ptr %15, align 8, !tbaa !11
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %16, ptr noundef nonnull @.str.6)
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %17, ptr %18, align 8, !tbaa !11
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %19, ptr noundef nonnull @.str.7)
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %20, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %0, align 8, !tbaa !5
  %23 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %22, ptr noundef nonnull @.str.8)
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %23, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %25, ptr noundef nonnull @.str.9)
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %26, ptr %27, align 8, !tbaa !11
  %28 = load ptr, ptr %0, align 8, !tbaa !5
  %29 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %28, ptr noundef nonnull @.str.10)
  %30 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %29, ptr %30, align 8, !tbaa !11
  %31 = load ptr, ptr %0, align 8, !tbaa !5
  %32 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %31, ptr noundef nonnull @.str.11)
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %32, ptr %33, align 8, !tbaa !11
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %34, ptr noundef nonnull @.str.12)
  %36 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %35, ptr %36, align 8, !tbaa !11
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %37, ptr noundef nonnull @.str.13)
  %39 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %38, ptr %39, align 8, !tbaa !11
  %40 = load ptr, ptr %0, align 8, !tbaa !5
  %41 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %40, ptr noundef nonnull @.str.14)
  %42 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %41, ptr %42, align 8, !tbaa !11
  %43 = load ptr, ptr %0, align 8, !tbaa !5
  %44 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %43, ptr noundef nonnull @.str.15)
  %45 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %44, ptr %45, align 8, !tbaa !11
  %46 = load ptr, ptr %0, align 8, !tbaa !5
  %47 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %46, ptr noundef nonnull @.str.16)
  %48 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %47, ptr %48, align 8, !tbaa !11
  %49 = load ptr, ptr %0, align 8, !tbaa !5
  %50 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %49, ptr noundef nonnull @.str.17)
  %51 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %50, ptr %51, align 8, !tbaa !11
  %52 = load ptr, ptr %0, align 8, !tbaa !5
  %53 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %52, ptr noundef nonnull @.str.18)
  %54 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %53, ptr %54, align 8, !tbaa !11
  %55 = load ptr, ptr %0, align 8, !tbaa !5
  %56 = call noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %55, ptr noundef nonnull @.str.19)
  %57 = getelementptr inbounds i8, ptr %0, i64 144
  store ptr %56, ptr %57, align 8, !tbaa !11
  br i1 %1, label %58, label %65

58:                                               ; preds = %7
  %59 = call noundef i32 @_ZN8nvinfer114pluginInternal13CublasWrapper12cublasCreateEPP13cublasContext(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %5)
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb, i32 noundef 79, i32 noundef 0, ptr noundef nonnull @.str.20) #4
  unreachable

62:                                               ; preds = %58
  %63 = load ptr, ptr %5, align 8, !tbaa !10
  %.not1 = icmp eq ptr %63, null
  br i1 %.not1, label %64, label %65

64:                                               ; preds = %62
  call void @_ZN8nvinfer16plugin16throwPluginErrorEPKcS2_iiS2_(ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__._ZN8nvinfer114pluginInternal13CublasWrapperC2Eb, i32 noundef 80, i32 noundef 0, ptr noundef nonnull @.str.21) #4
  unreachable

65:                                               ; preds = %62, %7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef ptr @"_ZZN8nvinfer114pluginInternal13CublasWrapperC1EbENK3$_0clEPvPKc"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { noreturn }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN8nvinfer114pluginInternal13CublasWrapperE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}


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