; LLVM IR from ctlst-tech/catpilot :: os/fatfs/core (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.FIL = type { %struct.FFOBJID, i8, i8, i32, i32, i32, i32, ptr, [512 x i8] }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i32, i32 }
%struct.FATFS = type { i8, i8, i8, i8, i8, i8, i16, i16, i16, ptr, i32, 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 void @unlock_volume(ptr noundef, i32 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
declare hidden i32 @remove_chain(ptr noundef, i32 noundef, i32 noundef) #1

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

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

declare i32 @disk_write(i8 noundef zeroext, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @f_truncate(ptr noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = 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 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.FIL, ptr %8, i32 0, i32 0
  %10 = call i32 @validate(ptr noundef %9, ptr noundef %5)
  store i32 %10, ptr %4, align 4, !tbaa !9
  %11 = load i32, ptr %4, align 4, !tbaa !9
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %19, label %13

13:                                               ; preds = %1
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.FIL, ptr %14, i32 0, i32 2
  %16 = load i8, ptr %15, align 1, !tbaa !11
  %17 = zext i8 %16 to i32
  store i32 %17, ptr %4, align 4, !tbaa !9
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %23

19:                                               ; preds = %13, %1
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load i32, ptr %4, align 4, !tbaa !9
  call void @unlock_volume(ptr noundef %20, i32 noundef %21)
  %22 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %22, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %148

23:                                               ; preds = %13
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.FIL, ptr %24, i32 0, i32 1
  %26 = load i8, ptr %25, align 8, !tbaa !15
  %27 = zext i8 %26 to i32
  %28 = and i32 %27, 2
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %32, label %30

30:                                               ; preds = %23
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  call void @unlock_volume(ptr noundef %31, i32 noundef 7)
  store i32 7, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %148

32:                                               ; preds = %23
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.FIL, ptr %33, i32 0, i32 3
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.FIL, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.FFOBJID, ptr %37, i32 0, i32 5
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %40 = icmp ult i32 %35, %39
  br i1 %40, label %41, label %144

41:                                               ; preds = %32
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.FIL, ptr %42, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %57

46:                                               ; preds = %41
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.FIL, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.FIL, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %struct.FFOBJID, ptr %50, i32 0, i32 4
  %52 = load i32, ptr %51, align 4, !tbaa !18
  %53 = call i32 @remove_chain(ptr noundef %48, i32 noundef %52, i32 noundef 0)
  store i32 %53, ptr %4, align 4, !tbaa !9
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.FIL, ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.FFOBJID, ptr %55, i32 0, i32 4
  store i32 0, ptr %56, align 4, !tbaa !18
  br label %89

57:                                               ; preds = %41
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.FIL, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.FIL, ptr %60, i32 0, i32 4
  %62 = load i32, ptr %61, align 8, !tbaa !19
  %63 = call i32 @get_fat(ptr noundef %59, i32 noundef %62)
  store i32 %63, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !9
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %66, label %67

66:                                               ; preds = %57
  store i32 1, ptr %4, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %66, %57
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  store i32 2, ptr %4, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %70, %67
  %72 = load i32, ptr %4, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %88

74:                                               ; preds = %71
  %75 = load i32, ptr %6, align 4, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.FATFS, ptr %76, i32 0, i32 13
  %78 = load i32, ptr %77, align 4, !tbaa !20
  %79 = icmp ult i32 %75, %78
  br i1 %79, label %80, label %88

80:                                               ; preds = %74
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.FIL, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.FIL, ptr %84, i32 0, i32 4
  %86 = load i32, ptr %85, align 8, !tbaa !19
  %87 = call i32 @remove_chain(ptr noundef %82, i32 noundef %83, i32 noundef %86)
  store i32 %87, ptr %4, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %80, %74, %71
  br label %89

89:                                               ; preds = %88, %46
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.FIL, ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 4, !tbaa !16
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.FIL, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %struct.FFOBJID, ptr %94, i32 0, i32 5
  store i32 %92, ptr %95, align 8, !tbaa !17
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.FIL, ptr %96, i32 0, i32 1
  %98 = load i8, ptr %97, align 8, !tbaa !15
  %99 = zext i8 %98 to i32
  %100 = or i32 %99, 64
  %101 = trunc i32 %100 to i8
  store i8 %101, ptr %97, align 8, !tbaa !15
  %102 = load i32, ptr %4, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %132

104:                                              ; preds = %89
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.FIL, ptr %105, i32 0, i32 1
  %107 = load i8, ptr %106, align 8, !tbaa !15
  %108 = zext i8 %107 to i32
  %109 = and i32 %108, 128
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %132

111:                                              ; preds = %104
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.FATFS, ptr %112, i32 0, i32 1
  %114 = load i8, ptr %113, align 1, !tbaa !22
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.FIL, ptr %115, i32 0, i32 8
  %117 = getelementptr inbounds [512 x i8], ptr %116, i64 0, i64 0
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.FIL, ptr %118, i32 0, i32 5
  %120 = load i32, ptr %119, align 4, !tbaa !23
  %121 = call i32 @disk_write(i8 noundef zeroext %114, ptr noundef %117, i32 noundef %120, i32 noundef 1)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %111
  store i32 1, ptr %4, align 4, !tbaa !9
  br label %131

124:                                              ; preds = %111
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.FIL, ptr %125, i32 0, i32 1
  %127 = load i8, ptr %126, align 8, !tbaa !15
  %128 = zext i8 %127 to i32
  %129 = and i32 %128, 127
  %130 = trunc i32 %129 to i8
  store i8 %130, ptr %126, align 8, !tbaa !15
  br label %131

131:                                              ; preds = %124, %123
  br label %132

132:                                              ; preds = %131, %104, %89
  %133 = load i32, ptr %4, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %143

135:                                              ; preds = %132
  %136 = load i32, ptr %4, align 4, !tbaa !9
  %137 = trunc i32 %136 to i8
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.FIL, ptr %138, i32 0, i32 2
  store i8 %137, ptr %139, align 1, !tbaa !11
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = load i32, ptr %4, align 4, !tbaa !9
  call void @unlock_volume(ptr noundef %140, i32 noundef %141)
  %142 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %142, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %148

143:                                              ; preds = %132
  br label %144

144:                                              ; preds = %143, %32
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %4, align 4, !tbaa !9
  call void @unlock_volume(ptr noundef %145, i32 noundef %146)
  %147 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %147, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %148

148:                                              ; preds = %144, %135, %30, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %149 = load i32, ptr %2, align 4
  ret i32 %149
}

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, !7, i64 25}
!12 = !{!"", !13, i64 0, !7, i64 24, !7, i64 25, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !7, i64 56}
!13 = !{!"", !6, i64 0, !14, i64 8, !7, i64 10, !7, i64 11, !10, i64 12, !10, i64 16, !10, i64 20}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !7, i64 24}
!16 = !{!12, !10, i64 28}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !10, i64 12}
!19 = !{!12, !10, i64 32}
!20 = !{!21, !10, i64 36}
!21 = !{!"", !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, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64}
!22 = !{!21, !7, i64 1}
!23 = !{!12, !10, i64 36}


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

; 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 void @unlock_volume(ptr noundef, i32 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
declare hidden i32 @remove_chain(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

declare i32 @disk_write(i8 noundef zeroext, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @f_truncate(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %3 = call i32 @validate(ptr noundef %0, ptr noundef nonnull %2)
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %4, label %8

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 25
  %6 = load i8, ptr %5, align 1, !tbaa !5
  %7 = zext i8 %6 to i32
  %.not43 = icmp eq i8 %6, 0
  br i1 %.not43, label %10, label %8

8:                                                ; preds = %4, %1
  %.037 = phi i32 [ %3, %1 ], [ %7, %4 ]
  %9 = load ptr, ptr %2, align 8, !tbaa !13
  call void @unlock_volume(ptr noundef %9, i32 noundef %.037)
  br label %72

10:                                               ; preds = %4
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i8, ptr %11, align 8, !tbaa !14
  %13 = and i8 %12, 2
  %.not44 = icmp eq i8 %13, 0
  br i1 %.not44, label %14, label %16

14:                                               ; preds = %10
  %15 = load ptr, ptr %2, align 8, !tbaa !13
  call void @unlock_volume(ptr noundef %15, i32 noundef 7)
  br label %72

16:                                               ; preds = %10
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load i32, ptr %19, align 8, !tbaa !16
  %21 = icmp ult i32 %18, %20
  br i1 %21, label %22, label %70

22:                                               ; preds = %16
  %23 = icmp eq i32 %18, 0
  br i1 %23, label %24, label %28

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !17
  %27 = call i32 @remove_chain(ptr noundef nonnull %0, i32 noundef %26, i32 noundef 0)
  store i32 0, ptr %25, align 4, !tbaa !17
  br label %49

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 32
  %30 = load i32, ptr %29, align 8, !tbaa !18
  %31 = call i32 @get_fat(ptr noundef nonnull %0, i32 noundef %30)
  %32 = icmp eq i32 %31, -1
  %spec.store.select = zext i1 %32 to i32
  %33 = icmp eq i32 %31, 1
  %spec.store.select1 = select i1 %33, i32 2, i32 %spec.store.select
  %34 = icmp eq i32 %spec.store.select1, 0
  br i1 %34, label %38, label %.thread49

.thread49:                                        ; preds = %28
  %35 = load i32, ptr %17, align 4, !tbaa !15
  store i32 %35, ptr %19, align 8, !tbaa !16
  %36 = load i8, ptr %11, align 8, !tbaa !14
  %37 = or i8 %36, 64
  store i8 %37, ptr %11, align 8, !tbaa !14
  br label %67

38:                                               ; preds = %28
  %39 = load ptr, ptr %2, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 36
  %41 = load i32, ptr %40, align 4, !tbaa !19
  %42 = icmp ult i32 %31, %41
  br i1 %42, label %46, label %.thread

.thread:                                          ; preds = %38
  %43 = load i32, ptr %17, align 4, !tbaa !15
  store i32 %43, ptr %19, align 8, !tbaa !16
  %44 = load i8, ptr %11, align 8, !tbaa !14
  %45 = or i8 %44, 64
  store i8 %45, ptr %11, align 8, !tbaa !14
  br label %54

46:                                               ; preds = %38
  %47 = load i32, ptr %29, align 8, !tbaa !18
  %48 = call i32 @remove_chain(ptr noundef nonnull %0, i32 noundef %31, i32 noundef %47)
  br label %49

49:                                               ; preds = %46, %24
  %.1 = phi i32 [ %27, %24 ], [ %48, %46 ]
  %50 = load i32, ptr %17, align 4, !tbaa !15
  store i32 %50, ptr %19, align 8, !tbaa !16
  %51 = load i8, ptr %11, align 8, !tbaa !14
  %52 = or i8 %51, 64
  store i8 %52, ptr %11, align 8, !tbaa !14
  %53 = icmp eq i32 %.1, 0
  br i1 %53, label %54, label %67

54:                                               ; preds = %.thread, %49
  %55 = phi i8 [ %44, %.thread ], [ %51, %49 ]
  %.not45 = icmp sgt i8 %55, -1
  br i1 %.not45, label %70, label %56

56:                                               ; preds = %54
  %57 = load ptr, ptr %2, align 8, !tbaa !13
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  %59 = load i8, ptr %58, align 1, !tbaa !21
  %60 = getelementptr inbounds i8, ptr %0, i64 56
  %61 = getelementptr inbounds i8, ptr %0, i64 36
  %62 = load i32, ptr %61, align 4, !tbaa !22
  %63 = call i32 @disk_write(i8 noundef zeroext %59, ptr noundef nonnull %60, i32 noundef %62, i32 noundef 1) #3
  %.not46 = icmp eq i32 %63, 0
  br i1 %.not46, label %64, label %67

64:                                               ; preds = %56
  %65 = load i8, ptr %11, align 8, !tbaa !14
  %66 = and i8 %65, 127
  store i8 %66, ptr %11, align 8, !tbaa !14
  br label %70

67:                                               ; preds = %49, %56, %.thread49
  %.2.ph = phi i32 [ %spec.store.select1, %.thread49 ], [ 1, %56 ], [ %.1, %49 ]
  %68 = trunc i32 %.2.ph to i8
  store i8 %68, ptr %5, align 1, !tbaa !5
  %69 = load ptr, ptr %2, align 8, !tbaa !13
  call void @unlock_volume(ptr noundef %69, i32 noundef %.2.ph)
  br label %72

70:                                               ; preds = %54, %64, %16
  %71 = load ptr, ptr %2, align 8, !tbaa !13
  call void @unlock_volume(ptr noundef %71, i32 noundef 0)
  br label %72

72:                                               ; preds = %70, %67, %14, %8
  %.0 = phi i32 [ %.037, %8 ], [ %.2.ph, %67 ], [ 0, %70 ], [ 7, %14 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #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, !9, i64 25}
!6 = !{!"", !7, i64 0, !9, i64 24, !9, i64 25, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !8, i64 48, !9, i64 56}
!7 = !{!"", !8, i64 0, !11, i64 8, !9, i64 10, !9, i64 11, !12, i64 12, !12, i64 16, !12, i64 20}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"short", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!6, !9, i64 24}
!15 = !{!6, !12, i64 28}
!16 = !{!6, !12, i64 16}
!17 = !{!6, !12, i64 12}
!18 = !{!6, !12, i64 32}
!19 = !{!20, !12, i64 36}
!20 = !{!"", !9, i64 0, !9, i64 1, !9, i64 2, !9, i64 3, !9, i64 4, !9, i64 5, !11, i64 6, !11, i64 8, !11, i64 10, !8, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !9, i64 64}
!21 = !{!20, !9, i64 1}
!22 = !{!6, !12, i64 36}


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