; 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.66 = external hidden unnamed_addr constant [71 x i8], align 1
@__func__.libxsmm_x86_instruction_alu_imm_i64 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [38 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_i64(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 ptr, align 8
  %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 [512 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [4 x i8], align 1
  %19 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr %8, ptr %9, align 8, !tbaa !5
  %20 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %20, label %22 [
    i32 -1568407413, label %21
    i32 -1794375504, label %21
    i32 -1794358856, label %21
    i32 -1794374984, label %21
    i32 -1752431688, label %21
  ]

21:                                               ; preds = %4, %4, %4, %4, %4
  br label %34

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

29:                                               ; preds = %22
  %30 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %32

31:                                               ; preds = %22
  br label %32

32:                                               ; preds = %31, %29
  %33 = phi i32 [ %30, %29 ], [ 1, %31 ]
  call void @libxsmm_handle_error(ptr noundef %26, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_alu_imm_i64, ptr noundef @.str, i32 noundef 2918, i32 noundef %33)
  store i32 1, ptr %10, align 4
  br label %125

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

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %40 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %40, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %41, label %43 [
    i32 -1568407413, label %42
  ]

42:                                               ; preds = %39
  store i32 -1752431688, ptr %11, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %42, %39
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = load i32, ptr %7, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_rex_compute_2reg(ptr noundef %44, i32 noundef %45, i32 noundef 0, i32 noundef %46)
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = and i32 %47, 524288
  %49 = icmp eq i32 %48, 524288
  br i1 %49, label %50, label %79

50:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  store ptr %53, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = lshr i32 %54, 8
  %56 = and i32 %55, 3
  %57 = shl i32 1, %56
  store i32 %57, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %75, %50
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %62, label %78

62:                                               ; preds = %58
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %63, i64 %65
  %67 = load i8, ptr %66, align 1, !tbaa !16
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !17
  %72 = add i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !17
  %73 = zext i32 %71 to i64
  %74 = getelementptr inbounds i8, ptr %68, i64 %73
  store i8 %67, ptr %74, align 1, !tbaa !16
  br label %75

75:                                               ; preds = %62
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = add i32 %76, 1
  store i32 %77, ptr %14, align 4, !tbaa !9
  br label %58, !llvm.loop !18

78:                                               ; preds = %58
  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 %91

79:                                               ; preds = %43
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.67, i32 noundef %81) #4
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %85 = icmp ult i32 1, %84
  br i1 %85, label %86, label %88

86:                                               ; preds = %79
  %87 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %89

88:                                               ; preds = %79
  br label %89

89:                                               ; preds = %88, %86
  %90 = phi i32 [ %87, %86 ], [ 1, %88 ]
  call void @libxsmm_handle_error(ptr noundef %83, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_alu_imm_i64, ptr noundef @.str, i32 noundef 2945, i32 noundef %90)
  store i32 1, ptr %10, align 4
  br label %92

91:                                               ; preds = %78
  store i32 0, ptr %10, align 4
  br label %92

92:                                               ; preds = %91, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %93 = load i32, ptr %10, align 4
  switch i32 %93, label %125 [
    i32 0, label %94
  ]

94:                                               ; preds = %92
  br label %124

95:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 512, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 511, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = getelementptr inbounds [4 x i8], ptr %18, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %96, ptr noundef %97, i32 noundef 3)
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %98, ptr noundef %99, i32 noundef 15)
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %100, i32 0, i32 3
  %102 = load i32, ptr %101, align 8, !tbaa !13
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %112

104:                                              ; preds = %95
  %105 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %109 = load i64, ptr %8, align 8, !tbaa !11
  %110 = getelementptr inbounds [4 x i8], ptr %18, i64 0, i64 0
  %111 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %105, i64 noundef %107, ptr noundef @.str.68, ptr noundef %108, i64 noundef %109, ptr noundef %110) #4
  store i32 %111, ptr %17, align 4, !tbaa !9
  br label %120

112:                                              ; preds = %95
  %113 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %117 = load i64, ptr %8, align 8, !tbaa !11
  %118 = getelementptr inbounds [4 x i8], ptr %18, i64 0, i64 0
  %119 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %113, i64 noundef %115, ptr noundef @.str.69, ptr noundef %116, i64 noundef %117, ptr noundef %118) #4
  store i32 %119, ptr %17, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %112, %104
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds [512 x i8], ptr %15, i64 0, i64 0
  %123 = load i32, ptr %17, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %121, ptr noundef %122, i32 noundef %123)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %15) #4
  br label %124

124:                                              ; preds = %120, %94
  store i32 0, ptr %10, align 4
  br label %125

125:                                              ; preds = %124, %92, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %126 = load i32, ptr %10, align 4
  switch i32 %126, label %128 [
    i32 0, label %127
    i32 1, label %127
  ]

127:                                              ; preds = %125, %125
  ret void

128:                                              ; 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 = !{!7, !7, i64 0}
!17 = !{!14, !10, i64 12}
!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.66 = external hidden unnamed_addr constant [71 x i8], align 1
@__func__.libxsmm_x86_instruction_alu_imm_i64 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [38 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_i64(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #2 {
  %5 = alloca i64, align 8
  %6 = alloca [512 x i8], align 16
  %7 = alloca [4 x i8], align 1
  %8 = alloca [16 x i8], align 16
  store i64 %3, ptr %5, align 8, !tbaa !5
  switch i32 %1, label %9 [
    i32 -1568407413, label %16
    i32 -1794375504, label %16
    i32 -1794358856, label %16
    i32 -1794374984, label %16
    i32 -1752431688, label %16
  ]

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

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

20:                                               ; preds = %16
  %cond = icmp eq i32 %1, -1568407413
  %spec.store.select = select i1 %cond, i32 -1752431688, i32 %1
  tail call void @libxsmm_x86_instruction_rex_compute_2reg(ptr noundef nonnull %0, i32 noundef %spec.store.select, i32 noundef 0, i32 noundef %2)
  %21 = and i32 %spec.store.select, 524288
  %.not.not = icmp eq i32 %21, 0
  br i1 %.not.not, label %36, label %22

22:                                               ; preds = %20
  %23 = load ptr, ptr %0, align 8, !tbaa !15
  %24 = lshr i32 %spec.store.select, 8
  %25 = and i32 %24, 3
  %26 = getelementptr inbounds i8, ptr %0, i64 12
  br label %27

27:                                               ; preds = %22, %27
  %indvars.iv = phi i64 [ 0, %22 ], [ %indvars.iv.next, %27 ]
  %28 = getelementptr inbounds i8, ptr %5, i64 %indvars.iv
  %29 = load i8, ptr %28, align 1, !tbaa !16
  %30 = load i32, ptr %26, align 4, !tbaa !17
  %31 = add i32 %30, 1
  store i32 %31, ptr %26, align 4, !tbaa !17
  %32 = zext i32 %30 to i64
  %33 = getelementptr inbounds i8, ptr %23, i64 %32
  store i8 %29, ptr %33, align 1, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = trunc nuw nsw i64 %indvars.iv.next to i32
  %.030.highbits = lshr i32 %34, %25
  %35 = icmp eq i32 %.030.highbits, 0
  br i1 %35, label %27, label %.loopexit, !llvm.loop !18

36:                                               ; preds = %20
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.67, i32 noundef %spec.store.select) #4
  %39 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !11
  %40 = icmp ugt i32 %39, 1
  %41 = load i32, ptr @libxsmm_verbosity, align 4
  %42 = select i1 %40, i32 %41, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_alu_imm_i64, ptr noundef nonnull @.str, i32 noundef 2945, i32 noundef %42) #5
  br label %.loopexit

43:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %2, ptr noundef nonnull %7, i32 noundef 3) #5
  call void @libxsmm_get_x86_instr_name(i32 noundef %1, ptr noundef nonnull %8, i32 noundef 15) #5
  %44 = load i32, ptr %17, align 8, !tbaa !13
  %45 = icmp eq i32 %44, 0
  %.str.68..str.69 = select i1 %45, ptr @.str.68, ptr @.str.69
  %46 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 511, ptr noundef nonnull %.str.68..str.69, ptr noundef nonnull %8, i64 noundef %3, ptr noundef nonnull %7) #5
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %6, i32 noundef %46) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %6) #5
  br label %.loopexit

.loopexit:                                        ; preds = %27, %36, %43, %9
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { cold nounwind }
attributes #5 = { nounwind }

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

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


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