; LLVM IR from libxsmm/libxsmm :: src (generator_matequation_avx_avx512)

; 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.libxsmm_meqn_elem = type { ptr, ptr, ptr, ptr, i32, %union.libxsmm_meqn_info, i32, i32, %struct.libxsmm_meqn_tmp_info, i32, i32, i32, %union.libxsmm_meqn_fusion_info }
%union.libxsmm_meqn_info = type { %struct.libxsmm_meqn_arg }
%struct.libxsmm_meqn_arg = type { i32, i32, i32, i32, i32, i32, i32, %struct.libxsmm_matrix_arg_attributes }
%struct.libxsmm_matrix_arg_attributes = type { i32, i32, i32, i32 }
%struct.libxsmm_meqn_tmp_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%union.libxsmm_meqn_fusion_info = type { %struct.libxsmm_meqn_xgemm_fusion_info }
%struct.libxsmm_meqn_xgemm_fusion_info = type { i32, i32, i32, i32, i32 }
%struct.libxsmm_meqn_unary_op = type { i32, i32, i32, i32 }

@libxsmm_verbosity = external global i32, align 4
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_find_in_pos_for_colbias(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_find_dtype_for_colbias(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_matequation_apply_xgemm_fusion_pattern_transformation(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !5
  %11 = load i32, ptr %6, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 2
  br i1 %12, label %13, label %102

13:                                               ; preds = %5
  %14 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %16, label %19

16:                                               ; preds = %13
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef @.str.4) #2
  br label %19

19:                                               ; preds = %16, %13
  %20 = load ptr, ptr %7, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %20, i32 0, i32 12
  %22 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %21, i32 0, i32 2
  store i32 1, ptr %22, align 4, !tbaa !11
  %23 = load ptr, ptr %7, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %23, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = call i32 @libxsmm_generator_matequation_find_in_pos_for_colbias(ptr noundef %25)
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %27, i32 0, i32 12
  %29 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %28, i32 0, i32 3
  store i32 %26, ptr %29, align 4, !tbaa !11
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = call i32 @libxsmm_generator_matequation_find_dtype_for_colbias(ptr noundef %32)
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %34, i32 0, i32 12
  %36 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %35, i32 0, i32 4
  store i32 %33, ptr %36, align 4, !tbaa !11
  %37 = load ptr, ptr %9, align 8, !tbaa !9
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %101

44:                                               ; preds = %19
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %47, i32 0, i32 3
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %50, i32 0, i32 3
  store ptr %49, ptr %51, align 8, !tbaa !11
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %52, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = load ptr, ptr %7, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %59, i32 0, i32 3
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = icmp eq ptr %58, %61
  br i1 %62, label %63, label %71

63:                                               ; preds = %44
  %64 = load ptr, ptr %8, align 8, !tbaa !9
  %65 = load ptr, ptr %7, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %65, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %67, i32 0, i32 3
  %69 = load ptr, ptr %68, align 8, !tbaa !11
  %70 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %69, i32 0, i32 0
  store ptr %64, ptr %70, align 8, !tbaa !11
  br label %100

71:                                               ; preds = %44
  %72 = load ptr, ptr %7, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %72, i32 0, i32 3
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %74, i32 0, i32 3
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = load ptr, ptr %7, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %79, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = icmp eq ptr %78, %81
  br i1 %82, label %83, label %91

83:                                               ; preds = %71
  %84 = load ptr, ptr %8, align 8, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %87, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %89, i32 0, i32 1
  store ptr %84, ptr %90, align 8, !tbaa !11
  br label %99

91:                                               ; preds = %71
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  %93 = load ptr, ptr %7, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %97, i32 0, i32 2
  store ptr %92, ptr %98, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %91, %83
  br label %100

100:                                              ; preds = %99, %63
  br label %101

101:                                              ; preds = %100, %19
  br label %352

102:                                              ; preds = %5
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = icmp eq i32 %103, 3
  br i1 %104, label %105, label %244

105:                                              ; preds = %102
  %106 = load ptr, ptr %7, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %106, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %110, i32 0, i32 5
  %112 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4, !tbaa !11
  %114 = icmp eq i32 %113, 5
  br i1 %114, label %115, label %125

115:                                              ; preds = %105
  %116 = load ptr, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %116, i32 0, i32 12
  %118 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %117, i32 0, i32 1
  store i32 1, ptr %118, align 4, !tbaa !11
  %119 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %120 = icmp slt i32 %119, 0
  br i1 %120, label %121, label %124

121:                                              ; preds = %115
  %122 = load ptr, ptr @stderr, align 8, !tbaa !9
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.5) #2
  br label %124

124:                                              ; preds = %121, %115
  br label %125

125:                                              ; preds = %124, %105
  %126 = load ptr, ptr %7, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %128, i32 0, i32 3
  %130 = load ptr, ptr %129, align 8, !tbaa !11
  %131 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %130, i32 0, i32 5
  %132 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 4, !tbaa !11
  %134 = icmp eq i32 %133, 9
  br i1 %134, label %135, label %145

135:                                              ; preds = %125
  %136 = load ptr, ptr %7, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %136, i32 0, i32 12
  %138 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %137, i32 0, i32 0
  store i32 1, ptr %138, align 4, !tbaa !11
  %139 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %140 = icmp slt i32 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %135
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.6) #2
  br label %144

144:                                              ; preds = %141, %135
  br label %145

145:                                              ; preds = %144, %125
  %146 = load ptr, ptr %7, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %146, i32 0, i32 12
  %148 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %147, i32 0, i32 2
  store i32 1, ptr %148, align 4, !tbaa !11
  %149 = load ptr, ptr %7, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %149, i32 0, i32 3
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  %152 = call i32 @libxsmm_generator_matequation_find_in_pos_for_colbias(ptr noundef %151)
  %153 = load ptr, ptr %7, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %153, i32 0, i32 12
  %155 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %154, i32 0, i32 3
  store i32 %152, ptr %155, align 4, !tbaa !11
  %156 = load ptr, ptr %7, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %156, i32 0, i32 3
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = call i32 @libxsmm_generator_matequation_find_dtype_for_colbias(ptr noundef %158)
  %160 = load ptr, ptr %7, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %160, i32 0, i32 12
  %162 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %161, i32 0, i32 4
  store i32 %159, ptr %162, align 4, !tbaa !11
  %163 = load ptr, ptr %9, align 8, !tbaa !9
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = add i32 %164, 2
  store i32 %165, ptr %163, align 4, !tbaa !5
  %166 = load ptr, ptr %9, align 8, !tbaa !9
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = icmp ult i32 %167, %168
  br i1 %169, label %170, label %243

170:                                              ; preds = %145
  %171 = load ptr, ptr %7, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %171, i32 0, i32 3
  %173 = load ptr, ptr %172, align 8, !tbaa !11
  %174 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %173, i32 0, i32 3
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %175, i32 0, i32 3
  %177 = load ptr, ptr %176, align 8, !tbaa !11
  %178 = load ptr, ptr %8, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %178, i32 0, i32 3
  store ptr %177, ptr %179, align 8, !tbaa !11
  %180 = load ptr, ptr %7, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %180, i32 0, i32 3
  %182 = load ptr, ptr %181, align 8, !tbaa !11
  %183 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %182, i32 0, i32 3
  %184 = load ptr, ptr %183, align 8, !tbaa !11
  %185 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %184, i32 0, i32 3
  %186 = load ptr, ptr %185, align 8, !tbaa !11
  %187 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !11
  %189 = load ptr, ptr %7, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %189, i32 0, i32 3
  %191 = load ptr, ptr %190, align 8, !tbaa !11
  %192 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %191, i32 0, i32 3
  %193 = load ptr, ptr %192, align 8, !tbaa !11
  %194 = icmp eq ptr %188, %193
  br i1 %194, label %195, label %205

195:                                              ; preds = %170
  %196 = load ptr, ptr %8, align 8, !tbaa !9
  %197 = load ptr, ptr %7, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %197, i32 0, i32 3
  %199 = load ptr, ptr %198, align 8, !tbaa !11
  %200 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %199, i32 0, i32 3
  %201 = load ptr, ptr %200, align 8, !tbaa !11
  %202 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %201, i32 0, i32 3
  %203 = load ptr, ptr %202, align 8, !tbaa !11
  %204 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %203, i32 0, i32 0
  store ptr %196, ptr %204, align 8, !tbaa !11
  br label %242

205:                                              ; preds = %170
  %206 = load ptr, ptr %7, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %206, i32 0, i32 3
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  %209 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %208, i32 0, i32 3
  %210 = load ptr, ptr %209, align 8, !tbaa !11
  %211 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %210, i32 0, i32 3
  %212 = load ptr, ptr %211, align 8, !tbaa !11
  %213 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %212, i32 0, i32 1
  %214 = load ptr, ptr %213, align 8, !tbaa !11
  %215 = load ptr, ptr %7, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %215, i32 0, i32 3
  %217 = load ptr, ptr %216, align 8, !tbaa !11
  %218 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %217, i32 0, i32 3
  %219 = load ptr, ptr %218, align 8, !tbaa !11
  %220 = icmp eq ptr %214, %219
  br i1 %220, label %221, label %231

221:                                              ; preds = %205
  %222 = load ptr, ptr %8, align 8, !tbaa !9
  %223 = load ptr, ptr %7, align 8, !tbaa !9
  %224 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %223, i32 0, i32 3
  %225 = load ptr, ptr %224, align 8, !tbaa !11
  %226 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %225, i32 0, i32 3
  %227 = load ptr, ptr %226, align 8, !tbaa !11
  %228 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %227, i32 0, i32 3
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  %230 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %229, i32 0, i32 1
  store ptr %222, ptr %230, align 8, !tbaa !11
  br label %241

231:                                              ; preds = %205
  %232 = load ptr, ptr %8, align 8, !tbaa !9
  %233 = load ptr, ptr %7, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %233, i32 0, i32 3
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  %236 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %235, i32 0, i32 3
  %237 = load ptr, ptr %236, align 8, !tbaa !11
  %238 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %237, i32 0, i32 3
  %239 = load ptr, ptr %238, align 8, !tbaa !11
  %240 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %239, i32 0, i32 2
  store ptr %232, ptr %240, align 8, !tbaa !11
  br label %241

241:                                              ; preds = %231, %221
  br label %242

242:                                              ; preds = %241, %195
  br label %243

243:                                              ; preds = %242, %145
  br label %351

244:                                              ; preds = %102
  %245 = load i32, ptr %6, align 4, !tbaa !5
  %246 = icmp eq i32 %245, 1
  br i1 %246, label %247, label %349

247:                                              ; preds = %244
  %248 = load ptr, ptr %7, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %248, i32 0, i32 3
  %250 = load ptr, ptr %249, align 8, !tbaa !11
  %251 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %250, i32 0, i32 5
  %252 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %251, i32 0, i32 0
  %253 = load i32, ptr %252, align 4, !tbaa !11
  %254 = icmp eq i32 %253, 5
  br i1 %254, label %255, label %265

255:                                              ; preds = %247
  %256 = load ptr, ptr %7, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %256, i32 0, i32 12
  %258 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %257, i32 0, i32 1
  store i32 1, ptr %258, align 4, !tbaa !11
  %259 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %260 = icmp slt i32 %259, 0
  br i1 %260, label %261, label %264

261:                                              ; preds = %255
  %262 = load ptr, ptr @stderr, align 8, !tbaa !9
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.7) #2
  br label %264

264:                                              ; preds = %261, %255
  br label %265

265:                                              ; preds = %264, %247
  %266 = load ptr, ptr %7, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %266, i32 0, i32 3
  %268 = load ptr, ptr %267, align 8, !tbaa !11
  %269 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %268, i32 0, i32 5
  %270 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %269, i32 0, i32 0
  %271 = load i32, ptr %270, align 4, !tbaa !11
  %272 = icmp eq i32 %271, 9
  br i1 %272, label %273, label %283

273:                                              ; preds = %265
  %274 = load ptr, ptr %7, align 8, !tbaa !9
  %275 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %274, i32 0, i32 12
  %276 = getelementptr inbounds %struct.libxsmm_meqn_xgemm_fusion_info, ptr %275, i32 0, i32 0
  store i32 1, ptr %276, align 4, !tbaa !11
  %277 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %278 = icmp slt i32 %277, 0
  br i1 %278, label %279, label %282

279:                                              ; preds = %273
  %280 = load ptr, ptr @stderr, align 8, !tbaa !9
  %281 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %280, ptr noundef @.str.8) #2
  br label %282

282:                                              ; preds = %279, %273
  br label %283

283:                                              ; preds = %282, %265
  %284 = load ptr, ptr %9, align 8, !tbaa !9
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = add i32 %285, 1
  store i32 %286, ptr %284, align 4, !tbaa !5
  %287 = load ptr, ptr %9, align 8, !tbaa !9
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = load i32, ptr %10, align 4, !tbaa !5
  %290 = icmp ult i32 %288, %289
  br i1 %290, label %291, label %348

291:                                              ; preds = %283
  %292 = load ptr, ptr %7, align 8, !tbaa !9
  %293 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %292, i32 0, i32 3
  %294 = load ptr, ptr %293, align 8, !tbaa !11
  %295 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %294, i32 0, i32 3
  %296 = load ptr, ptr %295, align 8, !tbaa !11
  %297 = load ptr, ptr %8, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %297, i32 0, i32 3
  store ptr %296, ptr %298, align 8, !tbaa !11
  %299 = load ptr, ptr %7, align 8, !tbaa !9
  %300 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %299, i32 0, i32 3
  %301 = load ptr, ptr %300, align 8, !tbaa !11
  %302 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %301, i32 0, i32 3
  %303 = load ptr, ptr %302, align 8, !tbaa !11
  %304 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %303, i32 0, i32 0
  %305 = load ptr, ptr %304, align 8, !tbaa !11
  %306 = load ptr, ptr %7, align 8, !tbaa !9
  %307 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %306, i32 0, i32 3
  %308 = load ptr, ptr %307, align 8, !tbaa !11
  %309 = icmp eq ptr %305, %308
  br i1 %309, label %310, label %318

310:                                              ; preds = %291
  %311 = load ptr, ptr %8, align 8, !tbaa !9
  %312 = load ptr, ptr %7, align 8, !tbaa !9
  %313 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %312, i32 0, i32 3
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  %315 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %314, i32 0, i32 3
  %316 = load ptr, ptr %315, align 8, !tbaa !11
  %317 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %316, i32 0, i32 0
  store ptr %311, ptr %317, align 8, !tbaa !11
  br label %347

318:                                              ; preds = %291
  %319 = load ptr, ptr %7, align 8, !tbaa !9
  %320 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %319, i32 0, i32 3
  %321 = load ptr, ptr %320, align 8, !tbaa !11
  %322 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %321, i32 0, i32 3
  %323 = load ptr, ptr %322, align 8, !tbaa !11
  %324 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %323, i32 0, i32 1
  %325 = load ptr, ptr %324, align 8, !tbaa !11
  %326 = load ptr, ptr %7, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %326, i32 0, i32 3
  %328 = load ptr, ptr %327, align 8, !tbaa !11
  %329 = icmp eq ptr %325, %328
  br i1 %329, label %330, label %338

330:                                              ; preds = %318
  %331 = load ptr, ptr %8, align 8, !tbaa !9
  %332 = load ptr, ptr %7, align 8, !tbaa !9
  %333 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %332, i32 0, i32 3
  %334 = load ptr, ptr %333, align 8, !tbaa !11
  %335 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %334, i32 0, i32 3
  %336 = load ptr, ptr %335, align 8, !tbaa !11
  %337 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %336, i32 0, i32 1
  store ptr %331, ptr %337, align 8, !tbaa !11
  br label %346

338:                                              ; preds = %318
  %339 = load ptr, ptr %8, align 8, !tbaa !9
  %340 = load ptr, ptr %7, align 8, !tbaa !9
  %341 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %340, i32 0, i32 3
  %342 = load ptr, ptr %341, align 8, !tbaa !11
  %343 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %342, i32 0, i32 3
  %344 = load ptr, ptr %343, align 8, !tbaa !11
  %345 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %344, i32 0, i32 2
  store ptr %339, ptr %345, align 8, !tbaa !11
  br label %346

346:                                              ; preds = %338, %330
  br label %347

347:                                              ; preds = %346, %310
  br label %348

348:                                              ; preds = %347, %283
  br label %350

349:                                              ; preds = %244
  br label %350

350:                                              ; preds = %349, %348
  br label %351

351:                                              ; preds = %350, %243
  br label %352

352:                                              ; preds = %351, %101
  ret void
}

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}


; 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"

@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_find_in_pos_for_colbias(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_find_dtype_for_colbias(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_matequation_apply_xgemm_fusion_pattern_transformation(i32 noundef %0, ptr nocapture noundef %1, ptr noundef %2, ptr nocapture noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  switch i32 %0, label %131 [
    i32 2, label %6
    i32 3, label %34
    i32 1, label %88
  ]

6:                                                ; preds = %5
  %7 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %8 = icmp slt i32 %7, 0
  br i1 %8, label %9, label %12

9:                                                ; preds = %6
  %10 = load ptr, ptr @stderr, align 8, !tbaa !9
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.4) #2
  br label %12

12:                                               ; preds = %9, %6
  %13 = getelementptr inbounds i8, ptr %1, i64 172
  store i32 1, ptr %13, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = tail call i32 @libxsmm_generator_matequation_find_in_pos_for_colbias(ptr noundef %15)
  %17 = getelementptr inbounds i8, ptr %1, i64 176
  store i32 %16, ptr %17, align 4, !tbaa !11
  %18 = load ptr, ptr %14, align 8, !tbaa !11
  %19 = tail call i32 @libxsmm_generator_matequation_find_dtype_for_colbias(ptr noundef %18)
  %20 = getelementptr inbounds i8, ptr %1, i64 180
  store i32 %19, ptr %20, align 4, !tbaa !11
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = add i32 %21, 1
  store i32 %22, ptr %3, align 4, !tbaa !5
  %23 = icmp ult i32 %22, %4
  br i1 %23, label %24, label %131

24:                                               ; preds = %12
  %25 = load ptr, ptr %14, align 8, !tbaa !11
  %26 = getelementptr inbounds i8, ptr %25, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %27, ptr %28, align 8, !tbaa !11
  %29 = load ptr, ptr %14, align 8, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = icmp eq ptr %32, %29
  br i1 %33, label %.sink.split, label %.sink.split.sink.split

34:                                               ; preds = %5
  %35 = getelementptr inbounds i8, ptr %1, i64 24
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %36, i64 24
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds i8, ptr %38, i64 36
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = icmp eq i32 %40, 5
  br i1 %41, label %42, label %49

42:                                               ; preds = %34
  %43 = getelementptr inbounds i8, ptr %1, i64 168
  store i32 1, ptr %43, align 4, !tbaa !11
  %44 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %42
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.5) #2
  %.pre68 = load ptr, ptr %35, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %42, %46, %34
  %50 = phi ptr [ %36, %42 ], [ %.pre68, %46 ], [ %36, %34 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %52, i64 36
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = icmp eq i32 %54, 9
  br i1 %55, label %56, label %63

56:                                               ; preds = %49
  %57 = getelementptr inbounds i8, ptr %1, i64 164
  store i32 1, ptr %57, align 4, !tbaa !11
  %58 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %59 = icmp slt i32 %58, 0
  br i1 %59, label %60, label %63

60:                                               ; preds = %56
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.6) #2
  %.pre69 = load ptr, ptr %35, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %56, %60, %49
  %64 = phi ptr [ %50, %56 ], [ %.pre69, %60 ], [ %50, %49 ]
  %65 = getelementptr inbounds i8, ptr %1, i64 172
  store i32 1, ptr %65, align 4, !tbaa !11
  %66 = tail call i32 @libxsmm_generator_matequation_find_in_pos_for_colbias(ptr noundef %64)
  %67 = getelementptr inbounds i8, ptr %1, i64 176
  store i32 %66, ptr %67, align 4, !tbaa !11
  %68 = load ptr, ptr %35, align 8, !tbaa !11
  %69 = tail call i32 @libxsmm_generator_matequation_find_dtype_for_colbias(ptr noundef %68)
  %70 = getelementptr inbounds i8, ptr %1, i64 180
  store i32 %69, ptr %70, align 4, !tbaa !11
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = add i32 %71, 2
  store i32 %72, ptr %3, align 4, !tbaa !5
  %73 = icmp ult i32 %72, %4
  br i1 %73, label %74, label %131

74:                                               ; preds = %63
  %75 = load ptr, ptr %35, align 8, !tbaa !11
  %76 = getelementptr inbounds i8, ptr %75, i64 24
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds i8, ptr %77, i64 24
  %79 = load ptr, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %79, ptr %80, align 8, !tbaa !11
  %81 = load ptr, ptr %35, align 8, !tbaa !11
  %82 = getelementptr inbounds i8, ptr %81, i64 24
  %83 = load ptr, ptr %82, align 8, !tbaa !11
  %84 = getelementptr inbounds i8, ptr %83, i64 24
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = icmp eq ptr %86, %83
  br i1 %87, label %.sink.split, label %.sink.split.sink.split

88:                                               ; preds = %5
  %89 = getelementptr inbounds i8, ptr %1, i64 24
  %90 = load ptr, ptr %89, align 8, !tbaa !11
  %91 = getelementptr inbounds i8, ptr %90, i64 36
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = icmp eq i32 %92, 5
  br i1 %93, label %94, label %101

94:                                               ; preds = %88
  %95 = getelementptr inbounds i8, ptr %1, i64 168
  store i32 1, ptr %95, align 4, !tbaa !11
  %96 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 0
  br i1 %97, label %98, label %101

98:                                               ; preds = %94
  %99 = load ptr, ptr @stderr, align 8, !tbaa !9
  %100 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.7) #2
  %.pre = load ptr, ptr %89, align 8, !tbaa !11
  br label %101

101:                                              ; preds = %94, %98, %88
  %102 = phi ptr [ %90, %94 ], [ %.pre, %98 ], [ %90, %88 ]
  %103 = getelementptr inbounds i8, ptr %102, i64 36
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = icmp eq i32 %104, 9
  br i1 %105, label %106, label %113

106:                                              ; preds = %101
  %107 = getelementptr inbounds i8, ptr %1, i64 164
  store i32 1, ptr %107, align 4, !tbaa !11
  %108 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %109 = icmp slt i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %106
  %111 = load ptr, ptr @stderr, align 8, !tbaa !9
  %112 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.8) #2
  br label %113

113:                                              ; preds = %106, %110, %101
  %114 = load i32, ptr %3, align 4, !tbaa !5
  %115 = add i32 %114, 1
  store i32 %115, ptr %3, align 4, !tbaa !5
  %116 = icmp ult i32 %115, %4
  br i1 %116, label %117, label %131

117:                                              ; preds = %113
  %118 = load ptr, ptr %89, align 8, !tbaa !11
  %119 = getelementptr inbounds i8, ptr %118, i64 24
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %120, ptr %121, align 8, !tbaa !11
  %122 = load ptr, ptr %89, align 8, !tbaa !11
  %123 = getelementptr inbounds i8, ptr %122, i64 24
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = icmp eq ptr %125, %122
  br i1 %126, label %.sink.split, label %.sink.split.sink.split

.sink.split.sink.split:                           ; preds = %117, %74, %24
  %.sink79 = phi ptr [ %31, %24 ], [ %85, %74 ], [ %124, %117 ]
  %.sink77 = phi ptr [ %29, %24 ], [ %83, %74 ], [ %122, %117 ]
  %127 = getelementptr inbounds i8, ptr %.sink79, i64 8
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = icmp eq ptr %128, %.sink77
  %130 = getelementptr inbounds i8, ptr %.sink79, i64 16
  %spec.select71 = select i1 %129, ptr %127, ptr %130
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %117, %74, %24
  %.sink = phi ptr [ %31, %24 ], [ %85, %74 ], [ %124, %117 ], [ %spec.select71, %.sink.split.sink.split ]
  store ptr %2, ptr %.sink, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %.sink.split, %5, %63, %113, %12
  ret void
}

attributes #0 = { 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 #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { cold 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}


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