; LLVM IR from NVIDIA/FasterTransformer :: src/fastertransformer/utils (gemm)

; 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.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::allocator" = type { i8 }
%struct.__half = type { i16 }
%"struct.fastertransformer::cublasLtMatmulAlgo_info" = type { i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.cublasLtMatmulAlgo_t = type { [8 x i64] }
%"class.fastertransformer::Gemm" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [199 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17fastertransformer5checkI14cublasStatus_tEEvT_PKcS4_i(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #0

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 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 uwtable
define dso_local void @_ZN17fastertransformer4Gemm4gemmENS_6GemmOpES1_mmmPKvNS_13datatype_enumEmS3_S4_mPvS4_mff(ptr noundef nonnull align 8 dereferenceable(80) %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i32 noundef %7, i64 noundef %8, ptr noundef %9, i32 noundef %10, i64 noundef %11, ptr noundef %12, i32 noundef %13, i64 noundef %14, float noundef %15, float noundef %16) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i64, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  %48 = alloca i64, align 8
  %49 = alloca i64, align 8
  %50 = alloca i8, align 1
  %51 = alloca i8, align 1
  %52 = alloca i32, align 4
  %53 = alloca %struct.__half, align 2
  %54 = alloca %struct.__half, align 2
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca i32, align 4
  %58 = alloca %"struct.fastertransformer::cublasLtMatmulAlgo_info", align 4
  %59 = alloca i64, align 8
  %60 = alloca i64, align 8
  %61 = alloca i64, align 8
  %62 = alloca i64, align 8
  %63 = alloca ptr, align 8
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca %struct.cublasLtMatmulAlgo_t, align 8
  %70 = alloca ptr, align 8
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca i32, align 4
  store ptr %0, ptr %18, align 8, !tbaa !5
  store i32 %1, ptr %19, align 4, !tbaa !9
  store i32 %2, ptr %20, align 4, !tbaa !9
  store i64 %3, ptr %21, align 8, !tbaa !11
  store i64 %4, ptr %22, align 8, !tbaa !11
  store i64 %5, ptr %23, align 8, !tbaa !11
  store ptr %6, ptr %24, align 8, !tbaa !5
  store i32 %7, ptr %25, align 4, !tbaa !13
  store i64 %8, ptr %26, align 8, !tbaa !11
  store ptr %9, ptr %27, align 8, !tbaa !5
  store i32 %10, ptr %28, align 4, !tbaa !13
  store i64 %11, ptr %29, align 8, !tbaa !11
  store ptr %12, ptr %30, align 8, !tbaa !5
  store i32 %13, ptr %31, align 4, !tbaa !13
  store i64 %14, ptr %32, align 8, !tbaa !11
  store float %15, ptr %33, align 4, !tbaa !15
  store float %16, ptr %34, align 4, !tbaa !15
  %74 = load ptr, ptr %18, align 8
  br label %75

75:                                               ; preds = %17
  %76 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN17fastertransformer6Logger9getLoggerEv()
  %77 = call noundef i32 @_ZNK17fastertransformer6Logger8getLevelEv(ptr noundef nonnull align 8 dereferenceable(88) %76)
  %78 = icmp sle i32 %77, 0
  br i1 %78, label %79, label %92

79:                                               ; preds = %75
  %80 = call noundef nonnull align 8 dereferenceable(88) ptr @_ZN17fastertransformer6Logger9getLoggerEv()
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %81 unwind label %83

81:                                               ; preds = %79
  invoke void @_ZN17fastertransformer6Logger3logIJmmmmmmEEEvNS0_5LevelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(88) %80, i32 noundef 0, ptr noundef %35, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %82 unwind label %87

82:                                               ; preds = %81
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #5
  br label %92

83:                                               ; preds = %79
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %37, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %38, align 4
  br label %91

87:                                               ; preds = %81
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %37, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %38, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #5
  br label %91

91:                                               ; preds = %87, %83
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #5
  br label %346

92:                                               ; preds = %82, %75
  br label %93

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %94 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %94, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %95 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %95, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef %96)
  store i32 %97, ptr %41, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef %98)
  store i32 %99, ptr %42, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  %100 = load i32, ptr %28, align 4, !tbaa !13
  %101 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %100)
  store i32 %101, ptr %43, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  %102 = load i32, ptr %25, align 4, !tbaa !13
  %103 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %102)
  store i32 %103, ptr %44, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #5
  %104 = load i32, ptr %31, align 4, !tbaa !13
  %105 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %104)
  store i32 %105, ptr %45, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  %106 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %106, ptr %46, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #5
  %107 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %107, ptr %47, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  %108 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %108, ptr %48, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  %109 = load i64, ptr %26, align 8, !tbaa !11
  store i64 %109, ptr %49, align 8, !tbaa !11
  %110 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !21
  call void @_ZNSt5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %111)
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #5
  %112 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 11
  %113 = load i32, ptr %112, align 4, !tbaa !23
  %114 = icmp eq i32 %113, 10
  %115 = zext i1 %114 to i8
  store i8 %115, ptr %50, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #5
  %116 = load i32, ptr %25, align 4, !tbaa !13
  %117 = icmp eq i32 %116, 10
  %118 = zext i1 %117 to i8
  store i8 %118, ptr %51, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #5
  store i32 1, ptr %52, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 2, ptr %53) #5
  %119 = load float, ptr %33, align 4, !tbaa !15
  call void @_ZN6__halfC2Ef(ptr noundef nonnull align 2 dereferenceable(2) %53, float noundef %119)
  call void @llvm.lifetime.start.p0(i64 2, ptr %54) #5
  %120 = load float, ptr %34, align 4, !tbaa !15
  call void @_ZN6__halfC2Ef(ptr noundef nonnull align 2 dereferenceable(2) %54, float noundef %120)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #5
  %121 = load i8, ptr %50, align 1, !tbaa !24, !range !28, !noundef !29
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %124

