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

; 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"

@libxsmm_ninit = external global i32, align 4
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_quantize_i16 = external hidden unnamed_addr constant [86 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_quantize_i16(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3, ptr noundef %4, i32 noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i8, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i8 %3, ptr %10, align 1, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  %20 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %21 = icmp ugt i32 2, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %6
  call void @libxsmm_init()
  br label %23

23:                                               ; preds = %22, %6
  %24 = load i32, ptr %12, align 4, !tbaa !9
  %25 = icmp eq i32 %24, 80004
  br i1 %25, label %26, label %85

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = call float @libxsmm_internal_get_max(ptr noundef %27, i32 noundef %28)
  store float %29, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  br label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %31 = load float, ptr %14, align 4, !tbaa !12
  %32 = call float @frexpf(float noundef %31, ptr noundef %15) #7
  store float %32, ptr %17, align 4, !tbaa !12
  %33 = load float, ptr %17, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %34

34:                                               ; preds = %30
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = load i8, ptr %10, align 1, !tbaa !11
  %38 = zext i8 %37 to i32
  %39 = sub nsw i32 15, %38
  %40 = icmp sge i32 %36, %39
  br i1 %40, label %41, label %42

41:                                               ; preds = %35
  br label %43

42:                                               ; preds = %35
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 163, ptr noundef @__PRETTY_FUNCTION__.libxsmm_quantize_i16) #8
  unreachable

43:                                               ; preds = %41
  %44 = load i8, ptr %10, align 1, !tbaa !11
  %45 = zext i8 %44 to i32
  %46 = sub nsw i32 15, %45
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = sub nsw i32 %47, %46
  store i32 %48, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = sub nsw i32 0, %49
  %51 = call float @libxsmm_sexp2_i8i(i32 noundef %50)
  store float %51, ptr %16, align 4, !tbaa !12
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %71, %43
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %74

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %57, i64 %59
  %61 = load float, ptr %60, align 4, !tbaa !12
  %62 = load float, ptr %16, align 4, !tbaa !12
  %63 = fmul float %61, %62
  %64 = call float @llvm.round.f32(float %63)
  store float %64, ptr %18, align 4, !tbaa !12
  %65 = load float, ptr %18, align 4, !tbaa !12
  %66 = fptosi float %65 to i16
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i16, ptr %67, i64 %69
  store i16 %66, ptr %70, align 2, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %71

71:                                               ; preds = %56
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %13, align 4, !tbaa !9
  br label %52, !llvm.loop !16

74:                                               ; preds = %52
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.2) #7
  br label %80

80:                                               ; preds = %77, %74
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = sub nsw i32 0, %81
  %83 = trunc i32 %82 to i8
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 %83, ptr %84, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %127

85:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = call zeroext i8 @libxsmm_internal_get_max_exp(ptr noundef %86, i32 noundef %87)
  store i8 %88, ptr %19, align 1, !tbaa !11
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = icmp eq i32 %89, 80002
  br i1 %90, label %91, label %95

91:                                               ; preds = %85
  %92 = call i64 @libxsmm_timer_tick()
  %93 = urem i64 %92, 4294967295
  %94 = trunc i64 %93 to i32
  call void @srand(i32 noundef %94) #7
  br label %95

95:                                               ; preds = %91, %85
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %114, %95
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %100, label %117

100:                                              ; preds = %96
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds float, ptr %101, i64 %103
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = load i8, ptr %19, align 1, !tbaa !11
  %107 = load i8, ptr %10, align 1, !tbaa !11
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = call signext i16 @libxsmm_internal_quantize_scalar_no_scf(float noundef %105, i8 noundef zeroext %106, i8 noundef zeroext %107, i32 noundef %108)
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i16, ptr %110, i64 %112
  store i16 %109, ptr %113, align 2, !tbaa !14
  br label %114

114:                                              ; preds = %100
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %13, align 4, !tbaa !9
  br label %96, !llvm.loop !18

117:                                              ; preds = %96
  %118 = load i8, ptr %10, align 1, !tbaa !11
  %119 = zext i8 %118 to i32
  %120 = sub nsw i32 14, %119
  %121 = load i8, ptr %19, align 1, !tbaa !11
  %122 = zext i8 %121 to i32
  %123 = sub nsw i32 %122, 127
  %124 = sub nsw i32 %120, %123
  %125 = trunc i32 %124 to i8
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 %125, ptr %126, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %127

127:                                              ; preds = %117, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  ret void
}

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

declare void @libxsmm_init() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @libxsmm_internal_get_max(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare float @frexpf(float noundef, ptr noundef) #4

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

declare float @libxsmm_sexp2_i8i(i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #6

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @libxsmm_internal_get_max_exp(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @srand(i32 noundef) #4

declare i64 @libxsmm_timer_tick() #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden signext i16 @libxsmm_internal_quantize_scalar_no_scf(float noundef, i8 noundef zeroext, i8 noundef zeroext, i32 noundef) #3

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 = { "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 = { inlinehint 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 "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 #5 = { noreturn 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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"

@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_quantize_i16 = external hidden unnamed_addr constant [86 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_quantize_i16(ptr noundef %0, ptr nocapture noundef writeonly %1, i32 noundef %2, i8 noundef zeroext %3, ptr nocapture noundef writeonly %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca i32, align 4
  %8 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %9 = icmp ult i32 %8, 2
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  tail call void @libxsmm_init() #10
  br label %11

11:                                               ; preds = %10, %6
  %12 = icmp eq i32 %5, 80004
  br i1 %12, label %13, label %44

13:                                               ; preds = %11
  %14 = tail call float @libxsmm_internal_get_max(ptr noundef %0, i32 noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #10
  store i32 0, ptr %7, align 4, !tbaa !5
  %15 = call float @frexpf(float noundef %14, ptr noundef nonnull %7) #10
  %16 = load i32, ptr %7, align 4, !tbaa !5
  %17 = zext i8 %3 to i32
  %18 = sub nsw i32 15, %17
  %.not = icmp slt i32 %16, %18
  br i1 %.not, label %19, label %20

19:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 163, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_quantize_i16) #11
  unreachable

20:                                               ; preds = %13
  %21 = sub nsw i32 %16, %18
  %22 = sub nsw i32 0, %21
  %23 = tail call float @libxsmm_sexp2_i8i(i32 noundef %22) #10
  %24 = icmp sgt i32 %2, 0
  br i1 %24, label %.lr.ph41.preheader, label %._crit_edge42

.lr.ph41.preheader:                               ; preds = %20
  %wide.trip.count47 = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %.lr.ph41.preheader49, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph41.preheader
  %n.vec = and i64 %wide.trip.count47, 2147483644
  %broadcast.splatinsert = insertelement <4 x float> poison, float %23, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %25 = getelementptr inbounds float, ptr %0, i64 %index
  %wide.load = load <4 x float>, ptr %25, align 4, !tbaa !9
  %26 = fmul <4 x float> %broadcast.splat, %wide.load
  %27 = tail call <4 x float> @llvm.round.v4f32(<4 x float> %26)
  %28 = fptosi <4 x float> %27 to <4 x i16>
  %29 = getelementptr inbounds i16, ptr %1, i64 %index
  store <4 x i16> %28, ptr %29, align 2, !tbaa !11
  %index.next = add nuw i64 %index, 4
  %30 = icmp eq i64 %index.next, %n.vec
  br i1 %30, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count47
  br i1 %cmp.n, label %._crit_edge42, label %.lr.ph41.preheader49

.lr.ph41.preheader49:                             ; preds = %middle.block, %.lr.ph41.preheader
  %indvars.iv44.ph = phi i64 [ 0, %.lr.ph41.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph41

.lr.ph41:                                         ; preds = %.lr.ph41.preheader49, %.lr.ph41
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %.lr.ph41 ], [ %indvars.iv44.ph, %.lr.ph41.preheader49 ]
  %31 = getelementptr inbounds float, ptr %0, i64 %indvars.iv44
  %32 = load float, ptr %31, align 4, !tbaa !9
  %33 = fmul float %23, %32
  %34 = tail call float @llvm.round.f32(float %33)
  %35 = fptosi float %34 to i16
  %36 = getelementptr inbounds i16, ptr %1, i64 %indvars.iv44
  store i16 %35, ptr %36, align 2, !tbaa !11
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count47
  br i1 %exitcond48.not, label %._crit_edge42, label %.lr.ph41, !llvm.loop !17

._crit_edge42:                                    ; preds = %.lr.ph41, %middle.block, %20
  %37 = icmp sgt i32 %21, 0
  br i1 %37, label %38, label %41

38:                                               ; preds = %._crit_edge42
  %39 = load ptr, ptr @stderr, align 8, !tbaa !18
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.2) #12
  br label %41

41:                                               ; preds = %38, %._crit_edge42
  %42 = trunc i32 %21 to i8
  %43 = sub i8 0, %42
  store i8 %43, ptr %4, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  br label %59

44:                                               ; preds = %11
  %45 = tail call zeroext i8 @libxsmm_internal_get_max_exp(ptr noundef %0, i32 noundef %2)
  %46 = icmp eq i32 %5, 80002
  br i1 %46, label %47, label %51

47:                                               ; preds = %44
  %48 = tail call i64 @libxsmm_timer_tick() #10
  %49 = urem i64 %48, 4294967295
  %50 = trunc nuw i64 %49 to i32
  tail call void @srand(i32 noundef %50) #10
  br label %51

51:                                               ; preds = %47, %44
  %52 = icmp sgt i32 %2, 0
  br i1 %52, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %51
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %53 = getelementptr inbounds float, ptr %0, i64 %indvars.iv
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = tail call signext i16 @libxsmm_internal_quantize_scalar_no_scf(float noundef %54, i8 noundef zeroext %45, i8 noundef zeroext %3, i32 noundef %5)
  %56 = getelementptr inbounds i16, ptr %1, i64 %indvars.iv
  store i16 %55, ptr %56, align 2, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph, %51
  %57 = add i8 %45, %3
  %58 = sub i8 -115, %57
  store i8 %58, ptr %4, align 1, !tbaa !20
  br label %59

59:                                               ; preds = %._crit_edge, %41
  ret void
}

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

declare void @libxsmm_init() local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @libxsmm_internal_get_max(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: write)
declare float @frexpf(float noundef, ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare float @libxsmm_sexp2_i8i(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.round.f32(float) #6

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @libxsmm_internal_get_max_exp(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #8

declare i64 @libxsmm_timer_tick() local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden signext i16 @libxsmm_internal_quantize_scalar_no_scf(float noundef, i8 noundef zeroext, i8 noundef zeroext, i32 noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.round.v4f32(<4 x float>) #9

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 = { "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 = { inlinehint 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 = { mustprogress nofree nounwind willreturn memory(argmem: write) "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 #5 = { noreturn 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { noreturn nounwind }
attributes #12 = { cold 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 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14, !16, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !14}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass