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

; 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 [70 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@__func__.libxsmm_generator_gemm_inlineasm = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_inlineasm = external hidden unnamed_addr constant [113 x i8], align 1
@stderr = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [96 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_kernel(ptr noundef, ptr noundef) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_inlineasm(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.libxsmm_generated_code, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  br label %15

15:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 32, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr %9, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %16

16:                                               ; preds = %27, %15
  %17 = load i8, ptr %12, align 1, !tbaa !9
  %18 = sext i8 %17 to i32
  %19 = load i8, ptr %10, align 1, !tbaa !9
  %20 = sext i8 %19 to i32
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %22, label %30

22:                                               ; preds = %16
  %23 = load ptr, ptr %11, align 8, !tbaa !5
  %24 = load i8, ptr %12, align 1, !tbaa !9
  %25 = sext i8 %24 to i64
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  store i8 0, ptr %26, align 1, !tbaa !9
  br label %27

27:                                               ; preds = %22
  %28 = load i8, ptr %12, align 1, !tbaa !9
  %29 = add i8 %28, 1
  store i8 %29, ptr %12, align 1, !tbaa !9
  br label %16, !llvm.loop !10

30:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = call i32 @strcmp(ptr noundef %33, ptr noundef @.str.2) #7
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1004, ptr %37, align 4, !tbaa !13
  br label %131

38:                                               ; preds = %32
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = call i32 @strcmp(ptr noundef %39, ptr noundef @.str.3) #7
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %38
  %43 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1005, ptr %43, align 4, !tbaa !13
  br label %130

44:                                               ; preds = %38
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call i32 @strcmp(ptr noundef %45, ptr noundef @.str.4) #7
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %44
  %49 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1006, ptr %49, align 4, !tbaa !13
  br label %129

50:                                               ; preds = %44
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.5) #7
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %50
  %55 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1007, ptr %55, align 4, !tbaa !13
  br label %128

56:                                               ; preds = %50
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.6) #7
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %62

60:                                               ; preds = %56
  %61 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1008, ptr %61, align 4, !tbaa !13
  br label %127

62:                                               ; preds = %56
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = call i32 @strcmp(ptr noundef %63, ptr noundef @.str.7) #7
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %62
  %67 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1101, ptr %67, align 4, !tbaa !13
  br label %126

68:                                               ; preds = %62
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = call i32 @strcmp(ptr noundef %69, ptr noundef @.str.8) #7
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1102, ptr %73, align 4, !tbaa !13
  br label %125

74:                                               ; preds = %68
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = call i32 @strcmp(ptr noundef %75, ptr noundef @.str.9) #7
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %74
  %79 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1103, ptr %79, align 4, !tbaa !13
  br label %124

80:                                               ; preds = %74
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = call i32 @strcmp(ptr noundef %81, ptr noundef @.str.10) #7
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1104, ptr %85, align 4, !tbaa !13
  br label %123

86:                                               ; preds = %80
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call i32 @strcmp(ptr noundef %87, ptr noundef @.str.11) #7
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1105, ptr %91, align 4, !tbaa !13
  br label %122

92:                                               ; preds = %86
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = call i32 @strcmp(ptr noundef %93, ptr noundef @.str.12) #7
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %92
  %97 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1106, ptr %97, align 4, !tbaa !13
  br label %121

98:                                               ; preds = %92
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = call i32 @strcmp(ptr noundef %99, ptr noundef @.str.13) #7
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1051, ptr %103, align 4, !tbaa !13
  br label %120

104:                                              ; preds = %98
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = call i32 @strcmp(ptr noundef %105, ptr noundef @.str.14) #7
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %104
  %109 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1052, ptr %109, align 4, !tbaa !13
  br label %119

110:                                              ; preds = %104
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call i32 @strcmp(ptr noundef %111, ptr noundef @.str.15) #7
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %116

114:                                              ; preds = %110
  %115 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1053, ptr %115, align 4, !tbaa !13
  br label %118

116:                                              ; preds = %110
  %117 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1002, ptr %117, align 4, !tbaa !13
  br label %118

118:                                              ; preds = %116, %114
  br label %119

119:                                              ; preds = %118, %108
  br label %120

120:                                              ; preds = %119, %102
  br label %121

121:                                              ; preds = %120, %96
  br label %122

122:                                              ; preds = %121, %90
  br label %123

123:                                              ; preds = %122, %84
  br label %124

124:                                              ; preds = %123, %78
  br label %125

125:                                              ; preds = %124, %72
  br label %126

126:                                              ; preds = %125, %66
  br label %127

127:                                              ; preds = %126, %60
  br label %128

128:                                              ; preds = %127, %54
  br label %129

129:                                              ; preds = %128, %48
  br label %130

130:                                              ; preds = %129, %42
  br label %131

131:                                              ; preds = %130, %36
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_mmfunction_signature(ptr noundef %9, ptr noundef %132, ptr noundef %133)
  call void @libxsmm_generator_isa_check_header(ptr noundef %9)
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_kernel(ptr noundef %9, ptr noundef %134)
  call void @libxsmm_generator_isa_check_footer(ptr noundef %9)
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_add_flop_counter(ptr noundef %9, ptr noundef %135)
  call void @libxsmm_close_function(ptr noundef %9)
  %136 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 5
  %137 = load i32, ptr %136, align 8, !tbaa !16
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %142

139:                                              ; preds = %131
  %140 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 5
  %141 = load i32, ptr %140, align 8, !tbaa !16
  call void @libxsmm_handle_error(ptr noundef %9, i32 noundef %141, ptr noundef @__func__.libxsmm_generator_gemm_inlineasm, ptr noundef @.str, i32 noundef 1005, i32 noundef 1)
  store i32 1, ptr %13, align 4
  br label %169

142:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = call noalias ptr @fopen(ptr noundef %143, ptr noundef @.str.16)
  store ptr %144, ptr %14, align 8, !tbaa !5
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %147, label %160

147:                                              ; preds = %142
  %148 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %152

151:                                              ; preds = %147
  br label %153

152:                                              ; preds = %147
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str, i32 noundef 1013, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_inlineasm) #8
  unreachable