123:                                              ; preds = %93
  br label %125

124:                                              ; preds = %93
  br label %125

125:                                              ; preds = %124, %123
  %126 = phi ptr [ %53, %123 ], [ %33, %124 ]
  store ptr %126, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #5
  %127 = load i8, ptr %50, align 1, !tbaa !24, !range !28, !noundef !29
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %130

129:                                              ; preds = %125
  br label %131

130:                                              ; preds = %125
  br label %131

131:                                              ; preds = %130, %129
  %132 = phi ptr [ %54, %129 ], [ %34, %130 ]
  store ptr %132, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #5
  %133 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !30
  %135 = load i32, ptr %52, align 4, !tbaa !26
  %136 = load i64, ptr %46, align 8, !tbaa !11
  %137 = trunc i64 %136 to i32
  %138 = load i64, ptr %47, align 8, !tbaa !11
  %139 = trunc i64 %138 to i32
  %140 = load i64, ptr %23, align 8, !tbaa !11
  %141 = trunc i64 %140 to i32
  %142 = load i32, ptr %43, align 4, !tbaa !19
  %143 = icmp eq i32 %142, 2
  %144 = zext i1 %143 to i64
  %145 = select i1 %143, i32 1, i32 0
  %146 = call noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168) %134, i32 noundef %135, i32 noundef %137, i32 noundef %139, i32 noundef %141, i32 noundef %145)
  %147 = zext i1 %146 to i32
  store i32 %147, ptr %57, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 36, ptr %58) #5
  %148 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !30
  %150 = load i32, ptr %52, align 4, !tbaa !26
  %151 = load i64, ptr %46, align 8, !tbaa !11
  %152 = trunc i64 %151 to i32
  %153 = load i64, ptr %47, align 8, !tbaa !11
  %154 = trunc i64 %153 to i32
  %155 = load i64, ptr %23, align 8, !tbaa !11
  %156 = trunc i64 %155 to i32
  %157 = load i32, ptr %43, align 4, !tbaa !19
  %158 = icmp eq i32 %157, 2
  %159 = zext i1 %158 to i64
  %160 = select i1 %158, i32 1, i32 0
  call void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4 %58, ptr noundef nonnull align 8 dereferenceable(168) %149, i32 noundef %150, i32 noundef %152, i32 noundef %154, i32 noundef %156, i32 noundef %160)
  %161 = load i32, ptr %57, align 4, !tbaa !26
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %168

163:                                              ; preds = %131
  %164 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 7
  %165 = load i32, ptr %164, align 4, !tbaa !31
  %166 = icmp ne i32 %165, -1
  %167 = zext i1 %166 to i8
  store i8 %167, ptr %51, align 1, !tbaa !24
  br label %168

168:                                              ; preds = %163, %131
  %169 = load i8, ptr %51, align 1, !tbaa !24, !range !28, !noundef !29
  %170 = trunc i8 %169 to i1
  br i1 %170, label %171, label %310

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #5
  %172 = load i32, ptr %41, align 4, !tbaa !17
  %173 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %174 = icmp eq i32 %172, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %171
  %176 = load i64, ptr %46, align 8, !tbaa !11
  br label %179

177:                                              ; preds = %171
  %178 = load i64, ptr %23, align 8, !tbaa !11
  br label %179

179:                                              ; preds = %177, %175
  %180 = phi i64 [ %176, %175 ], [ %178, %177 ]
  store i64 %180, ptr %59, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #5
  %181 = load i32, ptr %41, align 4, !tbaa !17
  %182 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %183 = icmp eq i32 %181, %182
  br i1 %183, label %184, label %186

184:                                              ; preds = %179
  %185 = load i64, ptr %23, align 8, !tbaa !11
  br label %188

186:                                              ; preds = %179
  %187 = load i64, ptr %46, align 8, !tbaa !11
  br label %188

188:                                              ; preds = %186, %184
  %189 = phi i64 [ %185, %184 ], [ %187, %186 ]
  store i64 %189, ptr %60, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #5
  %190 = load i32, ptr %42, align 4, !tbaa !17
  %191 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %192 = icmp eq i32 %190, %191
  br i1 %192, label %193, label %195

193:                                              ; preds = %188
  %194 = load i64, ptr %23, align 8, !tbaa !11
  br label %197

195:                                              ; preds = %188
  %196 = load i64, ptr %47, align 8, !tbaa !11
  br label %197

197:                                              ; preds = %195, %193
  %198 = phi i64 [ %194, %193 ], [ %196, %195 ]
  store i64 %198, ptr %61, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #5
  %199 = load i32, ptr %42, align 4, !tbaa !17
  %200 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %201 = icmp eq i32 %199, %200
  br i1 %201, label %202, label %204

202:                                              ; preds = %197
  %203 = load i64, ptr %47, align 8, !tbaa !11
  br label %206

204:                                              ; preds = %197
  %205 = load i64, ptr %23, align 8, !tbaa !11
  br label %206

206:                                              ; preds = %204, %202
  %207 = phi i64 [ %203, %202 ], [ %205, %204 ]
  store i64 %207, ptr %62, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #5
  store ptr null, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #5
  store ptr null, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #5
  store ptr null, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #5
  store ptr null, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #5
  %208 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 11
  %209 = load i32, ptr %208, align 4, !tbaa !23
  %210 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %209)
  store i32 %210, ptr %67, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #5
  %211 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 11
  %212 = load i32, ptr %211, align 4, !tbaa !23
  %213 = call noundef i32 @_ZN17fastertransformer20getCublasComputeTypeENS_13datatype_enumE(i32 noundef %212)
  store i32 %213, ptr %68, align 4, !tbaa !33
  %214 = load i32, ptr %43, align 4, !tbaa !19
  %215 = load i64, ptr %59, align 8, !tbaa !11
  %216 = load i64, ptr %60, align 8, !tbaa !11
  %217 = load i64, ptr %48, align 8, !tbaa !11
  %218 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef %64, i32 noundef %214, i64 noundef %215, i64 noundef %216, i64 noundef %217)
  %219 = load i32, ptr %44, align 4, !tbaa !19
  %220 = load i64, ptr %61, align 8, !tbaa !11
  %221 = load i64, ptr %62, align 8, !tbaa !11
  %222 = load i64, ptr %49, align 8, !tbaa !11
  %223 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef %65, i32 noundef %219, i64 noundef %220, i64 noundef %221, i64 noundef %222)
  %224 = load i32, ptr %45, align 4, !tbaa !19
  %225 = load i64, ptr %46, align 8, !tbaa !11
  %226 = load i64, ptr %47, align 8, !tbaa !11
  %227 = load i64, ptr %32, align 8, !tbaa !11
  %228 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef %66, i32 noundef %224, i64 noundef %225, i64 noundef %226, i64 noundef %227)
  %229 = load i32, ptr %68, align 4, !tbaa !33
  %230 = load i32, ptr %67, align 4, !tbaa !19
  %231 = call i32 @cublasLtMatmulDescCreate(ptr noundef %63, i32 noundef %229, i32 noundef %230)
  %232 = load ptr, ptr %63, align 8, !tbaa !5
  %233 = call i32 @cublasLtMatmulDescSetAttribute(ptr noundef %232, i32 noundef 3, ptr noundef %41, i64 noundef 4)
  %234 = load ptr, ptr %63, align 8, !tbaa !5
  %235 = call i32 @cublasLtMatmulDescSetAttribute(ptr noundef %234, i32 noundef 4, ptr noundef %42, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 64, ptr %69) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #5
  %236 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 7
  %237 = load ptr, ptr %236, align 8, !tbaa !35
  store ptr %237, ptr %70, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #5
  %238 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 7
  %239 = load ptr, ptr %238, align 8, !tbaa !35
  %240 = icmp eq ptr %239, null
  %241 = zext i1 %240 to i64
  %242 = select i1 %240, i32 0, i32 33554432
  store i32 %242, ptr %71, align 4, !tbaa !26
  %243 = load i32, ptr %57, align 4, !tbaa !26
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %276

245:                                              ; preds = %206
  %246 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 6
  %247 = load i32, ptr %246, align 4, !tbaa !36
  %248 = load i32, ptr %71, align 4, !tbaa !26
  %249 = icmp sgt i32 %247, %248
  br i1 %249, label %250, label %251

250:                                              ; preds = %245
  store i32 0, ptr %57, align 4, !tbaa !26
  br label %275

