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

; 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.cudaDeviceProp = type { [256 x i8], %struct.CUuuid_st, [8 x i8], i32, i64, i64, i32, i32, i64, i32, [3 x i32], [3 x i32], i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [3 x i32], [2 x i32], [3 x i32], [3 x i32], i32, [2 x i32], [3 x i32], [2 x i32], i32, [2 x i32], [3 x i32], [2 x i32], [3 x i32], i32, [2 x i32], i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i64 }
%struct.CUuuid_st = type { [16 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [164 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17fastertransformer26generate_swin_igemm_configEiiiiPvb(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i1 noundef zeroext %5) #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca %struct.cudaDeviceProp, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca [1024 x i8], align 16
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.0", align 1
  %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 i32, align 4
  %28 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !9
  %29 = zext i1 %5 to i8
  store i8 %29, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 728, ptr %13) #6
  %30 = call i32 @cudaGetDeviceProperties(ptr noundef %13, i32 noundef 0)
  call void @_ZN17fastertransformer5checkI9cudaErrorEEvT_PKcS4_i(i32 noundef %30, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 172)
  %31 = getelementptr inbounds %struct.cudaDeviceProp, ptr %13, i32 0, i32 14
  %32 = load i32, ptr %31, align 8, !tbaa !13
  %33 = icmp sge i32 %32, 8
  br i1 %33, label %44, label %34

34:                                               ; preds = %6
  %35 = getelementptr inbounds %struct.cudaDeviceProp, ptr %13, i32 0, i32 14
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = icmp sge i32 %36, 7
  br i1 %37, label %38, label %42

38:                                               ; preds = %34
  %39 = getelementptr inbounds %struct.cudaDeviceProp, ptr %13, i32 0, i32 15
  %40 = load i32, ptr %39, align 4, !tbaa !17
  %41 = icmp sge i32 %40, 5
  br i1 %41, label %44, label %42

42:                                               ; preds = %38, %34
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @exit(i32 noundef -1) #7
  unreachable

44:                                               ; preds = %38, %6
  %45 = getelementptr inbounds %struct.cudaDeviceProp, ptr %13, i32 0, i32 0
  %46 = getelementptr inbounds [256 x i8], ptr %45, i64 0, i64 0
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %46)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %48 = load i8, ptr %12, align 1, !tbaa !11, !range !18, !noundef !19
  %49 = trunc i8 %48 to i1
  br i1 %49, label %54, label %50

50:                                               ; preds = %44
  %51 = call noalias ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
  store ptr %51, ptr %14, align 8, !tbaa !9
  %52 = load ptr, ptr %14, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.7) #6
  br label %115

54:                                               ; preds = %44
  %55 = call noalias ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.8)
  store ptr %55, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %16) #6
  br label %56

56:                                               ; preds = %65, %54
  %57 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %58 = load ptr, ptr %14, align 8, !tbaa !9
  %59 = invoke ptr @fgets(ptr noundef %57, i32 noundef 1024, ptr noundef %58)
          to label %60 unwind label %66

60:                                               ; preds = %56
  %61 = icmp ne ptr %59, null
  br i1 %61, label %62, label %79

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  %63 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef %63, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %64 unwind label %70

64:                                               ; preds = %62
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %65 unwind label %74

65:                                               ; preds = %64
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %56, !llvm.loop !20

66:                                               ; preds = %56
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %17, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %18, align 4
  br label %114

70:                                               ; preds = %62
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %17, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %18, align 4
  br label %78

74:                                               ; preds = %64
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %17, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %78

78:                                               ; preds = %74, %70
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  br label %114

79:                                               ; preds = %60
  %80 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %81 = icmp uge i64 %80, 120
  br i1 %81, label %82, label %113

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %83 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %84 = sub i64 %83, 114
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %21, align 4, !tbaa !5
  %86 = load ptr, ptr %14, align 8, !tbaa !9
  %87 = invoke i32 @fclose(ptr noundef %86)
          to label %88 unwind label %98

88:                                               ; preds = %82
  %89 = invoke noalias ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
          to label %90 unwind label %98

90:                                               ; preds = %88
  store ptr %89, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %91 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %91, ptr %22, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %109, %90
  %93 = load i32, ptr %22, align 4, !tbaa !5
  %94 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %95 = trunc i64 %94 to i32
  %96 = icmp slt i32 %93, %95
  br i1 %96, label %102, label %97

97:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %112

98:                                               ; preds = %88, %82
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %17, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %114

102:                                              ; preds = %92
  %103 = load ptr, ptr %14, align 8, !tbaa !9
  %104 = load i32, ptr %22, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %105) #6
  %107 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %106) #6
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.9, ptr noundef %107) #6
  br label %109

109:                                              ; preds = %102
  %110 = load i32, ptr %22, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %22, align 4, !tbaa !5
  br label %92, !llvm.loop !22

112:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %113

113:                                              ; preds = %112, %79
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %115

114:                                              ; preds = %98, %78, %66
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 728, ptr %13) #6
  br label %295

115:                                              ; preds = %113, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = mul nsw i32 %116, %117
  store i32 %118, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %119 = load i32, ptr %9, align 4, !tbaa !5
  %120 = load i32, ptr %10, align 4, !tbaa !5
  %121 = mul nsw i32 %119, %120
  store i32 %121, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %122 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %122, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 4, ptr %27, align 4, !tbaa !5
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %287, %115
  %125 = load i32, ptr %28, align 4, !tbaa !5
  %126 = icmp slt i32 %125, 4
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %290

128:                                              ; preds = %124
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 1, ptr %26, align 4, !tbaa !5
  %130 = load i32, ptr %7, align 4, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = mul nsw i32 %130, %131
  store i32 %132, ptr %23, align 4, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = mul nsw i32 %133, %134
  store i32 %135, ptr %25, align 4, !tbaa !5
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = mul nsw i32 3, %136
  %138 = load i32, ptr %10, align 4, !tbaa !5
  %139 = mul nsw i32 %137, %138
  store i32 %139, ptr %24, align 4, !tbaa !5
  %140 = load i32, ptr %24, align 4, !tbaa !5
  %141 = srem i32 %140, 32
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %147, label %143

143:                                              ; preds = %128
  %144 = load i32, ptr %25, align 4, !tbaa !5
  %145 = srem i32 %144, 32
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %151

147:                                              ; preds = %143, %128
  %148 = load i32, ptr %24, align 4, !tbaa !5
  %149 = load i32, ptr %25, align 4, !tbaa !5
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %148, i32 noundef %149)
  br label %158

151:                                              ; preds = %143
  %152 = load i32, ptr %23, align 4, !tbaa !5
  %153 = load i32, ptr %24, align 4, !tbaa !5
  %154 = load i32, ptr %25, align 4, !tbaa !5
  %155 = load ptr, ptr %14, align 8, !tbaa !9
  %156 = load ptr, ptr %11, align 8, !tbaa !9
  %157 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %152, i32 noundef %153, i32 noundef %154, ptr noundef %155, ptr noundef %156)
  br label %158

158:                                              ; preds = %151, %147
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %160 = load i32, ptr %7, align 4, !tbaa !5
  %161 = load i32, ptr %8, align 4, !tbaa !5
  %162 = mul nsw i32 %160, %161
  store i32 %162, ptr %23, align 4, !tbaa !5
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = mul nsw i32 %163, %164
  store i32 %165, ptr %24, align 4, !tbaa !5
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = mul nsw i32 %166, %167
  store i32 %168, ptr %25, align 4, !tbaa !5
  %169 = load i32, ptr %24, align 4, !tbaa !5
  %170 = srem i32 %169, 32
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %176, label %172

172:                                              ; preds = %158
  %173 = load i32, ptr %25, align 4, !tbaa !5
  %174 = srem i32 %173, 32
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %180

176:                                              ; preds = %172, %158
  %177 = load i32, ptr %24, align 4, !tbaa !5
  %178 = load i32, ptr %25, align 4, !tbaa !5
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %177, i32 noundef %178)
  br label %187

180:                                              ; preds = %172
  %181 = load i32, ptr %23, align 4, !tbaa !5
  %182 = load i32, ptr %24, align 4, !tbaa !5
  %183 = load i32, ptr %25, align 4, !tbaa !5
  %184 = load ptr, ptr %14, align 8, !tbaa !9
  %185 = load ptr, ptr %11, align 8, !tbaa !9
  %186 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %181, i32 noundef %182, i32 noundef %183, ptr noundef %184, ptr noundef %185)
  br label %187

187:                                              ; preds = %180, %176
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = load i32, ptr %8, align 4, !tbaa !5
  %191 = mul nsw i32 %189, %190
  store i32 %191, ptr %23, align 4, !tbaa !5
  %192 = load i32, ptr %9, align 4, !tbaa !5
  %193 = mul nsw i32 4, %192
  %194 = load i32, ptr %10, align 4, !tbaa !5
  %195 = mul nsw i32 %193, %194
  store i32 %195, ptr %24, align 4, !tbaa !5
  %196 = load i32, ptr %9, align 4, !tbaa !5
  %197 = load i32, ptr %10, align 4, !tbaa !5
  %198 = mul nsw i32 %196, %197
  store i32 %198, ptr %25, align 4, !tbaa !5
  %199 = load i32, ptr %24, align 4, !tbaa !5
  %200 = srem i32 %199, 32
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %206, label %202

202:                                              ; preds = %187
  %203 = load i32, ptr %25, align 4, !tbaa !5
  %204 = srem i32 %203, 32
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %210

206:                                              ; preds = %202, %187
  %207 = load i32, ptr %24, align 4, !tbaa !5
  %208 = load i32, ptr %25, align 4, !tbaa !5
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %207, i32 noundef %208)
  br label %217

210:                                              ; preds = %202
  %211 = load i32, ptr %23, align 4, !tbaa !5
  %212 = load i32, ptr %24, align 4, !tbaa !5
  %213 = load i32, ptr %25, align 4, !tbaa !5
  %214 = load ptr, ptr %14, align 8, !tbaa !9
  %215 = load ptr, ptr %11, align 8, !tbaa !9
  %216 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %211, i32 noundef %212, i32 noundef %213, ptr noundef %214, ptr noundef %215)
  br label %217

217:                                              ; preds = %210, %206
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %219 = load i32, ptr %7, align 4, !tbaa !5
  %220 = load i32, ptr %8, align 4, !tbaa !5
  %221 = mul nsw i32 %219, %220
  store i32 %221, ptr %23, align 4, !tbaa !5
  %222 = load i32, ptr %9, align 4, !tbaa !5
  %223 = load i32, ptr %10, align 4, !tbaa !5
  %224 = mul nsw i32 %222, %223
  store i32 %224, ptr %24, align 4, !tbaa !5
  %225 = load i32, ptr %9, align 4, !tbaa !5
  %226 = mul nsw i32 4, %225
  %227 = load i32, ptr %10, align 4, !tbaa !5
  %228 = mul nsw i32 %226, %227
  store i32 %228, ptr %25, align 4, !tbaa !5
  %229 = load i32, ptr %24, align 4, !tbaa !5
  %230 = srem i32 %229, 32
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %236, label %232

232:                                              ; preds = %217
  %233 = load i32, ptr %25, align 4, !tbaa !5
  %234 = srem i32 %233, 32
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %240

236:                                              ; preds = %232, %217
  %237 = load i32, ptr %24, align 4, !tbaa !5
  %238 = load i32, ptr %25, align 4, !tbaa !5
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %237, i32 noundef %238)
  br label %247

240:                                              ; preds = %232
  %241 = load i32, ptr %23, align 4, !tbaa !5
  %242 = load i32, ptr %24, align 4, !tbaa !5
  %243 = load i32, ptr %25, align 4, !tbaa !5
  %244 = load ptr, ptr %14, align 8, !tbaa !9
  %245 = load ptr, ptr %11, align 8, !tbaa !9
  %246 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %241, i32 noundef %242, i32 noundef %243, ptr noundef %244, ptr noundef %245)
  br label %247

247:                                              ; preds = %240, %236
  %248 = load i32, ptr %28, align 4, !tbaa !5
  %249 = icmp ne i32 %248, 3
  br i1 %249, label %250, label %285

