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

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

54:                                               ; preds = %12
  store i32 4, ptr %33, align 4, !tbaa !31
  br label %56

55:                                               ; preds = %12
  store i32 3, ptr %33, align 4, !tbaa !31
  br label %56

56:                                               ; preds = %55, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = mul nsw i32 32, %57
  store i32 %58, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  %59 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %48, i32 0, i32 1
  %60 = load i8, ptr %59, align 8, !tbaa !33, !range !36, !noundef !37
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %69

62:                                               ; preds = %56
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = add nsw i32 %63, 32
  %65 = sub nsw i32 %64, 1
  %66 = sdiv i32 %65, 32
  %67 = mul nsw i32 32, %66
  %68 = mul nsw i32 %67, 32
  store i32 %68, ptr %35, align 4, !tbaa !9
  br label %76

69:                                               ; preds = %56
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = add nsw i32 %70, 8
  %72 = sub nsw i32 %71, 1
  %73 = sdiv i32 %72, 8
  %74 = mul nsw i32 32, %73
  %75 = mul nsw i32 %74, 8
  store i32 %75, ptr %35, align 4, !tbaa !9
  br label %76

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

115:                                              ; preds = %76
  %116 = load ptr, ptr %29, align 8, !tbaa !5
  %117 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %116, i32 noundef 5, ptr noundef %15, i64 noundef 4)
  %118 = load ptr, ptr %29, align 8, !tbaa !5
  %119 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %118, i32 noundef 6, ptr noundef %19, i64 noundef 8)
  %120 = load ptr, ptr %30, align 8, !tbaa !5
  %121 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %120, i32 noundef 5, ptr noundef %15, i64 noundef 4)
  %122 = load ptr, ptr %30, align 8, !tbaa !5
  %123 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %122, i32 noundef 6, ptr noundef %20, i64 noundef 8)
  %124 = load ptr, ptr %31, align 8, !tbaa !5
  %125 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %124, i32 noundef 5, ptr noundef %15, i64 noundef 4)
  %126 = load ptr, ptr %31, align 8, !tbaa !5
  %127 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %126, i32 noundef 6, ptr noundef %21, i64 noundef 8)
  br label %128

128:                                              ; preds = %115, %76
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  store i32 0, ptr %38, align 4, !tbaa !9
  %129 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 8
  %130 = load ptr, ptr %129, align 8, !tbaa !38
  %131 = load i32, ptr %15, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = load i32, ptr %18, align 4, !tbaa !9
  %135 = call noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168) %130, i32 noundef %131, i32 noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef 3)
  br i1 %135, label %136, label %161

136:                                              ; preds = %128
  store i32 1, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 36, ptr %39) #4
  %137 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 8
  %138 = load ptr, ptr %137, align 8, !tbaa !38
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = load i32, ptr %18, align 4, !tbaa !9
  call void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4 %39, ptr noundef nonnull align 8 dereferenceable(168) %138, i32 noundef %139, i32 noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef 3)
  %143 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !39
  %145 = load i32, ptr %27, align 4, !tbaa !29
  %146 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !40
  %148 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %144, i32 noundef %145, i32 noundef 0, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef %147, ptr noundef %37)
  %149 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 1
  %150 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 5, ptr noundef %149, i64 noundef 4)
  %151 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 2
  %152 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 1, ptr noundef %151, i64 noundef 4)
  %153 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 3
  %154 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 2, ptr noundef %153, i64 noundef 4)
  %155 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 4
  %156 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 4, ptr noundef %155, i64 noundef 4)
  %157 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 5
  %158 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 3, ptr noundef %157, i64 noundef 4)
  %159 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %39, i32 0, i32 7
  %160 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 6, ptr noundef %159, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 36, ptr %39) #4
  br label %185

161:                                              ; preds = %128
  store i32 1, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  %162 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %48, i32 0, i32 1
  %163 = load i8, ptr %162, align 8, !tbaa !33, !range !36, !noundef !37
  %164 = trunc i8 %163 to i1
  br i1 %164, label %165, label %166

165:                                              ; preds = %161
  store i32 7, ptr %40, align 4, !tbaa !9
  br label %167

166:                                              ; preds = %161
  store i32 6, ptr %40, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %166, %165
  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 0, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  store i32 20, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  store i32 0, ptr %45, align 4, !tbaa !9
  %168 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 2
  %169 = load ptr, ptr %168, align 8, !tbaa !39
  %170 = load i32, ptr %27, align 4, !tbaa !29
  %171 = load i32, ptr %40, align 4, !tbaa !9
  %172 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %169, i32 noundef %170, i32 noundef 0, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef %171, ptr noundef %37)
  %173 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 5, ptr noundef %42, i64 noundef 4)
  %174 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 1, ptr noundef %43, i64 noundef 4)
  %175 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 2, ptr noundef %44, i64 noundef 4)
  %176 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 4, ptr noundef %41, i64 noundef 4)
  %177 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 3, ptr noundef %45, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  %178 = getelementptr inbounds %"class.fastertransformer::cublasINT8MMWrapper", ptr %48, i32 0, i32 1
  %179 = load i8, ptr %178, align 8, !tbaa !33, !range !36, !noundef !37
  %180 = trunc i8 %179 to i1
  br i1 %180, label %181, label %182

181:                                              ; preds = %167
  store i32 15, ptr %46, align 4, !tbaa !9
  br label %183

182:                                              ; preds = %167
  store i32 13, ptr %46, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %182, %181
  %184 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef %37, i32 noundef 6, ptr noundef %46, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #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
  br label %185

185:                                              ; preds = %183, %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #4
  store float 0.000000e+00, ptr %47, align 4, !tbaa !13
  %186 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 2
  %187 = load ptr, ptr %186, align 8, !tbaa !39
  %188 = load ptr, ptr %28, align 8, !tbaa !5
  %189 = load ptr, ptr %23, align 8, !tbaa !5
  %190 = load ptr, ptr %29, align 8, !tbaa !5
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = load ptr, ptr %30, align 8, !tbaa !5
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = load ptr, ptr %31, align 8, !tbaa !5
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = load ptr, ptr %31, align 8, !tbaa !5
  %197 = load i32, ptr %38, align 4, !tbaa !9
  %198 = icmp eq i32 %197, 1
  br i1 %198, label %199, label %200

199:                                              ; preds = %185
  br label %201

200:                                              ; preds = %185
  br label %201

201:                                              ; preds = %200, %199
  %202 = phi ptr [ %37, %199 ], [ null, %200 ]
  %203 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 7
  %204 = load ptr, ptr %203, align 8, !tbaa !42
  %205 = call i32 @cublasLtMatmul(ptr noundef %187, ptr noundef %188, ptr noundef %22, ptr noundef %189, ptr noundef %190, ptr noundef %191, ptr noundef %192, ptr noundef %47, ptr noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %202, ptr noundef null, i64 noundef 0, ptr noundef %204)
  %206 = load ptr, ptr %28, align 8, !tbaa !5
  %207 = call i32 @cublasLtMatmulDescDestroy(ptr noundef %206)
  %208 = load ptr, ptr %29, align 8, !tbaa !5
  %209 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %208)
  %210 = load ptr, ptr %30, align 8, !tbaa !5
  %211 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %210)
  %212 = load ptr, ptr %31, align 8, !tbaa !5
  %213 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %212)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef @.str, i32 noundef 432)
  %214 = getelementptr inbounds %"class.fastertransformer::cublasMMWrapper", ptr %48, i32 0, i32 9
  %215 = load ptr, ptr %214, align 8, !tbaa !15
  call void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %215)
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  ret void
}

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, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !6, i64 56}
!16 = !{!"_ZTSN17fastertransformer15cublasMMWrapperE", !6, i64 8, !6, i64 16, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !18, i64 80}
!17 = !{!"_ZTS14cudaDataType_t", !7, i64 0}
!18 = !{!"_ZTSSt3mapISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEE20cublasLtMatmulAlgo_tSt4lessIS8_ESaISt4pairIKS8_S9_EEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS1_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !12, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS17cublasOperation_t", !7, i64 0}
!28 = !{!17, !17, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTS19cublasComputeType_t", !7, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"_ZTS15cublasLtOrder_t", !7, i64 0}
!33 = !{!34, !35, i64 128}
!34 = !{!"_ZTSN17fastertransformer19cublasINT8MMWrapperE", !16, i64 0, !35, i64 128}
!35 = !{!"bool", !7, i64 0}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!16, !6, i64 48}
!39 = !{!16, !6, i64 16}
!40 = !{!41, !10, i64 0}
!41 = !{!"_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, !14, i64 32}
!42 = !{!16, !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.fastertransformer::cublasLtMatmulAlgo_info" = type { i32, i32, i32, i32, i32, i32, i32, i32, float }
%struct.cublasLtMatmulAlgo_t = type { [8 x i64] }

@.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
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

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

64:                                               ; preds = %12
  %65 = load ptr, ptr %21, align 8, !tbaa !28
  %66 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %65, i32 noundef 5, ptr noundef nonnull %13, i64 noundef 4)
  %67 = load ptr, ptr %21, align 8, !tbaa !28
  %68 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %67, i32 noundef 6, ptr noundef nonnull %14, i64 noundef 8)
  %69 = load ptr, ptr %22, align 8, !tbaa !28
  %70 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %69, i32 noundef 5, ptr noundef nonnull %13, i64 noundef 4)
  %71 = load ptr, ptr %22, align 8, !tbaa !28
  %72 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %71, i32 noundef 6, ptr noundef nonnull %15, i64 noundef 8)
  %73 = load ptr, ptr %23, align 8, !tbaa !28
  %74 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %73, i32 noundef 5, ptr noundef nonnull %13, i64 noundef 4)
  %75 = load ptr, ptr %23, align 8, !tbaa !28
  %76 = call i32 @cublasLtMatrixLayoutSetAttribute(ptr noundef %75, i32 noundef 6, ptr noundef nonnull %16, i64 noundef 8)
  %.pre = load i32, ptr %13, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %64, %12
  %78 = phi i32 [ %.pre, %64 ], [ %2, %12 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %26) #4
  %79 = getelementptr inbounds i8, ptr %0, i64 48
  %80 = load ptr, ptr %79, align 8, !tbaa !36
  %81 = call noundef zeroext i1 @_ZN17fastertransformer13cublasAlgoMap7isExistEiiiiNS_14CublasDataTypeE(ptr noundef nonnull align 8 dereferenceable(168) %80, i32 noundef %78, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef 3)
  br i1 %81, label %82, label %101

82:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %27) #4
  %83 = load ptr, ptr %79, align 8, !tbaa !36
  %84 = load i32, ptr %13, align 4, !tbaa !5
  call void @_ZN17fastertransformer13cublasAlgoMap7getAlgoEiiiiNS_14CublasDataTypeE(ptr dead_on_unwind nonnull writable sret(%"struct.fastertransformer::cublasLtMatmulAlgo_info") align 4 %27, ptr noundef nonnull align 8 dereferenceable(168) %83, i32 noundef %84, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef 3)
  %85 = getelementptr inbounds i8, ptr %0, i64 16
  %86 = load ptr, ptr %85, align 8, !tbaa !37
  %87 = load i32, ptr %27, align 4, !tbaa !38
  %88 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %86, i32 noundef 72, i32 noundef 0, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef %87, ptr noundef nonnull %26)
  %89 = getelementptr inbounds i8, ptr %27, i64 4
  %90 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 5, ptr noundef nonnull %89, i64 noundef 4)
  %91 = getelementptr inbounds i8, ptr %27, i64 8
  %92 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 1, ptr noundef nonnull %91, i64 noundef 4)
  %93 = getelementptr inbounds i8, ptr %27, i64 12
  %94 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 2, ptr noundef nonnull %93, i64 noundef 4)
  %95 = getelementptr inbounds i8, ptr %27, i64 16
  %96 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 4, ptr noundef nonnull %95, i64 noundef 4)
  %97 = getelementptr inbounds i8, ptr %27, i64 20
  %98 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 3, ptr noundef nonnull %97, i64 noundef 4)
  %99 = getelementptr inbounds i8, ptr %27, i64 28
  %100 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 6, ptr noundef nonnull %99, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %27) #4
  br label %115

101:                                              ; preds = %77
  %102 = load i8, ptr %37, align 8, !tbaa !31, !range !34, !noundef !35
  %103 = trunc nuw i8 %102 to i1
  %.31 = select i1 %103, i32 7, i32 6
  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 0, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #4
  store i32 20, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #4
  store i32 0, ptr %32, align 4, !tbaa !5
  %104 = getelementptr inbounds i8, ptr %0, i64 16
  %105 = load ptr, ptr %104, align 8, !tbaa !37
  %106 = call i32 @cublasLtMatmulAlgoInit(ptr noundef %105, i32 noundef 72, i32 noundef 0, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef 3, i32 noundef %.31, ptr noundef nonnull %26)
  %107 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 5, ptr noundef nonnull %29, i64 noundef 4)
  %108 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 1, ptr noundef nonnull %30, i64 noundef 4)
  %109 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 2, ptr noundef nonnull %31, i64 noundef 4)
  %110 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 4, ptr noundef nonnull %28, i64 noundef 4)
  %111 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 3, ptr noundef nonnull %32, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #4
  %112 = load i8, ptr %37, align 8, !tbaa !31, !range !34, !noundef !35
  %113 = trunc nuw i8 %112 to i1
  %storemerge30 = select i1 %113, i32 15, i32 13
  store i32 %storemerge30, ptr %33, align 4, !tbaa !5
  %114 = call i32 @cublasLtMatmulAlgoConfigSetAttribute(ptr noundef nonnull %26, i32 noundef 6, ptr noundef nonnull %33, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #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
  br label %115

115:                                              ; preds = %101, %82
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #4
  store float 0.000000e+00, ptr %34, align 4, !tbaa !11
  %116 = getelementptr inbounds i8, ptr %0, i64 16
  %117 = load ptr, ptr %116, align 8, !tbaa !37
  %118 = load ptr, ptr %20, align 8, !tbaa !28
  %119 = load ptr, ptr %21, align 8, !tbaa !28
  %120 = load ptr, ptr %22, align 8, !tbaa !28
  %121 = load ptr, ptr %23, align 8, !tbaa !28
  %122 = getelementptr inbounds i8, ptr %0, i64 40
  %123 = load ptr, ptr %122, align 8, !tbaa !40
  %124 = call i32 @cublasLtMatmul(ptr noundef %117, ptr noundef %118, ptr noundef nonnull %17, ptr noundef %10, ptr noundef %119, ptr noundef %11, ptr noundef %120, ptr noundef nonnull %34, ptr noundef %1, ptr noundef %121, ptr noundef %1, ptr noundef %121, ptr noundef nonnull %26, ptr noundef null, i64 noundef 0, ptr noundef %123)
  %125 = load ptr, ptr %20, align 8, !tbaa !28
  %126 = call i32 @cublasLtMatmulDescDestroy(ptr noundef %125)
  %127 = load ptr, ptr %21, align 8, !tbaa !28
  %128 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %127)
  %129 = load ptr, ptr %22, align 8, !tbaa !28
  %130 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %129)
  %131 = load ptr, ptr %23, align 8, !tbaa !28
  %132 = call i32 @cublasLtMatrixLayoutDestroy(ptr noundef %131)
  call void @_ZN17fastertransformer12syncAndCheckEPKci(ptr noundef nonnull @.str, i32 noundef 432)
  %133 = load ptr, ptr %35, align 8, !tbaa !13
  call void @_ZNSt5mutex6unlockEv(ptr noundef nonnull align 8 dereferenceable(40) %133)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  ret void
}

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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !15, i64 56}
!14 = !{!"_ZTSN17fastertransformer15cublasMMWrapperE", !15, i64 8, !15, i64 16, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !17, i64 80}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTS14cudaDataType_t", !7, i64 0}
!17 = !{!"_ZTSSt3mapISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEE20cublasLtMatmulAlgo_tSt4lessIS8_ESaISt4pairIKS8_S9_EEE", !18, i64 0}
!18 = !{!"_ZTSSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE", !19, i64 0}
!19 = !{!"_ZTSNSt8_Rb_treeISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEESt4pairIKS8_20cublasLtMatmulAlgo_tESt10_Select1stISC_ESt4lessIS8_ESaISC_EE13_Rb_tree_implISG_Lb1EEE", !20, i64 0, !22, i64 8}
!20 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS1_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEEE", !21, i64 0}
!21 = !{!"_ZTSSt4lessISt5tupleIJP26cublasLtMatmulDescOpaque_tSt5arrayIS0_IJ14cudaDataType_t15cublasLtOrder_tmmEELm4EEEEE"}
!22 = !{!"_ZTSSt15_Rb_tree_header", !23, i64 0, !10, i64 32}
!23 = !{!"_ZTSSt18_Rb_tree_node_base", !24, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!24 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS17cublasOperation_t", !7, i64 0}
!27 = !{!16, !16, i64 0}
!28 = !{!15, !15, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"_ZTS15cublasLtOrder_t", !7, i64 0}
!31 = !{!32, !33, i64 128}
!32 = !{!"_ZTSN17fastertransformer19cublasINT8MMWrapperE", !14, i64 0, !33, i64 128}
!33 = !{!"bool", !7, i64 0}
!34 = !{i8 0, i8 2}
!35 = !{}
!36 = !{!14, !15, i64 48}
!37 = !{!14, !15, i64 16}
!38 = !{!39, !6, i64 0}
!39 = !{!"_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, !12, i64 32}
!40 = !{!14, !15, i64 40}


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