; 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.9 = external hidden unnamed_addr constant [15 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 @testshortpack() #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
  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
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %15

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

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

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

26:                                               ; preds = %23
  store i32 5, ptr %6, align 4
  br label %164

27:                                               ; preds = %23
  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
  %28 = call noalias ptr @malloc(i64 noundef 2304) #7
  store ptr %28, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %29 = call noalias ptr @malloc(i64 noundef 2304) #7
  store ptr %29, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %30 = call noalias ptr @malloc(i64 noundef 8224) #7
  store ptr %30, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %31

31:                                               ; preds = %45, %27
  %32 = load i64, ptr %3, align 8, !tbaa !11
  %33 = icmp ult i64 %32, 512
  br i1 %33, label %34, label %48

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

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

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

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

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

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

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

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

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

82:                                               ; preds = %144, %64
  %83 = load i64, ptr %3, align 8, !tbaa !11
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = zext i32 %84 to i64
  %86 = icmp ult i64 %83, %85
  br i1 %86, label %87, label %147

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

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

99:                                               ; preds = %139, %97
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = load i32, ptr %4, align 4, !tbaa !5
  %102 = icmp ult i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %142

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

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

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

138:                                              ; preds = %130, %116
  br label %139

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

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

143:                                              ; preds = %87
  br label %144

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

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

148:                                              ; preds = %147, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %149 = load i32, ptr %6, align 4
  switch i32 %149, label %158 [
    i32 0, label %150
  ]

150:                                              ; preds = %148
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %4, align 4, !tbaa !5
  %153 = add i32 %152, 1
  store i32 %153, ptr %4, align 4, !tbaa !5
  br label %49, !llvm.loop !19

154:                                              ; preds = %49
  %155 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %155) #6
  %156 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %156) #6
  %157 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %157) #6
  store i32 0, ptr %6, align 4
  br label %158

158:                                              ; preds = %154, %148
  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
  %159 = load i32, ptr %6, align 4
  switch i32 %159, label %164 [
    i32 0, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %5, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %5, align 4, !tbaa !5
  br label %23, !llvm.loop !20

164:                                              ; preds = %158, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  %165 = load i32, ptr %6, align 4
  switch i32 %165, label %172 [
    i32 5, label %166
  ]

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %2, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !21

170:                                              ; preds = %15
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  br label %172

172:                                              ; preds = %170, %164
  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
  %173 = load i32, ptr %1, align 4
  ret i32 %173
}

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

declare void @unpack32(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.9 = external hidden unnamed_addr constant [15 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 @testshortpack() local_unnamed_addr #5 {
  tail call void @srand(i32 noundef 0) #8
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %3

3:                                                ; preds = %0, %.critedge76
  %indvars.iv97 = phi i64 [ 0, %0 ], [ %indvars.iv.next98, %.critedge76 ]
  %4 = trunc nuw nsw i64 %indvars.iv97 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.iv97
  %8 = trunc i64 %notmask to i32
  %9 = xor i32 %8, -1
  br label %10

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

.preheader:                                       ; preds = %14, %.critedge
  %indvars.iv104 = phi i32 [ %indvars.iv.next105, %.critedge ], [ 0, %14 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %.critedge ], [ 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.iv to i32
  tail call void @pack32(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 !13
  tail call void @unpack32(ptr noundef %13, i32 noundef %19, i32 noundef %4, ptr noundef %12) #8
  %.not7381.not = icmp eq i64 %indvars.iv, 0
  br i1 %.not7381.not, label %.critedge, label %.lr.ph

25:                                               ; preds = %.lr.ph
  %26 = add nuw nsw i64 %.26382, 1
  %exitcond93.not = icmp eq i64 %26, %indvars.iv
  br i1 %exitcond93.not, label %.critedge, label %.lr.ph, !llvm.loop !14

.lr.ph:                                           ; preds = %.preheader, %25
  %.26382 = phi i64 [ %26, %25 ], [ 0, %.preheader ]
  %27 = getelementptr inbounds i32, ptr %11, i64 %.26382
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = getelementptr inbounds i32, ptr %12, i64 %.26382
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %.not = icmp eq i32 %28, %30
  br i1 %.not, label %25, label %.lr.ph85.preheader

.lr.ph85.preheader:                               ; preds = %.lr.ph
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %wide.trip.count = zext nneg i32 %indvars.iv104 to i64
  br label %.lr.ph85

.lr.ph85:                                         ; preds = %.lr.ph85.preheader, %41
  %indvars.iv101 = phi i64 [ 0, %.lr.ph85.preheader ], [ %indvars.iv.next102, %41 ]
  %32 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv101
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv101
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %.not74 = icmp eq i32 %33, %35
  %36 = trunc nuw nsw i64 %indvars.iv101 to i32
  br i1 %.not74, label %39, label %37

37:                                               ; preds = %.lr.ph85
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %36, i32 noundef %33, i32 noundef %36, i32 noundef %35)
  br label %41

39:                                               ; preds = %.lr.ph85
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %36, i32 noundef %33)
  br label %41

41:                                               ; preds = %37, %39
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next102, %wide.trip.count
  br i1 %exitcond107.not, label %.loopexit, label %.lr.ph85, !llvm.loop !15

.critedge:                                        ; preds = %25, %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond95 = icmp eq i64 %indvars.iv.next, 513
  %indvars.iv.next105 = add nuw nsw i32 %indvars.iv104, 1
  br i1 %exitcond95, label %.thread, label %.preheader, !llvm.loop !16

.thread:                                          ; preds = %.critedge
  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 %.06586, 1
  %exitcond96 = icmp eq i32 %42, 100
  br i1 %exitcond96, label %.critedge76, label %10, !llvm.loop !17

.critedge76:                                      ; preds = %.thread
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next98, 33
  br i1 %exitcond100.not, label %43, label %3, !llvm.loop !18

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

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

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

declare void @unpack32(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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!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,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass