; 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.62 = external hidden unnamed_addr constant [67 x i8], align 1
@__func__.libxsmm_x86_instruction_alu_imm = external hidden unnamed_addr constant [32 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [39 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_rex_compute_2reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #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: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [512 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [4 x i8], align 1
  %21 = alloca [16 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !11
  %22 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %22, label %24 [
    i32 30000, label %23
    i32 -1811152768, label %23
    i32 -1811136127, label %23
    i32 -1811152255, label %23
    i32 -1769209215, label %23
    i32 30001, label %23
    i32 -1806958464, label %23
    i32 -1806941823, label %23
    i32 -1806957951, label %23
    i32 -1765014911, label %23
    i32 30002, label %23
    i32 -1803812736, label %23
    i32 -1803796095, label %23
    i32 -1803812223, label %23
    i32 -1761869183, label %23
    i32 30003, label %23
    i32 -1609809559, label %23
    i32 -1609825687, label %23
    i32 -1567882647, label %23
    i32 -1568407413, label %23
    i32 -1811152698, label %23
    i32 -1811136057, label %23
    i32 -1811152185, label %23
    i32 -1769209145, label %23
    i32 -1810104192, label %23
    i32 -1810087551, label %23
    i32 -1810103679, label %23
    i32 -1768160639, label %23
    i32 30005, label %23
    i32 -1806958400, label %23
    i32 -1806942015, label %23
    i32 -1806958399, label %23
    i32 -1765015359, label %23
    i32 30006, label %23
    i32 -1803812672, label %23
    i32 -1803796287, label %23
    i32 -1803812671, label %23
    i32 -1761869631, label %23
    i32 30007, label %23
    i32 -1805909824, label %23
    i32 -1805893439, label %23
    i32 -1805909823, label %23
    i32 -1763966783, label %23
    i32 30008, label %23
    i32 -1805909888, label %23
    i32 -1805893247, label %23
    i32 -1805909375, label %23
    i32 -1763966335, label %23
    i32 -1804861312, label %23
    i32 -1804844671, label %23
    i32 -1804860799, label %23
    i32 -1762917759, label %23
  ]

23:                                               ; preds = %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4, %4
  br label %36

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

31:                                               ; preds = %24
  %32 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %34

33:                                               ; preds = %24
  br label %34

34:                                               ; preds = %33, %31
  %35 = phi i32 [ %32, %31 ], [ 1, %33 ]
  call void @libxsmm_handle_error(ptr noundef %28, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_alu_imm, ptr noundef @.str, i32 noundef 2801, i32 noundef %35)
  br label %157

36:                                               ; preds = %23
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %37, i32 0, i32 3
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = icmp ugt i32 %39, 1
  br i1 %40, label %41, label %128

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %43 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %43, ptr %11, align 4, !tbaa !9
  %44 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %44, label %54 [
    i32 30000, label %45
    i32 30001, label %46
    i32 30002, label %47
    i32 30003, label %48
    i32 -1568407413, label %49
    i32 30006, label %50
    i32 30005, label %51
    i32 30007, label %52
    i32 30008, label %53
  ]

45:                                               ; preds = %41
  store i32 -1769209215, ptr %11, align 4, !tbaa !9
  br label %54

46:                                               ; preds = %41
  store i32 -1765014911, ptr %11, align 4, !tbaa !9
  br label %54

47:                                               ; preds = %41
  store i32 -1761869183, ptr %11, align 4, !tbaa !9
  br label %54

48:                                               ; preds = %41
  store i32 -1567882647, ptr %11, align 4, !tbaa !9
  br label %54

49:                                               ; preds = %41
  store i32 -1769209145, ptr %11, align 4, !tbaa !9
  br label %54

50:                                               ; preds = %41
  store i32 -1761869631, ptr %11, align 4, !tbaa !9
  br label %54

51:                                               ; preds = %41
  store i32 -1765015359, ptr %11, align 4, !tbaa !9
  br label %54

52:                                               ; preds = %41
  store i32 -1763966783, ptr %11, align 4, !tbaa !9
  br label %54

53:                                               ; preds = %41
  store i32 -1763966335, ptr %11, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %53, %52, %51, %50, %49, %48, %47, %46, %45, %41
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = lshr i32 %55, 24
  %57 = and i32 %56, 4
  %58 = icmp eq i32 %57, 4
  br i1 %58, label %59, label %63

59:                                               ; preds = %54
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = lshr i32 %60, 20
  %62 = and i32 %61, 7
  store i32 %62, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %59, %54
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = icmp eq i32 %64, -1609809559
  br i1 %65, label %72, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = icmp eq i32 %67, -1609825687
  br i1 %68, label %72, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = icmp eq i32 %70, -1567882647
  br i1 %71, label %72, label %74

72:                                               ; preds = %69, %66, %63
  %73 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %73, ptr %9, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %72, %69
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_rex_compute_2reg(ptr noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78)
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = and i32 %79, 524288
  %81 = icmp eq i32 %80, 524288
  br i1 %81, label %82, label %112

82:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !15
  store ptr %85, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = lshr i32 %86, 8
  %88 = and i32 %87, 3
  %89 = shl i32 1, %88
  store i32 %89, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %90 = load i64, ptr %8, align 8, !tbaa !11
  %91 = trunc i64 %90 to i32
  store i32 %91, 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
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %108, %82
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = icmp ult i32 %93, %94
  br i1 %95, label %96, label %111

96:                                               ; preds = %92
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = trunc i32 %97 to i8
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %100, i32 0, i32 2
  %102 = load i32, ptr %101, align 4, !tbaa !16
  %103 = add i32 %102, 1
  store i32 %103, ptr %101, align 4, !tbaa !16
  %104 = zext i32 %102 to i64
  %105 = getelementptr inbounds i8, ptr %99, i64 %104
  store i8 %98, ptr %105, align 1, !tbaa !17
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = lshr i32 %106, 8
  store i32 %107, ptr %14, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %96
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = add i32 %109, 1
  store i32 %110, ptr %15, align 4, !tbaa !9
  br label %92, !llvm.loop !18

111:                                              ; preds = %92
  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 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %124

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

119:                                              ; preds = %112
  %120 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %122

121:                                              ; preds = %112
  br label %122

122:                                              ; preds = %121, %119
  %123 = phi i32 [ %120, %119 ], [ 1, %121 ]
  call void @libxsmm_handle_error(ptr noundef %116, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_alu_imm, ptr noundef @.str, i32 noundef 2880, i32 noundef %123)
  store i32 1, ptr %16, align 4
  br label %125

124:                                              ; preds = %111
  store i32 0, ptr %16, align 4
  br label %125

125:                                              ; preds = %124, %122
  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 4, ptr %9) #4
  %126 = load i32, ptr %16, align 4
  switch i32 %126, label %158 [
    i32 0, label %127
    i32 1, label %157
  ]

127:                                              ; preds = %125
  br label %157

128:                                              ; preds = %36
  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 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %129, ptr noundef %130, i32 noundef 3)
  %131 = load i32, ptr %6, align 4, !tbaa !9
  %132 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %131, ptr noundef %132, i32 noundef 15)
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %134, align 8, !tbaa !13
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %145

137:                                              ; preds = %128
  %138 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %142 = load i64, ptr %8, align 8, !tbaa !11
  %143 = getelementptr inbounds [4 x i8], ptr %20, i64 0, i64 0
  %144 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %138, i64 noundef %140, ptr noundef @.str.64, ptr noundef %141, i64 noundef %142, ptr noundef %143) #4
  store i32 %144, ptr %19, align 4, !tbaa !9
  br label %153

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

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

157:                                              ; preds = %153, %127, %125, %34
  ret void

158:                                              ; preds = %125
  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, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !10, i64 16}
!14 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!15 = !{!14, !6, i64 0}
!16 = !{!14, !10, i64 12}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; 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.62 = external hidden unnamed_addr constant [67 x i8], align 1
@__func__.libxsmm_x86_instruction_alu_imm = external hidden unnamed_addr constant [32 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [39 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_rex_compute_2reg(ptr 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_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: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [512 x i8], align 16
  %6 = alloca [4 x i8], align 1
  %7 = alloca [16 x i8], align 16
  switch i32 %1, label %8 [
    i32 30000, label %15
    i32 -1811152768, label %15
    i32 -1811136127, label %15
    i32 -1811152255, label %15
    i32 -1769209215, label %15
    i32 30001, label %15
    i32 -1806958464, label %15
    i32 -1806941823, label %15
    i32 -1806957951, label %15
    i32 -1765014911, label %15
    i32 30002, label %15
    i32 -1803812736, label %15
    i32 -1803796095, label %15
    i32 -1803812223, label %15
    i32 -1761869183, label %15
    i32 30003, label %15
    i32 -1609809559, label %15
    i32 -1609825687, label %15
    i32 -1567882647, label %15
    i32 -1568407413, label %15
    i32 -1811152698, label %15
    i32 -1811136057, label %15
    i32 -1811152185, label %15
    i32 -1769209145, label %15
    i32 -1810104192, label %15
    i32 -1810087551, label %15
    i32 -1810103679, label %15
    i32 -1768160639, label %15
    i32 30005, label %15
    i32 -1806958400, label %15
    i32 -1806942015, label %15
    i32 -1806958399, label %15
    i32 -1765015359, label %15
    i32 30006, label %15
    i32 -1803812672, label %15
    i32 -1803796287, label %15
    i32 -1803812671, label %15
    i32 -1761869631, label %15
    i32 30007, label %15
    i32 -1805909824, label %15
    i32 -1805893439, label %15
    i32 -1805909823, label %15
    i32 -1763966783, label %15
    i32 30008, label %15
    i32 -1805909888, label %15
    i32 -1805893247, label %15
    i32 -1805909375, label %15
    i32 -1763966335, label %15
    i32 -1804861312, label %15
    i32 -1804844671, label %15
    i32 -1804860799, label %15
    i32 -1762917759, label %15
  ]

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

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

19:                                               ; preds = %15
  switch i32 %1, label %29 [
    i32 30000, label %20
    i32 30001, label %21
    i32 30002, label %22
    i32 30003, label %23
    i32 -1568407413, label %24
    i32 30006, label %25
    i32 30005, label %26
    i32 30007, label %27
    i32 30008, label %28
  ]

20:                                               ; preds = %19
  br label %29

21:                                               ; preds = %19
  br label %29

22:                                               ; preds = %19
  br label %29

23:                                               ; preds = %19
  br label %29

24:                                               ; preds = %19
  br label %29

25:                                               ; preds = %19
  br label %29

26:                                               ; preds = %19
  br label %29

27:                                               ; preds = %19
  br label %29

28:                                               ; preds = %19
  br label %29

29:                                               ; preds = %28, %27, %26, %25, %24, %23, %22, %21, %20, %19
  %.044 = phi i32 [ %1, %19 ], [ -1763966335, %28 ], [ -1763966783, %27 ], [ -1765015359, %26 ], [ -1761869631, %25 ], [ -1769209145, %24 ], [ -1567882647, %23 ], [ -1761869183, %22 ], [ -1765014911, %21 ], [ -1769209215, %20 ]
  %30 = and i32 %.044, 67108864
  %.not = icmp eq i32 %30, 0
  %31 = lshr i32 %.044, 20
  %32 = and i32 %31, 7
  %.041 = select i1 %.not, i32 0, i32 %32
  %33 = icmp eq i32 %.044, -1609809559
  %34 = icmp eq i32 %.044, -1609825687
  %or.cond = or i1 %33, %34
  %35 = icmp eq i32 %.044, -1567882647
  %or.cond3 = or i1 %35, %or.cond
  %.1 = select i1 %or.cond3, i32 %2, i32 %.041
  tail call void @libxsmm_x86_instruction_rex_compute_2reg(ptr noundef nonnull %0, i32 noundef %.044, i32 noundef %2, i32 noundef %.1)
  %36 = and i32 %.044, 524288
  %.not45 = icmp eq i32 %36, 0
  br i1 %.not45, label %52, label %37

37:                                               ; preds = %29
  %38 = load ptr, ptr %0, align 8, !tbaa !13
  %39 = lshr i32 %.044, 8
  %40 = and i32 %39, 3
  %41 = trunc i64 %3 to i32
  %42 = getelementptr inbounds i8, ptr %0, i64 12
  br label %43

43:                                               ; preds = %37, %43
  %.04247 = phi i32 [ 0, %37 ], [ %50, %43 ]
  %.04346 = phi i32 [ %41, %37 ], [ %49, %43 ]
  %44 = trunc i32 %.04346 to i8
  %45 = load i32, ptr %42, align 4, !tbaa !14
  %46 = add i32 %45, 1
  store i32 %46, ptr %42, align 4, !tbaa !14
  %47 = zext i32 %45 to i64
  %48 = getelementptr inbounds i8, ptr %38, i64 %47
  store i8 %44, ptr %48, align 1, !tbaa !15
  %49 = lshr i32 %.04346, 8
  %50 = add nuw nsw i32 %.04247, 1
  %.042.highbits = lshr i32 %50, %40
  %51 = icmp eq i32 %.042.highbits, 0
  br i1 %51, label %43, label %.loopexit, !llvm.loop !16

52:                                               ; preds = %29
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.63, i32 noundef %.044) #4
  %55 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %56 = icmp ugt i32 %55, 1
  %57 = load i32, ptr @libxsmm_verbosity, align 4
  %58 = select i1 %56, i32 %57, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_alu_imm, ptr noundef nonnull @.str, i32 noundef 2880, i32 noundef %58) #5
  br label %.loopexit

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

.loopexit:                                        ; preds = %43, %52, %59, %8
  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}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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