251:                                              ; preds = %245
  %252 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !37
  %254 = load i32, ptr %68, align 4, !tbaa !33
  %255 = load i32, ptr %67, align 4, !tbaa !19
  %256 = load i32, ptr %43, align 4, !tbaa !19
  %257 = load i32, ptr %44, align 4, !tbaa !19
  %258 = load i32, ptr %45, align 4, !tbaa !19
  %259 = load i32, ptr %45, align 4, !tbaa !19
  %260 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 0
  %261 = load i32, ptr %260, align 4, !tbaa !38
  %262 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %261, ptr noundef %69)
  %263 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 1
  %264 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %69, i32 noundef 5, ptr noundef %263, i64 noundef 4)
  %265 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 2
  %266 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %69, i32 noundef 1, ptr noundef %265, i64 noundef 4)
  %267 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 3
  %268 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %69, i32 noundef 2, ptr noundef %267, i64 noundef 4)
  %269 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 4
  %270 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %69, i32 noundef 4, ptr noundef %269, i64 noundef 4)
  %271 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 5
  %272 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %69, i32 noundef 3, ptr noundef %271, i64 noundef 4)
  %273 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 7
  %274 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %69, i32 noundef 6, ptr noundef %273, i64 noundef 4)
  br label %275

275:                                              ; preds = %251, %250
  br label %276

276:                                              ; preds = %275, %206
  %277 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 6
  %278 = load ptr, ptr %277, align 8, !tbaa !37
  %279 = load ptr, ptr %63, align 8, !tbaa !5
  %280 = load ptr, ptr %55, align 8, !tbaa !5
  %281 = load ptr, ptr %39, align 8, !tbaa !5
  %282 = load ptr, ptr %64, align 8, !tbaa !5
  %283 = load ptr, ptr %40, align 8, !tbaa !5
  %284 = load ptr, ptr %65, align 8, !tbaa !5
  %285 = load ptr, ptr %56, align 8, !tbaa !5
  %286 = load ptr, ptr %30, align 8, !tbaa !5
  %287 = load ptr, ptr %66, align 8, !tbaa !5
  %288 = load ptr, ptr %30, align 8, !tbaa !5
  %289 = load ptr, ptr %66, align 8, !tbaa !5
  %290 = load i32, ptr %57, align 4, !tbaa !26
  %291 = icmp eq i32 %290, 1
  br i1 %291, label %292, label %293

292:                                              ; preds = %276
  br label %294

293:                                              ; preds = %276
  br label %294

294:                                              ; preds = %293, %292
  %295 = phi ptr [ %69, %292 ], [ null, %293 ]
  %296 = load ptr, ptr %70, align 8, !tbaa !5
  %297 = load i32, ptr %71, align 4, !tbaa !26
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 2
  %300 = load ptr, ptr %299, align 8, !tbaa !39
  %301 = call i32 @cublasLtMatmul(ptr noundef %278, ptr noundef %279, ptr noundef %280, ptr noundef %281, ptr noundef %282, ptr noundef %283, ptr noundef %284, ptr noundef %285, ptr noundef %286, ptr noundef %287, ptr noundef %288, ptr noundef %289, ptr noundef %295, ptr noundef %296, i64 noundef %298, ptr noundef %300)
  %302 = load ptr, ptr %63, align 8, !tbaa !5
  %303 = call i32 @cublasLtMatmulDescDestroy(ptr noundef %302)
  %304 = load ptr, ptr %64, align 8, !tbaa !5
  %305 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %304)
  %306 = load ptr, ptr %65, align 8, !tbaa !5
  %307 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %306)
  %308 = load ptr, ptr %66, align 8, !tbaa !5
  %309 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %308)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef @.str.1, i32 noundef 343)
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %69) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  br label %343

310:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #5
  %311 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 11
  %312 = load i32, ptr %311, align 4, !tbaa !23
  %313 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %312)
  store i32 %313, ptr %72, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #5
  %314 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %58, i32 0, i32 0
  %315 = load i32, ptr %314, align 4, !tbaa !38
  store i32 %315, ptr %73, align 4, !tbaa !26
  %316 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 5
  %317 = load ptr, ptr %316, align 8, !tbaa !40
  %318 = load i32, ptr %41, align 4, !tbaa !17
  %319 = load i32, ptr %42, align 4, !tbaa !17
  %320 = load i64, ptr %46, align 8, !tbaa !11
  %321 = trunc i64 %320 to i32
  %322 = load i64, ptr %47, align 8, !tbaa !11
  %323 = trunc i64 %322 to i32
  %324 = load i64, ptr %23, align 8, !tbaa !11
  %325 = trunc i64 %324 to i32
  %326 = load ptr, ptr %55, align 8, !tbaa !5
  %327 = load ptr, ptr %39, align 8, !tbaa !5
  %328 = load i32, ptr %43, align 4, !tbaa !19
  %329 = load i64, ptr %48, align 8, !tbaa !11
  %330 = trunc i64 %329 to i32
  %331 = load ptr, ptr %40, align 8, !tbaa !5
  %332 = load i32, ptr %44, align 4, !tbaa !19
  %333 = load i64, ptr %49, align 8, !tbaa !11
  %334 = trunc i64 %333 to i32
  %335 = load ptr, ptr %56, align 8, !tbaa !5
  %336 = load ptr, ptr %30, align 8, !tbaa !5
  %337 = load i32, ptr %45, align 4, !tbaa !19
  %338 = load i64, ptr %32, align 8, !tbaa !11
  %339 = trunc i64 %338 to i32
  %340 = load i32, ptr %72, align 4, !tbaa !19
  %341 = load i32, ptr %73, align 4, !tbaa !26
  %342 = call noundef i32 @_ZL12cublasGemmExP13cublasContext17cublasOperation_tS1_iiiPKvS3_14cudaDataType_tiS3_S4_iS3_PvS4_iS4_16cublasGemmAlgo_t(ptr noundef %317, i32 noundef %318, i32 noundef %319, i32 noundef %321, i32 noundef %323, i32 noundef %325, ptr noundef %326, ptr noundef %327, i32 noundef %328, i32 noundef %330, ptr noundef %331, i32 noundef %332, i32 noundef %334, ptr noundef %335, ptr noundef %336, i32 noundef %337, i32 noundef %339, i32 noundef %340, i32 noundef %341)
  call void @_ZN17fastertransformer5checkI14cublasStatus_tEEvT_PKcS4_i(i32 noundef %342, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 366)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef @.str.1, i32 noundef 367)
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #5
  br label %343

