; 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
@.str.155 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [47 x i8], align 1
@__func__.libxsmm_x86_instruction_open_stream_alt = external hidden unnamed_addr constant [40 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

declare void @libxsmm_get_x86_gp_reg_name(i32 noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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_open_stream_alt(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [512 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [512 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [4 x i8], align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %18, i32 0, i32 3
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp ugt i32 %20, 1
  br i1 %21, label %22, label %104

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  store ptr %25, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %26, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !14
  store i32 %28, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !15
  store i32 %31, ptr %9, align 4, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = icmp eq ptr null, %32
  br i1 %33, label %39, label %34

34:                                               ; preds = %22
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = add i32 %36, 40
  %38 = icmp ult i32 %35, %37
  br i1 %38, label %39, label %48

39:                                               ; preds = %34, %22
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %42 = icmp ult i32 1, %41
  br i1 %42, label %43, label %45

43:                                               ; preds = %39
  %44 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %46

45:                                               ; preds = %39
  br label %46

46:                                               ; preds = %45, %43
  %47 = phi i32 [ %44, %43 ], [ 1, %45 ]
  call void @libxsmm_handle_error(ptr noundef %40, i32 noundef 90002, ptr noundef @__func__.libxsmm_x86_instruction_open_stream_alt, ptr noundef @.str, i32 noundef 5077, i32 noundef %47)
  store i32 1, ptr %10, align 4
  br label %101

48:                                               ; preds = %34
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %97

51:                                               ; preds = %48
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = add i32 %53, 1
  store i32 %54, ptr %8, align 4, !tbaa !9
  %55 = zext i32 %53 to i64
  %56 = getelementptr inbounds i8, ptr %52, i64 %55
  store i8 83, ptr %56, align 1, !tbaa !16
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = add i32 %58, 1
  store i32 %59, ptr %8, align 4, !tbaa !9
  %60 = zext i32 %58 to i64
  %61 = getelementptr inbounds i8, ptr %57, i64 %60
  store i8 65, ptr %61, align 1, !tbaa !16
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = add i32 %63, 1
  store i32 %64, ptr %8, align 4, !tbaa !9
  %65 = zext i32 %63 to i64
  %66 = getelementptr inbounds i8, ptr %62, i64 %65
  store i8 84, ptr %66, align 1, !tbaa !16
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %8, align 4, !tbaa !9
  %70 = zext i32 %68 to i64
  %71 = getelementptr inbounds i8, ptr %67, i64 %70
  store i8 65, ptr %71, align 1, !tbaa !16
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = add i32 %73, 1
  store i32 %74, ptr %8, align 4, !tbaa !9
  %75 = zext i32 %73 to i64
  %76 = getelementptr inbounds i8, ptr %72, i64 %75
  store i8 85, ptr %76, align 1, !tbaa !16
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %8, align 4, !tbaa !9
  %80 = zext i32 %78 to i64
  %81 = getelementptr inbounds i8, ptr %77, i64 %80
  store i8 65, ptr %81, align 1, !tbaa !16
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = add i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !9
  %85 = zext i32 %83 to i64
  %86 = getelementptr inbounds i8, ptr %82, i64 %85
  store i8 86, ptr %86, align 1, !tbaa !16
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = add i32 %88, 1
  store i32 %89, ptr %8, align 4, !tbaa !9
  %90 = zext i32 %88 to i64
  %91 = getelementptr inbounds i8, ptr %87, i64 %90
  store i8 65, ptr %91, align 1, !tbaa !16
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = add i32 %93, 1
  store i32 %94, ptr %8, align 4, !tbaa !9
  %95 = zext i32 %93 to i64
  %96 = getelementptr inbounds i8, ptr %92, i64 %95
  store i8 87, ptr %96, align 1, !tbaa !16
  br label %97

97:                                               ; preds = %51, %48
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %99, i32 0, i32 2
  store i32 %98, ptr %100, align 4, !tbaa !14
  store i32 0, ptr %10, align 4
  br label %101

101:                                              ; preds = %97, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %102 = load i32, ptr %10, align 4
  switch i32 %102, label %162 [
    i32 0, label %103
    i32 1, label %161
  ]

103:                                              ; preds = %101
  br label %161

104:                                              ; preds = %3
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %105, i32 0, i32 3
  %107 = load i32, ptr %106, align 8, !tbaa !11
  %108 = icmp eq i32 %107, 1
  br i1 %108, label %109, label %149

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 512, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 511, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %148

112:                                              ; preds = %109
  %113 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %113, i64 noundef %115, ptr noundef @.str.155) #4
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %119 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %117, ptr noundef %118, i32 noundef %119)
  %120 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %120, i64 noundef %122, ptr noundef @.str.156) #4
  store i32 %123, ptr %13, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %126 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %124, ptr noundef %125, i32 noundef %126)
  %127 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %127, i64 noundef %129, ptr noundef @.str.157) #4
  store i32 %130, ptr %13, align 4, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %133 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %131, ptr noundef %132, i32 noundef %133)
  %134 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %134, i64 noundef %136, ptr noundef @.str.158) #4
  store i32 %137, ptr %13, align 4, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %140 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %138, ptr noundef %139, i32 noundef %140)
  %141 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %141, i64 noundef %143, ptr noundef @.str.159) #4
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
  %147 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %145, ptr noundef %146, i32 noundef %147)
  br label %148

148:                                              ; preds = %112, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %11) #4
  br label %160

149:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 512, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 511, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %150 = load i32, ptr %5, align 4, !tbaa !9
  %151 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %150, ptr noundef %151, i32 noundef 3)
  %152 = getelementptr inbounds [512 x i8], ptr %14, i64 0, i64 0
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [4 x i8], ptr %17, i64 0, i64 0
  %156 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %152, i64 noundef %154, ptr noundef @.str.161, ptr noundef %155) #4
  store i32 %156, ptr %16, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds [512 x i8], ptr %14, i64 0, i64 0
  %159 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %157, ptr noundef %158, i32 noundef %159)
  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 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %14) #4
  br label %160

160:                                              ; preds = %149, %148
  br label %161

161:                                              ; preds = %160, %103, %101
  ret void

162:                                              ; preds = %101
  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 "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 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 #4 = { nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@.str.155 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [47 x i8], align 1
@__func__.libxsmm_x86_instruction_open_stream_alt = external hidden unnamed_addr constant [40 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

declare void @libxsmm_get_x86_gp_reg_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 #2

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_open_stream_alt(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = alloca [512 x i8], align 16
  %5 = alloca [512 x i8], align 16
  %6 = alloca [4 x i8], align 1
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp ugt i32 %8, 1
  br i1 %9, label %10, label %56

10:                                               ; preds = %3
  %11 = load ptr, ptr %0, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = load i32, ptr %12, align 4, !tbaa !12
  %14 = icmp eq ptr %11, null
  br i1 %14, label %20, label %15

15:                                               ; preds = %10
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = add i32 %13, 40
  %19 = icmp ult i32 %17, %18
  br i1 %19, label %20, label %25

20:                                               ; preds = %15, %10
  %21 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !14
  %22 = icmp ugt i32 %21, 1
  %23 = load i32, ptr @libxsmm_verbosity, align 4
  %24 = select i1 %22, i32 %23, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_x86_instruction_open_stream_alt, ptr noundef nonnull @.str, i32 noundef 5077, i32 noundef %24) #4
  br label %69

25:                                               ; preds = %15
  %26 = icmp eq i32 %2, 0
  br i1 %26, label %27, label %55

27:                                               ; preds = %25
  %28 = add i32 %13, 1
  %29 = zext i32 %13 to i64
  %30 = getelementptr inbounds i8, ptr %11, i64 %29
  store i8 83, ptr %30, align 1, !tbaa !15
  %31 = add i32 %13, 2
  %32 = zext i32 %28 to i64
  %33 = getelementptr inbounds i8, ptr %11, i64 %32
  store i8 65, ptr %33, align 1, !tbaa !15
  %34 = add i32 %13, 3
  %35 = zext i32 %31 to i64
  %36 = getelementptr inbounds i8, ptr %11, i64 %35
  store i8 84, ptr %36, align 1, !tbaa !15
  %37 = add i32 %13, 4
  %38 = zext i32 %34 to i64
  %39 = getelementptr inbounds i8, ptr %11, i64 %38
  store i8 65, ptr %39, align 1, !tbaa !15
  %40 = add i32 %13, 5
  %41 = zext i32 %37 to i64
  %42 = getelementptr inbounds i8, ptr %11, i64 %41
  store i8 85, ptr %42, align 1, !tbaa !15
  %43 = add i32 %13, 6
  %44 = zext i32 %40 to i64
  %45 = getelementptr inbounds i8, ptr %11, i64 %44
  store i8 65, ptr %45, align 1, !tbaa !15
  %46 = add i32 %13, 7
  %47 = zext i32 %43 to i64
  %48 = getelementptr inbounds i8, ptr %11, i64 %47
  store i8 86, ptr %48, align 1, !tbaa !15
  %49 = add i32 %13, 8
  %50 = zext i32 %46 to i64
  %51 = getelementptr inbounds i8, ptr %11, i64 %50
  store i8 65, ptr %51, align 1, !tbaa !15
  %52 = add i32 %13, 9
  %53 = zext i32 %49 to i64
  %54 = getelementptr inbounds i8, ptr %11, i64 %53
  store i8 87, ptr %54, align 1, !tbaa !15
  br label %55

55:                                               ; preds = %27, %25
  %.0 = phi i32 [ %52, %27 ], [ %13, %25 ]
  store i32 %.0, ptr %12, align 4, !tbaa !12
  br label %69

56:                                               ; preds = %3
  %57 = icmp eq i32 %8, 1
  br i1 %57, label %58, label %67

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #4
  %59 = icmp eq i32 %2, 0
  br i1 %59, label %60, label %66

60:                                               ; preds = %58
  %61 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 511, ptr noundef nonnull @.str.155) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %61) #4
  %62 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 511, ptr noundef nonnull @.str.156) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %62) #4
  %63 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 511, ptr noundef nonnull @.str.157) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %63) #4
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 511, ptr noundef nonnull @.str.158) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %64) #4
  %65 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 511, ptr noundef nonnull @.str.159) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %65) #4
  br label %66

66:                                               ; preds = %60, %58
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #4
  br label %69

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %1, ptr noundef nonnull %6, i32 noundef 3) #4
  %68 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.161, ptr noundef nonnull %6) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %68) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #4
  br label %69

69:                                               ; preds = %20, %55, %66, %67
  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 = { 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 #3 = { 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 #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, !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, !7, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!6, !10, i64 8}
!14 = !{!10, !10, i64 0}
!15 = !{!8, !8, i64 0}


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