; LLVM IR from fast-pack/simdcomp :: tests (unit)

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

@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 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

declare i32 @printf(ptr noundef, ...) #1

declare i32 @fflush(ptr noundef) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

declare i32 @maxbits_length(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; 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 @issue21FOR() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %13 = load ptr, ptr @stdout, align 8, !tbaa !5
  %14 = call i32 @fflush(ptr noundef %13)
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %135, %0
  %16 = load i32, ptr %2, align 4, !tbaa !9
  %17 = icmp ult i32 %16, 30
  br i1 %17, label %18, label %138

18:                                               ; preds = %15
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %20 = load ptr, ptr @stdout, align 8, !tbaa !5
  %21 = call i32 @fflush(ptr noundef %20)
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %131, %18
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = icmp ult i32 %23, 4096
  br i1 %24, label %25, label %134

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = mul i64 %27, 4
  %29 = call noalias ptr @malloc(i64 noundef %28) #6
  store ptr %29, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = mul i64 %31, 4
  %33 = call noalias ptr @malloc(i64 noundef %32) #6
  store ptr %33, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds i32, ptr %34, i64 0
  store i32 0, ptr %35, align 4, !tbaa !9
  store i64 1, ptr %4, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %48, %25
  %37 = load i64, ptr %4, align 8, !tbaa !11
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = icmp ult i64 %37, %39
  br i1 %40, label %41, label %51

41:                                               ; preds = %36
  %42 = load i32, ptr %2, align 4, !tbaa !9
  %43 = shl i32 1, %42
  %44 = sub nsw i32 %43, 1
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i64, ptr %4, align 8, !tbaa !11
  %47 = getelementptr inbounds i32, ptr %45, i64 %46
  store i32 %44, ptr %47, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %41
  %49 = load i64, ptr %4, align 8, !tbaa !11
  %50 = add i64 %49, 1
  store i64 %50, ptr %4, align 8, !tbaa !11
  br label %36, !llvm.loop !13

51:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !9
  %54 = call i32 @maxbits_length(ptr noundef %52, i32 noundef %53)
  store i32 %54, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = call i32 @simdpackFOR_compressedbytes(i32 noundef %55, i32 noundef %56)
  %58 = sext i32 %57 to i64
  %59 = call noalias ptr @malloc(i64 noundef %58) #6
  store ptr %59, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i32, ptr %3, align 4, !tbaa !9
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = call ptr @simdpackFOR_length(i32 noundef 0, ptr noundef %60, i32 noundef %61, ptr noundef %62, i32 noundef %63)
  store ptr %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = ptrtoint ptr %65 to i64
  %68 = ptrtoint ptr %66 to i64
  %69 = sub i64 %67, %68
  %70 = load i32, ptr %3, align 4, !tbaa !9
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = call i32 @simdpackFOR_compressedbytes(i32 noundef %70, i32 noundef %71)
  %73 = sext i32 %72 to i64
  %74 = icmp ne i64 %69, %73
  br i1 %74, label %75, label %77

75:                                               ; preds = %51
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %128

77:                                               ; preds = %51
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load i32, ptr %3, align 4, !tbaa !9
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = call ptr @simdunpackFOR_length(i32 noundef 0, ptr noundef %78, i32 noundef %79, ptr noundef %80, i32 noundef %81)
  store i64 0, ptr %4, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %121, %77
  %84 = load i64, ptr %4, align 8, !tbaa !11
  %85 = load i32, ptr %3, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = icmp ult i64 %84, %86
  br i1 %87, label %88, label %124

88:                                               ; preds = %83
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i64, ptr %4, align 8, !tbaa !11
  %91 = getelementptr inbounds i32, ptr %89, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load i64, ptr %4, align 8, !tbaa !11
  %95 = getelementptr inbounds i32, ptr %93, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = icmp ne i32 %92, %96
  br i1 %97, label %98, label %120

98:                                               ; preds = %88
  store i64 0, ptr %5, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %115, %98
  %100 = load i64, ptr %5, align 8, !tbaa !11
  %101 = load i32, ptr %3, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = icmp ult i64 %100, %102
  br i1 %103, label %104, label %118

104:                                              ; preds = %99
  %105 = load i64, ptr %5, align 8, !tbaa !11
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i64, ptr %5, align 8, !tbaa !11
  %108 = getelementptr inbounds i32, ptr %106, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i64, ptr %5, align 8, !tbaa !11
  %112 = getelementptr inbounds i32, ptr %110, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %105, i32 noundef %109, i32 noundef %113)
  br label %115