343:                                              ; preds = %310, %294
  %344 = getelementptr inbounds %"class.fastertransformer::Gemm", ptr %74, i32 0, i32 3
  %345 = load ptr, ptr %344, align 8, !tbaa !21
  call void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %345)
  call void @llvm.lifetime.end.p0(i64 36, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  ret void

346:                                              ; preds = %91
  %347 = load ptr, ptr %37, align 8
  %348 = load i32, ptr %38, align 4
  %349 = insertvalue { ptr, i32 } poison, ptr %347, 0
  %350 = insertvalue { ptr, i32 } %349, i32 %348, 1
  resume { ptr, i32 } %350
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN17fastertransformer6Logger9getLoggerEv() #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17fastertransformer6Logger8getLevelEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17fastertransformer6Logger3logIJmmmmmmEEEvNS0_5LevelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6__halfC2Ef(ptr noundef nonnull align 2 dereferenceable(2), float noundef) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4, ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17fastertransformer20getCublasComputeTypeENS_13datatype_enumE(i32 noundef) #0

declare i32 @cublasLtMatrixLayoutCreate(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef) #3

declare i32 @cublasLtMatmulDescCreate(ptr noundef, i32 noundef, i32 noundef) #3

declare i32 @cublasLtMatmulDescSetAttribute(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #3

declare i32 @cublasLtMatmulAlgoInit(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #3

declare i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #3

declare i32 @cublasLtMatmul(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

declare i32 @cublasLtMatmulDescDestroy(ptr noundef) #3

declare i32 @cublasLtMatrixLayoutDestroy(ptr noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL12cublasGemmExP13cublasContext17cublasOperation_tS1_iiiPKvS3_14cudaDataType_tiS3_S4_iS3_PvS4_iS4_16cublasGemmAlgo_t(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"_ZTSN17fastertransformer6GemmOpE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN17fastertransformer13datatype_enumE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS17cublasOperation_t", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS14cudaDataType_t", !7, i64 0}
!21 = !{!22, !6, i64 24}
!22 = !{!"_ZTSN17fastertransformer4GemmE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76}
!23 = !{!22, !14, i64 76}
!24 = !{!25, !25, i64 0}
!25 = !{!"bool", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!22, !6, i64 32}
!31 = !{!32, !27, i64 28}
!32 = !{!"_ZTSN17fastertransformer23cublasLtMatmulAlgo_infoE", !27, i64 0, !27, i64 4, !27, i64 8, !27, i64 12, !27, i64 16, !27, i64 20, !27, i64 24, !27, i64 28, !16, i64 32}
!33 = !{!34, !34, i64 0}
!34 = !{!"_ZTS19cublasComputeType_t", !7, i64 0}
!35 = !{!22, !6, i64 56}
!36 = !{!32, !27, i64 24}
!37 = !{!22, !6, i64 48}
!38 = !{!32, !27, i64 0}
!39 = !{!22, !6, i64 16}
!40 = !{!22, !6, i64 40}


; 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.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::allocator" = type { i8 }
%struct.__half = type { i16 }
%"struct.fastertransformer::cublasLtMatmulAlgo_info" = type { i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.cublasLtMatmulAlgo_t = type { [8 x i64] }

@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [199 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17fastertransformer5checkI14cublasStatus_tEEvT_PKcS4_i(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17fastertransformer4Gemm4gemmENS_6GemmOpES1_mmmPKvNS_13datatype_enumEmS3_S4_mPvS4_mff(ptr nocapture noundef nonnull readonly align 8 dereferenceable(80) %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, ptr noundef %6, i32 noundef %7, i64 noundef %8, ptr noundef %9, i32 noundef %10, i64 noundef %11, ptr noundef %12, i32 noundef %13, i64 noundef %14, float noundef %15, float noundef %16) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.__half, align 2
  %31 = alloca %struct.__half, align 2
  %32 = alloca %"struct.fastertransformer::cublasLtMatmulAlgo_info", align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca %struct.cublasLtMatmulAlgo_t, align 8
  store i64 %3, ptr %18, align 8, !tbaa !5
  store i64 %4, ptr %19, align 8, !tbaa !5
  store i64 %5, ptr %20, align 8, !tbaa !5
  store i64 %8, ptr %21, align 8, !tbaa !5
  store i64 %11, ptr %22, align 8, !tbaa !5
  store i64 %14, ptr %23, align 8, !tbaa !5
  store float %15, ptr %24, align 4, !tbaa !9
  store float %16, ptr %25, align 4, !tbaa !9
  %38 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZN17fastertransformer6Logger9getLoggerEv()
  %39 = tail call noundef i32 @_ZNK17fastertransformer6Logger8getLevelEv(ptr noundef nonnull align 8 dereferenceable(88) %38)
  %40 = icmp slt i32 %39, 1
  br i1 %40, label %41, label %50

41:                                               ; preds = %17
  %42 = tail call noundef nonnull align 8 dereferenceable(88) ptr @_ZN17fastertransformer6Logger9getLoggerEv()
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %43 unwind label %45

43:                                               ; preds = %41
  invoke void @_ZN17fastertransformer6Logger3logIJmmmmmmEEEvNS0_5LevelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(88) %42, i32 noundef 0, ptr noundef nonnull %26, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %44 unwind label %47

44:                                               ; preds = %43
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #5
  br label %50

45:                                               ; preds = %41
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %49

47:                                               ; preds = %43
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #5
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #5
  resume { ptr, i32 } %.pn

50:                                               ; preds = %17, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #5
  %51 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef %2)
  store i32 %51, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #5
  %52 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef %1)
  store i32 %52, ptr %29, align 4, !tbaa !11
  %53 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %10)
  %54 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %7)
  %55 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %13)
  %56 = load i64, ptr %19, align 8, !tbaa !5
  %57 = load i64, ptr %18, align 8, !tbaa !5
  %58 = load i64, ptr %22, align 8, !tbaa !5
  %59 = load i64, ptr %21, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %0, i64 24
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  call void @_ZNSt5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %61)
  %62 = getelementptr inbounds i8, ptr %0, i64 76
  %63 = load i32, ptr %62, align 4, !tbaa !17
  %64 = icmp eq i32 %63, 10
  %65 = icmp eq i32 %7, 10
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %30) #5
  call void @_ZN6__halfC2Ef(ptr noundef nonnull align 2 dereferenceable(2) %30, float noundef %15)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %31) #5
  call void @_ZN6__halfC2Ef(ptr noundef nonnull align 2 dereferenceable(2) %31, float noundef %16)
  %. = select i1 %64, ptr %30, ptr %24
  %66 = select i1 %64, ptr %31, ptr %25
  %67 = getelementptr inbounds i8, ptr %0, i64 32
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = trunc i64 %56 to i32
  %70 = trunc i64 %57 to i32
  %71 = load i64, ptr %20, align 8, !tbaa !5
  %72 = trunc i64 %71 to i32
  %73 = icmp eq i32 %53, 2
  %74 = zext i1 %73 to i32
  %75 = call noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168) %68, i32 noundef 1, i32 noundef %69, i32 noundef %70, i32 noundef %72, i32 noundef %74)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %32) #5
  %76 = load ptr, ptr %67, align 8, !tbaa !18
  %77 = load i64, ptr %20, align 8, !tbaa !5
  %78 = trunc i64 %77 to i32
  call void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind nonnull writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4 %32, ptr noundef nonnull align 8 dereferenceable(168) %76, i32 noundef 1, i32 noundef %69, i32 noundef %70, i32 noundef %78, i32 noundef %74)
  %79 = getelementptr inbounds i8, ptr %32, i64 28
  %80 = load i32, ptr %79, align 4
  %81 = icmp ne i32 %80, -1
  %.072.in = select i1 %75, i1 %81, i1 %65
  br i1 %.072.in, label %82, label %153

82:                                               ; preds = %50
  %83 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %84 = icmp eq i32 %51, %83
  %85 = load i64, ptr %20, align 8
  %86 = select i1 %84, i64 %56, i64 %85
  %87 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %88 = icmp eq i32 %51, %87
  %89 = load i64, ptr %20, align 8
  %90 = select i1 %88, i64 %89, i64 %56
  %91 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %92 = icmp eq i32 %52, %91
  %93 = load i64, ptr %20, align 8
  %94 = select i1 %92, i64 %93, i64 %57
  %95 = call noundef i32 @_ZN17fastertransformer18getCublasOperationENS_6GemmOpE(i32 noundef 0)
  %96 = icmp eq i32 %52, %95
  %97 = load i64, ptr %20, align 8
  %98 = select i1 %96, i64 %57, i64 %97
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #5
  store ptr null, ptr %33, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #5
  store ptr null, ptr %34, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #5
  store ptr null, ptr %35, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #5
  store ptr null, ptr %36, align 8, !tbaa !19
  %99 = load i32, ptr %62, align 4, !tbaa !17
  %100 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %99)
  %101 = load i32, ptr %62, align 4, !tbaa !17
  %102 = call noundef i32 @_ZN17fastertransformer20getCublasComputeTypeENS_13datatype_enumE(i32 noundef %101)
  %103 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef nonnull %34, i32 noundef %53, i64 noundef %86, i64 noundef %90, i64 noundef %58)
  %104 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef nonnull %35, i32 noundef %54, i64 noundef %94, i64 noundef %98, i64 noundef %59)
  %105 = load i64, ptr %23, align 8, !tbaa !5
  %106 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef nonnull %36, i32 noundef %55, i64 noundef %56, i64 noundef %57, i64 noundef %105)
  %107 = call i32 @cublasLtMatmulDescCreate(ptr noundef nonnull %33, i32 noundef %102, i32 noundef %100)
  %108 = load ptr, ptr %33, align 8, !tbaa !19
  %109 = call i32 @cublasLtMatmulDescSetAttribute(ptr noundef %108, i32 noundef 3, ptr noundef nonnull %28, i64 noundef 4)
  %110 = load ptr, ptr %33, align 8, !tbaa !19
  %111 = call i32 @cublasLtMatmulDescSetAttribute(ptr noundef %110, i32 noundef 4, ptr noundef nonnull %29, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %37) #5
  %112 = getelementptr inbounds i8, ptr %0, i64 56
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  %114 = icmp eq ptr %113, null
  %115 = select i1 %114, i32 0, i32 33554432
  %116 = getelementptr inbounds i8, ptr %32, i64 24
  %117 = load i32, ptr %116, align 4
  %118 = icmp sle i32 %117, %115
  %or.cond.not = select i1 %75, i1 %118, i1 false
  br i1 %or.cond.not, label %119, label %.thread

119:                                              ; preds = %82
  %120 = getelementptr inbounds i8, ptr %0, i64 48
  %121 = load ptr, ptr %120, align 8, !tbaa !21
  %122 = load i32, ptr %32, align 4, !tbaa !22
  %123 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %121, i32 noundef %102, i32 noundef %100, i32 noundef %53, i32 noundef %54, i32 noundef %55, i32 noundef %55, i32 noundef %122, ptr noundef nonnull %37)
  %124 = getelementptr inbounds i8, ptr %32, i64 4
  %125 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %37, i32 noundef 5, ptr noundef nonnull %124, i64 noundef 4)
  %126 = getelementptr inbounds i8, ptr %32, i64 8
  %127 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %37, i32 noundef 1, ptr noundef nonnull %126, i64 noundef 4)
  %128 = getelementptr inbounds i8, ptr %32, i64 12
  %129 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %37, i32 noundef 2, ptr noundef nonnull %128, i64 noundef 4)
  %130 = getelementptr inbounds i8, ptr %32, i64 16
  %131 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %37, i32 noundef 4, ptr noundef nonnull %130, i64 noundef 4)
  %132 = getelementptr inbounds i8, ptr %32, i64 20
  %133 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %37, i32 noundef 3, ptr noundef nonnull %132, i64 noundef 4)
  %134 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %37, i32 noundef 6, ptr noundef nonnull %79, i64 noundef 4)
  br label %.thread

.thread:                                          ; preds = %82, %119
  %135 = phi ptr [ %37, %119 ], [ null, %82 ]
  %.in = getelementptr inbounds i8, ptr %0, i64 48
  %136 = load ptr, ptr %.in, align 8, !tbaa !21
  %137 = load ptr, ptr %33, align 8, !tbaa !19
  %138 = load ptr, ptr %34, align 8, !tbaa !19
  %139 = load ptr, ptr %35, align 8, !tbaa !19
  %140 = load ptr, ptr %36, align 8, !tbaa !19
  %141 = zext nneg i32 %115 to i64
  %142 = getelementptr inbounds i8, ptr %0, i64 16
  %143 = load ptr, ptr %142, align 8, !tbaa !25
  %144 = call i32 @cublasLtMatmul(ptr noundef %136, ptr noundef %137, ptr noundef nonnull %., ptr noundef %9, ptr noundef %138, ptr noundef %6, ptr noundef %139, ptr noundef nonnull %66, ptr noundef %12, ptr noundef %140, ptr noundef %12, ptr noundef %140, ptr noundef %135, ptr noundef %113, i64 noundef %141, ptr noundef %143)
  %145 = load ptr, ptr %33, align 8, !tbaa !19
  %146 = call i32 @cublasLtMatmulDescDestroy(ptr noundef %145)
  %147 = load ptr, ptr %34, align 8, !tbaa !19
  %148 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %147)
  %149 = load ptr, ptr %35, align 8, !tbaa !19
  %150 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %149)
  %151 = load ptr, ptr %36, align 8, !tbaa !19
  %152 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %151)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef nonnull @.str.1, i32 noundef 343)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #5
  br label %166

153:                                              ; preds = %50
  %154 = load i32, ptr %62, align 4, !tbaa !17
  %155 = call noundef i32 @_ZN17fastertransformer17getCublasDataTypeENS_13datatype_enumE(i32 noundef %154)
  %156 = load i32, ptr %32, align 4, !tbaa !22
  %157 = getelementptr inbounds i8, ptr %0, i64 40
  %158 = load ptr, ptr %157, align 8, !tbaa !26
  %159 = load i64, ptr %20, align 8, !tbaa !5
  %160 = trunc i64 %159 to i32
  %161 = trunc i64 %58 to i32
  %162 = trunc i64 %59 to i32
  %163 = load i64, ptr %23, align 8, !tbaa !5
  %164 = trunc i64 %163 to i32
  %165 = call noundef i32 @_ZL12cublasGemmExP13cublasContext17cublasOperation_tS1_iiiPKvS3_14cudaDataType_tiS3_S4_iS3_PvS4_iS4_16cublasGemmAlgo_t(ptr noundef %158, i32 noundef %51, i32 noundef %52, i32 noundef %69, i32 noundef %70, i32 noundef %160, ptr noundef nonnull %., ptr noundef %9, i32 noundef %53, i32 noundef %161, ptr noundef %6, i32 noundef %54, i32 noundef %162, ptr noundef nonnull %66, ptr noundef %12, i32 noundef %55, i32 noundef %164, i32 noundef %155, i32 noundef %156)
  call void @_ZN17fastertransformer5checkI14cublasStatus_tEEvT_PKcS4_i(i32 noundef %165, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 366)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef nonnull @.str.1, i32 noundef 367)
  br label %166

166:                                              ; preds = %153, %.thread
  %167 = load ptr, ptr %60, align 8, !tbaa !13
  call void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %167)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %32) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %31) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #5
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(88) ptr @_ZN17fastertransformer6Logger9getLoggerEv() local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17fastertransformer6Logger8getLevelEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17fastertransformer6Logger3logIJmmmmmmEEEvNS0_5LevelENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEDpRKT_(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6__halfC2Ef(ptr noundef nonnull align 2 dereferenceable(2), float noundef) unnamed_addr #0 align 2

declare noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4, ptr noundef nonnull align 8 dereferenceable(168), i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @cublasLtMatrixLayoutCreate(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @cublasLtMatmulDescCreate(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @cublasLtMatmulDescSetAttribute(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @cublasLtMatmulAlgoInit(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @cublasLtMatmul(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @cublasLtMatmulDescDestroy(ptr noundef) local_unnamed_addr #3

declare i32 @cublasLtMatrixLayoutDestroy(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZL12cublasGemmExP13cublasContext17cublasOperation_tS1_iiiPKvS3_14cudaDataType_tiS3_S4_iS3_PvS4_iS4_16cublasGemmAlgo_t(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS17cublasOperation_t", !7, i64 0}
!13 = !{!14, !15, i64 24}
!14 = !{!"_ZTSN17fastertransformer4GemmE", !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN17fastertransformer13datatype_enumE", !7, i64 0}
!17 = !{!14, !16, i64 76}
!18 = !{!14, !15, i64 32}
!19 = !{!15, !15, i64 0}
!20 = !{!14, !15, i64 56}
!21 = !{!14, !15, i64 48}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTSN17fastertransformer23cublasLtMatmulAlgo_infoE", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12, !24, i64 16, !24, i64 20, !24, i64 24, !24, i64 28, !10, i64 32}
!24 = !{!"int", !7, i64 0}
!25 = !{!14, !15, i64 16}
!26 = !{!14, !15, i64 40}


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