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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.cublasLtMatmulAlgo_t = type { [8 x i64] }
%"struct.fastertransformer::cublasLtMatmulAlgo_info" = type { i32, i32, i32, i32, i32, i32, i32, i32, float }
%"class.fastertransformer::cublasMMWrapper" = type { ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>, std::pair<const std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>, cublasLtMatmulAlgo_t>, std::_Select1st<std::pair<const std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>, cublasLtMatmulAlgo_t>>, std::less<std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>, std::pair<const std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>, cublasLtMatmulAlgo_t>, std::_Select1st<std::pair<const std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>, cublasLtMatmulAlgo_t>>, std::less<std::tuple<cublasLtMatmulDescOpaque_t *, std::array<std::tuple<cudaDataType_t, cublasLtOrder_t, unsigned long, unsigned long>, 4>>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.fastertransformer::cublasINT8MMWrapper" = type <{ %"class.fastertransformer::cublasMMWrapper", i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [109 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 @_ZN17fastertransformer19cublasINT8MMWrapper4GemmEPiiiiilllPKaS3_(ptr noundef nonnull align 8 dereferenceable(129) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10) #1 align 2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %struct.cublasLtMatmulAlgo_t, align 8
  %37 = alloca i32, align 4
  %38 = alloca %"struct.fastertransformer::cublasLtMatmulAlgo_info", align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %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
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store i32 %3, ptr %15, align 4, !tbaa !9
  store i32 %4, ptr %16, align 4, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !9
  store i64 %6, ptr %18, align 8, !tbaa !11
  store i64 %7, ptr %19, align 8, !tbaa !11
  store i64 %8, ptr %20, align 8, !tbaa !11
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  %46 = load ptr, ptr %12, align 8
  %47 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 9
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  call void @_ZNSt5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %48)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 1, ptr %23, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 72, ptr %24, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store ptr null, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  store ptr null, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  store ptr null, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 2, ptr %29, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %49 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %46, i32 0, i32 1
  %50 = load i8, ptr %49, align 8, !tbaa !30, !range !33, !noundef !34
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %53

52:                                               ; preds = %11
  store i32 4, ptr %30, align 4, !tbaa !28
  br label %54

53:                                               ; preds = %11
  store i32 3, ptr %30, align 4, !tbaa !28
  br label %54

54:                                               ; preds = %53, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = mul nsw i32 32, %55
  store i32 %56, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %57 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %46, i32 0, i32 1
  %58 = load i8, ptr %57, align 8, !tbaa !30, !range !33, !noundef !34
  %59 = trunc i8 %58 to i1
  br i1 %59, label %60, label %67

60:                                               ; preds = %54
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = add nsw i32 %61, 32
  %63 = sub nsw i32 %62, 1
  %64 = sdiv i32 %63, 32
  %65 = mul nsw i32 32, %64
  %66 = mul nsw i32 %65, 32
  store i32 %66, ptr %32, align 4, !tbaa !9
  br label %74

67:                                               ; preds = %54
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = add nsw i32 %68, 8
  %70 = sub nsw i32 %69, 1
  %71 = sdiv i32 %70, 8
  %72 = mul nsw i32 32, %71
  %73 = mul nsw i32 %72, 8
  store i32 %73, ptr %32, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %67, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = mul nsw i32 32, %75
  store i32 %76, ptr %33, align 4, !tbaa !9
  %77 = load i32, ptr %24, align 4, !tbaa !26
  %78 = call i32 @cublasLtMatmulDescCreate(ptr noundef %25, i32 noundef %77, i32 noundef 10)
  %79 = load ptr, ptr %25, align 8, !tbaa !5
  %80 = call i32 @cublasLtMatmulDescSetAttribute(ptr noundef %79, i32 noundef 4, ptr noundef %23, i64 noundef 4)
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = load i32, ptr %17, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = load i32, ptr %31, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef %26, i32 noundef 3, i64 noundef %82, i64 noundef %84, i64 noundef %86)
  %88 = load ptr, ptr %26, align 8, !tbaa !5
  %89 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %88, i32 noundef 1, ptr noundef %29, i64 noundef 4)
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = load i32, ptr %32, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef %27, i32 noundef 3, i64 noundef %91, i64 noundef %93, i64 noundef %95)
  %97 = load ptr, ptr %27, align 8, !tbaa !5
  %98 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %97, i32 noundef 1, ptr noundef %30, i64 noundef 4)
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = load i32, ptr %33, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef %28, i32 noundef 10, i64 noundef %100, i64 noundef %102, i64 noundef %104)
  %106 = load ptr, ptr %28, align 8, !tbaa !5
  %107 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %106, i32 noundef 1, ptr noundef %29, i64 noundef 4)
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = icmp sgt i32 %108, 1
  br i1 %109, label %110, label %123

110:                                              ; preds = %74
  %111 = load ptr, ptr %26, align 8, !tbaa !5
  %112 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %111, i32 noundef 5, ptr noundef %14, i64 noundef 4)
  %113 = load ptr, ptr %26, align 8, !tbaa !5
  %114 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %113, i32 noundef 6, ptr noundef %18, i64 noundef 8)
  %115 = load ptr, ptr %27, align 8, !tbaa !5
  %116 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %115, i32 noundef 5, ptr noundef %14, i64 noundef 4)
  %117 = load ptr, ptr %27, align 8, !tbaa !5
  %118 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %117, i32 noundef 6, ptr noundef %19, i64 noundef 8)
  %119 = load ptr, ptr %28, align 8, !tbaa !5
  %120 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %119, i32 noundef 5, ptr noundef %14, i64 noundef 4)
  %121 = load ptr, ptr %28, align 8, !tbaa !5
  %122 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %121, i32 noundef 6, ptr noundef %20, i64 noundef 8)
  br label %123

123:                                              ; preds = %110, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  store i32 1, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 0, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  store i32 0, ptr %37, align 4, !tbaa !9
  %124 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 8
  %125 = load ptr, ptr %124, align 8, !tbaa !35
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = call noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168) %125, i32 noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129, i32 noundef 3)
  br i1 %130, label %131, label %156

131:                                              ; preds = %123
  store i32 1, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 36, ptr %38) #4
  %132 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 8
  %133 = load ptr, ptr %132, align 8, !tbaa !35
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4 %38, ptr noundef nonnull align 8 dereferenceable(168) %133, i32 noundef %134, i32 noundef %135, i32 noundef %136, i32 noundef %137, i32 noundef 3)
  %138 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !36
  %140 = load i32, ptr %24, align 4, !tbaa !26
  %141 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 0
  %142 = load i32, ptr %141, align 4, !tbaa !37
  %143 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %139, i32 noundef %140, i32 noundef 10, i32 noundef 3, i32 noundef 3, i32 noundef 10, i32 noundef 10, i32 noundef %142, ptr noundef %36)
  %144 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 1
  %145 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 5, ptr noundef %144, i64 noundef 4)
  %146 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 2
  %147 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 1, ptr noundef %146, i64 noundef 4)
  %148 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 3
  %149 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 2, ptr noundef %148, i64 noundef 4)
  %150 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 4
  %151 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 4, ptr noundef %150, i64 noundef 4)
  %152 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 5
  %153 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 3, ptr noundef %152, i64 noundef 4)
  %154 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %38, i32 0, i32 7
  %155 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 6, ptr noundef %154, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 36, ptr %38) #4
  br label %180

156:                                              ; preds = %123
  store i32 1, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %157 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %46, i32 0, i32 1
  %158 = load i8, ptr %157, align 8, !tbaa !30, !range !33, !noundef !34
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %161

160:                                              ; preds = %156
  store i32 7, ptr %39, align 4, !tbaa !9
  br label %162

