; LLVM IR from fast-pack/LittleIntPacker :: 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"

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 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: nounwind
declare void @srand(i32 noundef) #1

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

declare i32 @fflush(ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @rand() #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @byte_count(i32 noundef, i32 noundef) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @testshortpacksc() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @srand(i32 noundef 0) #6
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %172, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = icmp sle i32 %17, 32
  br i1 %18, label %19, label %175

19:                                               ; preds = %16
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20)
  %22 = load ptr, ptr @stdout, align 8, !tbaa !9
  %23 = call i32 @fflush(ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %166, %19
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 100
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  store i32 5, ptr %6, align 4
  br label %169

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 512, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %29 = call noalias ptr @malloc(i64 noundef 2304) #7
  store ptr %29, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %30 = call noalias ptr @malloc(i64 noundef 2304) #7
  store ptr %30, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %31 = call noalias ptr @malloc(i64 noundef 8224) #7
  store ptr %31, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %46, %28
  %33 = load i64, ptr %3, align 8, !tbaa !11
  %34 = icmp ult i64 %33, 512
  br i1 %34, label %35, label %49

35:                                               ; preds = %32
  %36 = call i32 @rand() #6
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = zext i32 %37 to i64
  %39 = shl i64 1, %38
  %40 = sub i64 %39, 1
  %41 = trunc i64 %40 to i32
  %42 = and i32 %36, %41
  %43 = load ptr, ptr %8, align 8, !tbaa !9
  %44 = load i64, ptr %3, align 8, !tbaa !11
  %45 = getelementptr inbounds i32, ptr %43, i64 %44
  store i32 %42, ptr %45, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %35
  %47 = load i64, ptr %3, align 8, !tbaa !11
  %48 = add i64 %47, 1
  store i64 %48, ptr %3, align 8, !tbaa !11
  br label %32, !llvm.loop !13

49:                                               ; preds = %32
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %156, %49
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = icmp ule i64 %52, 512
  br i1 %53, label %54, label %159

54:                                               ; preds = %50
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %55

55:                                               ; preds = %62, %54
  %56 = load i64, ptr %3, align 8, !tbaa !11
  %57 = icmp ult i64 %56, 512
  br i1 %57, label %58, label %65

58:                                               ; preds = %55
  %59 = load ptr, ptr %9, align 8, !tbaa !9
  %60 = load i64, ptr %3, align 8, !tbaa !11
  %61 = getelementptr inbounds i32, ptr %59, i64 %60
  store i32 0, ptr %61, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %58
  %63 = load i64, ptr %3, align 8, !tbaa !11
  %64 = add i64 %63, 1
  store i64 %64, ptr %3, align 8, !tbaa !11
  br label %55, !llvm.loop !15

65:                                               ; preds = %55
  %66 = load ptr, ptr %8, align 8, !tbaa !9
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !9
  call void @scpack32(ptr noundef %66, i32 noundef %67, i32 noundef %68, ptr noundef %69)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = load i32, ptr %2, align 4, !tbaa !5
  %72 = call i32 @byte_count(i32 noundef %70, i32 noundef %71)
  store i32 %72, ptr %11, align 4, !tbaa !5
  %73 = call i32 @rand() #6
  %74 = trunc i32 %73 to i8
  %75 = load ptr, ptr %10, align 8, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  store i8 %74, ptr %78, align 1, !tbaa !16
  %79 = load ptr, ptr %10, align 8, !tbaa !9
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !9
  call void @scunpack32(ptr noundef %79, i32 noundef %80, i32 noundef %81, ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !5
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %83

83:                                               ; preds = %145, %65
  %84 = load i64, ptr %3, align 8, !tbaa !11
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = zext i32 %85 to i64
  %87 = icmp ult i64 %84, %86
  br i1 %87, label %88, label %148

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

98:                                               ; preds = %88
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %140, %98
  %101 = load i32, ptr %13, align 4, !tbaa !5
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = icmp ult i32 %101, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %143

105:                                              ; preds = %100
  %106 = load ptr, ptr %8, align 8, !tbaa !9
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %106, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !5
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %111, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = icmp ne i32 %110, %115
  br i1 %116, label %117, label %131

117:                                              ; preds = %105
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = load ptr, ptr %8, align 8, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = load i32, ptr %13, align 4, !tbaa !5
  %125 = load ptr, ptr %9, align 8, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !5
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %118, i32 noundef %123, i32 noundef %124, i32 noundef %129)
  br label %139

131:                                              ; preds = %105
  %132 = load i32, ptr %13, align 4, !tbaa !5
  %133 = load ptr, ptr %8, align 8, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !5
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %132, i32 noundef %137)
  br label %139

139:                                              ; preds = %131, %117
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = add i32 %141, 1
  store i32 %142, ptr %13, align 4, !tbaa !5
  br label %100, !llvm.loop !17

143:                                              ; preds = %104
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %143, %88
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %3, align 8, !tbaa !11
  %147 = add i64 %146, 1
  store i64 %147, ptr %3, align 8, !tbaa !11
  br label %83, !llvm.loop !18

148:                                              ; preds = %83
  %149 = load i32, ptr %12, align 4, !tbaa !5
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %153

152:                                              ; preds = %148
  store i32 0, ptr %6, align 4
  br label %153

153:                                              ; preds = %152, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %154 = load i32, ptr %6, align 4
  switch i32 %154, label %163 [
    i32 0, label %155
  ]

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %4, align 4, !tbaa !5
  %158 = add i32 %157, 1
  store i32 %158, ptr %4, align 4, !tbaa !5
  br label %50, !llvm.loop !19

159:                                              ; preds = %50
  %160 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %160) #6
  %161 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %161) #6
  %162 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %162) #6
  store i32 0, ptr %6, align 4
  br label %163

163:                                              ; preds = %159, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %164 = load i32, ptr %6, align 4
  switch i32 %164, label %169 [
    i32 0, label %165
  ]

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %5, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %5, align 4, !tbaa !5
  br label %24, !llvm.loop !20

169:                                              ; preds = %163, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %170 = load i32, ptr %6, align 4
  switch i32 %170, label %177 [
    i32 5, label %171
  ]

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %2, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %2, align 4, !tbaa !5
  br label %16, !llvm.loop !21

175:                                              ; preds = %16
  %176 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %177

177:                                              ; preds = %175, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %178 = load i32, ptr %1, align 4
  ret i32 %178
}

declare void @scpack32(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @scunpack32(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"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 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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"

@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1

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

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

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

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @testshortpacksc() local_unnamed_addr #5 {
  tail call void @srand(i32 noundef 0) #8
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %3

3:                                                ; preds = %0, %.critedge
  %indvars.iv101 = phi i64 [ 0, %0 ], [ %indvars.iv.next102, %.critedge ]
  %4 = trunc nuw nsw i64 %indvars.iv101 to i32
  %5 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %4)
  %6 = load ptr, ptr @stdout, align 8, !tbaa !5
  %7 = tail call i32 @fflush(ptr noundef %6)
  %notmask = shl nsw i64 -1, %indvars.iv101
  %8 = trunc i64 %notmask to i32
  %9 = xor i32 %8, -1
  br label %10

10:                                               ; preds = %3, %.thread
  %.06887 = phi i32 [ 0, %3 ], [ %42, %.thread ]
  %11 = tail call noalias dereferenceable_or_null(2304) ptr @malloc(i64 noundef 2304) #9
  %12 = tail call noalias dereferenceable_or_null(2304) ptr @malloc(i64 noundef 2304) #9
  %13 = tail call noalias dereferenceable_or_null(8224) ptr @malloc(i64 noundef 8224) #9
  br label %14

14:                                               ; preds = %10, %14
  %.06479 = phi i64 [ 0, %10 ], [ %18, %14 ]
  %15 = tail call i32 @rand() #8
  %16 = and i32 %15, %9
  %17 = getelementptr inbounds i32, ptr %11, i64 %.06479
  store i32 %16, ptr %17, align 4, !tbaa !9
  %18 = add nuw nsw i64 %.06479, 1
  %exitcond.not = icmp eq i64 %18, 512
  br i1 %exitcond.not, label %.preheader, label %14, !llvm.loop !11

._crit_edge.thread:                               ; preds = %.preheader, %._crit_edge
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond99 = icmp eq i64 %indvars.iv.next95, 513
  br i1 %exitcond99, label %.thread, label %.preheader, !llvm.loop !13

.preheader:                                       ; preds = %14, %._crit_edge.thread
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %._crit_edge.thread ], [ 0, %14 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(2048) %12, i8 0, i64 2048, i1 false), !tbaa !9
  %19 = trunc nuw nsw i64 %indvars.iv94 to i32
  tail call void @scpack32(ptr noundef %11, i32 noundef %19, i32 noundef %4, ptr noundef %13) #8
  %20 = tail call i32 @byte_count(i32 noundef %19, i32 noundef %4)
  %21 = tail call i32 @rand() #8
  %22 = trunc i32 %21 to i8
  %23 = zext i32 %20 to i64
  %24 = getelementptr inbounds i8, ptr %13, i64 %23
  store i8 %22, ptr %24, align 1, !tbaa !14
  tail call void @scunpack32(ptr noundef %13, i32 noundef %19, i32 noundef %4, ptr noundef %12) #8
  %.not89 = icmp eq i64 %indvars.iv94, 0
  br i1 %.not89, label %._crit_edge.thread, label %.lr.ph84.split.us

.lr.ph84.split.us:                                ; preds = %.preheader, %..loopexit_crit_edge.us
  %.06083.us = phi i32 [ %.1.us, %..loopexit_crit_edge.us ], [ 1, %.preheader ]
  %.26682.us = phi i64 [ %41, %..loopexit_crit_edge.us ], [ 0, %.preheader ]
  %25 = getelementptr inbounds i32, ptr %11, i64 %.26682.us
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = getelementptr inbounds i32, ptr %12, i64 %.26682.us
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %.not.us = icmp eq i32 %26, %28
  br i1 %.not.us, label %..loopexit_crit_edge.us, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph84.split.us
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %30

30:                                               ; preds = %.lr.ph.us, %40
  %indvars.iv = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next, %40 ]
  %31 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %.not76.us = icmp eq i32 %32, %34
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  br i1 %.not76.us, label %38, label %36

36:                                               ; preds = %30
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %35, i32 noundef %32, i32 noundef %35, i32 noundef %34)
  br label %40

38:                                               ; preds = %30
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %35, i32 noundef %32)
  br label %40

40:                                               ; preds = %38, %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next, %indvars.iv94
  br i1 %exitcond93.not, label %..loopexit_crit_edge.us, label %30, !llvm.loop !15

..loopexit_crit_edge.us:                          ; preds = %40, %.lr.ph84.split.us
  %.1.us = phi i32 [ %.06083.us, %.lr.ph84.split.us ], [ 0, %40 ]
  %41 = add nuw nsw i64 %.26682.us, 1
  %exitcond96.not = icmp eq i64 %41, %indvars.iv94
  br i1 %exitcond96.not, label %._crit_edge, label %.lr.ph84.split.us, !llvm.loop !16

._crit_edge:                                      ; preds = %..loopexit_crit_edge.us
  %.not.not = icmp eq i32 %.1.us, 0
  br i1 %.not.not, label %.loopexit78, label %._crit_edge.thread

.thread:                                          ; preds = %._crit_edge.thread
  tail call void @free(ptr noundef %11) #8
  tail call void @free(ptr noundef nonnull %12) #8
  tail call void @free(ptr noundef %13) #8
  %42 = add nuw nsw i32 %.06887, 1
  %exitcond100 = icmp eq i32 %42, 100
  br i1 %exitcond100, label %.critedge, label %10, !llvm.loop !17

.critedge:                                        ; preds = %.thread
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next102, 33
  br i1 %exitcond104.not, label %43, label %3, !llvm.loop !18

43:                                               ; preds = %.critedge
  %44 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.loopexit78

.loopexit78:                                      ; preds = %._crit_edge, %43
  %.6 = phi i32 [ 0, %43 ], [ -1, %._crit_edge ]
  ret i32 %.6
}

declare void @scpack32(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

declare void @scunpack32(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { 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 = { 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 #2 = { 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 #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 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 #5 = { 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 #6 = { "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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


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