250:                                              ; preds = %247
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = sdiv i32 %252, 4
  store i32 %253, ptr %7, align 4, !tbaa !5
  %254 = load i32, ptr %9, align 4, !tbaa !5
  %255 = mul nsw i32 %254, 2
  store i32 %255, ptr %9, align 4, !tbaa !5
  %256 = load i32, ptr %7, align 4, !tbaa !5
  %257 = load i32, ptr %8, align 4, !tbaa !5
  %258 = mul nsw i32 %256, %257
  store i32 %258, ptr %23, align 4, !tbaa !5
  %259 = load i32, ptr %9, align 4, !tbaa !5
  %260 = load i32, ptr %10, align 4, !tbaa !5
  %261 = mul nsw i32 %259, %260
  store i32 %261, ptr %24, align 4, !tbaa !5
  %262 = load i32, ptr %9, align 4, !tbaa !5
  %263 = mul nsw i32 2, %262
  %264 = load i32, ptr %10, align 4, !tbaa !5
  %265 = mul nsw i32 %263, %264
  store i32 %265, ptr %25, align 4, !tbaa !5
  %266 = load i32, ptr %24, align 4, !tbaa !5
  %267 = srem i32 %266, 32
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %273, label %269

269:                                              ; preds = %250
  %270 = load i32, ptr %25, align 4, !tbaa !5
  %271 = srem i32 %270, 32
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %277

273:                                              ; preds = %269, %250
  %274 = load i32, ptr %24, align 4, !tbaa !5
  %275 = load i32, ptr %25, align 4, !tbaa !5
  %276 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %274, i32 noundef %275)
  br label %284

277:                                              ; preds = %269
  %278 = load i32, ptr %23, align 4, !tbaa !5
  %279 = load i32, ptr %24, align 4, !tbaa !5
  %280 = load i32, ptr %25, align 4, !tbaa !5
  %281 = load ptr, ptr %14, align 8, !tbaa !9
  %282 = load ptr, ptr %11, align 8, !tbaa !9
  %283 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %278, i32 noundef %279, i32 noundef %280, ptr noundef %281, ptr noundef %282)
  br label %284

284:                                              ; preds = %277, %273
  br label %285

285:                                              ; preds = %284, %247
  %286 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %287

287:                                              ; preds = %285
  %288 = load i32, ptr %28, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %28, align 4, !tbaa !5
  br label %124, !llvm.loop !23

290:                                              ; preds = %127
  %291 = load ptr, ptr %14, align 8, !tbaa !9
  %292 = call i32 @fclose(ptr noundef %291)
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %294 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  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 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 728, ptr %13) #6
  ret i32 0

295:                                              ; preds = %114
  %296 = load ptr, ptr %17, align 8
  %297 = load i32, ptr %18, align 4
  %298 = insertvalue { ptr, i32 } poison, ptr %296, 0
  %299 = insertvalue { ptr, i32 } %298, i32 %297, 1
  resume { ptr, i32 } %299
}

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

declare i32 @cudaGetDeviceProperties(ptr noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

declare i32 @fclose(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 360}
!14 = !{!"_ZTS14cudaDeviceProp", !7, i64 0, !15, i64 256, !7, i64 272, !6, i64 280, !16, i64 288, !16, i64 296, !6, i64 304, !6, i64 308, !16, i64 312, !6, i64 320, !7, i64 324, !7, i64 336, !6, i64 348, !16, i64 352, !6, i64 360, !6, i64 364, !16, i64 368, !16, i64 376, !6, i64 384, !6, i64 388, !6, i64 392, !6, i64 396, !6, i64 400, !6, i64 404, !6, i64 408, !6, i64 412, !6, i64 416, !7, i64 420, !7, i64 428, !7, i64 436, !7, i64 448, !7, i64 456, !7, i64 468, !6, i64 480, !7, i64 484, !7, i64 492, !7, i64 504, !6, i64 512, !7, i64 516, !7, i64 524, !7, i64 536, !7, i64 544, !6, i64 556, !7, i64 560, !16, i64 568, !6, i64 576, !6, i64 580, !6, i64 584, !6, i64 588, !6, i64 592, !6, i64 596, !6, i64 600, !6, i64 604, !6, i64 608, !6, i64 612, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !6, i64 632, !6, i64 636, !16, i64 640, !6, i64 648, !6, i64 652, !6, i64 656, !6, i64 660, !6, i64 664, !6, i64 668, !6, i64 672, !6, i64 676, !6, i64 680, !6, i64 684, !6, i64 688, !6, i64 692, !16, i64 696, !6, i64 704, !6, i64 708, !6, i64 712, !6, i64 716, !16, i64 720}
!15 = !{!"_ZTS9CUuuid_st", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !6, i64 364}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


; 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.cudaDeviceProp = type { [256 x i8], %struct.CUuuid_st, [8 x i8], i32, i64, i64, i32, i32, i64, i32, [3 x i32], [3 x i32], i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [3 x i32], [2 x i32], [3 x i32], [3 x i32], i32, [2 x i32], [3 x i32], [2 x i32], i32, [2 x i32], [3 x i32], [2 x i32], [3 x i32], i32, [2 x i32], i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i64 }
%struct.CUuuid_st = type { [16 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

@.str.1 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [164 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [30 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17fastertransformer26generate_swin_igemm_configEiiiiPvb(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i1 noundef zeroext %5) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca %struct.cudaDeviceProp, align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca [1024 x i8], align 16
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.0", align 1
  call void @llvm.lifetime.start.p0(i64 728, ptr nonnull %7) #6
  %12 = call i32 @cudaGetDeviceProperties(ptr noundef nonnull %7, i32 noundef 0)
  call void @_ZN17fastertransformer5checkI9cudaErrorEEvT_PKcS4_i(i32 noundef %12, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 172)
  %13 = getelementptr inbounds i8, ptr %7, i64 360
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = icmp sgt i32 %14, 7
  br i1 %15, label %23, label %16

16:                                               ; preds = %6
  %17 = icmp eq i32 %14, 7
  %18 = getelementptr inbounds i8, ptr %7, i64 364
  %19 = load i32, ptr %18, align 4
  %20 = icmp sgt i32 %19, 4
  %or.cond = select i1 %17, i1 %20, i1 false
  br i1 %or.cond, label %23, label %21

21:                                               ; preds = %16
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void @exit(i32 noundef -1) #7
  unreachable

23:                                               ; preds = %16, %6
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, ptr noundef nonnull %7)
  br i1 %5, label %28, label %25

25:                                               ; preds = %23
  %26 = call noalias ptr @fopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.7) #6
  br label %57

28:                                               ; preds = %23
  %29 = call noalias ptr @fopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.8)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %9) #6
  %30 = call ptr @fgets(ptr noundef nonnull %9, i32 noundef 1024, ptr noundef %29)
  %.not121 = icmp eq ptr %30, null
  br i1 %.not121, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %28, %32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull %9, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %31 unwind label %34

31:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %32 unwind label %36

32:                                               ; preds = %31
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  %33 = call ptr @fgets(ptr noundef nonnull %9, i32 noundef 1024, ptr noundef %29)
  %.not = icmp eq ptr %33, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !12

34:                                               ; preds = %.lr.ph
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %31
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %38

38:                                               ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 728, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn

._crit_edge:                                      ; preds = %32, %28
  %39 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %40 = icmp ugt i64 %39, 119
  br i1 %40, label %41, label %.loopexit

41:                                               ; preds = %._crit_edge
  %42 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %43 = trunc i64 %42 to i32
  %44 = add i32 %43, -114
  %45 = call i32 @fclose(ptr noundef %29)
  %46 = call noalias ptr @fopen(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6)
  %47 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %48 = trunc i64 %47 to i32
  %49 = icmp slt i32 %44, %48
  br i1 %49, label %.lr.ph124.preheader, label %.loopexit

.lr.ph124.preheader:                              ; preds = %41
  %50 = sext i32 %44 to i64
  br label %.lr.ph124

.lr.ph124:                                        ; preds = %.lr.ph124.preheader, %.lr.ph124
  %indvars.iv = phi i64 [ %50, %.lr.ph124.preheader ], [ %indvars.iv.next, %.lr.ph124 ]
  %51 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %52 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %51) #6
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.9, ptr noundef %52) #6
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %54 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %sext = shl i64 %54, 32
  %55 = ashr exact i64 %sext, 32
  %56 = icmp slt i64 %indvars.iv.next, %55
  br i1 %56, label %.lr.ph124, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %.lr.ph124, %41, %._crit_edge
  %.0102 = phi ptr [ %29, %._crit_edge ], [ %46, %41 ], [ %46, %.lr.ph124 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %57

57:                                               ; preds = %.loopexit, %25
  %.1103 = phi ptr [ %.0102, %.loopexit ], [ %26, %25 ]
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %59 = mul i32 %3, 3
  br label %64

60:                                               ; preds = %94
  %61 = call i32 @fclose(ptr noundef %.1103)
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  call void @llvm.lifetime.end.p0(i64 728, ptr nonnull %7) #6
  ret i32 0

64:                                               ; preds = %107, %57
  %.0127 = phi i32 [ 0, %57 ], [ %109, %107 ]
  %.098126 = phi i32 [ %0, %57 ], [ %97, %107 ]
  %.099125 = phi i32 [ %2, %57 ], [ %98, %107 ]
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %66 = mul nsw i32 %.098126, %1
  %67 = mul nsw i32 %.099125, %3
  %68 = mul i32 %59, %.099125
  %69 = and i32 %68, 31
  %.not107 = icmp eq i32 %69, 0
  %70 = and i32 %67, 31
  %.not108 = icmp eq i32 %70, 0
  %or.cond115 = select i1 %.not107, i1 %.not108, i1 false
  br i1 %or.cond115, label %.thread, label %73

.thread:                                          ; preds = %64
  %71 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %66, i32 noundef %68, i32 noundef %67, ptr noundef %.1103, ptr noundef %4)
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %78

73:                                               ; preds = %64
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %68, i32 noundef %67)
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br i1 %.not108, label %78, label %76

76:                                               ; preds = %73
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %67, i32 noundef %67)
  br label %80

78:                                               ; preds = %.thread, %73
  %79 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %66, i32 noundef %67, i32 noundef %67, ptr noundef %.1103, ptr noundef %4)
  br label %80

80:                                               ; preds = %78, %76
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %82 = shl nsw i32 %.099125, 2
  %83 = mul nsw i32 %82, %3
  %84 = and i32 %83, 28
  %85 = or i32 %84, %70
  %brmerge.demorgan.not = icmp eq i32 %85, 0
  br i1 %brmerge.demorgan.not, label %90, label %86

86:                                               ; preds = %80
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %83, i32 noundef %67)
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %67, i32 noundef %83)
  br label %94

90:                                               ; preds = %80
  %91 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %66, i32 noundef %83, i32 noundef %67, ptr noundef %.1103, ptr noundef %4)
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %93 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %66, i32 noundef %67, i32 noundef %83, ptr noundef %.1103, ptr noundef %4)
  br label %94

94:                                               ; preds = %90, %86
  %.not111 = icmp eq i32 %.0127, 3
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br i1 %.not111, label %60, label %96

96:                                               ; preds = %94
  %97 = sdiv i32 %.098126, 4
  %98 = shl nsw i32 %.099125, 1
  %99 = mul nsw i32 %98, %3
  %100 = and i32 %99, 30
  %101 = or i32 %100, %84
  %or.cond119 = icmp eq i32 %101, 0
  br i1 %or.cond119, label %104, label %102

102:                                              ; preds = %96
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %99, i32 noundef %83)
  br label %107

104:                                              ; preds = %96
  %105 = mul nsw i32 %97, %1
  %106 = call noundef i32 @_ZN17fastertransformer19igemm_config_INT8IOEiiiP8_IO_FILEPv(i32 noundef %105, i32 noundef %99, i32 noundef %83, ptr noundef %.1103, ptr noundef %4)
  br label %107

107:                                              ; preds = %102, %104
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %109 = add nuw nsw i32 %.0127, 1
  br label %64
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #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, !10, i64 360}
!6 = !{!"_ZTS14cudaDeviceProp", !7, i64 0, !9, i64 256, !7, i64 272, !10, i64 280, !11, i64 288, !11, i64 296, !10, i64 304, !10, i64 308, !11, i64 312, !10, i64 320, !7, i64 324, !7, i64 336, !10, i64 348, !11, i64 352, !10, i64 360, !10, i64 364, !11, i64 368, !11, i64 376, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !7, i64 420, !7, i64 428, !7, i64 436, !7, i64 448, !7, i64 456, !7, i64 468, !10, i64 480, !7, i64 484, !7, i64 492, !7, i64 504, !10, i64 512, !7, i64 516, !7, i64 524, !7, i64 536, !7, i64 544, !10, i64 556, !7, i64 560, !11, i64 568, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !11, i64 640, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !11, i64 696, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !11, i64 720}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTS9CUuuid_st", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass