; 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.160 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [35 x i8], align 1
@__func__.libxsmm_x86_instruction_close_stream_alt = external hidden unnamed_addr constant [41 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [241 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [369 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
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_close_stream_alt(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [512 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [1024 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = icmp ugt i32 %17, 1
  br i1 %18, label %19, label %106

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

31:                                               ; preds = %19
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = add i32 %33, 10
  %35 = icmp ult i32 %32, %34
  br i1 %35, label %36, label %45

36:                                               ; preds = %31, %19
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %39 = icmp ult i32 1, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %36
  %41 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %43

42:                                               ; preds = %36
  br label %43

43:                                               ; preds = %42, %40
  %44 = phi i32 [ %41, %40 ], [ 1, %42 ]
  call void @libxsmm_handle_error(ptr noundef %37, i32 noundef 90002, ptr noundef @__func__.libxsmm_x86_instruction_close_stream_alt, ptr noundef @.str, i32 noundef 5195, i32 noundef %44)
  store i32 1, ptr %8, align 4
  br label %103

45:                                               ; preds = %31
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %94

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

94:                                               ; preds = %48, %45
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = add i32 %96, 1
  store i32 %97, ptr %6, align 4, !tbaa !9
  %98 = zext i32 %96 to i64
  %99 = getelementptr inbounds i8, ptr %95, i64 %98
  store i8 -61, ptr %99, align 1, !tbaa !16
  %100 = load i32, ptr %6, align 4, !tbaa !9
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %101, i32 0, i32 2
  store i32 %100, ptr %102, align 4, !tbaa !14
  store i32 0, ptr %8, align 4
  br label %103

103:                                              ; preds = %94, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  %104 = load i32, ptr %8, align 4
  switch i32 %104, label %179 [
    i32 0, label %105
    i32 1, label %178
  ]

105:                                              ; preds = %103
  br label %178

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

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 512, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 511, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  %112 = load i32, ptr %4, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %150

114:                                              ; preds = %111
  %115 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %115, i64 noundef %117, ptr noundef @.str.165) #4
  store i32 %118, ptr %11, align 4, !tbaa !9
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %121 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %119, ptr noundef %120, i32 noundef %121)
  %122 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %122, i64 noundef %124, ptr noundef @.str.166) #4
  store i32 %125, ptr %11, align 4, !tbaa !9
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %128 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %126, ptr noundef %127, i32 noundef %128)
  %129 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %129, i64 noundef %131, ptr noundef @.str.167) #4
  store i32 %132, ptr %11, align 4, !tbaa !9
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %135 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %133, ptr noundef %134, i32 noundef %135)
  %136 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %136, i64 noundef %138, ptr noundef @.str.168) #4
  store i32 %139, ptr %11, align 4, !tbaa !9
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %142 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %140, ptr noundef %141, i32 noundef %142)
  %143 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %143, i64 noundef %145, ptr noundef @.str.169) #4
  store i32 %146, ptr %11, align 4, !tbaa !9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %149 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %147, ptr noundef %148, i32 noundef %149)
  br label %150

150:                                              ; preds = %114, %111
  %151 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %152 = load i32, ptr %10, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %151, i64 noundef %153, ptr noundef @.str.160) #4
  store i32 %154, ptr %11, align 4, !tbaa !9
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds [512 x i8], ptr %9, i64 0, i64 0
  %157 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %155, ptr noundef %156, i32 noundef %157)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %9) #4
  br label %177

158:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 1024, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 1023, 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
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = icmp ult i32 %161, 1041
  br i1 %162, label %163, label %168

163:                                              ; preds = %158
  %164 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %164, i64 noundef %166, ptr noundef @.str.177) #4
  store i32 %167, ptr %14, align 4, !tbaa !9
  br label %173

168:                                              ; preds = %158
  %169 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %169, i64 noundef %171, ptr noundef @.str.178) #4
  store i32 %172, ptr %14, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %168, %163
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %176 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %174, ptr noundef %175, i32 noundef %176)
  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 1024, ptr %12) #4
  br label %177

177:                                              ; preds = %173, %150
  br label %178

178:                                              ; preds = %177, %105, %103
  ret void

179:                                              ; preds = %103
  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}
!17 = !{!12, !10, 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"

@.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.160 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [35 x i8], align 1
@__func__.libxsmm_x86_instruction_close_stream_alt = external hidden unnamed_addr constant [41 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [241 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [369 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: 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_close_stream_alt(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = alloca [512 x i8], align 16
  %4 = alloca [1024 x i8], align 16
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp ugt i32 %6, 1
  br i1 %7, label %8, label %57

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

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

18:                                               ; preds = %13, %8
  %19 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !14
  %20 = icmp ugt i32 %19, 1
  %21 = load i32, ptr @libxsmm_verbosity, align 4
  %22 = select i1 %20, i32 %21, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_x86_instruction_close_stream_alt, ptr noundef nonnull @.str, i32 noundef 5195, i32 noundef %22) #4
  br label %74

23:                                               ; preds = %13
  %24 = icmp eq i32 %1, 0
  br i1 %24, label %25, label %53

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

53:                                               ; preds = %25, %23
  %.055 = phi i32 [ %50, %25 ], [ %11, %23 ]
  %54 = add i32 %.055, 1
  %55 = zext i32 %.055 to i64
  %56 = getelementptr inbounds i8, ptr %9, i64 %55
  store i8 -61, ptr %56, align 1, !tbaa !15
  store i32 %54, ptr %10, align 4, !tbaa !12
  br label %74

57:                                               ; preds = %2
  %58 = icmp eq i32 %6, 1
  br i1 %58, label %59, label %69

59:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #4
  %60 = icmp eq i32 %1, 0
  br i1 %60, label %61, label %67

61:                                               ; preds = %59
  %62 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 511, ptr noundef nonnull @.str.165) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %62) #4
  %63 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 511, ptr noundef nonnull @.str.166) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %63) #4
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 511, ptr noundef nonnull @.str.167) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %64) #4
  %65 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 511, ptr noundef nonnull @.str.168) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %65) #4
  %66 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 511, ptr noundef nonnull @.str.169) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %66) #4
  br label %67

67:                                               ; preds = %61, %59
  %68 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 511, ptr noundef nonnull @.str.160) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef %68) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #4
  br label %74

69:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #4
  %70 = getelementptr inbounds i8, ptr %0, i64 28
  %71 = load i32, ptr %70, align 4, !tbaa !16
  %72 = icmp ult i32 %71, 1041
  %.str.177..str.178 = select i1 %72, ptr @.str.177, ptr @.str.178
  %73 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 1023, ptr noundef nonnull %.str.177..str.178) #4
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef %73) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #4
  br label %74

74:                                               ; preds = %18, %53, %67, %69
  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}
!16 = !{!6, !10, i64 28}


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