; LLVM IR from artagnon/phoenixfs :: pack (map_pack_idx)

; 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.packed_git = type { [4096 x i8], [4096 x i8], ptr, ptr, i64, i64, i32 }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }
%struct.pack_idx_header = type { i32, i32 }

@packroot = external hidden global %struct.packed_git, align 8
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 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: inlinehint nounwind uwtable
declare hidden i32 @__bswap_32(i32 noundef) #1

declare i32 @fclose(ptr noundef) #2

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

declare void @die(ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

; Function Attrs: nounwind uwtable
define dso_local i32 @map_pack_idx(ptr noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.stat, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call i32 @fileno(ptr noundef %16) #6
  store i32 %17, ptr %4, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %1
  %20 = call ptr @__errno_location() #7
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = sub nsw i32 0, %21
  store i32 %22, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %127

23:                                               ; preds = %1
  %24 = load i32, ptr %4, align 4, !tbaa !9
  %25 = call i32 @fstat(i32 noundef %24, ptr noundef %11) #6
  %26 = getelementptr inbounds %struct.stat, ptr %11, i32 0, i32 8
  %27 = load i64, ptr %26, align 8, !tbaa !11
  store i64 %27, ptr %6, align 8, !tbaa !15
  %28 = load i64, ptr %6, align 8, !tbaa !15
  %29 = icmp ult i64 %28, 1024
  br i1 %29, label %30, label %33

30:                                               ; preds = %23
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = call i32 @close(i32 noundef %31)
  call void (ptr, ...) @die(ptr noundef @.str.17)
  br label %33

33:                                               ; preds = %30, %23
  %34 = load i64, ptr %6, align 8, !tbaa !15
  %35 = load i32, ptr %4, align 4, !tbaa !9
  %36 = call ptr @mmap(ptr noundef null, i64 noundef %34, i32 noundef 1, i32 noundef 2, i32 noundef %35, i64 noundef 0) #6
  store ptr %36, ptr %5, align 8, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !9
  %38 = call i32 @close(i32 noundef %37)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = call i32 @fclose(ptr noundef %39)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %41, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.pack_idx_header, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = call i32 @__bswap_32(i32 noundef -9154717)
  %46 = icmp ne i32 %44, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %33
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load i64, ptr %6, align 8, !tbaa !15
  %50 = call i32 @munmap(ptr noundef %48, i64 noundef %49) #6
  call void (ptr, ...) @die(ptr noundef @.str.18)
  br label %62

51:                                               ; preds = %33
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.pack_idx_header, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !18
  %55 = call i32 @__bswap_32(i32 noundef 2)
  %56 = icmp ne i32 %54, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %51
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load i64, ptr %6, align 8, !tbaa !15
  %60 = call i32 @munmap(ptr noundef %58, i64 noundef %59) #6
  call void (ptr, ...) @die(ptr noundef @.str.19)
  br label %61

61:                                               ; preds = %57, %51
  br label %62

62:                                               ; preds = %61, %47
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds i32, ptr %63, i64 2
  store ptr %64, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %84, %62
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp ult i32 %66, 256
  br i1 %67, label %68, label %87

68:                                               ; preds = %65
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr %69, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = call i32 @__bswap_32(i32 noundef %73)
  store i32 %74, ptr %7, align 4, !tbaa !9
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = load i32, ptr %8, align 4, !tbaa !9
  %77 = icmp ult i32 %75, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %68
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i64, ptr %6, align 8, !tbaa !15
  %81 = call i32 @munmap(ptr noundef %79, i64 noundef %80) #6
  call void (ptr, ...) @die(ptr noundef @.str.20)
  br label %82

82:                                               ; preds = %78, %68
  %83 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %83, ptr %8, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %82
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !9
  br label %65, !llvm.loop !19

87:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = mul i32 %88, 24
  %90 = add i32 1032, %89
  %91 = zext i32 %90 to i64
  store i64 %91, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %92 = load i64, ptr %14, align 8, !tbaa !15
  store i64 %92, ptr %15, align 8, !tbaa !15
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %102

95:                                               ; preds = %87
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = sub i32 %96, 1
  %98 = mul i32 %97, 8
  %99 = zext i32 %98 to i64
  %100 = load i64, ptr %15, align 8, !tbaa !15
  %101 = add i64 %100, %99
  store i64 %101, ptr %15, align 8, !tbaa !15
  br label %102

102:                                              ; preds = %95, %87
  %103 = load i64, ptr %6, align 8, !tbaa !15
  %104 = load i64, ptr %14, align 8, !tbaa !15
  %105 = icmp ult i64 %103, %104
  br i1 %105, label %110, label %106

106:                                              ; preds = %102
  %107 = load i64, ptr %6, align 8, !tbaa !15
  %108 = load i64, ptr %15, align 8, !tbaa !15
  %109 = icmp ugt i64 %107, %108
  br i1 %109, label %110, label %114

110:                                              ; preds = %106, %102
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load i64, ptr %6, align 8, !tbaa !15
  %113 = call i32 @munmap(ptr noundef %111, i64 noundef %112) #6
  call void (ptr, ...) @die(ptr noundef @.str.21)
  br label %114

114:                                              ; preds = %110, %106
  %115 = load i64, ptr %6, align 8, !tbaa !15
  %116 = load i64, ptr %14, align 8, !tbaa !15
  %117 = icmp ne i64 %115, %116
  br i1 %117, label %118, label %123

118:                                              ; preds = %114
  br i1 false, label %119, label %123

119:                                              ; preds = %118
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load i64, ptr %6, align 8, !tbaa !15
  %122 = call i32 @munmap(ptr noundef %120, i64 noundef %121) #6
  call void (ptr, ...) @die(ptr noundef @.str.22)
  br label %123

123:                                              ; preds = %119, %118, %114
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %124, ptr getelementptr inbounds (%struct.packed_git, ptr @packroot, i32 0, i32 3), align 8, !tbaa !21
  %125 = load i64, ptr %6, align 8, !tbaa !15
  store i64 %125, ptr getelementptr inbounds (%struct.packed_git, ptr @packroot, i32 0, i32 5), align 8, !tbaa !23
  %126 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %126, ptr getelementptr inbounds (%struct.packed_git, ptr @packroot, i32 0, i32 6), align 8, !tbaa !24
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %127

127:                                              ; preds = %123, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %128 = load i32, ptr %2, align 4
  ret i32 %128
}

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #5

; Function Attrs: nounwind
declare i32 @fstat(i32 noundef, ptr noundef) #5

declare i32 @close(i32 noundef) #2

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) #5

; Function Attrs: nounwind
declare i32 @munmap(ptr noundef, i64 noundef) #5

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

!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, !13, i64 48}
!12 = !{!"stat", !13, i64 0, !13, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !14, i64 88, !14, i64 104, !7, i64 120}
!13 = !{!"long", !7, i64 0}
!14 = !{!"timespec", !13, i64 0, !13, i64 8}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"pack_idx_header", !10, i64 0, !10, i64 4}
!18 = !{!17, !10, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !6, i64 8200}
!22 = !{!"packed_git", !7, i64 0, !7, i64 4096, !6, i64 8192, !6, i64 8200, !13, i64 8208, !13, i64 8216, !10, i64 8224}
!23 = !{!22, !13, i64 8216}
!24 = !{!22, !10, i64 8224}


; 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.packed_git = type { [4096 x i8], [4096 x i8], ptr, ptr, i64, i64, i32 }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@packroot = external hidden local_unnamed_addr global %struct.packed_git, align 8
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 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: inlinehint nounwind uwtable
declare hidden i32 @__bswap_32(i32 noundef) local_unnamed_addr #1

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

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

declare void @die(ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2147483647, -2147483648) i32 @map_pack_idx(ptr nocapture noundef %0) local_unnamed_addr #5 {
  %2 = alloca %struct.stat, align 8
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %2) #7
  %3 = tail call i32 @fileno(ptr noundef %0) #7
  %4 = icmp slt i32 %3, 0
  br i1 %4, label %5, label %9

5:                                                ; preds = %1
  %6 = tail call ptr @__errno_location() #8
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = sub nsw i32 0, %7
  br label %50

9:                                                ; preds = %1
  %10 = call i32 @fstat(i32 noundef %3, ptr noundef nonnull %2) #7
  %11 = getelementptr inbounds i8, ptr %2, i64 48
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = icmp ult i64 %12, 1024
  br i1 %13, label %14, label %16

14:                                               ; preds = %9
  %15 = tail call i32 @close(i32 noundef %3) #7
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.17) #7
  br label %16

16:                                               ; preds = %14, %9
  %17 = tail call ptr @mmap(ptr noundef null, i64 noundef %12, i32 noundef 1, i32 noundef 2, i32 noundef %3, i64 noundef 0) #7
  %18 = tail call i32 @close(i32 noundef %3) #7
  %19 = tail call i32 @fclose(ptr noundef %0)
  %20 = load i32, ptr %17, align 4, !tbaa !13
  %21 = tail call i32 @__bswap_32(i32 noundef -9154717)
  %.not = icmp eq i32 %20, %21
  br i1 %.not, label %22, label %.sink.split

22:                                               ; preds = %16
  %23 = getelementptr inbounds i8, ptr %17, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = tail call i32 @__bswap_32(i32 noundef 2)
  %.not46 = icmp eq i32 %24, %25
  br i1 %.not46, label %27, label %.sink.split

.sink.split:                                      ; preds = %22, %16
  %.str.19.sink = phi ptr [ @.str.18, %16 ], [ @.str.19, %22 ]
  %26 = tail call i32 @munmap(ptr noundef nonnull %17, i64 noundef %12) #7
  tail call void (ptr, ...) @die(ptr noundef nonnull %.str.19.sink) #7
  br label %27

27:                                               ; preds = %.sink.split, %22
  %28 = getelementptr inbounds i8, ptr %17, i64 8
  br label %29

29:                                               ; preds = %27, %36
  %indvars.iv = phi i64 [ 0, %27 ], [ %indvars.iv.next, %36 ]
  %.04249 = phi i32 [ 0, %27 ], [ %32, %36 ]
  %30 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = tail call i32 @__bswap_32(i32 noundef %31)
  %33 = icmp ult i32 %32, %.04249
  br i1 %33, label %34, label %36

34:                                               ; preds = %29
  %35 = tail call i32 @munmap(ptr noundef nonnull %17, i64 noundef %12) #7
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.20) #7
  br label %36

36:                                               ; preds = %34, %29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %37, label %29, !llvm.loop !16

37:                                               ; preds = %36
  %38 = mul i32 %32, 24
  %39 = add i32 %38, 1032
  %40 = zext i32 %39 to i64
  %.not47 = icmp eq i32 %32, 0
  %41 = shl i32 %32, 3
  %42 = add i32 %41, -8
  %43 = zext i32 %42 to i64
  %44 = add nuw nsw i64 %40, %43
  %.0 = select i1 %.not47, i64 1032, i64 %44
  %45 = icmp ult i64 %12, %40
  %46 = icmp ugt i64 %12, %.0
  %or.cond = select i1 %45, i1 true, i1 %46
  br i1 %or.cond, label %47, label %49

47:                                               ; preds = %37
  %48 = tail call i32 @munmap(ptr noundef nonnull %17, i64 noundef %12) #7
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.21) #7
  br label %49

49:                                               ; preds = %37, %47
  store ptr %17, ptr getelementptr inbounds (i8, ptr @packroot, i64 8200), align 8, !tbaa !18
  store i64 %12, ptr getelementptr inbounds (i8, ptr @packroot, i64 8216), align 8, !tbaa !21
  store i32 %32, ptr getelementptr inbounds (i8, ptr @packroot, i64 8224), align 8, !tbaa !22
  br label %50

50:                                               ; preds = %49, %5
  %.041 = phi i32 [ %8, %5 ], [ 0, %49 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %2) #7
  ret i32 %.041
}

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

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

declare i32 @close(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i32 @munmap(ptr noundef, i64 noundef) local_unnamed_addr #6

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

!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, !11, i64 48}
!10 = !{!"stat", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 88, !12, i64 104, !7, i64 120}
!11 = !{!"long", !7, i64 0}
!12 = !{!"timespec", !11, i64 0, !11, i64 8}
!13 = !{!14, !6, i64 0}
!14 = !{!"pack_idx_header", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !20, i64 8200}
!19 = !{!"packed_git", !7, i64 0, !7, i64 4096, !20, i64 8192, !20, i64 8200, !11, i64 8208, !11, i64 8216, !6, i64 8224}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!19, !11, i64 8216}
!22 = !{!19, !6, i64 8224}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass