; LLVM IR from kuba--/zip :: src (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.zip_t = type { %struct.mz_zip_archive, i32, %struct.zip_entry_t }
%struct.mz_zip_archive = type { i64, i64, i32, i32, i32, i32, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.zip_entry_t = type { i64, ptr, i64, i64, i32, i64, [30 x i8], i64, i16, %struct.mz_zip_writer_add_state, %struct.tdefl_compressor, i32, i64 }
%struct.mz_zip_writer_add_state = type { ptr, i64, i64 }
%struct.tdefl_compressor = type { ptr, ptr, i32, [2 x i32], i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, ptr, i64, i64, [33025 x i8], [3 x [288 x i16]], [3 x [288 x i16]], [3 x [288 x i8]], [65536 x i8], [32768 x i16], [32768 x i16], [85196 x i8] }

@.str.21 = external hidden unnamed_addr constant [4 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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_reader_end(ptr noundef) #2

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

declare i32 @fclose(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_writer_init_from_reader_v2(ptr noundef, ptr noundef, i32 noundef) #2

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

16:                                               ; preds = %4
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = call i64 @strlen(ptr noundef %17) #7
  %19 = icmp ult i64 %18, 1
  br i1 %19, label %20, label %22

20:                                               ; preds = %16, %4
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -22, ptr %21, align 4, !tbaa !9
  br label %114

22:                                               ; preds = %16
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 6, ptr %7, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %25, %22
  %27 = load i32, ptr %7, align 4, !tbaa !9
  %28 = and i32 %27, 15
  %29 = icmp sgt i32 %28, 10
  br i1 %29, label %30, label %32

30:                                               ; preds = %26
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -5, ptr %31, align 4, !tbaa !9
  br label %114

32:                                               ; preds = %26
  %33 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 319608) #8
  store ptr %33, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %38, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -21, ptr %37, align 4, !tbaa !9
  br label %114

38:                                               ; preds = %32
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.zip_t, ptr %40, i32 0, i32 1
  store i32 %39, ptr %41, align 8, !tbaa !12
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.zip_t, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds %struct.zip_entry_t, ptr %43, i32 0, i32 0
  store i64 -1, ptr %44, align 8, !tbaa !20
  %45 = load i8, ptr %8, align 1, !tbaa !11
  %46 = sext i8 %45 to i32
  switch i32 %46, label %110 [
    i32 119, label %47
    i32 114, label %56
    i32 97, label %69
    i32 100, label %69
  ]

47:                                               ; preds = %38
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.zip_t, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call i32 @mz_zip_writer_init_file_v2(ptr noundef %49, ptr noundef %50, i64 noundef 0, i32 noundef 16384)
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %55, label %53

53:                                               ; preds = %47
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -31, ptr %54, align 4, !tbaa !9
  br label %114

55:                                               ; preds = %47
  br label %112

56:                                               ; preds = %38
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.zip_t, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.zip_t, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !12
  %63 = or i32 %62, 2048
  %64 = call i32 @mz_zip_reader_init_file_v2(ptr noundef %58, ptr noundef %59, i32 noundef %63, i64 noundef 0, i64 noundef 0)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %68, label %66

66:                                               ; preds = %56
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -30, ptr %67, align 4, !tbaa !9
  br label %114

68:                                               ; preds = %56
  br label %112

69:                                               ; preds = %38, %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = call noalias ptr @fopen(ptr noundef %70, ptr noundef @.str.21)
  store ptr %71, ptr %11, align 8, !tbaa !5
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %76, label %74

74:                                               ; preds = %69
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -16, ptr %75, align 4, !tbaa !9
  store i32 2, ptr %12, align 4
  br label %107

76:                                               ; preds = %69
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.zip_t, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.zip_t, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !12
  %83 = or i32 %82, 2048
  %84 = call i32 @mz_zip_reader_init_cfile(ptr noundef %78, ptr noundef %79, i64 noundef 0, i32 noundef %83)
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %90, label %86

86:                                               ; preds = %76
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -30, ptr %87, align 4, !tbaa !9
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = call i32 @fclose(ptr noundef %88)
  store i32 2, ptr %12, align 4
  br label %107

90:                                               ; preds = %76
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.zip_t, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = call i32 @mz_zip_writer_init_from_reader_v2(ptr noundef %92, ptr noundef %93, i32 noundef 0)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %103, label %96

96:                                               ; preds = %90
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -32, ptr %97, align 4, !tbaa !9
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = call i32 @fclose(ptr noundef %98)
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.zip_t, ptr %100, i32 0, i32 0
  %102 = call i32 @mz_zip_reader_end(ptr noundef %101)
  store i32 2, ptr %12, align 4
  br label %107

103:                                              ; preds = %90
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.zip_t, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %struct.mz_zip_archive, ptr %105, i32 0, i32 4
  store i32 4, ptr %106, align 8, !tbaa !21
  store i32 0, ptr %12, align 4
  br label %107

107:                                              ; preds = %103, %96, %86, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %108 = load i32, ptr %12, align 4
  switch i32 %108, label %123 [
    i32 0, label %109
    i32 2, label %114
  ]

109:                                              ; preds = %107
  br label %112

110:                                              ; preds = %38
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 -4, ptr %111, align 4, !tbaa !9
  br label %114

112:                                              ; preds = %109, %68, %55
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %113, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %123

114:                                              ; preds = %110, %107, %66, %53, %36, %30, %20
  br label %115

115:                                              ; preds = %114
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %120

118:                                              ; preds = %115
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %119) #6
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %118, %115
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  store ptr null, ptr %5, align 8
  store i32 1, ptr %12, align 4
  br label %123

123:                                              ; preds = %122, %112, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %124 = load ptr, ptr %5, align 8
  ret ptr %124
}

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #5

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 = { 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 = { "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 = { nounwind allocsize(0,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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0,1) }

!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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 112}
!13 = !{!"zip_t", !14, i64 0, !10, i64 112, !16, i64 120}
!14 = !{!"", !15, i64 0, !15, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !15, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!15 = !{!"long", !7, i64 0}
!16 = !{!"zip_entry_t", !15, i64 0, !6, i64 8, !15, i64 16, !15, i64 24, !10, i64 32, !15, i64 40, !7, i64 48, !15, i64 80, !17, i64 88, !18, i64 96, !19, i64 120, !10, i64 319472, !15, i64 319480}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !6, i64 0, !15, i64 8, !15, i64 16}
!19 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !7, i64 20, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !15, i64 184, !15, i64 192, !7, i64 200, !7, i64 33226, !7, i64 34954, !7, i64 36682, !7, i64 37546, !7, i64 103082, !7, i64 168618, !7, i64 234154}
!20 = !{!13, !15, i64 120}
!21 = !{!13, !10, i64 24}


; 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.21 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_reader_end(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_reader_init_file_v2(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_reader_init_cfile(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_writer_init_file_v2(ptr noundef, ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @mz_zip_writer_init_from_reader_v2(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @zip_openwitherror(ptr noundef %0, i32 noundef %1, i8 noundef signext %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 {
  store i32 0, ptr %3, align 4, !tbaa !5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %5

5:                                                ; preds = %4
  %char0 = load i8, ptr %0, align 1
  %6 = icmp eq i8 %char0, 0
  br i1 %6, label %7, label %8

7:                                                ; preds = %5, %4
  store i32 -22, ptr %3, align 4, !tbaa !5
  br label %43

8:                                                ; preds = %5
  %9 = icmp slt i32 %1, 0
  %spec.store.select = select i1 %9, i32 6, i32 %1
  %10 = and i32 %spec.store.select, 15
  %11 = icmp ugt i32 %10, 10
  br i1 %11, label %12, label %13

12:                                               ; preds = %8
  store i32 -5, ptr %3, align 4, !tbaa !5
  br label %43

13:                                               ; preds = %8
  %14 = tail call noalias dereferenceable_or_null(319608) ptr @calloc(i64 noundef 1, i64 noundef 319608) #4
  %.not44 = icmp eq ptr %14, null
  br i1 %.not44, label %15, label %16

15:                                               ; preds = %13
  store i32 -21, ptr %3, align 4, !tbaa !5
  br label %43

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %14, i64 112
  store i32 %spec.store.select, ptr %17, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %14, i64 120
  store i64 -1, ptr %18, align 8, !tbaa !18
  switch i8 %2, label %42 [
    i8 119, label %19
    i8 114, label %22
    i8 97, label %26
    i8 100, label %26
  ]

19:                                               ; preds = %16
  %20 = tail call i32 @mz_zip_writer_init_file_v2(ptr noundef nonnull %14, ptr noundef nonnull %0, i64 noundef 0, i32 noundef 16384)
  %.not49 = icmp eq i32 %20, 0
  br i1 %.not49, label %21, label %43

21:                                               ; preds = %19
  store i32 -31, ptr %3, align 4, !tbaa !5
  br label %.thread

22:                                               ; preds = %16
  %23 = or i32 %spec.store.select, 2048
  %24 = tail call i32 @mz_zip_reader_init_file_v2(ptr noundef nonnull %14, ptr noundef nonnull %0, i32 noundef %23, i64 noundef 0, i64 noundef 0)
  %.not48 = icmp eq i32 %24, 0
  br i1 %.not48, label %25, label %43

25:                                               ; preds = %22
  store i32 -30, ptr %3, align 4, !tbaa !5
  br label %.thread

26:                                               ; preds = %16, %16
  %27 = tail call noalias ptr @fopen(ptr noundef nonnull %0, ptr noundef nonnull @.str.21)
  %.not45 = icmp eq ptr %27, null
  br i1 %.not45, label %28, label %29

28:                                               ; preds = %26
  store i32 -16, ptr %3, align 4, !tbaa !5
  br label %.thread

29:                                               ; preds = %26
  %30 = load i32, ptr %17, align 8, !tbaa !9
  %31 = or i32 %30, 2048
  %32 = tail call i32 @mz_zip_reader_init_cfile(ptr noundef nonnull %14, ptr noundef nonnull %27, i64 noundef 0, i32 noundef %31)
  %.not46 = icmp eq i32 %32, 0
  br i1 %.not46, label %33, label %35

33:                                               ; preds = %29
  store i32 -30, ptr %3, align 4, !tbaa !5
  %34 = tail call i32 @fclose(ptr noundef nonnull %27)
  br label %.thread

35:                                               ; preds = %29
  %36 = tail call i32 @mz_zip_writer_init_from_reader_v2(ptr noundef nonnull %14, ptr noundef nonnull %0, i32 noundef 0)
  %.not47 = icmp eq i32 %36, 0
  br i1 %.not47, label %37, label %40

37:                                               ; preds = %35
  store i32 -32, ptr %3, align 4, !tbaa !5
  %38 = tail call i32 @fclose(ptr noundef nonnull %27)
  %39 = tail call i32 @mz_zip_reader_end(ptr noundef nonnull %14)
  br label %.thread

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %14, i64 24
  store i32 4, ptr %41, align 8, !tbaa !19
  br label %43

42:                                               ; preds = %16
  store i32 -4, ptr %3, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %28, %33, %37, %42, %25, %21
  tail call void @free(ptr noundef nonnull %14) #5
  br label %43

43:                                               ; preds = %15, %12, %7, %40, %.thread, %19, %22
  %.039 = phi ptr [ %14, %40 ], [ %14, %22 ], [ %14, %19 ], [ null, %.thread ], [ null, %7 ], [ null, %12 ], [ null, %15 ]
  ret ptr %.039
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #4 = { nounwind allocsize(0,1) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 112}
!10 = !{!"zip_t", !11, i64 0, !6, i64 112, !14, i64 120}
!11 = !{!"", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !12, 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}
!12 = !{!"long", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"zip_entry_t", !12, i64 0, !13, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !12, i64 40, !7, i64 48, !12, i64 80, !15, i64 88, !16, i64 96, !17, i64 120, !6, i64 319472, !12, i64 319480}
!15 = !{!"short", !7, i64 0}
!16 = !{!"", !13, i64 0, !12, i64 8, !12, i64 16}
!17 = !{!"", !13, i64 0, !13, i64 8, !6, i64 16, !7, i64 20, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !6, i64 168, !13, i64 176, !12, i64 184, !12, i64 192, !7, i64 200, !7, i64 33226, !7, i64 34954, !7, i64 36682, !7, i64 37546, !7, i64 103082, !7, i64 168618, !7, i64 234154}
!18 = !{!10, !12, i64 120}
!19 = !{!10, !6, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass