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

; 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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_x86_instruction_open_stream_gemm = external hidden unnamed_addr constant [41 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [47 x i8], align 1

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

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_get_x86_gp_reg_name(i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

declare void @libxsmm_append_code_as_string(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_open_stream_gemm(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [512 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [512 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca [4 x i8], align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %20, i32 0, i32 3
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = icmp ugt i32 %22, 1
  br i1 %23, label %24, label %106

24:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  store ptr %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !14
  store i32 %30, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !15
  store i32 %33, ptr %11, align 4, !tbaa !9
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = icmp eq ptr null, %34
  br i1 %35, label %41, label %36

36:                                               ; preds = %24
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = add i32 %38, 9
  %40 = icmp ult i32 %37, %39
  br i1 %40, label %41, label %50

41:                                               ; preds = %36, %24
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %44 = icmp ult i32 1, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %41
  %46 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %48

47:                                               ; preds = %41
  br label %48

48:                                               ; preds = %47, %45
  %49 = phi i32 [ %46, %45 ], [ 1, %47 ]
  call void @libxsmm_handle_error(ptr noundef %42, i32 noundef 90002, ptr noundef @__func__.libxsmm_x86_instruction_open_stream_gemm, ptr noundef @.str, i32 noundef 4643, i32 noundef %49)
  store i32 1, ptr %12, align 4
  br label %103

50:                                               ; preds = %36
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %102

53:                                               ; preds = %50
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = add i32 %55, 1
  store i32 %56, ptr %10, align 4, !tbaa !9
  %57 = zext i32 %55 to i64
  %58 = getelementptr inbounds i8, ptr %54, i64 %57
  store i8 83, ptr %58, align 1, !tbaa !16
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = add i32 %60, 1
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = zext i32 %60 to i64
  %63 = getelementptr inbounds i8, ptr %59, i64 %62
  store i8 65, ptr %63, align 1, !tbaa !16
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = add i32 %65, 1
  store i32 %66, ptr %10, align 4, !tbaa !9
  %67 = zext i32 %65 to i64
  %68 = getelementptr inbounds i8, ptr %64, i64 %67
  store i8 84, ptr %68, align 1, !tbaa !16
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = add i32 %70, 1
  store i32 %71, ptr %10, align 4, !tbaa !9
  %72 = zext i32 %70 to i64
  %73 = getelementptr inbounds i8, ptr %69, i64 %72
  store i8 65, ptr %73, align 1, !tbaa !16
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = add i32 %75, 1
  store i32 %76, ptr %10, align 4, !tbaa !9
  %77 = zext i32 %75 to i64
  %78 = getelementptr inbounds i8, ptr %74, i64 %77
  store i8 85, ptr %78, align 1, !tbaa !16
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !9
  %82 = zext i32 %80 to i64
  %83 = getelementptr inbounds i8, ptr %79, i64 %82
  store i8 65, ptr %83, align 1, !tbaa !16
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %10, align 4, !tbaa !9
  %87 = zext i32 %85 to i64
  %88 = getelementptr inbounds i8, ptr %84, i64 %87
  store i8 86, ptr %88, align 1, !tbaa !16
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = add i32 %90, 1
  store i32 %91, ptr %10, align 4, !tbaa !9
  %92 = zext i32 %90 to i64
  %93 = getelementptr inbounds i8, ptr %89, i64 %92
  store i8 65, ptr %93, align 1, !tbaa !16
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = add i32 %95, 1
  store i32 %96, ptr %10, align 4, !tbaa !9
  %97 = zext i32 %95 to i64
  %98 = getelementptr inbounds i8, ptr %94, i64 %97
  store i8 87, ptr %98, align 1, !tbaa !16
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %100, i32 0, i32 2
  store i32 %99, ptr %101, align 4, !tbaa !14
  br label %102

102:                                              ; preds = %53, %50
  store i32 0, ptr %12, align 4
  br label %103

103:                                              ; preds = %102, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %104 = load i32, ptr %12, align 4
  switch i32 %104, label %231 [
    i32 0, label %105
    i32 1, label %230
  ]

105:                                              ; preds = %103
  br label %230

106:                                              ; preds = %4
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %107, i32 0, i32 3
  %109 = load i32, ptr %108, align 8, !tbaa !11
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %111, label %158

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 512, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 511, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %150

114:                                              ; preds = %111
  %115 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %115, i64 noundef %117, ptr noundef @.str.155) #4
  store i32 %118, ptr %15, align 4, !tbaa !9
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %121 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %119, ptr noundef %120, i32 noundef %121)
  %122 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %122, i64 noundef %124, ptr noundef @.str.156) #4
  store i32 %125, ptr %15, align 4, !tbaa !9
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %128 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %126, ptr noundef %127, i32 noundef %128)
  %129 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %129, i64 noundef %131, ptr noundef @.str.157) #4
  store i32 %132, ptr %15, align 4, !tbaa !9
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %135 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %133, ptr noundef %134, i32 noundef %135)
  %136 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %136, i64 noundef %138, ptr noundef @.str.158) #4
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %142 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %140, ptr noundef %141, i32 noundef %142)
  %143 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %143, i64 noundef %145, ptr noundef @.str.159) #4
  store i32 %146, ptr %15, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %149 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %147, ptr noundef %148, i32 noundef %149)
  br label %150

150:                                              ; preds = %114, %111
  %151 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %151, i64 noundef %153, ptr noundef @.str.160) #4
  store i32 %154, ptr %15, align 4, !tbaa !9
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %157 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %155, ptr noundef %156, i32 noundef %157)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %13) #4
  br label %229

158:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 512, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 511, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %161, ptr noundef %162, i32 noundef 3)
  %163 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %167 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %163, i64 noundef %165, ptr noundef @.str.161, ptr noundef %166) #4
  store i32 %167, ptr %18, align 4, !tbaa !9
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %170 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %168, ptr noundef %169, i32 noundef %170)
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %171, i32 0, i32 3
  %173 = load i32, ptr %172, align 4, !tbaa !19
  %174 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %173, ptr noundef %174, i32 noundef 3)
  %175 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %176 = load i32, ptr %17, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %179 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %175, i64 noundef %177, ptr noundef @.str.162, ptr noundef %178) #4
  store i32 %179, ptr %18, align 4, !tbaa !9
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %182 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %180, ptr noundef %181, i32 noundef %182)
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %183, i32 0, i32 5
  %185 = load i32, ptr %184, align 4, !tbaa !20
  %186 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %185, ptr noundef %186, i32 noundef 3)
  %187 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %191 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %187, i64 noundef %189, ptr noundef @.str.163, ptr noundef %190) #4
  store i32 %191, ptr %18, align 4, !tbaa !9
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %194 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %192, ptr noundef %193, i32 noundef %194)
  %195 = load i32, ptr %8, align 4, !tbaa !9
  %196 = icmp eq i32 %195, 2
  br i1 %196, label %197, label %210

197:                                              ; preds = %158
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %198, i32 0, i32 8
  %200 = load i32, ptr %199, align 4, !tbaa !21
  %201 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %200, ptr noundef %201, i32 noundef 3)
  %202 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %206 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %202, i64 noundef %204, ptr noundef @.str.164, ptr noundef %205) #4
  store i32 %206, ptr %18, align 4, !tbaa !9
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %209 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %207, ptr noundef %208, i32 noundef %209)
  br label %228

210:                                              ; preds = %158
  %211 = load i32, ptr %8, align 4, !tbaa !9
  %212 = icmp eq i32 %211, 1
  br i1 %212, label %213, label %226

213:                                              ; preds = %210
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %215, align 4, !tbaa !22
  %217 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %216, ptr noundef %217, i32 noundef 3)
  %218 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %222 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %218, i64 noundef %220, ptr noundef @.str.164, ptr noundef %221) #4
  store i32 %222, ptr %18, align 4, !tbaa !9
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds [512 x i8], ptr %16, i64 0, i64 0
  %225 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %223, ptr noundef %224, i32 noundef %225)
  br label %227

226:                                              ; preds = %210
  br label %227

227:                                              ; preds = %226, %213
  br label %228

228:                                              ; preds = %227, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %16) #4
  br label %229

229:                                              ; preds = %228, %150
  br label %230

230:                                              ; preds = %229, %105, %103
  ret void

231:                                              ; preds = %103
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!12, !6, i64 0}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !10, i64 4}
!18 = !{!"libxsmm_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128}
!19 = !{!18, !10, i64 12}
!20 = !{!18, !10, i64 20}
!21 = !{!18, !10, i64 32}
!22 = !{!18, !10, i64 24}


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

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_x86_instruction_open_stream_gemm = external hidden unnamed_addr constant [41 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.160 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [47 x i8], align 1

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

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_get_x86_gp_reg_name(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare void @libxsmm_append_code_as_string(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_open_stream_gemm(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = alloca [512 x i8], align 16
  %6 = alloca [512 x i8], align 16
  %7 = alloca [4 x i8], align 1
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = icmp ugt i32 %9, 1
  br i1 %10, label %11, label %55

11:                                               ; preds = %4
  %12 = load ptr, ptr %0, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %0, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !12
  %15 = icmp eq ptr %12, null
  br i1 %15, label %21, label %16

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = add i32 %14, 9
  %20 = icmp ult i32 %18, %19
  br i1 %20, label %21, label %26

21:                                               ; preds = %16, %11
  %22 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !14
  %23 = icmp ugt i32 %22, 1
  %24 = load i32, ptr @libxsmm_verbosity, align 4
  %25 = select i1 %23, i32 %24, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_x86_instruction_open_stream_gemm, ptr noundef nonnull @.str, i32 noundef 4643, i32 noundef %25) #4
  br label %82

26:                                               ; preds = %16
  %27 = icmp eq i32 %2, 0
  br i1 %27, label %28, label %82

28:                                               ; preds = %26
  %29 = add i32 %14, 1
  %30 = zext i32 %14 to i64
  %31 = getelementptr inbounds i8, ptr %12, i64 %30
  store i8 83, ptr %31, align 1, !tbaa !15
  %32 = add i32 %14, 2
  %33 = zext i32 %29 to i64
  %34 = getelementptr inbounds i8, ptr %12, i64 %33
  store i8 65, ptr %34, align 1, !tbaa !15
  %35 = add i32 %14, 3
  %36 = zext i32 %32 to i64
  %37 = getelementptr inbounds i8, ptr %12, i64 %36
  store i8 84, ptr %37, align 1, !tbaa !15
  %38 = add i32 %14, 4
  %39 = zext i32 %35 to i64
  %40 = getelementptr inbounds i8, ptr %12, i64 %39
  store i8 65, ptr %40, align 1, !tbaa !15
  %41 = add i32 %14, 5
  %42 = zext i32 %38 to i64
  %43 = getelementptr inbounds i8, ptr %12, i64 %42
  store i8 85, ptr %43, align 1, !tbaa !15
  %44 = add i32 %14, 6
  %45 = zext i32 %41 to i64
  %46 = getelementptr inbounds i8, ptr %12, i64 %45
  store i8 65, ptr %46, align 1, !tbaa !15
  %47 = add i32 %14, 7
  %48 = zext i32 %44 to i64
  %49 = getelementptr inbounds i8, ptr %12, i64 %48
  store i8 86, ptr %49, align 1, !tbaa !15
  %50 = add i32 %14, 8
  %51 = zext i32 %47 to i64
  %52 = getelementptr inbounds i8, ptr %12, i64 %51
  store i8 65, ptr %52, align 1, !tbaa !15
  %53 = zext i32 %50 to i64
  %54 = getelementptr inbounds i8, ptr %12, i64 %53
  store i8 87, ptr %54, align 1, !tbaa !15
  store i32 %19, ptr %13, align 4, !tbaa !12
  br label %82

55:                                               ; preds = %4
  %56 = icmp eq i32 %9, 1
  br i1 %56, label %57, label %67

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #4
  %58 = icmp eq i32 %2, 0
  br i1 %58, label %59, label %65

59:                                               ; preds = %57
  %60 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.155) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %60) #4
  %61 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.156) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %61) #4
  %62 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.157) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %62) #4
  %63 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.158) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %63) #4
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.159) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %64) #4
  br label %65

65:                                               ; preds = %59, %57
  %66 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.160) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %66) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #4
  br label %82

67:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %68 = getelementptr inbounds i8, ptr %1, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !16
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %69, ptr noundef nonnull %7, i32 noundef 3) #4
  %70 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 511, ptr noundef nonnull @.str.161, ptr noundef nonnull %7) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %6, i32 noundef %70) #4
  %71 = getelementptr inbounds i8, ptr %1, i64 12
  %72 = load i32, ptr %71, align 4, !tbaa !18
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %72, ptr noundef nonnull %7, i32 noundef 3) #4
  %73 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 511, ptr noundef nonnull @.str.162, ptr noundef nonnull %7) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %6, i32 noundef %73) #4
  %74 = getelementptr inbounds i8, ptr %1, i64 20
  %75 = load i32, ptr %74, align 4, !tbaa !19
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %75, ptr noundef nonnull %7, i32 noundef 3) #4
  %76 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 511, ptr noundef nonnull @.str.163, ptr noundef nonnull %7) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %6, i32 noundef %76) #4
  switch i32 %3, label %81 [
    i32 2, label %.sink.split
    i32 1, label %77
  ]

77:                                               ; preds = %67
  br label %.sink.split

.sink.split:                                      ; preds = %67, %77
  %.sink = phi i64 [ 24, %77 ], [ 32, %67 ]
  %78 = getelementptr inbounds i8, ptr %1, i64 %.sink
  %79 = load i32, ptr %78, align 4, !tbaa !14
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %79, ptr noundef nonnull %7, i32 noundef 3) #4
  %80 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 511, ptr noundef nonnull @.str.164, ptr noundef nonnull %7) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %6, i32 noundef %80) #4
  br label %81

81:                                               ; preds = %.sink.split, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #4
  br label %82

82:                                               ; preds = %21, %28, %26, %65, %81
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 = { 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 16}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!6, !10, i64 8}
!14 = !{!10, !10, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !10, i64 4}
!17 = !{!"libxsmm_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128}
!18 = !{!17, !10, i64 12}
!19 = !{!17, !10, i64 20}


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