; 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.93 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__.libxsmm_x86_instruction_mask_compute_reg = external hidden unnamed_addr constant [41 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [149 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [147 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.98 = 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

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

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

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: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_mask_compute_reg(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca [512 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [16 x i8], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %21, label %23 [
    i32 -1341844662, label %22
    i32 -1341910198, label %22
    i32 -1333456054, label %22
    i32 -1333521590, label %22
    i32 -1341844671, label %22
    i32 -1341910207, label %22
    i32 -1333456063, label %22
    i32 -1333521599, label %22
    i32 -1341844670, label %22
    i32 -1341910206, label %22
    i32 -1333456062, label %22
    i32 -1333521598, label %22
    i32 -1610280636, label %22
    i32 -1610346172, label %22
    i32 -1601892028, label %22
    i32 -1601957564, label %22
    i32 -1341844667, label %22
    i32 -1341910203, label %22
    i32 -1333456059, label %22
    i32 -1333521595, label %22
    i32 -1610280552, label %22
    i32 -1610346088, label %22
    i32 -1601891944, label %22
    i32 -1601957480, label %22
    i32 -1609748174, label %22
    i32 -1601359566, label %22
    i32 -1609748173, label %22
    i32 -1601359565, label %22
    i32 -1609748176, label %22
    i32 -1601359568, label %22
    i32 -1609748175, label %22
    i32 -1601359567, label %22
    i32 -1610280551, label %22
    i32 -1610346087, label %22
    i32 -1601891943, label %22
    i32 -1601957479, label %22
    i32 -1341844661, label %22
    i32 -1341910197, label %22
    i32 -1333521589, label %22
    i32 -1341844666, label %22
    i32 -1341910202, label %22
    i32 -1333456058, label %22
    i32 -1333521594, label %22
    i32 -1341844665, label %22
    i32 -1341910201, label %22
    i32 -1333456057, label %22
    i32 -1333521593, label %22
  ]

22:                                               ; preds = %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6
  br label %35

23:                                               ; preds = %6
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.93, i32 noundef %25) #4
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %29 = icmp ult i32 1, %28
  br i1 %29, label %30, label %32

30:                                               ; preds = %23
  %31 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %33

32:                                               ; preds = %23
  br label %33

33:                                               ; preds = %32, %30
  %34 = phi i32 [ %31, %30 ], [ 1, %32 ]
  call void @libxsmm_handle_error(ptr noundef %27, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef @.str, i32 noundef 3496, i32 noundef %34)
  br label %156

35:                                               ; preds = %22
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %36, i32 0, i32 3
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = icmp ugt i32 %38, 1
  br i1 %39, label %40, label %127

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = and i32 %41, 768
  %43 = icmp eq i32 %42, 768
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, i32 1, i32 0
  store i32 %45, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = lshr i32 %46, 28
  %48 = and i32 %47, 3
  %49 = icmp eq i32 %48, 2
  br i1 %49, label %50, label %66

50:                                               ; preds = %40
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 255
  br i1 %52, label %53, label %65

53:                                               ; preds = %50
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.94, i32 noundef %55) #4
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %59 = icmp ult i32 1, %58
  br i1 %59, label %60, label %62

60:                                               ; preds = %53
  %61 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %63

62:                                               ; preds = %53
  br label %63

63:                                               ; preds = %62, %60
  %64 = phi i32 [ %61, %60 ], [ 1, %62 ]
  call void @libxsmm_handle_error(ptr noundef %57, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef @.str, i32 noundef 3509, i32 noundef %64)
  store i32 1, ptr %15, align 4
  br label %124

65:                                               ; preds = %50
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %84

66:                                               ; preds = %40
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 255
  br i1 %68, label %69, label %81

69:                                               ; preds = %66
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.95, i32 noundef %71) #4
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %75 = icmp ult i32 1, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %69
  %77 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %79

78:                                               ; preds = %69
  br label %79

79:                                               ; preds = %78, %76
  %80 = phi i32 [ %77, %76 ], [ 1, %78 ]
  call void @libxsmm_handle_error(ptr noundef %73, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef @.str, i32 noundef 3516, i32 noundef %80)
  store i32 1, ptr %15, align 4
  br label %124

81:                                               ; preds = %66
  %82 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %81
  br label %84

84:                                               ; preds = %83, %65
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90)
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = lshr i32 %91, 16
  %93 = and i32 %92, 8
  %94 = icmp eq i32 %93, 8
  br i1 %94, label %95, label %123

95:                                               ; preds = %84
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 1024
  br i1 %97, label %98, label %111

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !13
  store ptr %101, ptr %16, align 8, !tbaa !5
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = trunc i32 %102 to i8
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !14
  %108 = add i32 %107, 1
  store i32 %108, ptr %106, align 4, !tbaa !14
  %109 = zext i32 %107 to i64
  %110 = getelementptr inbounds i8, ptr %104, i64 %109
  store i8 %103, ptr %110, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %122

111:                                              ; preds = %95
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.96) #4
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %116 = icmp ult i32 1, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %111
  %118 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %120

119:                                              ; preds = %111
  br label %120

120:                                              ; preds = %119, %117
  %121 = phi i32 [ %118, %117 ], [ 1, %119 ]
  call void @libxsmm_handle_error(ptr noundef %114, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef @.str, i32 noundef 3534, i32 noundef %121)
  store i32 1, ptr %15, align 4
  br label %124

122:                                              ; preds = %98
  br label %123

123:                                              ; preds = %122, %84
  store i32 0, ptr %15, align 4
  br label %124

124:                                              ; preds = %123, %120, %79, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %125 = load i32, ptr %15, align 4
  switch i32 %125, label %157 [
    i32 0, label %126
    i32 1, label %156
  ]

126:                                              ; preds = %124
  br label %156

127:                                              ; preds = %35
  call void @llvm.lifetime.start.p0(i64 512, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 511, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %128, ptr noundef %129, i32 noundef 15)
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %130, i32 0, i32 3
  %132 = load i32, ptr %131, align 8, !tbaa !11
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %143

134:                                              ; preds = %127
  %135 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 0
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %135, i64 noundef %137, ptr noundef @.str.97, ptr noundef %138, i32 noundef %139, i32 noundef %140, i32 noundef %141) #4
  store i32 %142, ptr %19, align 4, !tbaa !9
  br label %152

143:                                              ; preds = %127
  %144 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %145 = load i32, ptr %18, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [16 x i8], ptr %20, i64 0, i64 0
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %144, i64 noundef %146, ptr noundef @.str.98, ptr noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150) #4
  store i32 %151, ptr %19, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %143, %134
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %155 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %153, ptr noundef %154, i32 noundef %155)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  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 512, ptr %17) #4
  br label %156

156:                                              ; preds = %152, %126, %124, %33
  ret void

157:                                              ; preds = %124
  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 = { 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 = !{!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.93 = external hidden unnamed_addr constant [81 x i8], align 1
@__func__.libxsmm_x86_instruction_mask_compute_reg = external hidden unnamed_addr constant [41 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [149 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [147 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.98 = 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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) 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_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: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_mask_compute_reg(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = alloca [512 x i8], align 16
  %8 = alloca [16 x i8], align 16
  switch i32 %1, label %9 [
    i32 -1341844662, label %16
    i32 -1341910198, label %16
    i32 -1333456054, label %16
    i32 -1333521590, label %16
    i32 -1341844671, label %16
    i32 -1341910207, label %16
    i32 -1333456063, label %16
    i32 -1333521599, label %16
    i32 -1341844670, label %16
    i32 -1341910206, label %16
    i32 -1333456062, label %16
    i32 -1333521598, label %16
    i32 -1610280636, label %16
    i32 -1610346172, label %16
    i32 -1601892028, label %16
    i32 -1601957564, label %16
    i32 -1341844667, label %16
    i32 -1341910203, label %16
    i32 -1333456059, label %16
    i32 -1333521595, label %16
    i32 -1610280552, label %16
    i32 -1610346088, label %16
    i32 -1601891944, label %16
    i32 -1601957480, label %16
    i32 -1609748174, label %16
    i32 -1601359566, label %16
    i32 -1609748173, label %16
    i32 -1601359565, label %16
    i32 -1609748176, label %16
    i32 -1601359568, label %16
    i32 -1609748175, label %16
    i32 -1601359567, label %16
    i32 -1610280551, label %16
    i32 -1610346087, label %16
    i32 -1601891943, label %16
    i32 -1601957479, label %16
    i32 -1341844661, label %16
    i32 -1341910197, label %16
    i32 -1333521589, label %16
    i32 -1341844666, label %16
    i32 -1341910202, label %16
    i32 -1333456058, label %16
    i32 -1333521594, label %16
    i32 -1341844665, label %16
    i32 -1341910201, label %16
    i32 -1333456057, label %16
    i32 -1333521593, label %16
  ]

9:                                                ; preds = %6
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.93, i32 noundef %1) #4
  %12 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %13 = icmp ugt i32 %12, 1
  %14 = load i32, ptr @libxsmm_verbosity, align 4
  %15 = select i1 %13, i32 %14, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef nonnull @.str, i32 noundef 3496, i32 noundef %15) #5
  br label %64

16:                                               ; preds = %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6, %6
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load i32, ptr %17, align 8, !tbaa !11
  %19 = icmp ugt i32 %18, 1
  br i1 %19, label %20, label %60

20:                                               ; preds = %16
  %21 = and i32 %1, 768
  %22 = icmp eq i32 %21, 768
  %23 = zext i1 %22 to i32
  %24 = and i32 %1, 805306368
  %25 = icmp eq i32 %24, 536870912
  %.not = icmp eq i32 %3, 255
  br i1 %25, label %26, label %34

26:                                               ; preds = %20
  br i1 %.not, label %42, label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.94, i32 noundef %1) #4
  %30 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %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 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef nonnull @.str, i32 noundef 3509, i32 noundef %33) #5
  br label %64

34:                                               ; preds = %20
  br i1 %.not, label %35, label %42

35:                                               ; preds = %34
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.95, i32 noundef %1) #4
  %38 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %39 = icmp ugt i32 %38, 1
  %40 = load i32, ptr @libxsmm_verbosity, align 4
  %41 = select i1 %39, i32 %40, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef nonnull @.str, i32 noundef 3516, i32 noundef %41) #5
  br label %64

42:                                               ; preds = %34, %26
  %.037 = phi i32 [ 0, %26 ], [ %3, %34 ]
  tail call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %23, i32 noundef %2, i32 noundef %.037, i32 noundef %4)
  %43 = and i32 %1, 524288
  %.not40 = icmp eq i32 %43, 0
  br i1 %.not40, label %64, label %44

44:                                               ; preds = %42
  %.not41 = icmp eq i32 %5, 1024
  br i1 %.not41, label %53, label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %0, align 8, !tbaa !13
  %47 = trunc i32 %5 to i8
  %48 = getelementptr inbounds i8, ptr %0, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !14
  %50 = add i32 %49, 1
  store i32 %50, ptr %48, align 4, !tbaa !14
  %51 = zext i32 %49 to i64
  %52 = getelementptr inbounds i8, ptr %46, i64 %51
  store i8 %47, ptr %52, align 1, !tbaa !15
  br label %64

53:                                               ; preds = %44
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.96) #4
  %56 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %57 = icmp ugt i32 %56, 1
  %58 = load i32, ptr @libxsmm_verbosity, align 4
  %59 = select i1 %57, i32 %58, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_mask_compute_reg, ptr noundef nonnull @.str, i32 noundef 3534, i32 noundef %59) #5
  br label %64

60:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @libxsmm_get_x86_instr_name(i32 noundef %1, ptr noundef nonnull %8, i32 noundef 15) #5
  %61 = load i32, ptr %17, align 8, !tbaa !11
  %62 = icmp eq i32 %61, 0
  %.str.97..str.98 = select i1 %62, ptr @.str.97, ptr @.str.98
  %63 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull %.str.97..str.98, ptr noundef nonnull %8, i32 noundef %2, i32 noundef %3, i32 noundef %4) #5
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %7, i32 noundef %63) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #5
  br label %64

64:                                               ; preds = %27, %35, %53, %45, %42, %60, %9
  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 = { cold nounwind }
attributes #5 = { 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 = !{!7, !7, i64 0}


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