153:                                              ; preds = %151
  %154 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !17
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = call i32 @fputs(ptr noundef %155, ptr noundef %156)
  %158 = load ptr, ptr %14, align 8, !tbaa !5
  %159 = call i32 @fclose(ptr noundef %158)
  br label %163

160:                                              ; preds = %142
  %161 = load ptr, ptr @stderr, align 8, !tbaa !5
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.18) #6
  store i32 1, ptr %13, align 4
  br label %164

163:                                              ; preds = %153
  store i32 0, ptr %13, align 4
  br label %164

164:                                              ; preds = %163, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %165 = load i32, ptr %13, align 4
  switch i32 %165, label %169 [
    i32 0, label %166
  ]

166:                                              ; preds = %164
  %167 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !17
  call void @free(ptr noundef %168) #6
  store i32 0, ptr %13, align 4
  br label %169

169:                                              ; preds = %166, %164, %139
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  %170 = load i32, ptr %13, align 4
  switch i32 %170, label %172 [
    i32 0, label %171
    i32 1, label %171
  ]

171:                                              ; preds = %169, %169
  ret void

172:                                              ; preds = %169
  unreachable
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

declare void @libxsmm_mmfunction_signature(ptr noundef, ptr noundef, ptr noundef) #2

declare void @libxsmm_generator_isa_check_header(ptr noundef) #2

declare void @libxsmm_generator_isa_check_footer(ptr noundef) #2

declare void @libxsmm_generator_gemm_add_flop_counter(ptr noundef, ptr noundef) #2

declare void @libxsmm_close_function(ptr noundef) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @fputs(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 willreturn memory(read) "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 "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11, !12}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.unroll.count", i32 4}
!13 = !{!14, !15, i64 28}
!14 = !{!"libxsmm_generated_code", !6, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 24}
!17 = !{!14, !6, 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"

%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@__func__.libxsmm_generator_gemm_inlineasm = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_inlineasm = external hidden unnamed_addr constant [113 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [96 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_kernel(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_inlineasm(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = alloca %struct.libxsmm_generated_code, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 0, i64 32, i1 false), !tbaa !5
  %6 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.2) #9
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %10

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1004, ptr %9, align 4, !tbaa !8
  br label %76

10:                                               ; preds = %4
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %15

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1005, ptr %14, align 4, !tbaa !8
  br label %76

15:                                               ; preds = %10
  %16 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.4) #9
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %20

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1006, ptr %19, align 4, !tbaa !8
  br label %76

20:                                               ; preds = %15
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.5) #9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1007, ptr %24, align 4, !tbaa !8
  br label %76

25:                                               ; preds = %20
  %26 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.6) #9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %30

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1008, ptr %29, align 4, !tbaa !8
  br label %76

30:                                               ; preds = %25
  %31 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.7) #9
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1101, ptr %34, align 4, !tbaa !8
  br label %76

35:                                               ; preds = %30
  %36 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.8) #9
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1102, ptr %39, align 4, !tbaa !8
  br label %76

40:                                               ; preds = %35
  %41 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.9) #9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1103, ptr %44, align 4, !tbaa !8
  br label %76

45:                                               ; preds = %40
  %46 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.10) #9
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1104, ptr %49, align 4, !tbaa !8
  br label %76

50:                                               ; preds = %45
  %51 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.11) #9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1105, ptr %54, align 4, !tbaa !8
  br label %76

55:                                               ; preds = %50
  %56 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1106, ptr %59, align 4, !tbaa !8
  br label %76

60:                                               ; preds = %55
  %61 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.13) #9
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %60
  %64 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1051, ptr %64, align 4, !tbaa !8
  br label %76

65:                                               ; preds = %60
  %66 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.14) #9
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 1052, ptr %69, align 4, !tbaa !8
  br label %76

70:                                               ; preds = %65
  %71 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.15) #9
  %72 = icmp eq i32 %71, 0
  %73 = getelementptr inbounds i8, ptr %5, i64 28
  br i1 %72, label %74, label %75

74:                                               ; preds = %70
  store i32 1053, ptr %73, align 4, !tbaa !8
  br label %76

75:                                               ; preds = %70
  store i32 1002, ptr %73, align 4, !tbaa !8
  br label %76

76:                                               ; preds = %13, %23, %33, %43, %53, %63, %74, %75, %68, %58, %48, %38, %28, %18, %8
  call void @libxsmm_mmfunction_signature(ptr noundef nonnull %5, ptr noundef %1, ptr noundef %2) #8
  call void @libxsmm_generator_isa_check_header(ptr noundef nonnull %5) #8
  call void @libxsmm_generator_gemm_kernel(ptr noundef nonnull %5, ptr noundef %2)
  call void @libxsmm_generator_isa_check_footer(ptr noundef nonnull %5) #8
  call void @libxsmm_generator_gemm_add_flop_counter(ptr noundef nonnull %5, ptr noundef %2) #8
  call void @libxsmm_close_function(ptr noundef nonnull %5) #8
  %77 = getelementptr inbounds i8, ptr %5, i64 24
  %78 = load i32, ptr %77, align 8, !tbaa !12
  %.not = icmp eq i32 %78, 0
  br i1 %.not, label %80, label %79

79:                                               ; preds = %76
  call void @libxsmm_handle_error(ptr noundef nonnull %5, i32 noundef %78, ptr noundef nonnull @__func__.libxsmm_generator_gemm_inlineasm, ptr noundef nonnull @.str, i32 noundef 1005, i32 noundef 1) #8
  br label %91

80:                                               ; preds = %76
  %81 = call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.16)
  %.not31.not = icmp eq ptr %81, null
  br i1 %.not31.not, label %.thread, label %82

82:                                               ; preds = %80
  %83 = load ptr, ptr %5, align 8, !tbaa !13
  %.not32 = icmp eq ptr %83, null
  br i1 %.not32, label %84, label %87

84:                                               ; preds = %82
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str, i32 noundef 1013, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_generator_gemm_inlineasm) #10
  unreachable

.thread:                                          ; preds = %80
  %85 = load ptr, ptr @stderr, align 8, !tbaa !14
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.18) #11
  br label %91

87:                                               ; preds = %82
  %88 = call i32 @fputs(ptr noundef nonnull %83, ptr noundef nonnull %81)
  %89 = call i32 @fclose(ptr noundef nonnull %81)
  %90 = load ptr, ptr %5, align 8, !tbaa !13
  call void @free(ptr noundef %90) #8
  br label %91

91:                                               ; preds = %.thread, %87, %79
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

declare void @libxsmm_mmfunction_signature(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @libxsmm_generator_isa_check_header(ptr noundef) local_unnamed_addr #2

declare void @libxsmm_generator_isa_check_footer(ptr noundef) local_unnamed_addr #2

declare void @libxsmm_generator_gemm_add_flop_counter(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @libxsmm_close_function(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #5 = { 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 #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { noreturn nounwind }
attributes #11 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !11, i64 28}
!9 = !{!"libxsmm_generated_code", !10, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!9, !11, i64 24}
!13 = !{!9, !10, i64 0}
!14 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopIdiomRecognizePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass