; LLVM IR from artagnon/phoenixfs :: persist (load_vfr_tree)

; 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.vfile_record = type { [4096 x i8], [20 x ptr], i8 }

@path_buf = external dso_local global [4096 x i8], align 16
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @fclose(ptr noundef) #1

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

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

15:                                               ; preds = %1
  call void (ptr, ...) @die(ptr noundef @.str.3)
  br label %16

16:                                               ; preds = %15, %1
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %104, %16
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = load i16, ptr %6, align 2, !tbaa !11
  %20 = zext i16 %19 to i32
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %22, label %107

22:                                               ; preds = %17
  call void @llvm.memset.p0.i64(ptr align 2 %5, i8 0, i64 2, i1 false)
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = call i64 @fread(ptr noundef %5, i64 noundef 2, i64 noundef 1, ptr noundef %23)
  %25 = icmp ult i64 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %22
  call void (ptr, ...) @die(ptr noundef @.str.4)
  br label %27

27:                                               ; preds = %26, %22
  call void @llvm.memset.p0.i64(ptr align 2 %7, i8 0, i64 2, i1 false)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = call i64 @fread(ptr noundef %7, i64 noundef 2, i64 noundef 1, ptr noundef %28)
  %30 = icmp ult i64 %29, 1
  br i1 %30, label %31, label %32

31:                                               ; preds = %27
  call void (ptr, ...) @die(ptr noundef @.str.5)
  br label %32

32:                                               ; preds = %31, %27
  call void @llvm.memset.p0.i64(ptr align 16 @path_buf, i8 0, i64 4096, i1 false)
  %33 = load i16, ptr %7, align 2, !tbaa !11
  %34 = zext i16 %33 to i64
  %35 = mul i64 %34, 1
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = call i64 @fread(ptr noundef @path_buf, i64 noundef %35, i64 noundef 1, ptr noundef %36)
  %38 = icmp ult i64 %37, 1
  br i1 %38, label %39, label %40

39:                                               ; preds = %32
  call void (ptr, ...) @die(ptr noundef @.str.6)
  br label %40

40:                                               ; preds = %39, %32
  call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 1, i1 false)
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = call i64 @fread(ptr noundef %8, i64 noundef 1, i64 noundef 1, ptr noundef %41)
  %43 = icmp ult i64 %42, 1
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  call void (ptr, ...) @die(ptr noundef @.str.7)
  br label %45

45:                                               ; preds = %44, %40
  %46 = call ptr @make_vfr(ptr noundef @path_buf)
  store ptr %46, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = load i16, ptr %5, align 2, !tbaa !11
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call ptr @insert(ptr noundef %47, i16 noundef zeroext %48, ptr noundef %49)
  store ptr %50, ptr %3, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %94, %45
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i8, ptr %8, align 1, !tbaa !13
  %54 = zext i8 %53 to i32
  %55 = icmp slt i32 %52, %54
  br i1 %55, label %56, label %97

56:                                               ; preds = %51
  %57 = call noalias ptr @malloc(i64 noundef 4136) #7
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.vfile_record, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [20 x ptr], ptr %59, i64 0, i64 %61
  store ptr %57, ptr %62, align 8, !tbaa !5
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vfile_record, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [20 x ptr], ptr %64, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %68, i8 0, i64 4136, i1 false)
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.vfile_record, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [20 x ptr], ptr %70, i64 0, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = call i64 @fread(ptr noundef %74, i64 noundef 4136, i64 noundef 1, ptr noundef %75)
  %77 = icmp ult i64 %76, 1
  br i1 %77, label %78, label %80

78:                                               ; preds = %56
  %79 = load i32, ptr %10, align 4, !tbaa !9
  call void (ptr, ...) @die(ptr noundef @.str.8, i32 noundef %79)
  br label %80

80:                                               ; preds = %78, %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %81 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %81, ptr %11, align 8, !tbaa !5
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %93

84:                                               ; preds = %80
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.vfile_record, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds [4096 x i8], ptr %87, i64 0, i64 0
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.9, i32 noundef 212, ptr noundef %88, i32 noundef %89) #6
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = call i32 @fclose(ptr noundef %91)
  br label %93

93:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %10, align 4, !tbaa !9
  br label %51, !llvm.loop !14

97:                                               ; preds = %51
  %98 = load i8, ptr %8, align 1, !tbaa !13
  %99 = zext i8 %98 to i32
  %100 = sub nsw i32 %99, 1
  %101 = trunc i32 %100 to i8
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.vfile_record, ptr %102, i32 0, i32 2
  store i8 %101, ptr %103, align 8, !tbaa !16
  br label %104

104:                                              ; preds = %97
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %9, align 4, !tbaa !9
  br label %17, !llvm.loop !18

107:                                              ; preds = %17
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr %108
}

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

declare ptr @make_vfr(ptr noundef) #1

declare ptr @insert(ptr noundef, i16 noundef zeroext, ptr noundef) #1

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

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 "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 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind 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 = { nounwind 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 = !{!"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 = !{!"short", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !7, i64 4256}
!17 = !{!"vfile_record", !7, i64 0, !7, i64 4096, !7, i64 4256}
!18 = distinct !{!18, !15}


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

