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

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.fastertransformer::cublasAlgoConfig_t" = type { i32, i32, i32, i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.fastertransformer::cublasAlgoMap" = type { %"class.std::unordered_map", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_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 }
%"struct.fastertransformer::cublasLtMatmulAlgo_info" = type { i32, i32, i32, i32, i32, i32, i32, i32, float }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17fastertransformer13cublasAlgoMap14loadGemmConfigEv(ptr noundef nonnull align 8 dereferenceable(168) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca float, align 4
  %28 = alloca [1024 x i8], align 16
  %29 = alloca %"struct.fastertransformer::cublasAlgoConfig_t", align 4
  %30 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %31 = alloca %"struct.std::__detail::_Node_iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %33 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 1
  %34 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  %35 = call noalias ptr @fopen(ptr noundef %34, ptr noundef @.str)
  store ptr %35, ptr %3, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %44

38:                                               ; preds = %1
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %40 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 1
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(32) %40)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str.2)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 1, ptr %4, align 4
  br label %135

44:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %28) #6
  %45 = getelementptr inbounds [1024 x i8], ptr %28, i64 0, i64 0
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call ptr @fgets(ptr noundef %45, i32 noundef 1024, ptr noundef %46)
  %48 = icmp ne ptr %47, null
  br i1 %48, label %51, label %49

49:                                               ; preds = %44
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 57)
  call void @exit(i32 noundef -1) #7
  unreachable

51:                                               ; preds = %44
  br label %52

52:                                               ; preds = %131, %71, %51
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %53, ptr noundef @.str.5, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %5, ptr noundef %7, ptr noundef %6, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %27)
  %55 = icmp ne i32 %54, -1
  br i1 %55, label %56, label %132

56:                                               ; preds = %52
  %57 = load i32, ptr %17, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %74

59:                                               ; preds = %56
  %60 = load i32, ptr %17, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %74

62:                                               ; preds = %59
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 2
  br i1 %64, label %65, label %74

65:                                               ; preds = %62
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 3
  br i1 %67, label %68, label %74

68:                                               ; preds = %65
  %69 = load i32, ptr %17, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 4
  br i1 %70, label %71, label %74

71:                                               ; preds = %68
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %72)
  br label %52, !llvm.loop !11

74:                                               ; preds = %68, %65, %62, %59, %56
  call void @llvm.lifetime.start.p0(i64 20, ptr %29) #6
  %75 = getelementptr inbounds %"struct.fastertransformer::cublasAlgoConfig_t", ptr %29, i32 0, i32 0
  %76 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %76, ptr %75, align 4, !tbaa !13
  %77 = getelementptr inbounds %"struct.fastertransformer::cublasAlgoConfig_t", ptr %29, i32 0, i32 1
  %78 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %78, ptr %77, align 4, !tbaa !16
  %79 = getelementptr inbounds %"struct.fastertransformer::cublasAlgoConfig_t", ptr %29, i32 0, i32 2
  %80 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %80, ptr %79, align 4, !tbaa !17
  %81 = getelementptr inbounds %"struct.fastertransformer::cublasAlgoConfig_t", ptr %29, i32 0, i32 3
  %82 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %82, ptr %81, align 4, !tbaa !18
  %83 = getelementptr inbounds %"struct.fastertransformer::cublasAlgoConfig_t", ptr %29, i32 0, i32 4
  %84 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %84, ptr %83, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %85 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %86 = call ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56) %85, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %87 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %30, i32 0, i32 0
  %88 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %87, i32 0, i32 0
  store ptr %86, ptr %88, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %89 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %90 = call ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %89) #6
  %91 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %31, i32 0, i32 0
  %92 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %91, i32 0, i32 0
  store ptr %90, ptr %92, align 8
  %93 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKN17fastertransformer18cublasAlgoConfig_tENS2_23cublasLtMatmulAlgo_infoEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br i1 %93, label %94, label %131

94:                                               ; preds = %74
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %97 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %96, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %98 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %97, i32 0, i32 0
  store i32 %95, ptr %98, align 4, !tbaa !20
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %101 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %100, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %102 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %101, i32 0, i32 1
  store i32 %99, ptr %102, align 4, !tbaa !23
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %105 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %104, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %106 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %105, i32 0, i32 2
  store i32 %103, ptr %106, align 4, !tbaa !24
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %109 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %108, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %110 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %109, i32 0, i32 3
  store i32 %107, ptr %110, align 4, !tbaa !25
  %111 = load i32, ptr %18, align 4, !tbaa !9
  %112 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %113 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %112, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %114 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %113, i32 0, i32 4
  store i32 %111, ptr %114, align 4, !tbaa !26
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %117 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %116, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %118 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %117, i32 0, i32 5
  store i32 %115, ptr %118, align 4, !tbaa !27
  %119 = load i32, ptr %20, align 4, !tbaa !9
  %120 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %121 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %120, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %122 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %121, i32 0, i32 6
  store i32 %119, ptr %122, align 4, !tbaa !28
  %123 = load i32, ptr %21, align 4, !tbaa !9
  %124 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %125 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %124, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %126 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %125, i32 0, i32 7
  store i32 %123, ptr %126, align 4, !tbaa !29
  %127 = load float, ptr %27, align 4, !tbaa !30
  %128 = getelementptr inbounds %"class.fastertransformer::cublasAlgoMap", ptr %32, i32 0, i32 0
  %129 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %128, ptr noundef nonnull align 4 dereferenceable(20) %29)
  %130 = getelementptr inbounds %"struct.fastertransformer::cublasLtMatmulAlgo_info", ptr %129, i32 0, i32 8
  store float %127, ptr %130, align 4, !tbaa !31
  br label %131

131:                                              ; preds = %94, %74
  call void @llvm.lifetime.end.p0(i64 20, ptr %29) #6
  br label %52, !llvm.loop !11

132:                                              ; preds = %52
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = call i32 @fclose(ptr noundef %133)
  call void @llvm.lifetime.end.p0(i64 1024, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  store i32 0, ptr %4, align 4
  br label %135

135:                                              ; preds = %132, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %136 = load i32, ptr %4, align 4
  switch i32 %136, label %138 [
    i32 0, label %137
    i32 1, label %137
  ]

137:                                              ; preds = %135, %135
  ret void

138:                                              ; preds = %135
  unreachable
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKN17fastertransformer18cublasAlgoConfig_tENS2_23cublasLtMatmulAlgo_infoEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(20)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(20)) #0 align 2

declare i32 @fclose(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN17fastertransformer18cublasAlgoConfig_tE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !15, i64 16}
!15 = !{!"_ZTSN17fastertransformer14CublasDataTypeE", !7, i64 0}
!16 = !{!14, !10, i64 4}
!17 = !{!14, !10, i64 8}
!18 = !{!14, !10, i64 12}
!19 = !{!14, !15, i64 16}
!20 = !{!21, !10, i64 0}
!21 = !{!"_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, !22, i64 32}
!22 = !{!"float", !7, i64 0}
!23 = !{!21, !10, i64 4}
!24 = !{!21, !10, i64 8}
!25 = !{!21, !10, i64 12}
!26 = !{!21, !10, i64 16}
!27 = !{!21, !10, i64 20}
!28 = !{!21, !10, i64 24}
!29 = !{!21, !10, i64 28}
!30 = !{!22, !22, i64 0}
!31 = !{!21, !22, i64 32}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.fastertransformer::cublasAlgoConfig_t" = type { i32, i32, i32, i32, i32 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17fastertransformer13cublasAlgoMap14loadGemmConfigEv(ptr noundef nonnull align 8 dereferenceable(168) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca [1024 x i8], align 16
  %21 = alloca %"struct.fastertransformer::cublasAlgoConfig_t", align 4
  %22 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %23 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  %26 = tail call noalias ptr @fopen(ptr noundef %25, ptr noundef nonnull @.str)
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %33

28:                                               ; preds = %1
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(32) %24)
  %31 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.2)
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %84

33:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %20) #7
  %34 = call ptr @fgets(ptr noundef nonnull %20, i32 noundef 1024, ptr noundef nonnull %26)
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %40, label %.preheader

.preheader:                                       ; preds = %33
  %35 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %26, ptr noundef nonnull @.str.5, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19)
  %.not1314 = icmp eq i32 %35, -1
  br i1 %.not1314, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %36 = getelementptr inbounds i8, ptr %21, i64 4
  %37 = getelementptr inbounds i8, ptr %21, i64 8
  %38 = getelementptr inbounds i8, ptr %21, i64 12
  %39 = getelementptr inbounds i8, ptr %21, i64 16
  br label %42

40:                                               ; preds = %33
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull @.str.4, i32 noundef 57)
  call void @exit(i32 noundef -1) #8
  unreachable

42:                                               ; preds = %.lr.ph, %.backedge
  %43 = load i32, ptr %14, align 4
  %or.cond7 = icmp ugt i32 %43, 4
  br i1 %or.cond7, label %44, label %47

44:                                               ; preds = %42
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %43)
  br label %.backedge

.backedge:                                        ; preds = %44, %82
  %46 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %26, ptr noundef nonnull @.str.5, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19)
  %.not13 = icmp eq i32 %46, -1
  br i1 %.not13, label %._crit_edge, label %42, !llvm.loop !5

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %21) #7
  %48 = load i32, ptr %2, align 4, !tbaa !7
  store i32 %48, ptr %21, align 4, !tbaa !11
  %49 = load i32, ptr %3, align 4, !tbaa !7
  store i32 %49, ptr %36, align 4, !tbaa !14
  %50 = load i32, ptr %4, align 4, !tbaa !7
  store i32 %50, ptr %37, align 4, !tbaa !15
  %51 = load i32, ptr %5, align 4, !tbaa !7
  store i32 %51, ptr %38, align 4, !tbaa !16
  store i32 %43, ptr %39, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %52 = call ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  store ptr %52, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %53 = call ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #7
  store ptr %53, ptr %23, align 8
  %54 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKN17fastertransformer18cublasAlgoConfig_tENS2_23cublasLtMatmulAlgo_infoEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br i1 %54, label %55, label %82

55:                                               ; preds = %47
  %56 = load i32, ptr %6, align 4, !tbaa !7
  %57 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  store i32 %56, ptr %57, align 4, !tbaa !18
  %58 = load i32, ptr %7, align 4, !tbaa !7
  %59 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %60 = getelementptr inbounds i8, ptr %59, i64 4
  store i32 %58, ptr %60, align 4, !tbaa !21
  %61 = load i32, ptr %8, align 4, !tbaa !7
  %62 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  store i32 %61, ptr %63, align 4, !tbaa !22
  %64 = load i32, ptr %9, align 4, !tbaa !7
  %65 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %66 = getelementptr inbounds i8, ptr %65, i64 12
  store i32 %64, ptr %66, align 4, !tbaa !23
  %67 = load i32, ptr %15, align 4, !tbaa !7
  %68 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  store i32 %67, ptr %69, align 4, !tbaa !24
  %70 = load i32, ptr %16, align 4, !tbaa !7
  %71 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %72 = getelementptr inbounds i8, ptr %71, i64 20
  store i32 %70, ptr %72, align 4, !tbaa !25
  %73 = load i32, ptr %17, align 4, !tbaa !7
  %74 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %75 = getelementptr inbounds i8, ptr %74, i64 24
  store i32 %73, ptr %75, align 4, !tbaa !26
  %76 = load i32, ptr %18, align 4, !tbaa !7
  %77 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %78 = getelementptr inbounds i8, ptr %77, i64 28
  store i32 %76, ptr %78, align 4, !tbaa !27
  %79 = load float, ptr %19, align 4, !tbaa !28
  %80 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 4 dereferenceable(20) %21)
  %81 = getelementptr inbounds i8, ptr %80, i64 32
  store float %79, ptr %81, align 4, !tbaa !29
  br label %82

82:                                               ; preds = %55, %47
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %21) #7
  br label %.backedge

._crit_edge:                                      ; preds = %.backedge, %.preheader
  %83 = call i32 @fclose(ptr noundef nonnull %26)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %84

84:                                               ; preds = %._crit_edge, %28
  ret void
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKN17fastertransformer18cublasAlgoConfig_tENS2_23cublasLtMatmulAlgo_infoEELb1EEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE4findERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt13unordered_mapIN17fastertransformer18cublasAlgoConfig_tENS0_23cublasLtMatmulAlgo_infoENS0_23cublasAlgoConfig_hasherESt8equal_toIS1_ESaISt4pairIKS1_S2_EEEixERS7_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 #7 = { nounwind }
attributes #8 = { noreturn 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !8, i64 0}
!12 = !{!"_ZTSN17fastertransformer18cublasAlgoConfig_tE", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !13, i64 16}
!13 = !{!"_ZTSN17fastertransformer14CublasDataTypeE", !9, i64 0}
!14 = !{!12, !8, i64 4}
!15 = !{!12, !8, i64 8}
!16 = !{!12, !8, i64 12}
!17 = !{!12, !13, i64 16}
!18 = !{!19, !8, i64 0}
!19 = !{!"_ZTSN17fastertransformer23cublasLtMatmulAlgo_infoE", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !20, i64 32}
!20 = !{!"float", !9, i64 0}
!21 = !{!19, !8, i64 4}
!22 = !{!19, !8, i64 8}
!23 = !{!19, !8, i64 12}
!24 = !{!19, !8, i64 16}
!25 = !{!19, !8, i64 20}
!26 = !{!19, !8, i64 24}
!27 = !{!19, !8, i64 28}
!28 = !{!20, !20, i64 0}
!29 = !{!19, !20, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass