; LLVM IR from carlk3/no-OS-FatFS-SD-SPI-RPi-Pico :: FatFs_SPI/ff15/source (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, i64, ptr, [12 x i8], i32, ptr }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i64, i32, i32, i32, i32, i32, i32 }
%struct.FATFS = type { i8, i8, i8, i8, i8, i8, i16, i16, i16, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, [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 @mount_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

declare ptr @ff_memalloc(i32 noundef) #2

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

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

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

declare void @ff_memfree(ptr noundef) #2

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

12:                                               ; preds = %1
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %15 = getelementptr inbounds %struct.FFOBJID, ptr %14, i32 0, i32 0
  store ptr %13, ptr %15, align 8, !tbaa !11
  %16 = call ptr @ff_memalloc(i32 noundef 1120)
  store ptr %16, ptr %7, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %12
  store i32 17, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %129

20:                                               ; preds = %12
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.FATFS, ptr %22, i32 0, i32 9
  store ptr %21, ptr %23, align 8, !tbaa !16
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds i16, ptr %24, i64 255
  %26 = getelementptr inbounds i16, ptr %25, i64 1
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.FATFS, ptr %27, i32 0, i32 10
  store ptr %26, ptr %28, align 8, !tbaa !18
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call i32 @follow_path(ptr noundef %5, ptr noundef %29)
  store i32 %30, ptr %4, align 4, !tbaa !9
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %121

33:                                               ; preds = %20
  %34 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 5
  %35 = getelementptr inbounds [12 x i8], ptr %34, i64 0, i64 11
  %36 = load i8, ptr %35, align 1, !tbaa !19
  %37 = zext i8 %36 to i32
  %38 = and i32 %37, 128
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %68

40:                                               ; preds = %33
  %41 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %42 = getelementptr inbounds %struct.FFOBJID, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 4, !tbaa !20
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.FATFS, ptr %44, i32 0, i32 13
  store i32 %43, ptr %45, align 8, !tbaa !21
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.FATFS, ptr %46, i32 0, i32 0
  %48 = load i8, ptr %47, align 8, !tbaa !22
  %49 = zext i8 %48 to i32
  %50 = icmp eq i32 %49, 4
  br i1 %50, label %51, label %67

51:                                               ; preds = %40
  %52 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %53 = getelementptr inbounds %struct.FFOBJID, ptr %52, i32 0, i32 8
  %54 = load i32, ptr %53, align 8, !tbaa !23
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.FATFS, ptr %55, i32 0, i32 14
  store i32 %54, ptr %56, align 4, !tbaa !24
  %57 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %58 = getelementptr inbounds %struct.FFOBJID, ptr %57, i32 0, i32 9
  %59 = load i32, ptr %58, align 4, !tbaa !25
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.FATFS, ptr %60, i32 0, i32 15
  store i32 %59, ptr %61, align 8, !tbaa !26
  %62 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %63 = getelementptr inbounds %struct.FFOBJID, ptr %62, i32 0, i32 10
  %64 = load i32, ptr %63, align 8, !tbaa !27
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.FATFS, ptr %65, i32 0, i32 16
  store i32 %64, ptr %66, align 4, !tbaa !28
  br label %67

67:                                               ; preds = %51, %40
  br label %120

68:                                               ; preds = %33
  %69 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %70 = getelementptr inbounds %struct.FFOBJID, ptr %69, i32 0, i32 2
  %71 = load i8, ptr %70, align 2, !tbaa !29
  %72 = zext i8 %71 to i32
  %73 = and i32 %72, 16
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %118

75:                                               ; preds = %68
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.FATFS, ptr %76, i32 0, i32 0
  %78 = load i8, ptr %77, align 8, !tbaa !22
  %79 = zext i8 %78 to i32
  %80 = icmp eq i32 %79, 4
  br i1 %80, label %81, label %110

81:                                               ; preds = %75
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.FATFS, ptr %82, i32 0, i32 10
  %84 = load ptr, ptr %83, align 8, !tbaa !18
  %85 = getelementptr inbounds i8, ptr %84, i64 52
  %86 = call i32 @ld_dword(ptr noundef %85)
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.FATFS, ptr %87, i32 0, i32 13
  store i32 %86, ptr %88, align 8, !tbaa !21
  %89 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %90 = getelementptr inbounds %struct.FFOBJID, ptr %89, i32 0, i32 4
  %91 = load i32, ptr %90, align 4, !tbaa !20
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.FATFS, ptr %92, i32 0, i32 14
  store i32 %91, ptr %93, align 4, !tbaa !24
  %94 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %95 = getelementptr inbounds %struct.FFOBJID, ptr %94, i32 0, i32 5
  %96 = load i64, ptr %95, align 8, !tbaa !30
  %97 = trunc i64 %96 to i32
  %98 = and i32 %97, -256
  %99 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 0
  %100 = getelementptr inbounds %struct.FFOBJID, ptr %99, i32 0, i32 3
  %101 = load i8, ptr %100, align 1, !tbaa !31
  %102 = zext i8 %101 to i32
  %103 = or i32 %98, %102
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.FATFS, ptr %104, i32 0, i32 15
  store i32 %103, ptr %105, align 8, !tbaa !26
  %106 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 6
  %107 = load i32, ptr %106, align 4, !tbaa !32
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.FATFS, ptr %108, i32 0, i32 16
  store i32 %107, ptr %109, align 4, !tbaa !28
  br label %117

110:                                              ; preds = %75
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.DIR, ptr %5, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !33
  %114 = call i32 @ld_clust(ptr noundef %111, ptr noundef %113)
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.FATFS, ptr %115, i32 0, i32 13
  store i32 %114, ptr %116, align 8, !tbaa !21
  br label %117

117:                                              ; preds = %110, %81
  br label %119

118:                                              ; preds = %68
  store i32 5, ptr %4, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %118, %117
  br label %120

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

121:                                              ; preds = %120, %20
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  call void @ff_memfree(ptr noundef %122)
  %123 = load i32, ptr %4, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 4
  br i1 %124, label %125, label %126

125:                                              ; preds = %121
  store i32 5, ptr %4, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %125, %121
  br label %127

127:                                              ; preds = %126, %1
  %128 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %128, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %129

129:                                              ; preds = %127, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 96, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %130 = load i32, ptr %2, align 4
  ret i32 %130
}

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 = { "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 }

!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 48, !10, i64 52, !15, i64 56, !6, i64 64, !7, i64 72, !10, i64 84, !6, i64 88}
!13 = !{!"", !6, i64 0, !14, i64 8, !7, i64 10, !7, i64 11, !10, i64 12, !15, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !14, i64 6, !14, i64 8, !14, i64 10, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !7, i64 112}
!18 = !{!17, !6, i64 24}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !10, i64 12}
!21 = !{!17, !10, i64 40}
!22 = !{!17, !7, i64 0}
!23 = !{!12, !10, i64 32}
!24 = !{!17, !10, i64 44}
!25 = !{!12, !10, i64 36}
!26 = !{!17, !10, i64 48}
!27 = !{!12, !10, i64 40}
!28 = !{!17, !10, i64 52}
!29 = !{!12, !7, i64 10}
!30 = !{!12, !15, i64 16}
!31 = !{!12, !7, i64 11}
!32 = !{!12, !10, i64 84}
!33 = !{!12, !6, i64 64}


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

declare ptr @ff_memalloc(i32 noundef) local_unnamed_addr #2

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

declare void @ff_memfree(ptr noundef) local_unnamed_addr #2

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

7:                                                ; preds = %1
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %8, ptr %3, align 8, !tbaa !9
  %9 = call ptr @ff_memalloc(i32 noundef 1120) #3
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %73, label %10

10:                                               ; preds = %7
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %9, ptr %12, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %9, i64 512
  %14 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %13, ptr %14, align 8, !tbaa !17
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = call i32 @follow_path(ptr noundef nonnull %3, ptr noundef %15)
  %.fr = freeze i32 %16
  %17 = icmp eq i32 %.fr, 0
  br i1 %17, label %18, label %71

18:                                               ; preds = %10
  %19 = getelementptr inbounds i8, ptr %3, i64 83
  %20 = load i8, ptr %19, align 1, !tbaa !18
  %.not13 = icmp sgt i8 %20, -1
  br i1 %.not13, label %35, label %21

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %3, i64 12
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 40
  store i32 %23, ptr %25, align 8, !tbaa !20
  %26 = load i8, ptr %24, align 8, !tbaa !21
  %27 = icmp eq i8 %26, 4
  br i1 %27, label %28, label %.thread

28:                                               ; preds = %21
  %29 = getelementptr inbounds i8, ptr %3, i64 32
  %30 = getelementptr inbounds i8, ptr %24, i64 44
  %31 = load <2 x i32>, ptr %29, align 8, !tbaa !22
  store <2 x i32> %31, ptr %30, align 4, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %3, i64 40
  %33 = load i32, ptr %32, align 8, !tbaa !23
  %34 = getelementptr inbounds i8, ptr %24, i64 52
  store i32 %33, ptr %34, align 4, !tbaa !24
  br label %.thread

35:                                               ; preds = %18
  %36 = getelementptr inbounds i8, ptr %3, i64 10
  %37 = load i8, ptr %36, align 2, !tbaa !25
  %38 = and i8 %37, 16
  %.not14 = icmp eq i8 %38, 0
  br i1 %.not14, label %.thread, label %39

39:                                               ; preds = %35
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 8, !tbaa !21
  %42 = icmp eq i8 %41, 4
  br i1 %42, label %43, label %65

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %40, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !17
  %46 = getelementptr inbounds i8, ptr %45, i64 52
  %47 = call i32 @ld_dword(ptr noundef nonnull %46)
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 40
  store i32 %47, ptr %49, align 8, !tbaa !20
  %50 = getelementptr inbounds i8, ptr %3, i64 12
  %51 = load i32, ptr %50, align 4, !tbaa !19
  %52 = getelementptr inbounds i8, ptr %48, i64 44
  store i32 %51, ptr %52, align 4, !tbaa !26
  %53 = getelementptr inbounds i8, ptr %3, i64 16
  %54 = load i64, ptr %53, align 8, !tbaa !27
  %55 = trunc i64 %54 to i32
  %56 = and i32 %55, -256
  %57 = getelementptr inbounds i8, ptr %3, i64 11
  %58 = load i8, ptr %57, align 1, !tbaa !28
  %59 = zext i8 %58 to i32
  %60 = or disjoint i32 %56, %59
  %61 = getelementptr inbounds i8, ptr %48, i64 48
  store i32 %60, ptr %61, align 8, !tbaa !29
  %62 = getelementptr inbounds i8, ptr %3, i64 84
  %63 = load i32, ptr %62, align 4, !tbaa !30
  %64 = getelementptr inbounds i8, ptr %48, i64 52
  store i32 %63, ptr %64, align 4, !tbaa !24
  br label %.thread

65:                                               ; preds = %39
  %66 = getelementptr inbounds i8, ptr %3, i64 64
  %67 = load ptr, ptr %66, align 8, !tbaa !31
  %68 = call i32 @ld_clust(ptr noundef nonnull %40, ptr noundef %67)
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 40
  store i32 %68, ptr %70, align 8, !tbaa !20
  br label %.thread

.thread:                                          ; preds = %28, %21, %43, %65, %35
  %.08.ph = phi i32 [ 5, %35 ], [ 0, %65 ], [ 0, %43 ], [ 0, %21 ], [ 0, %28 ]
  call void @ff_memfree(ptr noundef nonnull %9) #3
  br label %73

71:                                               ; preds = %10
  call void @ff_memfree(ptr noundef nonnull %9) #3
  %72 = icmp eq i32 %.fr, 4
  %spec.select = select i1 %72, i32 5, i32 %.fr
  br label %73

73:                                               ; preds = %71, %.thread, %1, %7
  %.0 = phi i32 [ 17, %7 ], [ %5, %1 ], [ %.08.ph, %.thread ], [ %spec.select, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #3
  ret i32 %.0
}

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 = { "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 }

!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 48, !13, i64 52, !14, i64 56, !6, i64 64, !7, i64 72, !13, i64 84, !6, i64 88}
!11 = !{!"", !6, i64 0, !12, i64 8, !7, i64 10, !7, i64 11, !13, i64 12, !14, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !12, i64 6, !12, i64 8, !12, i64 10, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !7, i64 112}
!17 = !{!16, !6, i64 24}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !13, i64 12}
!20 = !{!16, !13, i64 40}
!21 = !{!16, !7, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!10, !13, i64 40}
!24 = !{!16, !13, i64 52}
!25 = !{!10, !7, i64 10}
!26 = !{!16, !13, i64 44}
!27 = !{!10, !14, i64 16}
!28 = !{!10, !7, i64 11}
!29 = !{!16, !13, i64 48}
!30 = !{!10, !13, i64 84}
!31 = !{!10, !6, i64 64}


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