; LLVM IR from cornell-zhang/rosetta :: BNN/cpp/utils (open_zip)

; 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_global_info_s = type { i64, i64, i64 }
%struct.unz_file_info_s = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.tm_unz_s, i64 }
%struct.tm_unz_s = type { i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.unz_global_info_s, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.unz_file_info_s, align 8
  %14 = alloca [50 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 2
  br i1 %19, label %20, label %25

20:                                               ; preds = %2
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %23)
  store i32 0, ptr %3, align 4
  br label %175

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call ptr @unzOpen(ptr noundef %28)
  store ptr %29, ptr %7, align 8, !tbaa !9
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %37

32:                                               ; preds = %25
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %35)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %174

37:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %38 = load ptr, ptr %7, align 8, !tbaa !9
  %39 = call i32 @unzGetGlobalInfo(ptr noundef %38, ptr noundef %9)
  store i32 %39, ptr %6, align 4, !tbaa !5
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = icmp ne i32 %40, 0
  %42 = xor i1 %41, true
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  br label %46

44:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 32, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45, %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %47 = getelementptr inbounds %struct.unz_global_info_s, ptr %9, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %10, align 4, !tbaa !5
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %53, i64 8)
  %55 = extractvalue { i64, i1 } %54, 1
  %56 = extractvalue { i64, i1 } %54, 0
  %57 = select i1 %55, i64 -1, i64 %56
  %58 = call noalias noundef nonnull ptr @_Znam(i64 noundef %57) #8
  store ptr %58, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %168, %46
  %60 = load i32, ptr %12, align 4, !tbaa !5
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = icmp ult i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %171

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 144, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 50, ptr %14) #6
  %65 = load ptr, ptr %7, align 8, !tbaa !9
  %66 = getelementptr inbounds [50 x i8], ptr %14, i64 0, i64 0
  %67 = call i32 @unzGetCurrentFileInfo(ptr noundef %65, ptr noundef %13, ptr noundef %66, i64 noundef 50, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0)
  store i32 %67, ptr %6, align 4, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = icmp ne i32 %68, 0
  %70 = xor i1 %69, true
  br i1 %70, label %71, label %72

71:                                               ; preds = %64
  br label %74

72:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 43, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

73:                                               ; No predecessors!
  br label %74

74:                                               ; preds = %73, %71
  %75 = getelementptr inbounds [50 x i8], ptr %14, i64 0, i64 0
  %76 = getelementptr inbounds %struct.unz_file_info_s, ptr %13, i32 0, i32 7
  %77 = load i64, ptr %76, align 8, !tbaa !14
  %78 = lshr i64 %77, 10
  %79 = getelementptr inbounds %struct.unz_file_info_s, ptr %13, i32 0, i32 6
  %80 = load i64, ptr %79, align 8, !tbaa !17
  %81 = lshr i64 %80, 10
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %75, i64 noundef %78, i64 noundef %81)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %83 = getelementptr inbounds %struct.unz_file_info_s, ptr %13, i32 0, i32 7
  %84 = load i64, ptr %83, align 8, !tbaa !14
  %85 = udiv i64 %84, 4
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %15, align 4, !tbaa !5
  %87 = getelementptr inbounds %struct.unz_file_info_s, ptr %13, i32 0, i32 7
  %88 = load i64, ptr %87, align 8, !tbaa !14
  %89 = urem i64 %88, 4
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %74
  br label %94

92:                                               ; preds = %74
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 49, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

93:                                               ; No predecessors!
  br label %94

94:                                               ; preds = %93, %91
  %95 = load i32, ptr %15, align 4, !tbaa !5
  %96 = icmp ugt i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  br label %100

98:                                               ; preds = %94
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 50, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %97
  %101 = load i32, ptr %15, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %102, i64 4)
  %104 = extractvalue { i64, i1 } %103, 1
  %105 = extractvalue { i64, i1 } %103, 0
  %106 = select i1 %104, i64 -1, i64 %105
  %107 = call noalias noundef nonnull ptr @_Znam(i64 noundef %106) #8
  %108 = load ptr, ptr %11, align 8, !tbaa !9
  %109 = load i32, ptr %12, align 4, !tbaa !5
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %108, i64 %110
  store ptr %107, ptr %111, align 8, !tbaa !9
  %112 = load ptr, ptr %7, align 8, !tbaa !9
  %113 = call i32 @unzOpenCurrentFile(ptr noundef %112)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %159, %100
  %115 = load i32, ptr %17, align 4, !tbaa !5
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = icmp ult i32 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %162

119:                                              ; preds = %114
  %120 = load ptr, ptr %7, align 8, !tbaa !9
  %121 = call i32 @unzReadCurrentFile(ptr noundef %120, ptr noundef %16, i32 noundef 4)
  store i32 %121, ptr %6, align 4, !tbaa !5
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = icmp eq i32 %122, 4
  br i1 %123, label %129, label %124

124:                                              ; preds = %119
  %125 = load i32, ptr %17, align 4, !tbaa !5
  %126 = load i32, ptr %15, align 4, !tbaa !5
  %127 = sub i32 %126, 1
  %128 = icmp eq i32 %125, %127
  br label %129

129:                                              ; preds = %124, %119
  %130 = phi i1 [ true, %119 ], [ %128, %124 ]
  br i1 %130, label %131, label %132

131:                                              ; preds = %129
  br label %134

132:                                              ; preds = %129
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 62, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %131
  %135 = load float, ptr %16, align 4, !tbaa !18
  %136 = load ptr, ptr %11, align 8, !tbaa !9
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds ptr, ptr %136, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = load i32, ptr %17, align 4, !tbaa !5
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds float, ptr %140, i64 %142
  store float %135, ptr %143, align 4, !tbaa !18
  %144 = load i32, ptr %17, align 4, !tbaa !5
  %145 = icmp ult i32 %144, 5
  br i1 %145, label %146, label %158

146:                                              ; preds = %134
  %147 = load ptr, ptr %11, align 8, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds ptr, ptr %147, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = load i32, ptr %17, align 4, !tbaa !5
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds float, ptr %151, i64 %153
  %155 = load float, ptr %154, align 4, !tbaa !18
  %156 = fpext float %155 to double
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %156)
  br label %158

158:                                              ; preds = %146, %134
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = add i32 %160, 1
  store i32 %161, ptr %17, align 4, !tbaa !5
  br label %114, !llvm.loop !20

162:                                              ; preds = %118
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %164 = load ptr, ptr %7, align 8, !tbaa !9
  %165 = call i32 @unzCloseCurrentFile(ptr noundef %164)
  %166 = load ptr, ptr %7, align 8, !tbaa !9
  %167 = call i32 @unzGoToNextFile(ptr noundef %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 50, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #6
  br label %168

168:                                              ; preds = %162
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = add i32 %169, 1
  store i32 %170, ptr %12, align 4, !tbaa !5
  br label %59, !llvm.loop !22

171:                                              ; preds = %63
  %172 = load ptr, ptr %7, align 8, !tbaa !9
  %173 = call i32 @unzClose(ptr noundef %172)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %174

174:                                              ; preds = %171, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %175

175:                                              ; preds = %174, %20
  %176 = load i32, ptr %3, align 4
  ret i32 %176
}

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

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

declare ptr @unzOpen(ptr noundef) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

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

declare i32 @unzOpenCurrentFile(ptr noundef) #1

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

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

declare i32 @unzCloseCurrentFile(ptr noundef) #1

declare i32 @unzGoToNextFile(ptr noundef) #1

declare i32 @unzClose(ptr noundef) #1

attributes #0 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS17unz_global_info_s", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !13, i64 56}
!15 = !{!"_ZTS15unz_file_info_s", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !16, i64 112, !13, i64 136}
!16 = !{!"_ZTS8tm_unz_s", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!17 = !{!15, !13, i64 48}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; 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_global_info_s = type { i64, i64, i64 }
%struct.unz_file_info_s = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.tm_unz_s, i64 }
%struct.tm_unz_s = type { i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [82 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.unz_global_info_s, align 8
  %4 = alloca %struct.unz_file_info_s, align 8
  %5 = alloca [50 x i8], align 16
  %6 = alloca float, align 4
  %7 = icmp slt i32 %0, 2
  br i1 %7, label %8, label %11

8:                                                ; preds = %2
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %9)
  br label %98

11:                                               ; preds = %2
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = tail call ptr @unzOpen(ptr noundef %13)
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %19

16:                                               ; preds = %11
  %17 = load ptr, ptr %12, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %17)
  br label %98

19:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  %20 = call i32 @unzGetGlobalInfo(ptr noundef nonnull %14, ptr noundef nonnull %3)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %22, label %21

21:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 32, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

22:                                               ; preds = %19
  %23 = load i64, ptr %3, align 8, !tbaa !9
  %24 = trunc i64 %23 to i32
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %24)
  %.not44 = icmp eq i32 %24, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %4, i64 56
  %27 = getelementptr inbounds i8, ptr %4, i64 48
  br label %29

._crit_edge:                                      ; preds = %.loopexit54, %22
  %28 = call i32 @unzClose(ptr noundef nonnull %14)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  br label %98

29:                                               ; preds = %.lr.ph, %.loopexit54
  %.03743 = phi i32 [ 0, %.lr.ph ], [ %91, %.loopexit54 ]
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 50, ptr nonnull %5) #5
  %30 = call i32 @unzGetCurrentFileInfo(ptr noundef nonnull %14, ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 50, ptr noundef null, i64 noundef 0, ptr noundef null, i64 noundef 0)
  %.not40 = icmp eq i32 %30, 0
  br i1 %.not40, label %32, label %31

31:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 43, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

32:                                               ; preds = %29
  %33 = load i64, ptr %26, align 8, !tbaa !12
  %34 = lshr i64 %33, 10
  %35 = load i64, ptr %27, align 8, !tbaa !16
  %36 = lshr i64 %35, 10
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef nonnull %5, i64 noundef %34, i64 noundef %36)
  %38 = load i64, ptr %26, align 8, !tbaa !12
  %39 = lshr i64 %38, 2
  %40 = trunc i64 %39 to i32
  %41 = and i64 %38, 3
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %44, label %43

43:                                               ; preds = %32
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, i32 noundef 49, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

44:                                               ; preds = %32
  %.not41 = icmp eq i32 %40, 0
  br i1 %.not41, label %45, label %.peel.begin

45:                                               ; preds = %44
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 50, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

.peel.begin:                                      ; preds = %44
  %46 = call i32 @unzOpenCurrentFile(ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %47 = add i32 %40, -1
  %48 = call i32 @unzReadCurrentFile(ptr noundef nonnull %14, ptr noundef nonnull %6, i32 noundef 4)
  %49 = icmp eq i32 %48, 4
  %50 = icmp eq i32 %47, 0
  %51 = or i1 %50, %49
  br i1 %51, label %52, label %.loopexit

52:                                               ; preds = %.peel.begin
  %53 = load float, ptr %6, align 4, !tbaa !17
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %54)
  %exitcond.peel.not = icmp eq i32 %40, 1
  br i1 %exitcond.peel.not, label %.loopexit54, label %.peel.next

.peel.next:                                       ; preds = %52
  %56 = call i32 @unzReadCurrentFile(ptr noundef nonnull %14, ptr noundef nonnull %6, i32 noundef 4)
  %57 = icmp eq i32 %56, 4
  %58 = icmp eq i32 %47, 1
  %59 = or i1 %58, %57
  br i1 %59, label %60, label %.loopexit

60:                                               ; preds = %.peel.next
  %61 = load float, ptr %6, align 4, !tbaa !17
  %62 = fpext float %61 to double
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %62)
  %exitcond.peel46.not = icmp eq i32 %40, 2
  br i1 %exitcond.peel46.not, label %.loopexit54, label %.peel.next45

.peel.next45:                                     ; preds = %60
  %64 = call i32 @unzReadCurrentFile(ptr noundef nonnull %14, ptr noundef nonnull %6, i32 noundef 4)
  %65 = icmp eq i32 %64, 4
  %66 = icmp eq i32 %47, 2
  %67 = or i1 %66, %65
  br i1 %67, label %68, label %.loopexit

68:                                               ; preds = %.peel.next45
  %69 = load float, ptr %6, align 4, !tbaa !17
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %70)
  %exitcond.peel48.not = icmp eq i32 %40, 3
  br i1 %exitcond.peel48.not, label %.loopexit54, label %.peel.next47

.peel.next47:                                     ; preds = %68
  %72 = call i32 @unzReadCurrentFile(ptr noundef nonnull %14, ptr noundef nonnull %6, i32 noundef 4)
  %73 = icmp eq i32 %72, 4
  %74 = icmp eq i32 %47, 3
  %75 = or i1 %74, %73
  br i1 %75, label %76, label %.loopexit

76:                                               ; preds = %.peel.next47
  %77 = load float, ptr %6, align 4, !tbaa !17
  %78 = fpext float %77 to double
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %78)
  %exitcond.peel50.not = icmp eq i32 %40, 4
  br i1 %exitcond.peel50.not, label %.loopexit54, label %.peel.next49

.peel.next49:                                     ; preds = %76
  %80 = call i32 @unzReadCurrentFile(ptr noundef nonnull %14, ptr noundef nonnull %6, i32 noundef 4)
  %81 = icmp eq i32 %80, 4
  %82 = icmp eq i32 %47, 4
  %83 = or i1 %82, %81
  br i1 %83, label %84, label %.loopexit

84:                                               ; preds = %.peel.next49
  %85 = load float, ptr %6, align 4, !tbaa !17
  %86 = fpext float %85 to double
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %86)
  %exitcond.peel52.not = icmp eq i32 %40, 5
  br i1 %exitcond.peel52.not, label %.loopexit54, label %.peel.next51

.loopexit54:                                      ; preds = %96, %84, %76, %68, %60, %52
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %89 = call i32 @unzCloseCurrentFile(ptr noundef nonnull %14)
  %90 = call i32 @unzGoToNextFile(ptr noundef nonnull %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 50, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %4) #5
  %91 = add nuw i32 %.03743, 1
  %exitcond56.not = icmp eq i32 %91, %24
  br i1 %exitcond56.not, label %._crit_edge, label %29, !llvm.loop !19

.peel.next51:                                     ; preds = %84, %96
  %.042 = phi i32 [ %97, %96 ], [ 5, %84 ]
  %92 = call i32 @unzReadCurrentFile(ptr noundef nonnull %14, ptr noundef nonnull %6, i32 noundef 4)
  %93 = icmp eq i32 %92, 4
  %94 = icmp eq i32 %.042, %47
  %95 = or i1 %94, %93
  br i1 %95, label %96, label %.loopexit

.loopexit:                                        ; preds = %.peel.next49, %.peel.next47, %.peel.next45, %.peel.next, %.peel.begin, %.peel.next51
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 62, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #6
  unreachable

96:                                               ; preds = %.peel.next51
  %97 = add nuw i32 %.042, 1
  %exitcond.not = icmp eq i32 %97, %40
  br i1 %exitcond.not, label %.loopexit54, label %.peel.next51, !llvm.loop !21

98:                                               ; preds = %16, %._crit_edge, %8
  %.1 = phi i32 [ 0, %8 ], [ -1, %16 ], [ 0, %._crit_edge ]
  ret i32 %.1
}

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

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

declare ptr @unzOpen(ptr noundef) local_unnamed_addr #3

declare i32 @unzGetGlobalInfo(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @unzGetCurrentFileInfo(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @unzOpenCurrentFile(ptr noundef) local_unnamed_addr #3

declare i32 @unzReadCurrentFile(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @unzCloseCurrentFile(ptr noundef) local_unnamed_addr #3

declare i32 @unzGoToNextFile(ptr noundef) local_unnamed_addr #3

declare i32 @unzClose(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress norecurse 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 = { 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 nocallback nofree nosync 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 = { 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 #5 = { nounwind }
attributes #6 = { 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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS17unz_global_info_s", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !11, i64 56}
!13 = !{!"_ZTS15unz_file_info_s", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !14, i64 112, !11, i64 136}
!14 = !{!"_ZTS8tm_unz_s", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!15 = !{!"int", !7, i64 0}
!16 = !{!13, !11, i64 48}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20, !22}
!22 = !{!"llvm.loop.peeled.count", i32 5}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass