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

; 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 [72 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@.str.151 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [120 x i8], align 1
@__func__.libxsmm_generator_isa_check_header = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_isa_check_header(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca [512 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %7, i32 0, i32 3
  %9 = load i32, ptr %8, align 8, !tbaa !9
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %166

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 512, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 511, ptr %4, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !12
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %12, i32 0, i32 6
  %14 = load i32, ptr %13, align 4, !tbaa !13
  %15 = icmp ult i32 %14, 1002
  br i1 %15, label %16, label %24

16:                                               ; preds = %11
  %17 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %18 = load i32, ptr %4, align 4, !tbaa !12
  %19 = sext i32 %18 to i64
  %20 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %17, i64 noundef %19, ptr noundef @.str.151) #3
  store i32 %20, ptr %5, align 4, !tbaa !12
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %23 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %21, ptr noundef %22, i32 noundef %23)
  br label %162

24:                                               ; preds = %11
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %26, align 4, !tbaa !13
  %28 = icmp ule i32 %27, 1004
  br i1 %28, label %29, label %58

29:                                               ; preds = %24
  %30 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %31 = load i32, ptr %4, align 4, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %30, i64 noundef %32, ptr noundef @.str.152) #3
  store i32 %33, ptr %5, align 4, !tbaa !12
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %36 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %34, ptr noundef %35, i32 noundef %36)
  %37 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %38 = load i32, ptr %4, align 4, !tbaa !12
  %39 = sext i32 %38 to i64
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %37, i64 noundef %39, ptr noundef @.str.153) #3
  store i32 %40, ptr %5, align 4, !tbaa !12
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %43 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %41, ptr noundef %42, i32 noundef %43)
  %44 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %45 = load i32, ptr %4, align 4, !tbaa !12
  %46 = sext i32 %45 to i64
  %47 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %44, i64 noundef %46, ptr noundef @.str.154) #3
  store i32 %47, ptr %5, align 4, !tbaa !12
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %50 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %48, ptr noundef %49, i32 noundef %50)
  %51 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %52 = load i32, ptr %4, align 4, !tbaa !12
  %53 = sext i32 %52 to i64
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %51, i64 noundef %53, ptr noundef @.str.155) #3
  store i32 %54, ptr %5, align 4, !tbaa !12
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %57 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %55, ptr noundef %56, i32 noundef %57)
  br label %161

58:                                               ; preds = %24
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = icmp eq i32 %61, 1005
  br i1 %62, label %63, label %92

63:                                               ; preds = %58
  %64 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %65 = load i32, ptr %4, align 4, !tbaa !12
  %66 = sext i32 %65 to i64
  %67 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %64, i64 noundef %66, ptr noundef @.str.153) #3
  store i32 %67, ptr %5, align 4, !tbaa !12
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %70 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %68, ptr noundef %69, i32 noundef %70)
  %71 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %72 = load i32, ptr %4, align 4, !tbaa !12
  %73 = sext i32 %72 to i64
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %71, i64 noundef %73, ptr noundef @.str.156) #3
  store i32 %74, ptr %5, align 4, !tbaa !12
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %77 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %75, ptr noundef %76, i32 noundef %77)
  %78 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %79 = load i32, ptr %4, align 4, !tbaa !12
  %80 = sext i32 %79 to i64
  %81 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %78, i64 noundef %80, ptr noundef @.str.157) #3
  store i32 %81, ptr %5, align 4, !tbaa !12
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %84 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %82, ptr noundef %83, i32 noundef %84)
  %85 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %86 = load i32, ptr %4, align 4, !tbaa !12
  %87 = sext i32 %86 to i64
  %88 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %85, i64 noundef %87, ptr noundef @.str.155) #3
  store i32 %88, ptr %5, align 4, !tbaa !12
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %91 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %89, ptr noundef %90, i32 noundef %91)
  br label %160

92:                                               ; preds = %58
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %94, align 4, !tbaa !13
  %96 = icmp uge i32 %95, 1006
  br i1 %96, label %97, label %131

97:                                               ; preds = %92
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %99, align 4, !tbaa !13
  %101 = icmp ult i32 %100, 1041
  br i1 %101, label %102, label %131

102:                                              ; preds = %97
  %103 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %104 = load i32, ptr %4, align 4, !tbaa !12
  %105 = sext i32 %104 to i64
  %106 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %103, i64 noundef %105, ptr noundef @.str.156) #3
  store i32 %106, ptr %5, align 4, !tbaa !12
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %109 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %107, ptr noundef %108, i32 noundef %109)
  %110 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %111 = load i32, ptr %4, align 4, !tbaa !12
  %112 = sext i32 %111 to i64
  %113 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %110, i64 noundef %112, ptr noundef @.str.158) #3
  store i32 %113, ptr %5, align 4, !tbaa !12
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %116 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %114, ptr noundef %115, i32 noundef %116)
  %117 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %118 = load i32, ptr %4, align 4, !tbaa !12
  %119 = sext i32 %118 to i64
  %120 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %117, i64 noundef %119, ptr noundef @.str.159) #3
  store i32 %120, ptr %5, align 4, !tbaa !12
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %123 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %121, ptr noundef %122, i32 noundef %123)
  %124 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %125 = load i32, ptr %4, align 4, !tbaa !12
  %126 = sext i32 %125 to i64
  %127 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %124, i64 noundef %126, ptr noundef @.str.155) #3
  store i32 %127, ptr %5, align 4, !tbaa !12
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %130 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %128, ptr noundef %129, i32 noundef %130)
  br label %159

131:                                              ; preds = %97, %92
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %133, align 4, !tbaa !13
  %135 = icmp uge i32 %134, 1051
  br i1 %135, label %136, label %149

136:                                              ; preds = %131
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %138, align 4, !tbaa !13
  %140 = icmp ule i32 %139, 1999
  br i1 %140, label %141, label %149

141:                                              ; preds = %136
  %142 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %143 = load i32, ptr %4, align 4, !tbaa !12
  %144 = sext i32 %143 to i64
  %145 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %142, i64 noundef %144, ptr noundef @.str.158) #3
  store i32 %145, ptr %5, align 4, !tbaa !12
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds [512 x i8], ptr %3, i64 0, i64 0
  %148 = load i32, ptr %5, align 4, !tbaa !12
  call void @libxsmm_append_code_as_string(ptr noundef %146, ptr noundef %147, i32 noundef %148)
  br label %158

149:                                              ; preds = %136, %131
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %152 = icmp ult i32 1, %151
  br i1 %152, label %153, label %155

153:                                              ; preds = %149
  %154 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !12
  br label %156

155:                                              ; preds = %149
  br label %156

156:                                              ; preds = %155, %153
  %157 = phi i32 [ %154, %153 ], [ 1, %155 ]
  call void @libxsmm_handle_error(ptr noundef %150, i32 noundef 90005, ptr noundef @__func__.libxsmm_generator_isa_check_header, ptr noundef @.str, i32 noundef 1029, i32 noundef %157)
  store i32 1, ptr %6, align 4
  br label %163

158:                                              ; preds = %141
  br label %159

159:                                              ; preds = %158, %102
  br label %160

160:                                              ; preds = %159, %63
  br label %161

161:                                              ; preds = %160, %29
  br label %162

162:                                              ; preds = %161, %16
  store i32 0, ptr %6, align 4
  br label %163

163:                                              ; preds = %162, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 512, ptr %3) #3
  %164 = load i32, ptr %6, align 4
  switch i32 %164, label %167 [
    i32 0, label %165
    i32 1, label %166
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165, %163, %1
  ret void

167:                                              ; preds = %163
  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 = { 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 }

!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, !11, i64 16}
!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 = !{!11, !11, i64 0}
!13 = !{!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"

@.str = external hidden unnamed_addr constant [72 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.151 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [120 x i8], align 1
@__func__.libxsmm_generator_isa_check_header = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_append_code_as_string(ptr noundef, ptr noundef, i32 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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_isa_check_header(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca [512 x i8], align 16
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %6, label %43

6:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 28
  %8 = load i32, ptr %7, align 4, !tbaa !11
  %9 = icmp ult i32 %8, 1002
  br i1 %9, label %10, label %12

10:                                               ; preds = %6
  %11 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.151) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %11)
  br label %42

12:                                               ; preds = %6
  %13 = icmp ult i32 %8, 1005
  br i1 %13, label %14, label %19

14:                                               ; preds = %12
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.152) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %15)
  %16 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.153) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %16)
  %17 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.154) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %17)
  %18 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.155) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %18)
  br label %42

19:                                               ; preds = %12
  %20 = icmp eq i32 %8, 1005
  br i1 %20, label %21, label %26

21:                                               ; preds = %19
  %22 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.153) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %22)
  %23 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.156) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %23)
  %24 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.157) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %24)
  %25 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.155) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %25)
  br label %42

26:                                               ; preds = %19
  %27 = icmp ult i32 %8, 1041
  br i1 %27, label %28, label %33

28:                                               ; preds = %26
  %29 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.156) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %29)
  %30 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.158) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %30)
  %31 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.159) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %31)
  %32 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.155) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %32)
  br label %42

33:                                               ; preds = %26
  %34 = add i32 %8, -1051
  %or.cond = icmp ult i32 %34, 949
  br i1 %or.cond, label %35, label %37

35:                                               ; preds = %33
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 511, ptr noundef nonnull @.str.158) #3
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef %36)
  br label %42

37:                                               ; preds = %33
  %38 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %39 = icmp ugt i32 %38, 1
  %40 = load i32, ptr @libxsmm_verbosity, align 4
  %41 = select i1 %39, i32 %40, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90005, ptr noundef nonnull @__func__.libxsmm_generator_isa_check_header, ptr noundef nonnull @.str, i32 noundef 1029, i32 noundef %41)
  br label %42

42:                                               ; preds = %10, %21, %35, %28, %14, %37
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #3
  br label %43

43:                                               ; preds = %42, %1
  ret void
}

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 = { 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 }

!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 28}
!12 = !{!10, !10, i64 0}


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