@path_buf = external dso_local global [4096 x i8], align 16
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 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: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @load_vfr_tree(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = alloca i16, align 2
  %3 = alloca i16, align 2
  %4 = alloca i16, align 2
  %5 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  store i16 0, ptr %3, align 2
  %6 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 2, i64 noundef 1, ptr noundef %0)
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.3) #6
  br label %9

9:                                                ; preds = %8, %1
  %10 = load i16, ptr %3, align 2, !tbaa !5
  %11 = zext i16 %10 to i32
  %.not35 = icmp eq i16 %10, 0
  br i1 %.not35, label %._crit_edge34, label %.lr.ph33

.lr.ph33:                                         ; preds = %9, %._crit_edge
  %.031 = phi ptr [ %32, %._crit_edge ], [ null, %9 ]
  %.02630 = phi i32 [ %52, %._crit_edge ], [ 0, %9 ]
  store i16 0, ptr %2, align 2
  %12 = call i64 @fread(ptr noundef nonnull %2, i64 noundef 2, i64 noundef 1, ptr noundef %0)
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %.lr.ph33
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.4) #6
  br label %15

15:                                               ; preds = %14, %.lr.ph33
  store i16 0, ptr %4, align 2
  %16 = call i64 @fread(ptr noundef nonnull %4, i64 noundef 2, i64 noundef 1, ptr noundef %0)
  %17 = icmp eq i64 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.5) #6
  br label %19

19:                                               ; preds = %18, %15
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4096) @path_buf, i8 0, i64 4096, i1 false)
  %20 = load i16, ptr %4, align 2, !tbaa !5
  %21 = zext i16 %20 to i64
  %22 = tail call i64 @fread(ptr noundef nonnull @path_buf, i64 noundef %21, i64 noundef 1, ptr noundef %0)
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %19
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.6) #6
  br label %25

25:                                               ; preds = %24, %19
  store i8 0, ptr %5, align 1
  %26 = call i64 @fread(ptr noundef nonnull %5, i64 noundef 1, i64 noundef 1, ptr noundef %0)
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.7) #6
  br label %29

29:                                               ; preds = %28, %25
  %30 = tail call ptr @make_vfr(ptr noundef nonnull @path_buf) #6
  %31 = load i16, ptr %2, align 2, !tbaa !5
  %32 = tail call ptr @insert(ptr noundef %.031, i16 noundef zeroext %31, ptr noundef %30) #6
  %33 = load i8, ptr %5, align 1, !tbaa !9
  %.not36 = icmp eq i8 %33, 0
  br i1 %.not36, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %29
  %34 = getelementptr inbounds i8, ptr %30, i64 4096
  %wide.trip.count = zext i8 %33 to i64
  br label %35

35:                                               ; preds = %.lr.ph, %49
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %49 ]
  %36 = tail call noalias dereferenceable_or_null(4136) ptr @malloc(i64 noundef 4136) #7
  %37 = getelementptr inbounds [20 x ptr], ptr %34, i64 0, i64 %indvars.iv
  store ptr %36, ptr %37, align 8, !tbaa !10
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(4136) %36, i8 0, i64 4136, i1 false)
  %38 = load ptr, ptr %37, align 8, !tbaa !10
  %39 = tail call i64 @fread(ptr noundef %38, i64 noundef 4136, i64 noundef 1, ptr noundef %0)
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %35
  %42 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void (ptr, ...) @die(ptr noundef nonnull @.str.8, i32 noundef %42) #6
  br label %43

43:                                               ; preds = %41, %35
  %44 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %44, null
  br i1 %.not, label %49, label %45

45:                                               ; preds = %43
  %46 = trunc nuw nsw i64 %indvars.iv to i32
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %44, ptr noundef nonnull @.str.9, i32 noundef 212, ptr noundef nonnull %30, i32 noundef %46) #6
  %48 = tail call i32 @fclose(ptr noundef nonnull %44)
  br label %49

49:                                               ; preds = %45, %43
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %35, !llvm.loop !12

._crit_edge:                                      ; preds = %49, %29
  %50 = add i8 %33, -1
  %51 = getelementptr inbounds i8, ptr %30, i64 4256
  store i8 %50, ptr %51, align 8, !tbaa !14
  %52 = add nuw nsw i32 %.02630, 1
  %exitcond38.not = icmp eq i32 %52, %11
  br i1 %exitcond38.not, label %._crit_edge34, label %.lr.ph33, !llvm.loop !16

._crit_edge34:                                    ; preds = %._crit_edge, %9
  %.0.lcssa = phi ptr [ null, %9 ], [ %32, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #6
  ret ptr %.0.lcssa
}

; 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: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

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

declare ptr @make_vfr(ptr noundef) local_unnamed_addr #4

declare ptr @insert(ptr noundef, i16 noundef zeroext, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) 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 #6 = { nounwind }
attributes #7 = { nounwind 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !7, i64 4256}
!15 = !{!"vfile_record", !7, i64 0, !7, i64 4096, !7, i64 4256}
!16 = distinct !{!16, !13}


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