161:                                              ; preds = %156
  store i32 6, ptr %39, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %161, %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 0, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  store i32 0, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  store i32 20, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  store i32 0, ptr %43, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  store i32 0, ptr %44, align 4, !tbaa !9
  %163 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 2
  %164 = load ptr, ptr %163, align 8, !tbaa !36
  %165 = load i32, ptr %24, align 4, !tbaa !26
  %166 = load i32, ptr %39, align 4, !tbaa !9
  %167 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %164, i32 noundef %165, i32 noundef 10, i32 noundef 3, i32 noundef 3, i32 noundef 10, i32 noundef 10, i32 noundef %166, ptr noundef %36)
  %168 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 5, ptr noundef %41, i64 noundef 4)
  %169 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 1, ptr noundef %42, i64 noundef 4)
  %170 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 2, ptr noundef %43, i64 noundef 4)
  %171 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 4, ptr noundef %40, i64 noundef 4)
  %172 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 3, ptr noundef %44, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %173 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %46, i32 0, i32 1
  %174 = load i8, ptr %173, align 8, !tbaa !30, !range !33, !noundef !34
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %177

176:                                              ; preds = %162
  store i32 15, ptr %45, align 4, !tbaa !9
  br label %178

177:                                              ; preds = %162
  store i32 13, ptr %45, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %177, %176
  %179 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %36, i32 noundef 6, ptr noundef %45, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  br label %180

180:                                              ; preds = %178, %131
  %181 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 2
  %182 = load ptr, ptr %181, align 8, !tbaa !36
  %183 = load ptr, ptr %25, align 8, !tbaa !5
  %184 = load ptr, ptr %21, align 8, !tbaa !5
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  %186 = load ptr, ptr %22, align 8, !tbaa !5
  %187 = load ptr, ptr %27, align 8, !tbaa !5
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = load ptr, ptr %28, align 8, !tbaa !5
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = load ptr, ptr %28, align 8, !tbaa !5
  %192 = load i32, ptr %37, align 4, !tbaa !9
  %193 = icmp eq i32 %192, 1
  br i1 %193, label %194, label %195

194:                                              ; preds = %180
  br label %196

195:                                              ; preds = %180
  br label %196

196:                                              ; preds = %195, %194
  %197 = phi ptr [ %36, %194 ], [ null, %195 ]
  %198 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 7
  %199 = load ptr, ptr %198, align 8, !tbaa !40
  %200 = call i32 @cublasLtMatmul(ptr noundef %182, ptr noundef %183, ptr noundef %34, ptr noundef %184, ptr noundef %185, ptr noundef %186, ptr noundef %187, ptr noundef %35, ptr noundef %188, ptr noundef %189, ptr noundef %190, ptr noundef %191, ptr noundef %197, ptr noundef null, i64 noundef 0, ptr noundef %199)
  %201 = load ptr, ptr %25, align 8, !tbaa !5
  %202 = call i32 @cublasLtMatmulDescDestroy(ptr noundef %201)
  %203 = load ptr, ptr %26, align 8, !tbaa !5
  %204 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %203)
  %205 = load ptr, ptr %27, align 8, !tbaa !5
  %206 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %205)
  %207 = load ptr, ptr %28, align 8, !tbaa !5
  %208 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %207)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef @.str, i32 noundef 251)
  %209 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %46, i32 0, i32 9
  %210 = load ptr, ptr %209, align 8, !tbaa !13
  call void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %210)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  ret void
}

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

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

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

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

declare i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #2

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

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) #2

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

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

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) #2

declare i32 @cublasLtMatmulDescDestroy(ptr noundef) #2

declare i32 @cublasLtMatrixLayoutDestroy(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) #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 = { "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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 56}
!14 = !{!"_ZTSN17fastertransformer15cublasMMWrapperE", !6, i64 8, !6, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !16, i64 80}
!15 = !{!"_ZTS14cudaDataType_t", !7, i64 0}
!16 = !{!"_ZTSSt3mapISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEE20cublasLtMatmulAlgo_tSt4lessIS8_ESaISt4pairIKS8_S9_EEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS1_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !12, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTS17cublasOperation_t", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS19cublasComputeType_t", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"_ZTS15cublasLtOrder_t", !7, i64 0}
!30 = !{!31, !32, i64 128}
!31 = !{!"_ZTSN17fastertransformer19cublasINT8MMWrapperE", !14, i64 0, !32, i64 128}
!32 = !{!"bool", !7, i64 0}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!14, !6, i64 48}
!36 = !{!14, !6, i64 16}
!37 = !{!38, !10, i64 0}
!38 = !{!"_ZTSN17fastertransformer23cublasLtMatmulAlgo_infoE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !39, i64 32}
!39 = !{!"float", !7, i64 0}
!40 = !{!14, !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"

%struct.cublasLtMatmulAlgo_t = type { [8 x i64] }
%"struct.fastertransformer::cublasLtMatmulAlgo_info" = type { i32, i32, i32, i32, i32, i32, i32, i32, float }

@.str = external hidden unnamed_addr constant [109 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 @_ZN17fastertransformer19cublasINT8MMWrapper4GemmEPiiiiilllPKaS3_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(129) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #1 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.cublasLtMatmulAlgo_t, align 8
  %26 = alloca %"struct.fastertransformer::cublasLtMatmulAlgo_info", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store i32 %2, ptr %12, align 4, !tbaa !5
  store i64 %6, ptr %13, align 8, !tbaa !9
  store i64 %7, ptr %14, align 8, !tbaa !9
  store i64 %8, ptr %15, align 8, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  tail call void @_ZNSt5mutex4lockEv(ptr noundef nonnull align 8 dereferenceable(40) %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  store i32 1, ptr %16, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  store ptr null, ptr %18, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  store ptr null, ptr %19, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
  store ptr null, ptr %20, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #4
  store i32 2, ptr %21, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #4
  %35 = getelementptr inbounds i8, ptr %0, i64 128
  %36 = load i8, ptr %35, align 8, !tbaa !28, !range !31, !noundef !32
  %37 = trunc nuw i8 %36 to i1
  %. = select i1 %37, i32 4, i32 3
  store i32 %., ptr %22, align 4, !tbaa !26
  %38 = shl nsw i32 %3, 5
  %.35 = select i1 %37, i32 31, i32 7
  %.36 = select i1 %37, i32 32, i32 8
  %.37 = select i1 %37, i32 10, i32 8
  %39 = add nsw i32 %.35, %4
  %40 = sdiv i32 %39, %.36
  %41 = shl nsw i32 %40, %.37
  %42 = call i32 @cublasLtMatmulDescCreate(ptr noundef nonnull %17, i32 noundef 72, i32 noundef 10)
  %43 = load ptr, ptr %17, align 8, !tbaa !25
  %44 = call i32 @cublasLtMatmulDescSetAttribute(ptr noundef %43, i32 noundef 4, ptr noundef nonnull %16, i64 noundef 4)
  %45 = sext i32 %3 to i64
  %46 = sext i32 %5 to i64
  %47 = sext i32 %38 to i64
  %48 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef nonnull %18, i32 noundef 3, i64 noundef %45, i64 noundef %46, i64 noundef %47)
  %49 = load ptr, ptr %18, align 8, !tbaa !25
  %50 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %49, i32 noundef 1, ptr noundef nonnull %21, i64 noundef 4)
  %51 = sext i32 %4 to i64
  %52 = sext i32 %41 to i64
  %53 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef nonnull %19, i32 noundef 3, i64 noundef %51, i64 noundef %46, i64 noundef %52)
  %54 = load ptr, ptr %19, align 8, !tbaa !25
  %55 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %54, i32 noundef 1, ptr noundef nonnull %22, i64 noundef 4)
  %56 = call i32 @cublasLtMatrixLayoutCreate(ptr noundef nonnull %20, i32 noundef 10, i64 noundef %45, i64 noundef %51, i64 noundef %47)
  %57 = load ptr, ptr %20, align 8, !tbaa !25
  %58 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %57, i32 noundef 1, ptr noundef nonnull %21, i64 noundef 4)
  %59 = icmp sgt i32 %2, 1
  br i1 %59, label %60, label %73

60:                                               ; preds = %11
  %61 = load ptr, ptr %18, align 8, !tbaa !25
  %62 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %61, i32 noundef 5, ptr noundef nonnull %12, i64 noundef 4)
  %63 = load ptr, ptr %18, align 8, !tbaa !25
  %64 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %63, i32 noundef 6, ptr noundef nonnull %13, i64 noundef 8)
  %65 = load ptr, ptr %19, align 8, !tbaa !25
  %66 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %65, i32 noundef 5, ptr noundef nonnull %12, i64 noundef 4)
  %67 = load ptr, ptr %19, align 8, !tbaa !25
  %68 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %67, i32 noundef 6, ptr noundef nonnull %14, i64 noundef 8)
  %69 = load ptr, ptr %20, align 8, !tbaa !25
  %70 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %69, i32 noundef 5, ptr noundef nonnull %12, i64 noundef 4)
  %71 = load ptr, ptr %20, align 8, !tbaa !25
  %72 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %71, i32 noundef 6, ptr noundef nonnull %15, i64 noundef 8)
  %.pre = load i32, ptr %12, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %60, %11
  %74 = phi i32 [ %.pre, %60 ], [ %2, %11 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  store i32 1, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #4
  %75 = getelementptr inbounds i8, ptr %0, i64 48
  %76 = load ptr, ptr %75, align 8, !tbaa !33
  %77 = call noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168) %76, i32 noundef %74, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef 3)
  br i1 %77, label %78, label %97

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %26) #4
  %79 = load ptr, ptr %75, align 8, !tbaa !33
  %80 = load i32, ptr %12, align 4, !tbaa !5
  call void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind nonnull writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4 %26, ptr noundef nonnull align 8 dereferenceable(168) %79, i32 noundef %80, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef 3)
  %81 = getelementptr inbounds i8, ptr %0, i64 16
  %82 = load ptr, ptr %81, align 8, !tbaa !34
  %83 = load i32, ptr %26, align 4, !tbaa !35
  %84 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %82, i32 noundef 72, i32 noundef 10, i32 noundef 3, i32 noundef 3, i32 noundef 10, i32 noundef 10, i32 noundef %83, ptr noundef nonnull %25)
  %85 = getelementptr inbounds i8, ptr %26, i64 4
  %86 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 5, ptr noundef nonnull %85, i64 noundef 4)
  %87 = getelementptr inbounds i8, ptr %26, i64 8
  %88 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 1, ptr noundef nonnull %87, i64 noundef 4)
  %89 = getelementptr inbounds i8, ptr %26, i64 12
  %90 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 2, ptr noundef nonnull %89, i64 noundef 4)
  %91 = getelementptr inbounds i8, ptr %26, i64 16
  %92 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 4, ptr noundef nonnull %91, i64 noundef 4)
  %93 = getelementptr inbounds i8, ptr %26, i64 20
  %94 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 3, ptr noundef nonnull %93, i64 noundef 4)
  %95 = getelementptr inbounds i8, ptr %26, i64 28
  %96 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 6, ptr noundef nonnull %95, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %26) #4
  br label %111

97:                                               ; preds = %73
  %98 = load i8, ptr %35, align 8, !tbaa !28, !range !31, !noundef !32
  %99 = trunc nuw i8 %98 to i1
  %.31 = select i1 %99, i32 7, i32 6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #4
  store i32 0, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #4
  store i32 0, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #4
  store i32 20, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #4
  store i32 0, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #4
  store i32 0, ptr %31, align 4, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %0, i64 16
  %101 = load ptr, ptr %100, align 8, !tbaa !34
  %102 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %101, i32 noundef 72, i32 noundef 10, i32 noundef 3, i32 noundef 3, i32 noundef 10, i32 noundef 10, i32 noundef %.31, ptr noundef nonnull %25)
  %103 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 5, ptr noundef nonnull %28, i64 noundef 4)
  %104 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 1, ptr noundef nonnull %29, i64 noundef 4)
  %105 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 2, ptr noundef nonnull %30, i64 noundef 4)
  %106 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 4, ptr noundef nonnull %27, i64 noundef 4)
  %107 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 3, ptr noundef nonnull %31, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #4
  %108 = load i8, ptr %35, align 8, !tbaa !28, !range !31, !noundef !32
  %109 = trunc nuw i8 %108 to i1
  %storemerge30 = select i1 %109, i32 15, i32 13
  store i32 %storemerge30, ptr %32, align 4, !tbaa !5
  %110 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %25, i32 noundef 6, ptr noundef nonnull %32, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #4
  br label %111

111:                                              ; preds = %97, %78
  %112 = getelementptr inbounds i8, ptr %0, i64 16
  %113 = load ptr, ptr %112, align 8, !tbaa !34
  %114 = load ptr, ptr %17, align 8, !tbaa !25
  %115 = load ptr, ptr %18, align 8, !tbaa !25
  %116 = load ptr, ptr %19, align 8, !tbaa !25
  %117 = load ptr, ptr %20, align 8, !tbaa !25
  %118 = getelementptr inbounds i8, ptr %0, i64 40
  %119 = load ptr, ptr %118, align 8, !tbaa !38
  %120 = call i32 @cublasLtMatmul(ptr noundef %113, ptr noundef %114, ptr noundef nonnull %23, ptr noundef %9, ptr noundef %115, ptr noundef %10, ptr noundef %116, ptr noundef nonnull %24, ptr noundef %1, ptr noundef %117, ptr noundef %1, ptr noundef %117, ptr noundef nonnull %25, ptr noundef null, i64 noundef 0, ptr noundef %119)
  %121 = load ptr, ptr %17, align 8, !tbaa !25
  %122 = call i32 @cublasLtMatmulDescDestroy(ptr noundef %121)
  %123 = load ptr, ptr %18, align 8, !tbaa !25
  %124 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %123)
  %125 = load ptr, ptr %19, align 8, !tbaa !25
  %126 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %125)
  %127 = load ptr, ptr %20, align 8, !tbaa !25
  %128 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %127)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef nonnull @.str, i32 noundef 251)
  %129 = load ptr, ptr %33, align 8, !tbaa !11
  call void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %129)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  ret void
}

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

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

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

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

declare i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #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 #2

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 #2

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

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

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 #2

declare i32 @cublasLtMatmulDescDestroy(ptr noundef) local_unnamed_addr #2

declare i32 @cublasLtMatrixLayoutDestroy(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40)) 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 = { "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 = { 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 = !{!"int", !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, !13, i64 56}
!12 = !{!"_ZTSN17fastertransformer15cublasMMWrapperE", !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !15, i64 80}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTS14cudaDataType_t", !7, i64 0}
!15 = !{!"_ZTSSt3mapISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEE20cublasLtMatmulAlgo_tSt4lessIS8_ESaISt4pairIKS8_S9_EEE", !16, i64 0}
!16 = !{!"_ZTSSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE", !17, i64 0}
!17 = !{!"_ZTSNSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS1_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEEE", !19, i64 0}
!19 = !{!"_ZTSSt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEE"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !10, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTS17cublasOperation_t", !7, i64 0}
!25 = !{!13, !13, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS15cublasLtOrder_t", !7, i64 0}
!28 = !{!29, !30, i64 128}
!29 = !{!"_ZTSN17fastertransformer19cublasINT8MMWrapperE", !12, i64 0, !30, i64 128}
!30 = !{!"bool", !7, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!12, !13, i64 48}
!34 = !{!12, !13, i64 16}
!35 = !{!36, !6, i64 0}
!36 = !{!"_ZTSN17fastertransformer23cublasLtMatmulAlgo_infoE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !37, i64 32}
!37 = !{!"float", !7, i64 0}
!38 = !{!12, !13, i64 40}


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