; LLVM IR from libxsmm/libxsmm :: samples/deeplearning/sparse_adagrad_fused (counters)

; 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.perf_skx_uc_fd = type { [6 x i32], [6 x i32], [6 x i32], [6 x i32], [6 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], i32 }

@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@gbl_perf_fd = external hidden global %struct.perf_skx_uc_fd, align 4
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @evsetup(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 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
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @setup_skx_uc_ctrs(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca [1024 x i8], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 1024, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %48, %1
  %8 = load i32, ptr %5, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 6
  br i1 %9, label %10, label %51

10:                                               ; preds = %7
  %11 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %11, i64 noundef 1024, ptr noundef @.str.7, i32 noundef %12) #3
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %29

16:                                               ; preds = %10
  %17 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [6 x i32], ptr @gbl_perf_fd, i64 0, i64 %19
  call void @evsetup(ptr noundef %17, ptr noundef %20, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  %21 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [6 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 1), i64 0, i64 %23
  call void @evsetup(ptr noundef %21, ptr noundef %24, i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  %25 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [6 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 4), i64 0, i64 %27
  call void @evsetup(ptr noundef %25, ptr noundef %28, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %47

29:                                               ; preds = %10
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %45

32:                                               ; preds = %29
  %33 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [6 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 2), i64 0, i64 %35
  call void @evsetup(ptr noundef %33, ptr noundef %36, i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %37 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [6 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 3), i64 0, i64 %39
  call void @evsetup(ptr noundef %37, ptr noundef %40, i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  %41 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [6 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 4), i64 0, i64 %43
  call void @evsetup(ptr noundef %41, ptr noundef %44, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %46

45:                                               ; preds = %29
  br label %46

46:                                               ; preds = %45, %32
  br label %47

47:                                               ; preds = %46, %16
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %5, align 4, !tbaa !5
  br label %7, !llvm.loop !9

51:                                               ; preds = %7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %127, %51
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 28
  br i1 %54, label %55, label %130

55:                                               ; preds = %52
  %56 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %56, i64 noundef 1024, ptr noundef @.str.8, i32 noundef %57) #3
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 2
  br i1 %60, label %61, label %74

61:                                               ; preds = %55
  %62 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 5), i64 0, i64 %64
  call void @evsetup(ptr noundef %62, ptr noundef %65, i32 noundef 80, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %66 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 6), i64 0, i64 %68
  call void @evsetup(ptr noundef %66, ptr noundef %69, i32 noundef 80, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  %70 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 13), i64 0, i64 %72
  call void @evsetup(ptr noundef %70, ptr noundef %73, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %126

74:                                               ; preds = %55
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = icmp eq i32 %75, 3
  br i1 %76, label %77, label %90

77:                                               ; preds = %74
  %78 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 7), i64 0, i64 %80
  call void @evsetup(ptr noundef %78, ptr noundef %81, i32 noundef 170, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %82 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 8), i64 0, i64 %84
  call void @evsetup(ptr noundef %82, ptr noundef %85, i32 noundef 170, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  %86 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %87 = load i32, ptr %6, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 13), i64 0, i64 %88
  call void @evsetup(ptr noundef %86, ptr noundef %89, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %125

90:                                               ; preds = %74
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = icmp eq i32 %91, 4
  br i1 %92, label %93, label %106

93:                                               ; preds = %90
  %94 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 9), i64 0, i64 %96
  call void @evsetup(ptr noundef %94, ptr noundef %97, i32 noundef 171, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %98 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 10), i64 0, i64 %100
  call void @evsetup(ptr noundef %98, ptr noundef %101, i32 noundef 171, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  %102 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %103 = load i32, ptr %6, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 13), i64 0, i64 %104
  call void @evsetup(ptr noundef %102, ptr noundef %105, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %124

106:                                              ; preds = %90
  %107 = load i32, ptr %2, align 4, !tbaa !5
  %108 = icmp eq i32 %107, 5
  br i1 %108, label %109, label %122

109:                                              ; preds = %106
  %110 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 11), i64 0, i64 %112
  call void @evsetup(ptr noundef %110, ptr noundef %113, i32 noundef 52, i32 noundef 3, i32 noundef 31588352, i32 noundef 16)
  %114 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 12), i64 0, i64 %116
  call void @evsetup(ptr noundef %114, ptr noundef %117, i32 noundef 52, i32 noundef 5, i32 noundef 31588352, i32 noundef 16)
  %118 = getelementptr inbounds [1024 x i8], ptr %4, i64 0, i64 0
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 13), i64 0, i64 %120
  call void @evsetup(ptr noundef %118, ptr noundef %121, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %123

122:                                              ; preds = %106
  br label %123

123:                                              ; preds = %122, %109
  br label %124

124:                                              ; preds = %123, %93
  br label %125

125:                                              ; preds = %124, %77
  br label %126

126:                                              ; preds = %125, %61
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %6, align 4, !tbaa !5
  br label %52, !llvm.loop !11

130:                                              ; preds = %52
  %131 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %131, ptr getelementptr inbounds (%struct.perf_skx_uc_fd, ptr @gbl_perf_fd, i32 0, i32 14), align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 1024, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !6, i64 1128}
!13 = !{!"perf_skx_uc_fd", !7, i64 0, !7, i64 24, !7, i64 48, !7, i64 72, !7, i64 96, !7, i64 120, !7, i64 232, !7, i64 344, !7, i64 456, !7, i64 568, !7, i64 680, !7, i64 792, !7, i64 904, !7, i64 1016, !6, i64 1128}


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

%struct.perf_skx_uc_fd = type { [6 x i32], [6 x i32], [6 x i32], [6 x i32], [6 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], [28 x i32], i32 }

@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@gbl_perf_fd = external hidden global %struct.perf_skx_uc_fd, align 4
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @evsetup(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 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: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @setup_skx_uc_ctrs(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca [1024 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %2) #3
  %3 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 0) #3
  switch i32 %0, label %.split.preheader [
    i32 0, label %.split.us.preheader
    i32 1, label %.split.us34.preheader
  ]

.split.us34.preheader:                            ; preds = %1
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 48), i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 72), i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 96), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %4 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 1) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 52), i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 76), i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 100), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %5 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 2) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 56), i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 80), i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 104), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %6 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 3) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 60), i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 84), i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 108), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %7 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 4) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 64), i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 88), i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 112), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %8 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 5) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 68), i32 noundef 4, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 92), i32 noundef 4, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 116), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %.preheader.preheader

.split.us.preheader:                              ; preds = %1
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull @gbl_perf_fd, i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 24), i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 96), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %9 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 1) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 4), i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 28), i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 100), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %10 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 2) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 8), i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 32), i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 104), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %11 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 3) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 12), i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 36), i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 108), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %12 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 4) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 16), i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 40), i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 112), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %13 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 5) #3
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 20), i32 noundef 1, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 44), i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 0)
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 116), i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %.preheader.preheader

.split.preheader:                                 ; preds = %1
  %14 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 1) #3
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 2) #3
  %16 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 3) #3
  %17 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 4) #3
  %18 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.7, i32 noundef 5) #3
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %.split.us34.preheader, %.split.us.preheader, %.split.preheader
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %34
  %indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %.preheader.preheader ]
  %19 = trunc nuw nsw i64 %indvars.iv to i32
  %20 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 1024, ptr noundef nonnull @.str.8, i32 noundef %19) #3
  switch i32 %0, label %34 [
    i32 2, label %21
    i32 3, label %24
    i32 4, label %27
    i32 5, label %30
  ]

21:                                               ; preds = %.preheader
  %22 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 120), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %22, i32 noundef 80, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %23 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 232), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %23, i32 noundef 80, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  br label %.sink.split

24:                                               ; preds = %.preheader
  %25 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 344), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %25, i32 noundef 170, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %26 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 456), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %26, i32 noundef 170, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  br label %.sink.split

27:                                               ; preds = %.preheader
  %28 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 568), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %28, i32 noundef 171, i32 noundef 3, i32 noundef 0, i32 noundef 0)
  %29 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 680), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %29, i32 noundef 171, i32 noundef 12, i32 noundef 0, i32 noundef 0)
  br label %.sink.split

30:                                               ; preds = %.preheader
  %31 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 792), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %31, i32 noundef 52, i32 noundef 3, i32 noundef 31588352, i32 noundef 16)
  %32 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 904), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %32, i32 noundef 52, i32 noundef 5, i32 noundef 31588352, i32 noundef 16)
  br label %.sink.split

.sink.split:                                      ; preds = %24, %30, %27, %21
  %33 = getelementptr inbounds [28 x i32], ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 1016), i64 0, i64 %indvars.iv
  call void @evsetup(ptr noundef nonnull %2, ptr noundef nonnull %33, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  br label %34

34:                                               ; preds = %.sink.split, %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 28
  br i1 %exitcond.not, label %35, label %.preheader, !llvm.loop !5

35:                                               ; preds = %34
  store i32 %0, ptr getelementptr inbounds (i8, ptr @gbl_perf_fd, i64 1128), align 4, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %2) #3
  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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !11, i64 1128}
!8 = !{!"perf_skx_uc_fd", !9, i64 0, !9, i64 24, !9, i64 48, !9, i64 72, !9, i64 96, !9, i64 120, !9, i64 232, !9, i64 344, !9, i64 456, !9, i64 568, !9, i64 680, !9, i64 792, !9, i64 904, !9, i64 1016, !11, i64 1128}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass