; 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 @get_ldnumber(ptr noundef) #1

; 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 i32 @ld_clust(ptr noundef, ptr 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 @move_window(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @clst2sect(ptr 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 @sync_fs(ptr noundef) #1

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

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

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

24:                                               ; preds = %16
  %25 = getelementptr inbounds %struct.DIR, ptr %6, i32 0, i32 5
  %26 = getelementptr inbounds [12 x i8], ptr %25, i64 0, i64 11
  %27 = load i8, ptr %26, align 1, !tbaa !15
  %28 = zext i8 %27 to i32
  %29 = and i32 %28, 160
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %24
  store i32 6, ptr %5, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %31, %24, %16
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %158

35:                                               ; preds = %32
  %36 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %37 = getelementptr inbounds %struct.DIR, ptr %6, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  call void @mem_cpy(ptr noundef %36, ptr noundef %38, i32 noundef 32)
  call void @mem_cpy(ptr noundef %7, ptr noundef %6, i32 noundef 64)
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call i32 @follow_path(ptr noundef %7, ptr noundef %39)
  store i32 %40, ptr %5, align 4, !tbaa !9
  %41 = load i32, ptr %5, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %61

43:                                               ; preds = %35
  %44 = getelementptr inbounds %struct.DIR, ptr %7, i32 0, i32 0
  %45 = getelementptr inbounds %struct.FFOBJID, ptr %44, i32 0, i32 4
  %46 = load i32, ptr %45, align 4, !tbaa !17
  %47 = getelementptr inbounds %struct.DIR, ptr %6, i32 0, i32 0
  %48 = getelementptr inbounds %struct.FFOBJID, ptr %47, i32 0, i32 4
  %49 = load i32, ptr %48, align 4, !tbaa !17
  %50 = icmp eq i32 %46, %49
  br i1 %50, label %51, label %57

51:                                               ; preds = %43
  %52 = getelementptr inbounds %struct.DIR, ptr %7, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds %struct.DIR, ptr %6, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !18
  %56 = icmp eq i32 %53, %55
  br label %57

57:                                               ; preds = %51, %43
  %58 = phi i1 [ false, %43 ], [ %56, %51 ]
  %59 = zext i1 %58 to i64
  %60 = select i1 %58, i32 4, i32 8
  store i32 %60, ptr %5, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %57, %35
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = icmp eq i32 %62, 4
  br i1 %63, label %64, label %146

64:                                               ; preds = %61
  %65 = call i32 @dir_register(ptr noundef %7)
  store i32 %65, ptr %5, align 4, !tbaa !9
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %145

68:                                               ; preds = %64
  %69 = getelementptr inbounds %struct.DIR, ptr %7, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !16
  store ptr %70, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 13
  %73 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %74 = getelementptr inbounds i8, ptr %73, i64 13
  call void @mem_cpy(ptr noundef %72, ptr noundef %74, i32 noundef 19)
  %75 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 11
  %76 = load i8, ptr %75, align 1, !tbaa !15
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 11
  store i8 %76, ptr %78, align 1, !tbaa !15
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 11
  %81 = load i8, ptr %80, align 1, !tbaa !15
  %82 = zext i8 %81 to i32
  %83 = and i32 %82, 16
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %92, label %85

85:                                               ; preds = %68
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 11
  %88 = load i8, ptr %87, align 1, !tbaa !15
  %89 = zext i8 %88 to i32
  %90 = or i32 %89, 32
  %91 = trunc i32 %90 to i8
  store i8 %91, ptr %87, align 1, !tbaa !15
  br label %92

92:                                               ; preds = %85, %68
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.FATFS, ptr %93, i32 0, i32 3
  store i8 1, ptr %94, align 1, !tbaa !19
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 11
  %97 = load i8, ptr %96, align 1, !tbaa !15
  %98 = zext i8 %97 to i32
  %99 = and i32 %98, 16
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %144

101:                                              ; preds = %92
  %102 = getelementptr inbounds %struct.DIR, ptr %6, i32 0, i32 0
  %103 = getelementptr inbounds %struct.FFOBJID, ptr %102, i32 0, i32 4
  %104 = load i32, ptr %103, align 4, !tbaa !17
  %105 = getelementptr inbounds %struct.DIR, ptr %7, i32 0, i32 0
  %106 = getelementptr inbounds %struct.FFOBJID, ptr %105, i32 0, i32 4
  %107 = load i32, ptr %106, align 4, !tbaa !17
  %108 = icmp ne i32 %104, %107
  br i1 %108, label %109, label %144

109:                                              ; preds = %101
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = call i32 @ld_clust(ptr noundef %111, ptr noundef %112)
  %114 = call i32 @clst2sect(ptr noundef %110, i32 noundef %113)
  store i32 %114, ptr %11, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %109
  store i32 2, ptr %5, align 4, !tbaa !9
  br label %143

118:                                              ; preds = %109
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = call i32 @move_window(ptr noundef %119, i32 noundef %120)
  store i32 %121, ptr %5, align 4, !tbaa !9
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.FATFS, ptr %122, i32 0, i32 17
  %124 = getelementptr inbounds [512 x i8], ptr %123, i64 0, i64 0
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  store ptr %125, ptr %10, align 8, !tbaa !5
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %142

128:                                              ; preds = %118
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 1
  %131 = load i8, ptr %130, align 1, !tbaa !15
  %132 = zext i8 %131 to i32
  %133 = icmp eq i32 %132, 46
  br i1 %133, label %134, label %142

134:                                              ; preds = %128
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.DIR, ptr %7, i32 0, i32 0
  %138 = getelementptr inbounds %struct.FFOBJID, ptr %137, i32 0, i32 4
  %139 = load i32, ptr %138, align 4, !tbaa !17
  call void @st_clust(ptr noundef %135, ptr noundef %136, i32 noundef %139)
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.FATFS, ptr %140, i32 0, i32 3
  store i8 1, ptr %141, align 1, !tbaa !19
  br label %142

142:                                              ; preds = %134, %128, %118
  br label %143

143:                                              ; preds = %142, %117
  br label %144

144:                                              ; preds = %143, %101, %92
  br label %145

145:                                              ; preds = %144, %64
  br label %146

146:                                              ; preds = %145, %61
  %147 = load i32, ptr %5, align 4, !tbaa !9
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %157

149:                                              ; preds = %146
  %150 = call i32 @dir_remove(ptr noundef %6)
  store i32 %150, ptr %5, align 4, !tbaa !9
  %151 = load i32, ptr %5, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %156

153:                                              ; preds = %149
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = call i32 @sync_fs(ptr noundef %154)
  store i32 %155, ptr %5, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %153, %149
  br label %157

157:                                              ; preds = %156, %146
  br label %158

158:                                              ; preds = %157, %32
  br label %159

159:                                              ; preds = %158, %2
  %160 = load i32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  ret i32 %160
}

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 = !{!7, !7, i64 0}
!16 = !{!12, !6, i64 40}
!17 = !{!12, !10, i64 12}
!18 = !{!12, !10, i64 24}
!19 = !{!20, !7, i64 3}
!20 = !{!"", !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}


; 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 @get_ldnumber(ptr noundef) local_unnamed_addr #1

; 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 i32 @ld_clust(ptr noundef, ptr 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 @move_window(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @clst2sect(ptr 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 @sync_fs(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @f_rename(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.DIR, align 8
  %6 = alloca %struct.DIR, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [32 x i8], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #2
  %9 = call i32 @get_ldnumber(ptr noundef nonnull %4)
  %10 = call i32 @find_volume(ptr noundef nonnull %3, ptr noundef nonnull %7, i8 noundef zeroext 2)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %.thread36

12:                                               ; preds = %2
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %13, ptr %5, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = call i32 @follow_path(ptr noundef nonnull %5, ptr noundef %14)
  %16 = icmp eq i32 %15, 0
  %17 = getelementptr inbounds i8, ptr %5, i64 59
  %18 = load i8, ptr %17, align 1
  %19 = and i8 %18, -96
  %.not = icmp eq i8 %19, 0
  %spec.select = select i1 %.not, i32 0, i32 6
  %.0 = select i1 %16, i32 %spec.select, i32 %15
  %20 = select i1 %16, i1 %.not, i1 false
  br i1 %20, label %21, label %.thread36

21:                                               ; preds = %12
  %22 = getelementptr inbounds i8, ptr %5, i64 40
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  call void @mem_cpy(ptr noundef nonnull %8, ptr noundef %23, i32 noundef 32)
  call void @mem_cpy(ptr noundef nonnull %6, ptr noundef nonnull %5, i32 noundef 64)
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = call i32 @follow_path(ptr noundef nonnull %6, ptr noundef %24)
  switch i32 %25, label %.thread36 [
    i32 0, label %26
    i32 4, label %.thread
  ]

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %6, i64 12
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %5, i64 12
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = icmp eq i32 %28, %30
  %32 = getelementptr inbounds i8, ptr %6, i64 24
  %33 = load i32, ptr %32, align 8
  %34 = getelementptr inbounds i8, ptr %5, i64 24
  %35 = load i32, ptr %34, align 8
  %36 = icmp eq i32 %33, %35
  %37 = select i1 %31, i1 %36, i1 false
  br i1 %37, label %.thread, label %.thread36

.thread:                                          ; preds = %21, %26
  %38 = call i32 @dir_register(ptr noundef nonnull %6)
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %.thread36

40:                                               ; preds = %.thread
  %41 = getelementptr inbounds i8, ptr %6, i64 40
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = getelementptr inbounds i8, ptr %42, i64 13
  %44 = getelementptr inbounds i8, ptr %8, i64 13
  call void @mem_cpy(ptr noundef nonnull %43, ptr noundef nonnull %44, i32 noundef 19)
  %45 = getelementptr inbounds i8, ptr %8, i64 11
  %46 = load i8, ptr %45, align 1, !tbaa !16
  %47 = getelementptr inbounds i8, ptr %42, i64 11
  %48 = shl i8 %46, 1
  %49 = and i8 %48, 32
  %50 = xor i8 %49, 32
  %spec.select32 = or i8 %50, %46
  store i8 %spec.select32, ptr %47, align 1, !tbaa !16
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 3
  store i8 1, ptr %52, align 1, !tbaa !17
  %53 = load i8, ptr %47, align 1, !tbaa !16
  %54 = and i8 %53, 16
  %.not30 = icmp eq i8 %54, 0
  br i1 %.not30, label %78, label %55

55:                                               ; preds = %40
  %56 = getelementptr inbounds i8, ptr %5, i64 12
  %57 = load i32, ptr %56, align 4, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %6, i64 12
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %.not31 = icmp eq i32 %57, %59
  br i1 %.not31, label %78, label %60

60:                                               ; preds = %55
  %61 = call i32 @ld_clust(ptr noundef nonnull %51, ptr noundef nonnull %42)
  %62 = call i32 @clst2sect(ptr noundef nonnull %51, i32 noundef %61)
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %.thread36, label %64

64:                                               ; preds = %60
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = call i32 @move_window(ptr noundef %65, i32 noundef %62)
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 80
  %69 = icmp eq i32 %66, 0
  br i1 %69, label %70, label %.thread36

70:                                               ; preds = %64
  %71 = getelementptr inbounds i8, ptr %67, i64 81
  %72 = load i8, ptr %71, align 1, !tbaa !16
  %73 = icmp eq i8 %72, 46
  br i1 %73, label %74, label %78

74:                                               ; preds = %70
  %75 = load i32, ptr %58, align 4, !tbaa !15
  call void @st_clust(ptr noundef nonnull %67, ptr noundef nonnull %68, i32 noundef %75)
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 3
  store i8 1, ptr %77, align 1, !tbaa !17
  br label %78

78:                                               ; preds = %40, %55, %70, %74
  %79 = call i32 @dir_remove(ptr noundef nonnull %5)
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %.thread36

81:                                               ; preds = %78
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = call i32 @sync_fs(ptr noundef %82)
  br label %.thread36

.thread36:                                        ; preds = %21, %26, %60, %.thread, %64, %12, %78, %81, %2
  %.3 = phi i32 [ %83, %81 ], [ %79, %78 ], [ %.0, %12 ], [ %10, %2 ], [ 2, %60 ], [ %38, %.thread ], [ %66, %64 ], [ 8, %26 ], [ %25, %21 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #2
  ret i32 %.3
}

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 = !{!10, !6, i64 40}
!15 = !{!10, !13, i64 12}
!16 = !{!7, !7, i64 0}
!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}


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