; 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.17 = external hidden unnamed_addr constant [40 x i8], align 1
@stderr = external global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [94 x i8], align 1
@__func__.libxsmm_generator_gemm_directasm = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_directasm = external hidden unnamed_addr constant [113 x i8], align 1
@.str.22 = 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 willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

declare void @libxsmm_mmfunction_signature(ptr noundef, ptr noundef, 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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_directasm(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 i32, align 4
  %11 = 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
  %12 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  store ptr null, ptr %12, align 8, !tbaa !9
  %13 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 1
  store i32 0, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 2
  store i32 0, ptr %14, align 4, !tbaa !13
  %15 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 3
  store i32 1, ptr %15, align 8, !tbaa !14
  %16 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 5
  store i32 0, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 0, ptr %17, align 4, !tbaa !16
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = call i32 @strcmp(ptr noundef %18, ptr noundef @.str.2) #7
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %23

21:                                               ; preds = %4
  %22 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1004, ptr %22, align 4, !tbaa !16
  br label %95

23:                                               ; preds = %4
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.3) #7
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %23
  %28 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1005, ptr %28, align 4, !tbaa !16
  br label %94

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

33:                                               ; preds = %29
  %34 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1006, ptr %34, align 4, !tbaa !16
  br label %93

35:                                               ; preds = %29
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call i32 @strcmp(ptr noundef %36, ptr noundef @.str.5) #7
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %35
  %40 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1007, ptr %40, align 4, !tbaa !16
  br label %92

41:                                               ; preds = %35
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = call i32 @strcmp(ptr noundef %42, ptr noundef @.str.6) #7
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %47

45:                                               ; preds = %41
  %46 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1008, ptr %46, align 4, !tbaa !16
  br label %91

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

51:                                               ; preds = %47
  %52 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1101, ptr %52, align 4, !tbaa !16
  br label %90

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

57:                                               ; preds = %53
  %58 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1102, ptr %58, align 4, !tbaa !16
  br label %89

59:                                               ; preds = %53
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = call i32 @strcmp(ptr noundef %60, ptr noundef @.str.9) #7
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1103, ptr %64, align 4, !tbaa !16
  br label %88

65:                                               ; preds = %59
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = call i32 @strcmp(ptr noundef %66, ptr noundef @.str.10) #7
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  %70 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1104, ptr %70, align 4, !tbaa !16
  br label %87

71:                                               ; preds = %65
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = call i32 @strcmp(ptr noundef %72, ptr noundef @.str.11) #7
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %71
  %76 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1105, ptr %76, align 4, !tbaa !16
  br label %86

77:                                               ; preds = %71
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = call i32 @strcmp(ptr noundef %78, ptr noundef @.str.12) #7
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %77
  %82 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1106, ptr %82, align 4, !tbaa !16
  br label %85

83:                                               ; preds = %77
  %84 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 6
  store i32 1002, ptr %84, align 4, !tbaa !16
  br label %85

85:                                               ; preds = %83, %81
  br label %86

86:                                               ; preds = %85, %75
  br label %87

87:                                               ; preds = %86, %69
  br label %88

88:                                               ; preds = %87, %63
  br label %89

89:                                               ; preds = %88, %57
  br label %90

90:                                               ; preds = %89, %51
  br label %91

91:                                               ; preds = %90, %45
  br label %92

92:                                               ; preds = %91, %39
  br label %93

93:                                               ; preds = %92, %33
  br label %94

94:                                               ; preds = %93, %27
  br label %95

95:                                               ; preds = %94, %21
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.19) #7
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %95
  %100 = load ptr, ptr @stderr, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.20) #6
  store i32 1, ptr %10, align 4
  br label %139

102:                                              ; preds = %95
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_mmfunction_signature(ptr noundef %9, ptr noundef %103, ptr noundef %104)
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_kernel(ptr noundef %9, ptr noundef %105)
  %106 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 5
  %107 = load i32, ptr %106, align 8, !tbaa !15
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %112

109:                                              ; preds = %102
  %110 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 5
  %111 = load i32, ptr %110, align 8, !tbaa !15
  call void @libxsmm_handle_error(ptr noundef %9, i32 noundef %111, ptr noundef @__func__.libxsmm_generator_gemm_directasm, ptr noundef @.str, i32 noundef 1082, i32 noundef 1)
  store i32 1, ptr %10, align 4
  br label %139

112:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = call noalias ptr @fopen(ptr noundef %113, ptr noundef @.str.21)
  store ptr %114, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %117, label %130

117:                                              ; preds = %112
  %118 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %122

121:                                              ; preds = %117
  br label %123

122:                                              ; preds = %117
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str, i32 noundef 1090, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_directasm) #8
  unreachable

123:                                              ; preds = %121
  %124 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = call i32 @fputs(ptr noundef %125, ptr noundef %126)
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = call i32 @fclose(ptr noundef %128)
  br label %133

130:                                              ; preds = %112
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.22) #6
  store i32 1, ptr %10, align 4
  br label %134

133:                                              ; preds = %123
  store i32 0, ptr %10, align 4
  br label %134

134:                                              ; preds = %133, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %135 = load i32, ptr %10, align 4
  switch i32 %135, label %139 [
    i32 0, label %136
  ]

136:                                              ; preds = %134
  %137 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %9, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  call void @free(ptr noundef %138) #6
  store i32 0, ptr %10, align 4
  br label %139

139:                                              ; preds = %136, %134, %109, %99
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  %140 = load i32, ptr %10, align 4
  switch i32 %140, label %142 [
    i32 0, label %141
    i32 1, label %141
  ]

141:                                              ; preds = %139, %139
  ret void

142:                                              ; preds = %139
  unreachable
}

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 = !{!10, !6, i64 0}
!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 8}
!13 = !{!10, !11, i64 12}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !11, i64 24}
!16 = !{!10, !11, i64 28}


; 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.17 = external hidden unnamed_addr constant [40 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [94 x i8], align 1
@__func__.libxsmm_generator_gemm_directasm = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_directasm = external hidden unnamed_addr constant [113 x i8], align 1
@.str.22 = 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: 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

; 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: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_directasm(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
  %6 = getelementptr inbounds i8, ptr %5, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
  store i32 1, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %5, i64 24
  store i32 0, ptr %7, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %5, i64 28
  %9 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.2) #9
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %41, label %11

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

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

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

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

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

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

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

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

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

38:                                               ; preds = %35
  %39 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.12) #9
  %40 = icmp eq i32 %39, 0
  %. = select i1 %40, i32 1106, i32 1002
  br label %41

41:                                               ; preds = %38, %35, %32, %29, %26, %23, %20, %17, %14, %11, %4
  %.sink = phi i32 [ 1004, %4 ], [ 1005, %11 ], [ 1006, %14 ], [ 1007, %17 ], [ 1008, %20 ], [ 1101, %23 ], [ 1102, %26 ], [ 1103, %29 ], [ 1104, %32 ], [ 1105, %35 ], [ %., %38 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !12
  %42 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.19) #9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  %45 = load ptr, ptr @stderr, align 8, !tbaa !13
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.20) #10
  br label %61

47:                                               ; preds = %41
  call void @libxsmm_mmfunction_signature(ptr noundef nonnull %5, ptr noundef %1, ptr noundef %2) #8
  call void @libxsmm_generator_gemm_kernel(ptr noundef nonnull %5, ptr noundef %2)
  %48 = load i32, ptr %7, align 8, !tbaa !11
  %.not = icmp eq i32 %48, 0
  br i1 %.not, label %50, label %49

49:                                               ; preds = %47
  call void @libxsmm_handle_error(ptr noundef nonnull %5, i32 noundef %48, ptr noundef nonnull @__func__.libxsmm_generator_gemm_directasm, ptr noundef nonnull @.str, i32 noundef 1082, i32 noundef 1) #8
  br label %61

50:                                               ; preds = %47
  %51 = call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.21)
  %.not22.not = icmp eq ptr %51, null
  br i1 %.not22.not, label %.thread, label %52

52:                                               ; preds = %50
  %53 = load ptr, ptr %5, align 8, !tbaa !14
  %.not23 = icmp eq ptr %53, null
  br i1 %.not23, label %54, label %57

54:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str, i32 noundef 1090, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_generator_gemm_directasm) #11
  unreachable

.thread:                                          ; preds = %50
  %55 = load ptr, ptr @stderr, align 8, !tbaa !13
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.22) #10
  br label %61

57:                                               ; preds = %52
  %58 = call i32 @fputs(ptr noundef nonnull %53, ptr noundef nonnull %51)
  %59 = call i32 @fclose(ptr noundef nonnull %51)
  %60 = load ptr, ptr %5, align 8, !tbaa !14
  call void @free(ptr noundef %60) #8
  br label %61

61:                                               ; preds = %.thread, %57, %49, %44
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  ret void
}

; 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 = { cold nounwind }
attributes #11 = { 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, !10, i64 16}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 24}
!12 = !{!6, !10, i64 28}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass