; LLVM IR from antirez/smaz :: smaz_test (main)

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

@__const.main.strings = external hidden unnamed_addr constant [18 x ptr], align 16
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1
@__const.main.charset = external hidden unnamed_addr constant [55 x i8], align 16
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [512 x i8], align 16
  %3 = alloca [4096 x i8], align 16
  %4 = alloca [4096 x i8], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [18 x ptr], align 16
  %11 = alloca i32, align 4
  %12 = alloca [55 x i8], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 512, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4096, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4096, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1000000, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.strings, i64 144, i1 false)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %89, %0
  %14 = load i32, ptr %7, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %15
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %92

19:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %21
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %25
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = call i64 @strlen(ptr noundef %27) #8
  %29 = trunc i64 %28 to i32
  %30 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
  %31 = call i32 @smaz_compress(ptr noundef %23, i32 noundef %29, ptr noundef %30, i32 noundef 4096)
  store i32 %31, ptr %5, align 4, !tbaa !5
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = mul nsw i32 100, %32
  %34 = sext i32 %33 to i64
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call i64 @strlen(ptr noundef %38) #8
  %40 = udiv i64 %34, %39
  %41 = sub i64 100, %40
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %11, align 4, !tbaa !5
  %43 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
  %46 = call i32 @smaz_decompress(ptr noundef %43, i32 noundef %44, ptr noundef %45, i32 noundef 4096)
  store i32 %46, ptr %6, align 4, !tbaa !5
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call i64 @strlen(ptr noundef %50) #8
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = icmp ne i64 %51, %53
  br i1 %54, label %65, label %55

55:                                               ; preds = %19
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = call i32 @memcmp(ptr noundef %59, ptr noundef %60, i64 noundef %62) #8
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %55, %19
  %66 = load i32, ptr %7, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %69)
  call void @exit(i32 noundef 1) #9
  unreachable

71:                                               ; preds = %55
  %72 = load i32, ptr %11, align 4, !tbaa !5
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %74, label %82

74:                                               ; preds = %71
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = load i32, ptr %11, align 4, !tbaa !5
  %80 = sub nsw i32 0, %79
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %78, i32 noundef %80)
  br label %89

82:                                               ; preds = %71
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [18 x ptr], ptr %10, i64 0, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !5
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, ptr noundef %86, i32 noundef %87)
  br label %89

89:                                               ; preds = %82, %74
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %13, !llvm.loop !11

92:                                               ; preds = %13
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %93)
  br label %95

95:                                               ; preds = %151, %92
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = add nsw i32 %96, -1
  store i32 %97, ptr %9, align 4, !tbaa !5
  %98 = icmp ne i32 %96, 0
  br i1 %98, label %99, label %152

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 55, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.main.charset, i64 55, i1 false)
  %100 = call i64 @random() #7
  %101 = srem i64 %100, 512
  %102 = trunc i64 %101 to i32
  store i32 %102, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %127, %99
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %107, label %130

107:                                              ; preds = %103
  %108 = load i32, ptr %9, align 4, !tbaa !5
  %109 = and i32 %108, 1
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %119

111:                                              ; preds = %107
  %112 = call i64 @random() #7
  %113 = urem i64 %112, 54
  %114 = getelementptr inbounds [55 x i8], ptr %12, i64 0, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !13
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 %117
  store i8 %115, ptr %118, align 1, !tbaa !13
  br label %126

119:                                              ; preds = %107
  %120 = call i64 @random() #7
  %121 = and i64 %120, 255
  %122 = trunc i64 %121 to i8
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 %124
  store i8 %122, ptr %125, align 1, !tbaa !13
  br label %126

126:                                              ; preds = %119, %111
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %7, align 4, !tbaa !5
  br label %103, !llvm.loop !14

130:                                              ; preds = %103
  %131 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
  %134 = call i32 @smaz_compress(ptr noundef %131, i32 noundef %132, ptr noundef %133, i32 noundef 4096)
  store i32 %134, ptr %5, align 4, !tbaa !5
  %135 = getelementptr inbounds [4096 x i8], ptr %3, i64 0, i64 0
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
  %138 = call i32 @smaz_decompress(ptr noundef %135, i32 noundef %136, ptr noundef %137, i32 noundef 4096)
  store i32 %138, ptr %6, align 4, !tbaa !5
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = load i32, ptr %6, align 4, !tbaa !5
  %141 = icmp ne i32 %139, %140
  br i1 %141, label %149, label %142

142:                                              ; preds = %130
  %143 = getelementptr inbounds [512 x i8], ptr %2, i64 0, i64 0
  %144 = getelementptr inbounds [4096 x i8], ptr %4, i64 0, i64 0
  %145 = load i32, ptr %8, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = call i32 @memcmp(ptr noundef %143, ptr noundef %144, i64 noundef %146) #8
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %151

149:                                              ; preds = %142, %130
  %150 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  call void @exit(i32 noundef 1) #9
  unreachable

151:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 55, ptr %12) #7
  br label %95, !llvm.loop !15

152:                                              ; preds = %95
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  call void @llvm.lifetime.end.p0(i64 144, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4096, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4096, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %2) #7
  ret i32 0
}

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

; 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) #2

declare i32 @smaz_compress(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

declare i32 @smaz_decompress(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

; Function Attrs: nounwind
declare i64 @random() #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = !{!"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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@__const.main.strings = external hidden unnamed_addr constant [18 x ptr], align 16
@.str.17 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [46 x i8], align 1
@__const.main.charset = external hidden unnamed_addr constant [55 x i8], align 16
@.str.21 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [512 x i8], align 16
  %2 = alloca [4096 x i8], align 16
  %3 = alloca [4096 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #8
  %4 = load ptr, ptr @__const.main.strings, align 16, !tbaa !5
  %.not43 = icmp eq ptr %4, null
  br i1 %.not43, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %28
  %indvars.iv = phi i64 [ %indvars.iv.next, %28 ], [ 0, %0 ]
  %5 = phi ptr [ %30, %28 ], [ %4, %0 ]
  %6 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #9
  %7 = trunc i64 %6 to i32
  %8 = call i32 @smaz_compress(ptr noundef nonnull %5, i32 noundef %7, ptr noundef nonnull %2, i32 noundef 4096) #8
  %9 = mul nsw i32 %8, 100
  %10 = sext i32 %9 to i64
  %11 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #9
  %12 = udiv i64 %10, %11
  %13 = trunc i64 %12 to i32
  %.neg = add i32 %13, -100
  %14 = sub i32 100, %13
  %15 = call i32 @smaz_decompress(ptr noundef nonnull %2, i32 noundef %8, ptr noundef nonnull %3, i32 noundef 4096) #8
  %16 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #9
  %17 = zext i32 %15 to i64
  %.not39 = icmp eq i64 %16, %17
  br i1 %.not39, label %18, label %20

18:                                               ; preds = %.lr.ph
  %19 = sext i32 %15 to i64
  %bcmp40 = call i32 @bcmp(ptr nonnull %5, ptr nonnull %3, i64 %19)
  %.not41 = icmp eq i32 %bcmp40, 0
  br i1 %.not41, label %22, label %20

20:                                               ; preds = %18, %.lr.ph
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, ptr noundef nonnull %5)
  call void @exit(i32 noundef 1) #10
  unreachable

22:                                               ; preds = %18
  %23 = icmp slt i32 %14, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %22
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef nonnull %5, i32 noundef %.neg)
  br label %28

26:                                               ; preds = %22
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, ptr noundef nonnull %5, i32 noundef %14)
  br label %28

28:                                               ; preds = %26, %24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = getelementptr inbounds [18 x ptr], ptr @__const.main.strings, i64 0, i64 %indvars.iv.next
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %28, %0
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef 1000000)
  br label %32

32:                                               ; preds = %50, %._crit_edge
  %.0 = phi i32 [ 1000000, %._crit_edge ], [ %33, %50 ]
  %33 = add nsw i32 %.0, -1
  %.not35 = icmp eq i32 %.0, 0
  br i1 %.not35, label %53, label %34

34:                                               ; preds = %32
  %35 = call i64 @random() #8
  %36 = srem i64 %35, 512
  %37 = trunc nsw i64 %36 to i32
  %38 = icmp sgt i64 %36, 0
  br i1 %38, label %.lr.ph47, label %._crit_edge48

.lr.ph47:                                         ; preds = %34
  %39 = and i32 %33, 1
  %.not38 = icmp eq i32 %39, 0
  br i1 %.not38, label %.lr.ph47.split.us, label %.lr.ph47.split

.lr.ph47.split.us:                                ; preds = %.lr.ph47, %.lr.ph47.split.us
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %.lr.ph47.split.us ], [ 0, %.lr.ph47 ]
  %40 = call i64 @random() #8
  %41 = trunc i64 %40 to i8
  %42 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 %indvars.iv55
  store i8 %41, ptr %42, align 1, !tbaa !11
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond59.not = icmp eq i64 %indvars.iv.next56, %36
  br i1 %exitcond59.not, label %._crit_edge48, label %.lr.ph47.split.us, !llvm.loop !12

.lr.ph47.split:                                   ; preds = %.lr.ph47, %.lr.ph47.split
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.lr.ph47.split ], [ 0, %.lr.ph47 ]
  %43 = call i64 @random() #8
  %44 = urem i64 %43, 54
  %45 = getelementptr inbounds [55 x i8], ptr @__const.main.charset, i64 0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = getelementptr inbounds [512 x i8], ptr %1, i64 0, i64 %indvars.iv52
  store i8 %46, ptr %47, align 1, !tbaa !11
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next53, %36
  br i1 %exitcond.not, label %._crit_edge48, label %.lr.ph47.split, !llvm.loop !12

._crit_edge48:                                    ; preds = %.lr.ph47.split, %.lr.ph47.split.us, %34
  %48 = call i32 @smaz_compress(ptr noundef nonnull %1, i32 noundef %37, ptr noundef nonnull %2, i32 noundef 4096) #8
  %49 = call i32 @smaz_decompress(ptr noundef nonnull %2, i32 noundef %48, ptr noundef nonnull %3, i32 noundef 4096) #8
  %.not36 = icmp eq i32 %49, %37
  br i1 %.not36, label %50, label %51

50:                                               ; preds = %._crit_edge48
  %bcmp = call i32 @bcmp(ptr nonnull %1, ptr nonnull %3, i64 %36)
  %.not37 = icmp eq i32 %bcmp, 0
  br i1 %.not37, label %32, label %51, !llvm.loop !13

51:                                               ; preds = %50, %._crit_edge48
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  call void @exit(i32 noundef 1) #10
  unreachable

53:                                               ; preds = %32
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %1) #8
  ret i32 0
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: nounwind
declare i64 @random() local_unnamed_addr #6

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

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

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

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


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