; LLVM IR from lzfse/lzfse :: src (lzfse_fse)

; 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.fse_decoder_entry = type { i8, i8, i16 }

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__PRETTY_FUNCTION__.fse_init_decoder_table = external hidden unnamed_addr constant [82 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 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 speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @fse_init_decoder_table(i32 noundef %0, i32 noundef %1, ptr noalias noundef %2, ptr noalias noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.fse_decoder_entry, align 2
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = icmp sle i32 %19, 256
  br i1 %20, label %21, label %22

21:                                               ; preds = %4
  br label %23

22:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 60, ptr noundef @__PRETTY_FUNCTION__.fse_init_decoder_table) #6
  unreachable

23:                                               ; preds = %21
  %24 = load ptr, ptr %8, align 8, !tbaa !9
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = call i32 @fse_check_freq(ptr noundef %24, i64 noundef %26, i64 noundef %28)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %23
  br label %33

32:                                               ; preds = %23
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 61, ptr noundef @__PRETTY_FUNCTION__.fse_init_decoder_table) #6
  unreachable

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = call i32 @llvm.ctlz.i32(i32 %34, i1 true)
  store i32 %35, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %119, %33
  %37 = load i32, ptr %12, align 4, !tbaa !5
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %13, align 4
  br label %122

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %42 = load ptr, ptr %8, align 8, !tbaa !9
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i16, ptr %42, i64 %44
  %46 = load i16, ptr %45, align 2, !tbaa !11
  %47 = zext i16 %46 to i32
  store i32 %47, ptr %14, align 4, !tbaa !5
  %48 = load i32, ptr %14, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %41
  store i32 4, ptr %13, align 4
  br label %116

51:                                               ; preds = %41
  %52 = load i32, ptr %14, align 4, !tbaa !5
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = add nsw i32 %53, %52
  store i32 %54, ptr %11, align 4, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = icmp sgt i32 %55, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %51
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %116

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = call i32 @llvm.ctlz.i32(i32 %60, i1 true)
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = sub nsw i32 %61, %62
  store i32 %63, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = mul nsw i32 2, %64
  %66 = load i32, ptr %15, align 4, !tbaa !5
  %67 = ashr i32 %65, %66
  %68 = load i32, ptr %14, align 4, !tbaa !5
  %69 = sub nsw i32 %67, %68
  store i32 %69, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %112, %59
  %71 = load i32, ptr %17, align 4, !tbaa !5
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %115

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %77 = trunc i32 %76 to i8
  %78 = getelementptr inbounds %struct.fse_decoder_entry, ptr %18, i32 0, i32 1
  store i8 %77, ptr %78, align 1, !tbaa !13
  %79 = load i32, ptr %17, align 4, !tbaa !5
  %80 = load i32, ptr %16, align 4, !tbaa !5
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %82, label %95

82:                                               ; preds = %75
  %83 = load i32, ptr %15, align 4, !tbaa !5
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds %struct.fse_decoder_entry, ptr %18, i32 0, i32 0
  store i8 %84, ptr %85, align 2, !tbaa !15
  %86 = load i32, ptr %14, align 4, !tbaa !5
  %87 = load i32, ptr %17, align 4, !tbaa !5
  %88 = add nsw i32 %86, %87
  %89 = load i32, ptr %15, align 4, !tbaa !5
  %90 = shl i32 %88, %89
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = sub nsw i32 %90, %91
  %93 = trunc i32 %92 to i16
  %94 = getelementptr inbounds %struct.fse_decoder_entry, ptr %18, i32 0, i32 2
  store i16 %93, ptr %94, align 2, !tbaa !16
  br label %108

95:                                               ; preds = %75
  %96 = load i32, ptr %15, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  %98 = trunc i32 %97 to i8
  %99 = getelementptr inbounds %struct.fse_decoder_entry, ptr %18, i32 0, i32 0
  store i8 %98, ptr %99, align 2, !tbaa !15
  %100 = load i32, ptr %17, align 4, !tbaa !5
  %101 = load i32, ptr %16, align 4, !tbaa !5
  %102 = sub nsw i32 %100, %101
  %103 = load i32, ptr %15, align 4, !tbaa !5
  %104 = sub nsw i32 %103, 1
  %105 = shl i32 %102, %104
  %106 = trunc i32 %105 to i16
  %107 = getelementptr inbounds %struct.fse_decoder_entry, ptr %18, i32 0, i32 2
  store i16 %106, ptr %107, align 2, !tbaa !16
  br label %108

108:                                              ; preds = %95, %82
  %109 = load ptr, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 2 %18, i64 4, i1 false)
  %110 = load ptr, ptr %9, align 8, !tbaa !9
  %111 = getelementptr inbounds i32, ptr %110, i32 1
  store ptr %111, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %112

112:                                              ; preds = %108
  %113 = load i32, ptr %17, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %17, align 4, !tbaa !5
  br label %70, !llvm.loop !17

115:                                              ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  store i32 0, ptr %13, align 4
  br label %116

116:                                              ; preds = %115, %58, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %117 = load i32, ptr %13, align 4
  switch i32 %117, label %122 [
    i32 0, label %118
    i32 4, label %119
  ]

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %118, %116
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %12, align 4, !tbaa !5
  br label %36, !llvm.loop !19

122:                                              ; preds = %116, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %123 = load i32, ptr %13, align 4
  switch i32 %123, label %125 [
    i32 2, label %124
  ]

124:                                              ; preds = %122
  store i32 0, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %125

125:                                              ; preds = %124, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %126 = load i32, ptr %5, align 4
  ret i32 %126
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @fse_check_freq(ptr noundef, i64 noundef, i64 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { alwaysinline 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !7, i64 1}
!14 = !{!"", !7, i64 0, !7, i64 1, !12, i64 2}
!15 = !{!14, !7, i64 0}
!16 = !{!14, !12, i64 2}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; 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 [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__PRETTY_FUNCTION__.fse_init_decoder_table = external hidden unnamed_addr constant [82 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @fse_init_decoder_table(i32 noundef %0, i32 noundef %1, ptr noalias noundef %2, ptr noalias nocapture noundef writeonly %3) local_unnamed_addr #1 {
  %5 = icmp slt i32 %1, 257
  br i1 %5, label %7, label %6

6:                                                ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 60, ptr noundef nonnull @__PRETTY_FUNCTION__.fse_init_decoder_table) #4
  unreachable

7:                                                ; preds = %4
  %8 = sext i32 %1 to i64
  %9 = sext i32 %0 to i64
  %10 = tail call i32 @fse_check_freq(ptr noundef %2, i64 noundef %8, i64 noundef %9)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 61, ptr noundef nonnull @__PRETTY_FUNCTION__.fse_init_decoder_table) #4
  unreachable

13:                                               ; preds = %7
  %14 = tail call range(i32 0, 33) i32 @llvm.ctlz.i32(i32 %0, i1 true)
  %.not61 = icmp sgt i32 %1, 0
  br i1 %.not61, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %13
  %15 = shl nsw i32 %0, 1
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %16

16:                                               ; preds = %.lr.ph, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.loopexit ]
  %.not65 = phi i1 [ true, %.lr.ph ], [ %.not, %.loopexit ]
  %.04064 = phi ptr [ %3, %.lr.ph ], [ %.242.ph, %.loopexit ]
  %.04363 = phi i32 [ 0, %.lr.ph ], [ %.144.ph, %.loopexit ]
  %17 = getelementptr inbounds i16, ptr %2, i64 %indvars.iv
  %18 = load i16, ptr %17, align 2, !tbaa !5
  %19 = zext i16 %18 to i32
  %20 = icmp eq i16 %18, 0
  br i1 %20, label %.loopexit, label %21

21:                                               ; preds = %16
  %22 = add nsw i32 %.04363, %19
  %23 = icmp sgt i32 %22, %0
  br i1 %23, label %._crit_edge.loopexit, label %24

24:                                               ; preds = %21
  %25 = tail call range(i32 16, 33) i32 @llvm.ctlz.i32(i32 %19, i1 true)
  %26 = sub nsw i32 %25, %14
  %27 = ashr i32 %15, %26
  %28 = sub nsw i32 %27, %19
  %29 = trunc i64 %indvars.iv to i8
  %30 = add nsw i32 %26, -1
  %xtraiter = and i32 %19, 1
  %31 = icmp eq i16 %18, 1
  br i1 %31, label %.loopexit.loopexit.unr-lcssa, label %.new

.new:                                             ; preds = %24
  %unroll_iter = and i32 %19, 65534
  br label %32

32:                                               ; preds = %52, %.new
  %.03960 = phi i32 [ 0, %.new ], [ %54, %52 ]
  %.14159 = phi ptr [ %.04064, %.new ], [ %53, %52 ]
  %niter = phi i32 [ 0, %.new ], [ %niter.next.1, %52 ]
  %33 = icmp slt i32 %.03960, %28
  br i1 %33, label %34, label %38

34:                                               ; preds = %32
  %35 = add nuw nsw i32 %.03960, %19
  %36 = shl i32 %35, %26
  %37 = sub nsw i32 %36, %0
  br label %41

38:                                               ; preds = %32
  %39 = sub nsw i32 %.03960, %28
  %40 = shl i32 %39, %30
  br label %41

41:                                               ; preds = %38, %34
  %.sroa.6.0.in = phi i32 [ %37, %34 ], [ %40, %38 ]
  %.sroa.0.0.in = phi i32 [ %26, %34 ], [ %30, %38 ]
  %.sroa.0.0 = trunc nsw i32 %.sroa.0.0.in to i8
  %.sroa.6.0 = trunc i32 %.sroa.6.0.in to i16
  store i8 %.sroa.0.0, ptr %.14159, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %.14159, i64 1
  store i8 %29, ptr %.sroa.5.0..sroa_idx, align 1
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %.14159, i64 2
  store i16 %.sroa.6.0, ptr %.sroa.6.0..sroa_idx, align 2
  %42 = getelementptr inbounds i8, ptr %.14159, i64 4
  %43 = or disjoint i32 %.03960, 1
  %44 = icmp slt i32 %43, %28
  br i1 %44, label %48, label %45

45:                                               ; preds = %41
  %46 = sub nsw i32 %43, %28
  %47 = shl i32 %46, %30
  br label %52

48:                                               ; preds = %41
  %49 = add nuw nsw i32 %43, %19
  %50 = shl i32 %49, %26
  %51 = sub nsw i32 %50, %0
  br label %52

52:                                               ; preds = %48, %45
  %.sroa.6.0.in.1 = phi i32 [ %51, %48 ], [ %47, %45 ]
  %.sroa.0.0.in.1 = phi i32 [ %26, %48 ], [ %30, %45 ]
  %.sroa.0.0.1 = trunc nsw i32 %.sroa.0.0.in.1 to i8
  %.sroa.6.0.1 = trunc i32 %.sroa.6.0.in.1 to i16
  store i8 %.sroa.0.0.1, ptr %42, align 4
  %.sroa.5.0..sroa_idx.1 = getelementptr inbounds i8, ptr %.14159, i64 5
  store i8 %29, ptr %.sroa.5.0..sroa_idx.1, align 1
  %.sroa.6.0..sroa_idx.1 = getelementptr inbounds i8, ptr %.14159, i64 6
  store i16 %.sroa.6.0.1, ptr %.sroa.6.0..sroa_idx.1, align 2
  %53 = getelementptr inbounds i8, ptr %.14159, i64 8
  %54 = add nuw nsw i32 %.03960, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %32, !llvm.loop !9

.loopexit.loopexit.unr-lcssa:                     ; preds = %52, %24
  %.lcssa.ph = phi ptr [ poison, %24 ], [ %53, %52 ]
  %.03960.unr = phi i32 [ 0, %24 ], [ %54, %52 ]
  %.14159.unr = phi ptr [ %.04064, %24 ], [ %53, %52 ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa
  %55 = icmp slt i32 %.03960.unr, %28
  br i1 %55, label %59, label %56

56:                                               ; preds = %.epil.preheader
  %57 = sub nsw i32 %.03960.unr, %28
  %58 = shl i32 %57, %30
  br label %.loopexit.loopexit.epilog-lcssa

59:                                               ; preds = %.epil.preheader
  %60 = add nuw nsw i32 %.03960.unr, %19
  %61 = shl i32 %60, %26
  %62 = sub nsw i32 %61, %0
  br label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %59, %56
  %.sroa.6.0.in.epil = phi i32 [ %62, %59 ], [ %58, %56 ]
  %.sroa.0.0.in.epil = phi i32 [ %26, %59 ], [ %30, %56 ]
  %.sroa.0.0.epil = trunc nsw i32 %.sroa.0.0.in.epil to i8
  %.sroa.6.0.epil = trunc i32 %.sroa.6.0.in.epil to i16
  store i8 %.sroa.0.0.epil, ptr %.14159.unr, align 4
  %.sroa.5.0..sroa_idx.epil = getelementptr inbounds i8, ptr %.14159.unr, i64 1
  store i8 %29, ptr %.sroa.5.0..sroa_idx.epil, align 1
  %.sroa.6.0..sroa_idx.epil = getelementptr inbounds i8, ptr %.14159.unr, i64 2
  store i16 %.sroa.6.0.epil, ptr %.sroa.6.0..sroa_idx.epil, align 2
  %63 = getelementptr inbounds i8, ptr %.14159.unr, i64 4
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %16
  %.144.ph = phi i32 [ %.04363, %16 ], [ %22, %.loopexit.loopexit.unr-lcssa ], [ %22, %.loopexit.loopexit.epilog-lcssa ]
  %.242.ph = phi ptr [ %.04064, %16 ], [ %.lcssa.ph, %.loopexit.loopexit.unr-lcssa ], [ %63, %.loopexit.loopexit.epilog-lcssa ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not = icmp slt i64 %indvars.iv.next, %8
  %exitcond68.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond68.not, label %._crit_edge.loopexit, label %16, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %21, %.loopexit
  %.not.lcssa.ph = phi i1 [ %.not, %.loopexit ], [ %.not65, %21 ]
  %64 = sext i1 %.not.lcssa.ph to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %13
  %.not.lcssa = phi i32 [ 0, %13 ], [ %64, %._crit_edge.loopexit ]
  ret i32 %.not.lcssa
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @fse_check_freq(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { 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 #3 = { alwaysinline 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 = { 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 = !{!"short", !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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass