; LLVM IR from cornell-zhang/rosetta :: BNN/cpp/minizip (miniunz)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.unz_file_info64_s = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.tm_unz_s, i64, i64 }
%struct.tm_unz_s = type { i32, i32, i32, i32, i32, i32 }

@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @display_zpos64(i64 noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @do_list(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [256 x i8], align 16
  %7 = alloca %struct.unz_file_info64_s, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call i32 @unzGoToFirstFile(ptr noundef %12)
  store i32 %13, ptr %4, align 4, !tbaa !9
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %19

16:                                               ; preds = %1
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %17)
  store i32 1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %143

19:                                               ; preds = %1
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %22

22:                                               ; preds = %129, %19
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #4
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 152, ptr %7) #4
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 152, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  store i8 32, ptr %10, align 1, !tbaa !13
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %25 = call i32 @unzGetCurrentFileInfo64(ptr noundef %23, ptr noundef %7, ptr noundef %24, i64 noundef 256, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0)
  store i32 %25, ptr %4, align 4, !tbaa !9
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %31

28:                                               ; preds = %22
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %29)
  store i32 2, ptr %5, align 4
  br label %126

31:                                               ; preds = %22
  %32 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 7
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = icmp ugt i64 %33, 0
  br i1 %34, label %35, label %42

35:                                               ; preds = %31
  %36 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 6
  %37 = load i64, ptr %36, align 8, !tbaa !18
  %38 = mul i64 %37, 100
  %39 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 7
  %40 = load i64, ptr %39, align 8, !tbaa !14
  %41 = udiv i64 %38, %40
  store i64 %41, ptr %8, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %35, %31
  %43 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 2
  %44 = load i64, ptr %43, align 8, !tbaa !19
  %45 = and i64 %44, 1
  %46 = icmp ne i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  store i8 42, ptr %10, align 1, !tbaa !13
  br label %48

48:                                               ; preds = %47, %42
  %49 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 3
  %50 = load i64, ptr %49, align 8, !tbaa !20
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  store ptr @.str.12, ptr %9, align 8, !tbaa !5
  br label %88

53:                                               ; preds = %48
  %54 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 3
  %55 = load i64, ptr %54, align 8, !tbaa !20
  %56 = icmp eq i64 %55, 8
  br i1 %56, label %57, label %80

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %58 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 2
  %59 = load i64, ptr %58, align 8, !tbaa !19
  %60 = and i64 %59, 6
  %61 = udiv i64 %60, 2
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %57
  store ptr @.str.13, ptr %9, align 8, !tbaa !5
  br label %79

66:                                               ; preds = %57
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  store ptr @.str.14, ptr %9, align 8, !tbaa !5
  br label %78

70:                                               ; preds = %66
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 2
  br i1 %72, label %76, label %73

73:                                               ; preds = %70
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 3
  br i1 %75, label %76, label %77

76:                                               ; preds = %73, %70
  store ptr @.str.15, ptr %9, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %76, %73
  br label %78

78:                                               ; preds = %77, %69
  br label %79

79:                                               ; preds = %78, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %87

80:                                               ; preds = %53
  %81 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 3
  %82 = load i64, ptr %81, align 8, !tbaa !20
  %83 = icmp eq i64 %82, 12
  br i1 %83, label %84, label %85

84:                                               ; preds = %80
  store ptr @.str.16, ptr %9, align 8, !tbaa !5
  br label %86

85:                                               ; preds = %80
  store ptr @.str.17, ptr %9, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %85, %84
  br label %87

87:                                               ; preds = %86, %79
  br label %88

88:                                               ; preds = %87, %52
  %89 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 7
  %90 = load i64, ptr %89, align 8, !tbaa !14
  call void @display_zpos64(i64 noundef %90, i32 noundef 7)
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = load i8, ptr %10, align 1, !tbaa !13
  %93 = sext i8 %92 to i32
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %91, i32 noundef %93)
  %95 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 6
  %96 = load i64, ptr %95, align 8, !tbaa !18
  call void @display_zpos64(i64 noundef %96, i32 noundef 7)
  %97 = load i64, ptr %8, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 14
  %99 = getelementptr inbounds %struct.tm_unz_s, ptr %98, i32 0, i32 4
  %100 = load i32, ptr %99, align 8, !tbaa !21
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 1
  %103 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 14
  %104 = getelementptr inbounds %struct.tm_unz_s, ptr %103, i32 0, i32 3
  %105 = load i32, ptr %104, align 4, !tbaa !22
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 14
  %108 = getelementptr inbounds %struct.tm_unz_s, ptr %107, i32 0, i32 5
  %109 = load i32, ptr %108, align 4, !tbaa !23
  %110 = zext i32 %109 to i64
  %111 = urem i64 %110, 100
  %112 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 14
  %113 = getelementptr inbounds %struct.tm_unz_s, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 8, !tbaa !24
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 14
  %117 = getelementptr inbounds %struct.tm_unz_s, ptr %116, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !25
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds %struct.unz_file_info64_s, ptr %7, i32 0, i32 5
  %121 = load i64, ptr %120, align 8, !tbaa !26
  %122 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i64 noundef %97, i64 noundef %102, i64 noundef %106, i64 noundef %111, i64 noundef %115, i64 noundef %119, i64 noundef %121, ptr noundef %122)
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = call i32 @unzGoToNextFile(ptr noundef %124)
  store i32 %125, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %5, align 4
  br label %126

126:                                              ; preds = %88, %28
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 152, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #4
  %127 = load i32, ptr %5, align 4
  switch i32 %127, label %145 [
    i32 0, label %128
    i32 2, label %132
  ]

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %4, align 4, !tbaa !9
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %22, label %132, !llvm.loop !27

132:                                              ; preds = %129, %126
  %133 = load i32, ptr %4, align 4, !tbaa !9
  %134 = icmp ne i32 %133, -100
  br i1 %134, label %135, label %142

135:                                              ; preds = %132
  %136 = load i32, ptr %4, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %142

138:                                              ; preds = %135
  %139 = load i32, ptr %4, align 4, !tbaa !9
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %139)
  %141 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %141, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %143

142:                                              ; preds = %135, %132
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %143

143:                                              ; preds = %142, %138, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %144 = load i32, ptr %2, align 4
  ret i32 %144

145:                                              ; preds = %126
  unreachable
}

declare i32 @unzGoToFirstFile(ptr noundef) #1

declare i32 @unzGetCurrentFileInfo64(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) #1

declare i32 @unzGoToNextFile(ptr 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 56}
!15 = !{!"unz_file_info64_s", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !16, i64 48, !16, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !17, i64 112, !16, i64 136, !12, i64 144}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"tm_unz_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!18 = !{!15, !16, i64 48}
!19 = !{!15, !12, i64 16}
!20 = !{!15, !12, i64 24}
!21 = !{!15, !10, i64 128}
!22 = !{!15, !10, i64 124}
!23 = !{!15, !10, i64 132}
!24 = !{!15, !10, i64 120}
!25 = !{!15, !10, i64 116}
!26 = !{!15, !12, i64 40}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

%struct.unz_file_info64_s = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.tm_unz_s, i64, i64 }
%struct.tm_unz_s = type { i32, i32, i32, i32, i32, i32 }

@.str.8 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [42 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @display_zpos64(i64 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @do_list(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca [256 x i8], align 16
  %3 = alloca %struct.unz_file_info64_s, align 8
  %4 = tail call i32 @unzGoToFirstFile(ptr noundef %0) #5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %7, label %5

5:                                                ; preds = %1
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef %4)
  br label %63

7:                                                ; preds = %1
  %8 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %10 = getelementptr inbounds i8, ptr %3, i64 56
  %11 = getelementptr inbounds i8, ptr %3, i64 48
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  %13 = getelementptr inbounds i8, ptr %3, i64 24
  %14 = getelementptr inbounds i8, ptr %3, i64 128
  %15 = getelementptr inbounds i8, ptr %3, i64 124
  %16 = getelementptr inbounds i8, ptr %3, i64 132
  %17 = getelementptr inbounds i8, ptr %3, i64 120
  %18 = getelementptr inbounds i8, ptr %3, i64 116
  %19 = getelementptr inbounds i8, ptr %3, i64 40
  br label %20

20:                                               ; preds = %42, %7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %2, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(152) %3, i8 0, i64 152, i1 false)
  %21 = call i32 @unzGetCurrentFileInfo64(ptr noundef %0, ptr noundef nonnull %3, ptr noundef nonnull %2, i64 noundef 256, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0) #5
  %.not33 = icmp eq i32 %21, 0
  br i1 %.not33, label %23, label %.thread

.thread:                                          ; preds = %20
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %21)
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #5
  br label %.loopexit

23:                                               ; preds = %20
  %24 = load i64, ptr %10, align 8, !tbaa !5
  %.not34 = icmp eq i64 %24, 0
  br i1 %.not34, label %29, label %25

25:                                               ; preds = %23
  %26 = load i64, ptr %11, align 8, !tbaa !13
  %27 = mul i64 %26, 100
  %28 = udiv i64 %27, %24
  br label %29

29:                                               ; preds = %25, %23
  %.025 = phi i64 [ %28, %25 ], [ 0, %23 ]
  %30 = load i64, ptr %12, align 8, !tbaa !14
  %31 = and i64 %30, 1
  %.not35 = icmp eq i64 %31, 0
  %spec.select = select i1 %.not35, i32 32, i32 42
  %32 = load i64, ptr %13, align 8, !tbaa !15
  switch i64 %32, label %41 [
    i64 0, label %42
    i64 8, label %33
    i64 12, label %40
  ]

33:                                               ; preds = %29
  %34 = trunc i64 %30 to i32
  %35 = lshr i32 %34, 1
  %36 = and i32 %35, 3
  switch i32 %36, label %38 [
    i32 0, label %42
    i32 1, label %37
  ]

37:                                               ; preds = %33
  br label %42

38:                                               ; preds = %33
  %39 = and i32 %34, 4
  %or.cond.not = icmp eq i32 %39, 0
  %spec.select36 = select i1 %or.cond.not, ptr null, ptr @.str.15
  br label %42

40:                                               ; preds = %29
  br label %42

41:                                               ; preds = %29
  br label %42

42:                                               ; preds = %40, %41, %33, %37, %29, %38
  %.1 = phi ptr [ @.str.16, %40 ], [ @.str.17, %41 ], [ @.str.12, %29 ], [ @.str.14, %37 ], [ @.str.13, %33 ], [ %spec.select36, %38 ]
  call void @display_zpos64(i64 noundef %24, i32 noundef 7)
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, ptr noundef %.1, i32 noundef %spec.select)
  %44 = load i64, ptr %11, align 8, !tbaa !13
  call void @display_zpos64(i64 noundef %44, i32 noundef 7)
  %45 = load i32, ptr %14, align 8, !tbaa !16
  %46 = zext i32 %45 to i64
  %47 = add nuw nsw i64 %46, 1
  %48 = load i32, ptr %15, align 4, !tbaa !17
  %49 = zext i32 %48 to i64
  %50 = load i32, ptr %16, align 4, !tbaa !18
  %51 = urem i32 %50, 100
  %52 = zext nneg i32 %51 to i64
  %53 = load i32, ptr %17, align 8, !tbaa !19
  %54 = zext i32 %53 to i64
  %55 = load i32, ptr %18, align 4, !tbaa !20
  %56 = zext i32 %55 to i64
  %57 = load i64, ptr %19, align 8, !tbaa !21
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i64 noundef %.025, i64 noundef %47, i64 noundef %49, i64 noundef %52, i64 noundef %54, i64 noundef %56, i64 noundef %57, ptr noundef nonnull %2)
  %59 = call i32 @unzGoToNextFile(ptr noundef %0) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %20, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %42, %.thread
  %.02741 = phi i32 [ %21, %.thread ], [ %59, %42 ]
  %cond = icmp eq i32 %.02741, -100
  br i1 %cond, label %63, label %61

61:                                               ; preds = %.loopexit
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %.02741)
  br label %63

63:                                               ; preds = %.loopexit, %61, %5
  %.0 = phi i32 [ 1, %5 ], [ %.02741, %61 ], [ 0, %.loopexit ]
  ret i32 %.0
}

declare i32 @unzGoToFirstFile(ptr noundef) local_unnamed_addr #4

declare i32 @unzGetCurrentFileInfo64(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

declare i32 @unzGoToNextFile(ptr noundef) local_unnamed_addr #4

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

!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, !10, i64 56}
!6 = !{!"unz_file_info64_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !11, i64 112, !10, i64 136, !7, i64 144}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"tm_unz_s", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !10, i64 48}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !12, i64 128}
!17 = !{!6, !12, i64 124}
!18 = !{!6, !12, i64 132}
!19 = !{!6, !12, i64 120}
!20 = !{!6, !12, i64 116}
!21 = !{!6, !7, i64 40}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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