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

@.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
@stderr = external global ptr, align 8
@.str.132 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.libxsmm_x86_instruction_tile_extract = external hidden unnamed_addr constant [37 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [53 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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #2

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_tile_extract(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca [512 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca [24 x i8], align 16
  %22 = alloca [4 x i8], align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %24, label %26 [
    i32 50010, label %25
    i32 -535941113, label %25
    i32 -268033974, label %25
    i32 50012, label %25
    i32 -535941001, label %25
    i32 -268033939, label %25
    i32 50011, label %25
    i32 -535875577, label %25
    i32 -267968403, label %25
    i32 50014, label %25
    i32 -535875465, label %25
    i32 -268099475, label %25
    i32 50013, label %25
    i32 -536072185, label %25
    i32 -268165011, label %25
    i32 50015, label %25
    i32 -536006649, label %25
    i32 -268099510, label %25
  ]

25:                                               ; preds = %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7
  br label %30

26:                                               ; preds = %7
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.132, i32 noundef %28) #5
  call void @exit(i32 noundef -1) #6
  unreachable

30:                                               ; preds = %25
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %31, i32 0, i32 3
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = icmp ugt i32 %33, 1
  br i1 %34, label %35, label %135

35:                                               ; preds = %30
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %37, align 4, !tbaa !13
  %39 = icmp uge i32 %38, 1104
  br i1 %39, label %40, label %135

40:                                               ; preds = %35
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !14
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !15
  %47 = sub i32 %43, %46
  %48 = icmp ult i32 %47, 20
  br i1 %48, label %49, label %58

49:                                               ; preds = %40
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %52 = icmp ult i32 1, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  %54 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %56

55:                                               ; preds = %49
  br label %56

56:                                               ; preds = %55, %53
  %57 = phi i32 [ %54, %53 ], [ 1, %55 ]
  call void @libxsmm_handle_error(ptr noundef %50, i32 noundef 90002, ptr noundef @__func__.libxsmm_x86_instruction_tile_extract, ptr noundef @.str, i32 noundef 4119, i32 noundef %57)
  store i32 1, ptr %16, align 4
  br label %211

58:                                               ; preds = %40
  %59 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %59, label %90 [
    i32 50010, label %60
    i32 50012, label %65
    i32 50011, label %70
    i32 50014, label %75
    i32 50013, label %80
    i32 50015, label %85
  ]

60:                                               ; preds = %58
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 127
  %63 = zext i1 %62 to i64
  %64 = select i1 %62, i32 -535941113, i32 -268033974
  store i32 %64, ptr %15, align 4, !tbaa !9
  br label %92

65:                                               ; preds = %58
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 127
  %68 = zext i1 %67 to i64
  %69 = select i1 %67, i32 -535941001, i32 -268033939
  store i32 %69, ptr %15, align 4, !tbaa !9
  br label %92

70:                                               ; preds = %58
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 127
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, i32 -535875577, i32 -267968403
  store i32 %74, ptr %15, align 4, !tbaa !9
  br label %92

75:                                               ; preds = %58
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = icmp eq i32 %76, 127
  %78 = zext i1 %77 to i64
  %79 = select i1 %77, i32 -535875465, i32 -268099475
  store i32 %79, ptr %15, align 4, !tbaa !9
  br label %92

80:                                               ; preds = %58
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = icmp eq i32 %81, 127
  %83 = zext i1 %82 to i64
  %84 = select i1 %82, i32 -536072185, i32 -268165011
  store i32 %84, ptr %15, align 4, !tbaa !9
  br label %92

85:                                               ; preds = %58
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = icmp eq i32 %86, 127
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, i32 -536006649, i32 -268099510
  store i32 %89, ptr %15, align 4, !tbaa !9
  br label %92

90:                                               ; preds = %58
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %15, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %90, %85, %80, %75, %70, %65, %60
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = lshr i32 %93, 28
  %95 = and i32 %94, 3
  %96 = icmp eq i32 %95, 3
  br i1 %96, label %97, label %103

97:                                               ; preds = %92
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef %98, i32 noundef %99, i32 noundef 2, i32 noundef %100, i32 noundef %101, i32 noundef %102, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0)
  br label %134

103:                                              ; preds = %92
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = lshr i32 %104, 28
  %106 = and i32 %105, 3
  %107 = icmp eq i32 %106, 2
  br i1 %107, label %108, label %130

108:                                              ; preds = %103
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = lshr i32 %109, 16
  %111 = and i32 %110, 8
  %112 = icmp eq i32 %111, 8
  br i1 %112, label %113, label %130

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !16
  store ptr %116, ptr %17, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef %117, i32 noundef %118, i32 noundef 2, i32 noundef %119, i32 noundef 0, i32 noundef %120, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0)
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = trunc i32 %121 to i8
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !15
  %127 = add i32 %126, 1
  store i32 %127, ptr %125, align 4, !tbaa !15
  %128 = zext i32 %126 to i64
  %129 = getelementptr inbounds i8, ptr %123, i64 %128
  store i8 %122, ptr %129, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %133

130:                                              ; preds = %108, %103
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.133) #5
  call void @exit(i32 noundef -1) #6
  unreachable

133:                                              ; preds = %113
  br label %134

134:                                              ; preds = %133, %97
  br label %210

135:                                              ; preds = %35, %30
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %136, i32 0, i32 3
  %138 = load i32, ptr %137, align 8, !tbaa !11
  %139 = icmp ult i32 %138, 2
  br i1 %139, label %140, label %206

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 512, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 511, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = getelementptr inbounds [24 x i8], ptr %21, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %141, ptr noundef %142, i32 noundef 23)
  %143 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %143, label %204 [
    i32 -268033974, label %144
    i32 -268033939, label %144
    i32 -268099475, label %144
    i32 -267968403, label %144
    i32 -268165011, label %144
    i32 -268099510, label %144
  ]

144:                                              ; preds = %140, %140, %140, %140, %140, %140
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 127
  br i1 %146, label %147, label %176

147:                                              ; preds = %144
  %148 = load i32, ptr %13, align 4, !tbaa !9
  %149 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %148, ptr noundef %149, i32 noundef 3)
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %150, i32 0, i32 3
  %152 = load i32, ptr %151, align 8, !tbaa !11
  %153 = icmp eq i32 %152, 0
  br i1 %153, label %154, label %163

154:                                              ; preds = %147
  %155 = getelementptr inbounds [512 x i8], ptr %18, i64 0, i64 0
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [24 x i8], ptr %21, i64 0, i64 0
  %159 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %155, i64 noundef %157, ptr noundef @.str.134, ptr noundef %158, ptr noundef %159, i32 noundef %160, i32 noundef %161) #5
  store i32 %162, ptr %20, align 4, !tbaa !9
  br label %172

163:                                              ; preds = %147
  %164 = getelementptr inbounds [512 x i8], ptr %18, i64 0, i64 0
  %165 = load i32, ptr %19, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [24 x i8], ptr %21, i64 0, i64 0
  %168 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %164, i64 noundef %166, ptr noundef @.str.135, ptr noundef %167, ptr noundef %168, i32 noundef %169, i32 noundef %170) #5
  store i32 %171, ptr %20, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %163, %154
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds [512 x i8], ptr %18, i64 0, i64 0
  %175 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %173, ptr noundef %174, i32 noundef %175)
  br label %203

176:                                              ; preds = %144
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %177, i32 0, i32 3
  %179 = load i32, ptr %178, align 8, !tbaa !11
  %180 = icmp eq i32 %179, 0
  br i1 %180, label %181, label %190

181:                                              ; preds = %176
  %182 = getelementptr inbounds [512 x i8], ptr %18, i64 0, i64 0
  %183 = load i32, ptr %19, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [24 x i8], ptr %21, i64 0, i64 0
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %182, i64 noundef %184, ptr noundef @.str.136, ptr noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188) #5
  store i32 %189, ptr %20, align 4, !tbaa !9
  br label %199

190:                                              ; preds = %176
  %191 = getelementptr inbounds [512 x i8], ptr %18, i64 0, i64 0
  %192 = load i32, ptr %19, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [24 x i8], ptr %21, i64 0, i64 0
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %191, i64 noundef %193, ptr noundef @.str.137, ptr noundef %194, i32 noundef %195, i32 noundef %196, i32 noundef %197) #5
  store i32 %198, ptr %20, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %190, %181
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = getelementptr inbounds [512 x i8], ptr %18, i64 0, i64 0
  %202 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %200, ptr noundef %201, i32 noundef %202)
  br label %203

203:                                              ; preds = %199, %172
  br label %205

204:                                              ; preds = %140
  br label %205

205:                                              ; preds = %204, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %18) #5
  br label %209

206:                                              ; preds = %135
  %207 = load ptr, ptr @stderr, align 8, !tbaa !5
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.138) #5
  call void @exit(i32 noundef -1) #6
  unreachable

209:                                              ; preds = %205
  br label %210

210:                                              ; preds = %209, %134
  store i32 0, ptr %16, align 4
  br label %211

211:                                              ; preds = %210, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %212 = load i32, ptr %16, align 4
  switch i32 %212, label %214 [
    i32 0, label %213
    i32 1, label %213
  ]

213:                                              ; preds = %211, %211
  ret void

214:                                              ; preds = %211
  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 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 #3 = { 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 = { 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 = { nounwind }
attributes #6 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/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, !10, i64 28}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !10, i64 12}
!16 = !{!12, !6, i64 0}
!17 = !{!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"

@.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
@stderr = external local_unnamed_addr global ptr, align 8
@.str.132 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.libxsmm_x86_instruction_tile_extract = external hidden unnamed_addr constant [37 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [53 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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2

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

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

declare void @libxsmm_get_x86_instr_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 #3

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_tile_extract(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = alloca [512 x i8], align 16
  %9 = alloca [24 x i8], align 16
  %10 = alloca [4 x i8], align 1
  switch i32 %2, label %11 [
    i32 50010, label %14
    i32 -535941113, label %14
    i32 -268033974, label %14
    i32 50012, label %14
    i32 -535941001, label %14
    i32 -268033939, label %14
    i32 50011, label %14
    i32 -535875577, label %14
    i32 -267968403, label %14
    i32 50014, label %14
    i32 -535875465, label %14
    i32 -268099475, label %14
    i32 50013, label %14
    i32 -536072185, label %14
    i32 -268165011, label %14
    i32 50015, label %14
    i32 -536006649, label %14
    i32 -268099510, label %14
  ]

11:                                               ; preds = %7
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.132, i32 noundef %2) #5
  tail call void @exit(i32 noundef -1) #6
  unreachable

14:                                               ; preds = %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7, %7
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load i32, ptr %15, align 8, !tbaa !9
  %17 = icmp ugt i32 %16, 1
  br i1 %17, label %18, label %69

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %0, i64 28
  %20 = load i32, ptr %19, align 4, !tbaa !12
  %21 = icmp ugt i32 %20, 1103
  br i1 %21, label %22, label %80

22:                                               ; preds = %18
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !14
  %27 = sub i32 %24, %26
  %28 = icmp ult i32 %27, 20
  br i1 %28, label %29, label %34

29:                                               ; preds = %22
  %30 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %31 = icmp ugt i32 %30, 1
  %32 = load i32, ptr @libxsmm_verbosity, align 4
  %33 = select i1 %31, i32 %32, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_x86_instruction_tile_extract, ptr noundef nonnull @.str, i32 noundef 4119, i32 noundef %33) #7
  br label %83

34:                                               ; preds = %22
  switch i32 %2, label %53 [
    i32 50010, label %35
    i32 50012, label %38
    i32 50011, label %41
    i32 50014, label %44
    i32 50013, label %47
    i32 50015, label %50
  ]

35:                                               ; preds = %34
  %36 = icmp eq i32 %5, 127
  %37 = select i1 %36, i32 -535941113, i32 -268033974
  br label %53

38:                                               ; preds = %34
  %39 = icmp eq i32 %5, 127
  %40 = select i1 %39, i32 -535941001, i32 -268033939
  br label %53

41:                                               ; preds = %34
  %42 = icmp eq i32 %5, 127
  %43 = select i1 %42, i32 -535875577, i32 -267968403
  br label %53

44:                                               ; preds = %34
  %45 = icmp eq i32 %5, 127
  %46 = select i1 %45, i32 -535875465, i32 -268099475
  br label %53

47:                                               ; preds = %34
  %48 = icmp eq i32 %5, 127
  %49 = select i1 %48, i32 -536072185, i32 -268165011
  br label %53

50:                                               ; preds = %34
  %51 = icmp eq i32 %5, 127
  %52 = select i1 %51, i32 -536006649, i32 -268099510
  br label %53

53:                                               ; preds = %34, %50, %47, %44, %41, %38, %35
  %.056 = phi i32 [ %52, %50 ], [ %49, %47 ], [ %46, %44 ], [ %43, %41 ], [ %40, %38 ], [ %37, %35 ], [ %2, %34 ]
  %54 = lshr i32 %.056, 28
  %55 = and i32 %54, 3
  switch i32 %55, label %66 [
    i32 3, label %56
    i32 2, label %57
  ]

56:                                               ; preds = %53
  tail call void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef nonnull %0, i32 noundef %.056, i32 noundef 2, i32 noundef %3, i32 noundef %5, i32 noundef %6, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0)
  br label %83

57:                                               ; preds = %53
  %58 = and i32 %.056, 524288
  %.not59 = icmp eq i32 %58, 0
  br i1 %.not59, label %66, label %59

59:                                               ; preds = %57
  %60 = load ptr, ptr %0, align 8, !tbaa !16
  tail call void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef nonnull %0, i32 noundef %.056, i32 noundef 2, i32 noundef %3, i32 noundef 0, i32 noundef %6, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0)
  %61 = trunc i32 %4 to i8
  %62 = load i32, ptr %25, align 4, !tbaa !14
  %63 = add i32 %62, 1
  store i32 %63, ptr %25, align 4, !tbaa !14
  %64 = zext i32 %62 to i64
  %65 = getelementptr inbounds i8, ptr %60, i64 %64
  store i8 %61, ptr %65, align 1, !tbaa !17
  br label %83

66:                                               ; preds = %53, %57
  %67 = load ptr, ptr @stderr, align 8, !tbaa !5
  %68 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.133) #5
  tail call void @exit(i32 noundef -1) #6
  unreachable

69:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @libxsmm_get_x86_instr_name(i32 noundef %2, ptr noundef nonnull %9, i32 noundef 23) #7
  switch i32 %2, label %79 [
    i32 -268033974, label %70
    i32 -268033939, label %70
    i32 -268099475, label %70
    i32 -267968403, label %70
    i32 -268165011, label %70
    i32 -268099510, label %70
  ]

70:                                               ; preds = %69, %69, %69, %69, %69, %69
  %.not = icmp eq i32 %5, 127
  br i1 %.not, label %75, label %71

71:                                               ; preds = %70
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %5, ptr noundef nonnull %10, i32 noundef 3) #7
  %72 = load i32, ptr %15, align 8, !tbaa !9
  %73 = icmp eq i32 %72, 0
  %.str.134..str.135 = select i1 %73, ptr @.str.134, ptr @.str.135
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull %.str.134..str.135, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %3, i32 noundef %6) #7
  br label %.sink.split

75:                                               ; preds = %70
  %76 = load i32, ptr %15, align 8, !tbaa !9
  %77 = icmp eq i32 %76, 0
  %.str.136..str.137 = select i1 %77, ptr @.str.136, ptr @.str.137
  %78 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 511, ptr noundef nonnull %.str.136..str.137, ptr noundef nonnull %9, i32 noundef %4, i32 noundef %3, i32 noundef %6) #7
  br label %.sink.split

.sink.split:                                      ; preds = %75, %71
  %.sink = phi i32 [ %74, %71 ], [ %78, %75 ]
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %8, i32 noundef %.sink) #7
  br label %79

79:                                               ; preds = %.sink.split, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #7
  br label %83

80:                                               ; preds = %18
  %81 = load ptr, ptr @stderr, align 8, !tbaa !5
  %82 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str.138) #5
  tail call void @exit(i32 noundef -1) #6
  unreachable

83:                                               ; preds = %79, %59, %56, %29
  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 = { 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 #3 = { 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 #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 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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, !11, i64 16}
!10 = !{!"libxsmm_generated_code", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 28}
!13 = !{!10, !11, i64 8}
!14 = !{!10, !11, i64 12}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !6, i64 0}
!17 = !{!7, !7, i64 0}


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