; LLVM IR from bitbank2/AnimatedGIF :: examples/gif_from_spi_flash (ff)

; 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.DIR = type { %struct.FFOBJID, i32, i32, i32, ptr, [12 x i8] }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i32 }
%struct.FATFS = type { i8, i8, i8, i8, i8, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, [512 x i8] }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @find_volume(ptr noundef, ptr noundef, i8 noundef zeroext) #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
declare hidden i32 @follow_path(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @dir_register(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @st_dword(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @st_clust(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @remove_chain(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @mem_set(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @mem_cpy(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @create_chain(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @sync_fs(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @f_mkdir(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %struct.DIR, align 8
  %5 = alloca %struct.FFOBJID, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  %10 = call i32 @find_volume(ptr noundef %2, ptr noundef %6, i8 noundef zeroext 2)
  store i32 %10, ptr %3, align 4, !tbaa !9
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %121

13:                                               ; preds = %1
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.DIR, ptr %4, i32 0, i32 0
  %16 = getelementptr inbounds %struct.FFOBJID, ptr %15, i32 0, i32 0
  store ptr %14, ptr %16, align 8, !tbaa !11
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call i32 @follow_path(ptr noundef %4, ptr noundef %17)
  store i32 %18, ptr %3, align 4, !tbaa !9
  %19 = load i32, ptr %3, align 4, !tbaa !9
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %13
  store i32 8, ptr %3, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %21, %13
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = icmp eq i32 %23, 4
  br i1 %24, label %25, label %120

25:                                               ; preds = %22
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.FFOBJID, ptr %5, i32 0, i32 0
  store ptr %26, ptr %27, align 8, !tbaa !15
  %28 = call i32 @create_chain(ptr noundef %5, i32 noundef 0)
  store i32 %28, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !9
  %29 = load i32, ptr %7, align 4, !tbaa !9
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %25
  store i32 7, ptr %3, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %31, %25
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 2, ptr %3, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %35, %32
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %39, %36
  store i32 1310785536, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %3, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %93

43:                                               ; preds = %40
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = call i32 @dir_clear(ptr noundef %44, i32 noundef %45)
  store i32 %46, ptr %3, align 4, !tbaa !9
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %92

49:                                               ; preds = %43
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.FATFS, ptr %50, i32 0, i32 17
  %52 = getelementptr inbounds [512 x i8], ptr %51, i64 0, i64 0
  %53 = getelementptr inbounds i8, ptr %52, i64 0
  call void @mem_set(ptr noundef %53, i32 noundef 32, i32 noundef 11)
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.FATFS, ptr %54, i32 0, i32 17
  %56 = getelementptr inbounds [512 x i8], ptr %55, i64 0, i64 0
  store i8 46, ptr %56, align 4, !tbaa !16
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.FATFS, ptr %57, i32 0, i32 17
  %59 = getelementptr inbounds [512 x i8], ptr %58, i64 0, i64 11
  store i8 16, ptr %59, align 1, !tbaa !16
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.FATFS, ptr %60, i32 0, i32 17
  %62 = getelementptr inbounds [512 x i8], ptr %61, i64 0, i64 0
  %63 = getelementptr inbounds i8, ptr %62, i64 22
  %64 = load i32, ptr %9, align 4, !tbaa !9
  call void @st_dword(ptr noundef %63, i32 noundef %64)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.FATFS, ptr %66, i32 0, i32 17
  %68 = getelementptr inbounds [512 x i8], ptr %67, i64 0, i64 0
  %69 = load i32, ptr %7, align 4, !tbaa !9
  call void @st_clust(ptr noundef %65, ptr noundef %68, i32 noundef %69)
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.FATFS, ptr %70, i32 0, i32 17
  %72 = getelementptr inbounds [512 x i8], ptr %71, i64 0, i64 0
  %73 = getelementptr inbounds i8, ptr %72, i64 32
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.FATFS, ptr %74, i32 0, i32 17
  %76 = getelementptr inbounds [512 x i8], ptr %75, i64 0, i64 0
  call void @mem_cpy(ptr noundef %73, ptr noundef %76, i32 noundef 32)
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.FATFS, ptr %77, i32 0, i32 17
  %79 = getelementptr inbounds [512 x i8], ptr %78, i64 0, i64 33
  store i8 46, ptr %79, align 1, !tbaa !16
  %80 = getelementptr inbounds %struct.DIR, ptr %4, i32 0, i32 0
  %81 = getelementptr inbounds %struct.FFOBJID, ptr %80, i32 0, i32 4
  %82 = load i32, ptr %81, align 4, !tbaa !17
  store i32 %82, ptr %8, align 4, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.FATFS, ptr %84, i32 0, i32 17
  %86 = getelementptr inbounds [512 x i8], ptr %85, i64 0, i64 0
  %87 = getelementptr inbounds i8, ptr %86, i64 32
  %88 = load i32, ptr %8, align 4, !tbaa !9
  call void @st_clust(ptr noundef %83, ptr noundef %87, i32 noundef %88)
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.FATFS, ptr %89, i32 0, i32 3
  store i8 1, ptr %90, align 1, !tbaa !18
  %91 = call i32 @dir_register(ptr noundef %4)
  store i32 %91, ptr %3, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %49, %43
  br label %93

93:                                               ; preds = %92, %40
  %94 = load i32, ptr %3, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %116

96:                                               ; preds = %93
  %97 = getelementptr inbounds %struct.DIR, ptr %4, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !20
  %99 = getelementptr inbounds i8, ptr %98, i64 22
  %100 = load i32, ptr %9, align 4, !tbaa !9
  call void @st_dword(ptr noundef %99, i32 noundef %100)
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.DIR, ptr %4, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !20
  %104 = load i32, ptr %7, align 4, !tbaa !9
  call void @st_clust(ptr noundef %101, ptr noundef %103, i32 noundef %104)
  %105 = getelementptr inbounds %struct.DIR, ptr %4, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !20
  %107 = getelementptr inbounds i8, ptr %106, i64 11
  store i8 16, ptr %107, align 1, !tbaa !16
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.FATFS, ptr %108, i32 0, i32 3
  store i8 1, ptr %109, align 1, !tbaa !18
  %110 = load i32, ptr %3, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %115

112:                                              ; preds = %96
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = call i32 @sync_fs(ptr noundef %113)
  store i32 %114, ptr %3, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %112, %96
  br label %119

116:                                              ; preds = %93
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = call i32 @remove_chain(ptr noundef %5, i32 noundef %117, i32 noundef 0)
  br label %119

119:                                              ; preds = %116, %115
  br label %120

120:                                              ; preds = %119, %22
  br label %121

121:                                              ; preds = %120, %1
  %122 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  ret i32 %122
}

; Function Attrs: nounwind uwtable
declare hidden i32 @dir_clear(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !13, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !7, i64 48}
!13 = !{!"", !6, i64 0, !14, i64 8, !7, i64 10, !7, i64 11, !10, i64 12, !10, i64 16}
!14 = !{!"short", !7, i64 0}
!15 = !{!13, !6, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!12, !10, i64 12}
!18 = !{!19, !7, i64 3}
!19 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !14, i64 6, !14, i64 8, !14, i64 10, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48}
!20 = !{!12, !6, i64 40}


; 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.DIR = type { %struct.FFOBJID, i32, i32, i32, ptr, [12 x i8] }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i32 }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @find_volume(ptr noundef, ptr noundef, i8 noundef zeroext) 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
declare hidden i32 @follow_path(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @st_dword(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @st_clust(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @mem_set(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @mem_cpy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @f_mkdir(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.DIR, align 8
  %4 = alloca %struct.FFOBJID, align 8
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #2
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #2
  %6 = call i32 @find_volume(ptr noundef nonnull %2, ptr noundef nonnull %5, i8 noundef zeroext 2)
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %58

8:                                                ; preds = %1
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %9, ptr %3, align 8, !tbaa !9
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = call i32 @follow_path(ptr noundef nonnull %3, ptr noundef %10)
  %12 = icmp eq i32 %11, 0
  %spec.store.select = select i1 %12, i32 8, i32 %11
  %13 = icmp eq i32 %spec.store.select, 4
  br i1 %13, label %14, label %58

14:                                               ; preds = %8
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %15, ptr %4, align 8, !tbaa !14
  %16 = call i32 @create_chain(ptr noundef nonnull %4, i32 noundef 0)
  %17 = icmp eq i32 %16, 0
  %spec.store.select1 = select i1 %17, i32 7, i32 0
  %18 = icmp eq i32 %16, 1
  %spec.store.select2 = select i1 %18, i32 2, i32 %spec.store.select1
  %19 = icmp eq i32 %16, -1
  %spec.store.select3 = select i1 %19, i32 1, i32 %spec.store.select2
  %20 = icmp eq i32 %spec.store.select3, 0
  br i1 %20, label %21, label %.thread

21:                                               ; preds = %14
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i32 @dir_clear(ptr noundef %22, i32 noundef %16)
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %.thread

25:                                               ; preds = %21
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 48
  call void @mem_set(ptr noundef nonnull %27, i32 noundef 32, i32 noundef 11)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 48
  store i8 46, ptr %29, align 4, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %28, i64 59
  store i8 16, ptr %30, align 1, !tbaa !15
  %31 = getelementptr inbounds i8, ptr %28, i64 70
  call void @st_dword(ptr noundef nonnull %31, i32 noundef 1310785536)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 48
  call void @st_clust(ptr noundef %32, ptr noundef nonnull %33, i32 noundef %16)
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 48
  %36 = getelementptr inbounds i8, ptr %34, i64 80
  call void @mem_cpy(ptr noundef nonnull %36, ptr noundef nonnull %35, i32 noundef 32)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 81
  store i8 46, ptr %38, align 1, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %3, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !16
  %41 = getelementptr inbounds i8, ptr %37, i64 80
  call void @st_clust(ptr noundef %37, ptr noundef nonnull %41, i32 noundef %40)
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 3
  store i8 1, ptr %43, align 1, !tbaa !17
  %44 = call i32 @dir_register(ptr noundef nonnull %3)
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %.thread

46:                                               ; preds = %25
  %47 = getelementptr inbounds i8, ptr %3, i64 40
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %48, i64 22
  call void @st_dword(ptr noundef nonnull %49, i32 noundef 1310785536)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %47, align 8, !tbaa !19
  call void @st_clust(ptr noundef %50, ptr noundef %51, i32 noundef %16)
  %52 = load ptr, ptr %47, align 8, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %52, i64 11
  store i8 16, ptr %53, align 1, !tbaa !15
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 3
  store i8 1, ptr %55, align 1, !tbaa !17
  %56 = call i32 @sync_fs(ptr noundef %54)
  br label %58

.thread:                                          ; preds = %14, %21, %25
  %.024 = phi i32 [ %44, %25 ], [ %spec.store.select3, %14 ], [ %23, %21 ]
  %57 = call i32 @remove_chain(ptr noundef nonnull %4, i32 noundef %16, i32 noundef 0)
  br label %58

58:                                               ; preds = %8, %46, %.thread, %1
  %.1 = phi i32 [ %56, %46 ], [ %.024, %.thread ], [ %spec.store.select, %8 ], [ %6, %1 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #2
  ret i32 %.1
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"", !11, i64 0, !13, i64 24, !13, i64 28, !13, i64 32, !6, i64 40, !7, i64 48}
!11 = !{!"", !6, i64 0, !12, i64 8, !7, i64 10, !7, i64 11, !13, i64 12, !13, i64 16}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!11, !6, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !13, i64 12}
!17 = !{!18, !7, i64 3}
!18 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !12, i64 6, !12, i64 8, !12, i64 10, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !7, i64 48}
!19 = !{!10, !6, i64 40}


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