115:                                              ; preds = %104
  %116 = load i64, ptr %5, align 8, !tbaa !11
  %117 = add i64 %116, 1
  store i64 %117, ptr %5, align 8, !tbaa !11
  br label %99, !llvm.loop !15

118:                                              ; preds = %99
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %128

120:                                              ; preds = %88
  br label %121

121:                                              ; preds = %120
  %122 = load i64, ptr %4, align 8, !tbaa !11
  %123 = add i64 %122, 1
  store i64 %123, ptr %4, align 8, !tbaa !11
  br label %83, !llvm.loop !16

124:                                              ; preds = %83
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %125) #5
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %126) #5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %127) #5
  store i32 0, ptr %11, align 4
  br label %128

128:                                              ; preds = %124, %118, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %129 = load i32, ptr %11, align 4
  switch i32 %129, label %140 [
    i32 0, label %130
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %3, align 4, !tbaa !9
  %133 = add i32 %132, 1
  store i32 %133, ptr %3, align 4, !tbaa !9
  br label %22, !llvm.loop !17

134:                                              ; preds = %22
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %2, align 4, !tbaa !9
  %137 = add i32 %136, 1
  store i32 %137, ptr %2, align 4, !tbaa !9
  br label %15, !llvm.loop !18

138:                                              ; preds = %15
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %140

140:                                              ; preds = %138, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %141 = load i32, ptr %1, align 4
  ret i32 %141
}

declare i32 @simdpackFOR_compressedbytes(i32 noundef, i32 noundef) #1

declare ptr @simdpackFOR_length(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

declare ptr @simdunpackFOR_length(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind allocsize(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 = { 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 = { 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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

declare i32 @maxbits_length(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @issue21FOR() local_unnamed_addr #4 {
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %2 = load ptr, ptr @stdout, align 8, !tbaa !5
  %3 = tail call i32 @fflush(ptr noundef %2)
  br label %4

4:                                                ; preds = %0, %46
  %.04964 = phi i32 [ 0, %0 ], [ %47, %46 ]
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %6 = load ptr, ptr @stdout, align 8, !tbaa !5
  %7 = tail call i32 @fflush(ptr noundef %6)
  %notmask = shl nsw i32 -1, %.04964
  %8 = xor i32 %notmask, -1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %8, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %9

9:                                                ; preds = %4, %45
  %indvar = phi i64 [ 0, %4 ], [ %indvar.next, %45 ]
  %indvars.iv = phi i64 [ 1, %4 ], [ %indvars.iv.next, %45 ]
  %10 = shl nuw nsw i64 %indvars.iv, 2
  %11 = tail call noalias ptr @malloc(i64 noundef %10) #5
  %12 = tail call noalias ptr @malloc(i64 noundef %10) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  %13 = icmp ugt i64 %indvars.iv, 1
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %9
  %min.iters.check = icmp ult i64 %indvar, 8
  br i1 %min.iters.check, label %.lr.ph.preheader97, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %indvar, -8
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %14 = getelementptr inbounds i32, ptr %11, i64 %offset.idx
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store <4 x i32> %broadcast.splat, ptr %14, align 4, !tbaa !9
  store <4 x i32> %broadcast.splat, ptr %15, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %indvar, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader97

.lr.ph.preheader97:                               ; preds = %middle.block, %.lr.ph.preheader
  %.05161.ph = phi i64 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader97, %.lr.ph
  %.05161 = phi i64 [ %18, %.lr.ph ], [ %.05161.ph, %.lr.ph.preheader97 ]
  %17 = getelementptr inbounds i32, ptr %11, i64 %.05161
  store i32 %8, ptr %17, align 4, !tbaa !9
  %18 = add nuw nsw i64 %.05161, 1
  %exitcond.not = icmp eq i64 %18, %indvars.iv
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %9
  %19 = trunc nuw nsw i64 %indvars.iv to i32
  %20 = tail call i32 @maxbits_length(ptr noundef nonnull %11, i32 noundef %19) #6
  %21 = tail call i32 @simdpackFOR_compressedbytes(i32 noundef %19, i32 noundef %20) #6
  %22 = sext i32 %21 to i64
  %23 = tail call noalias ptr @malloc(i64 noundef %22) #5
  %24 = tail call ptr @simdpackFOR_length(i32 noundef 0, ptr noundef nonnull %11, i32 noundef %19, ptr noundef %23, i32 noundef %20) #6
  %25 = ptrtoint ptr %24 to i64
  %26 = ptrtoint ptr %23 to i64
  %27 = sub i64 %25, %26
  %28 = tail call i32 @simdpackFOR_compressedbytes(i32 noundef %19, i32 noundef %20) #6
  %29 = sext i32 %28 to i64
  %.not = icmp eq i64 %27, %29
  br i1 %.not, label %30, label %.critedge

30:                                               ; preds = %._crit_edge
  %31 = tail call ptr @simdunpackFOR_length(i32 noundef 0, ptr noundef %23, i32 noundef %19, ptr noundef %12, i32 noundef %20) #6
  br label %34

32:                                               ; preds = %34
  %33 = add nuw nsw i64 %.15262, 1
  %exitcond74.not = icmp eq i64 %33, %indvars.iv
  br i1 %exitcond74.not, label %45, label %34, !llvm.loop !16

34:                                               ; preds = %30, %32
  %.15262 = phi i64 [ 0, %30 ], [ %33, %32 ]
  %35 = getelementptr inbounds i32, ptr %11, i64 %.15262
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = getelementptr inbounds i32, ptr %12, i64 %.15262
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %.not55 = icmp eq i32 %36, %38
  br i1 %.not55, label %32, label %.preheader

.preheader:                                       ; preds = %34, %.preheader
  %.05365 = phi i64 [ %44, %.preheader ], [ 0, %34 ]
  %39 = getelementptr inbounds i32, ptr %11, i64 %.05365
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = getelementptr inbounds i32, ptr %12, i64 %.05365
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %.05365, i32 noundef %40, i32 noundef %42)
  %44 = add nuw nsw i64 %.05365, 1
  %exitcond80.not = icmp eq i64 %44, %indvars.iv
  br i1 %exitcond80.not, label %.critedge, label %.preheader, !llvm.loop !17

45:                                               ; preds = %32
  tail call void @free(ptr noundef nonnull %11) #6
  tail call void @free(ptr noundef nonnull %12) #6
  tail call void @free(ptr noundef %23) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond76.not = icmp eq i64 %indvars.iv.next, 4096
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond76.not, label %46, label %9, !llvm.loop !18

46:                                               ; preds = %45
  %47 = add nuw nsw i32 %.04964, 1
  %exitcond77.not = icmp eq i32 %47, 30
  br i1 %exitcond77.not, label %.critedge, label %4, !llvm.loop !19

.critedge:                                        ; preds = %46, %._crit_edge, %.preheader
  %.str.2.sink = phi ptr [ @.str.3, %.preheader ], [ @.str.2, %._crit_edge ], [ @.str.4, %46 ]
  %.3 = phi i32 [ -1, %.preheader ], [ -1, %._crit_edge ], [ 0, %46 ]
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  ret i32 %.3
}

declare i32 @simdpackFOR_compressedbytes(i32 noundef, i32 noundef) local_unnamed_addr #2

declare ptr @simdpackFOR_length(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @simdunpackFOR_length(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 = { nounwind allocsize(0) }
attributes #6 = { 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 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !14, !13}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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