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

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

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

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

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

16:                                               ; preds = %3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %80

19:                                               ; preds = %16
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 0
  %22 = getelementptr inbounds %struct.FFOBJID, ptr %21, i32 0, i32 0
  store ptr %20, ptr %22, align 8, !tbaa !11
  %23 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 0
  %24 = getelementptr inbounds %struct.FFOBJID, ptr %23, i32 0, i32 4
  store i32 0, ptr %24, align 4, !tbaa !15
  %25 = call i32 @dir_sdi(ptr noundef %8, i32 noundef 0)
  store i32 %25, ptr %7, align 4, !tbaa !9
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %73

28:                                               ; preds = %19
  %29 = call i32 @dir_read(ptr noundef %8, i32 noundef 1)
  store i32 %29, ptr %7, align 4, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %72

32:                                               ; preds = %28
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %36, %32
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = icmp ult i32 %34, 11
  br i1 %35, label %36, label %52

36:                                               ; preds = %33
  %37 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = add i32 %39, 1
  store i32 %40, ptr %10, align 4, !tbaa !9
  %41 = zext i32 %39 to i64
  %42 = getelementptr inbounds i8, ptr %38, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !17
  %44 = zext i8 %43 to i16
  store i16 %44, ptr %12, align 2, !tbaa !18
  %45 = load i16, ptr %12, align 2, !tbaa !18
  %46 = trunc i16 %45 to i8
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = add i32 %48, 1
  store i32 %49, ptr %11, align 4, !tbaa !9
  %50 = zext i32 %48 to i64
  %51 = getelementptr inbounds i8, ptr %47, i64 %50
  store i8 %46, ptr %51, align 1, !tbaa !17
  br label %33, !llvm.loop !19

52:                                               ; preds = %33
  br label %53

53:                                               ; preds = %62, %52
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %54, i64 %56
  store i8 0, ptr %57, align 1, !tbaa !17
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %53
  br label %71

61:                                               ; preds = %53
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = add i32 %64, -1
  store i32 %65, ptr %11, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %63, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !17
  %69 = sext i8 %68 to i32
  %70 = icmp eq i32 %69, 32
  br i1 %70, label %53, label %71, !llvm.loop !21

71:                                               ; preds = %62, %60
  br label %72

72:                                               ; preds = %71, %28
  br label %73

73:                                               ; preds = %72, %19
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 4
  br i1 %75, label %76, label %79

76:                                               ; preds = %73
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 0
  store i8 0, ptr %78, align 1, !tbaa !17
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %76, %73
  br label %80

80:                                               ; preds = %79, %16, %3
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %112

83:                                               ; preds = %80
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %112

86:                                               ; preds = %83
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.FATFS, ptr %88, i32 0, i32 12
  %90 = load i32, ptr %89, align 4, !tbaa !22
  %91 = call i32 @move_window(ptr noundef %87, i32 noundef %90)
  store i32 %91, ptr %7, align 4, !tbaa !9
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %111

94:                                               ; preds = %86
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.FATFS, ptr %95, i32 0, i32 0
  %97 = load i8, ptr %96, align 4, !tbaa !24
  %98 = zext i8 %97 to i32
  switch i32 %98, label %101 [
    i32 4, label %99
    i32 3, label %100
  ]

99:                                               ; preds = %94
  store i32 100, ptr %11, align 4, !tbaa !9
  br label %102

100:                                              ; preds = %94
  store i32 67, ptr %11, align 4, !tbaa !9
  br label %102

101:                                              ; preds = %94
  store i32 39, ptr %11, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %101, %100, %99
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.FATFS, ptr %103, i32 0, i32 17
  %105 = getelementptr inbounds [512 x i8], ptr %104, i64 0, i64 0
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %105, i64 %107
  %109 = call i32 @ld_dword(ptr noundef %108)
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %109, ptr %110, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %102, %86
  br label %112

112:                                              ; preds = %111, %83, %80
  %113 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  ret i32 %113
}

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 = !{!12, !10, i64 12}
!16 = !{!12, !6, i64 40}
!17 = !{!7, !7, i64 0}
!18 = !{!14, !14, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !10, i64 28}
!23 = !{!"", !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}
!24 = !{!23, !7, i64 0}


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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @f_getlabel(ptr noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  %5 = alloca %struct.DIR, align 8
  %6 = alloca ptr, align 8
  store ptr %0, 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 8, ptr nonnull %6) #2
  %7 = call i32 @find_volume(ptr noundef nonnull %4, ptr noundef nonnull %6, i8 noundef zeroext 0)
  %8 = icmp eq i32 %7, 0
  %9 = icmp ne ptr %1, null
  %or.cond = and i1 %9, %8
  br i1 %or.cond, label %10, label %.thread

10:                                               ; preds = %3
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %11, ptr %5, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %5, i64 12
  store i32 0, ptr %12, align 4, !tbaa !14
  %13 = call i32 @dir_sdi(ptr noundef nonnull %5, i32 noundef 0)
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %63

15:                                               ; preds = %10
  %16 = call i32 @dir_read(ptr noundef nonnull %5, i32 noundef 1)
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %.preheader41, label %63

.preheader41:                                     ; preds = %15
  %18 = getelementptr inbounds i8, ptr %5, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = load i8, ptr %19, align 1, !tbaa !16
  store i8 %20, ptr %1, align 1, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %19, i64 1
  %22 = load i8, ptr %21, align 1, !tbaa !16
  %23 = getelementptr inbounds i8, ptr %1, i64 1
  store i8 %22, ptr %23, align 1, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %19, i64 2
  %25 = load i8, ptr %24, align 1, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %1, i64 2
  store i8 %25, ptr %26, align 1, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %19, i64 3
  %28 = load i8, ptr %27, align 1, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %1, i64 3
  store i8 %28, ptr %29, align 1, !tbaa !16
  %30 = getelementptr inbounds i8, ptr %19, i64 4
  %31 = load i8, ptr %30, align 1, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  store i8 %31, ptr %32, align 1, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %19, i64 5
  %34 = load i8, ptr %33, align 1, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %1, i64 5
  store i8 %34, ptr %35, align 1, !tbaa !16
  %36 = getelementptr inbounds i8, ptr %19, i64 6
  %37 = load i8, ptr %36, align 1, !tbaa !16
  %38 = getelementptr inbounds i8, ptr %1, i64 6
  store i8 %37, ptr %38, align 1, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %19, i64 7
  %40 = load i8, ptr %39, align 1, !tbaa !16
  %41 = getelementptr inbounds i8, ptr %1, i64 7
  store i8 %40, ptr %41, align 1, !tbaa !16
  %42 = getelementptr inbounds i8, ptr %19, i64 8
  %43 = load i8, ptr %42, align 1, !tbaa !16
  %44 = getelementptr inbounds i8, ptr %1, i64 8
  store i8 %43, ptr %44, align 1, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %19, i64 9
  %46 = load i8, ptr %45, align 1, !tbaa !16
  %47 = getelementptr inbounds i8, ptr %1, i64 9
  store i8 %46, ptr %47, align 1, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %19, i64 10
  %49 = load i8, ptr %48, align 1, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %1, i64 10
  store i8 %49, ptr %50, align 1, !tbaa !16
  %51 = getelementptr inbounds i8, ptr %1, i64 11
  store i8 0, ptr %51, align 1, !tbaa !16
  %52 = icmp eq i8 %49, 32
  br i1 %52, label %.preheader.1, label %.thread, !llvm.loop !17

.preheader.1:                                     ; preds = %.preheader41
  store i8 0, ptr %50, align 1, !tbaa !16
  %53 = icmp eq i8 %46, 32
  br i1 %53, label %.preheader.2, label %.thread, !llvm.loop !17

.preheader.2:                                     ; preds = %.preheader.1
  store i8 0, ptr %47, align 1, !tbaa !16
  %54 = icmp eq i8 %43, 32
  br i1 %54, label %.preheader.3, label %.thread, !llvm.loop !17

.preheader.3:                                     ; preds = %.preheader.2
  store i8 0, ptr %44, align 1, !tbaa !16
  %55 = icmp eq i8 %40, 32
  br i1 %55, label %.preheader.4, label %.thread, !llvm.loop !17

.preheader.4:                                     ; preds = %.preheader.3
  store i8 0, ptr %41, align 1, !tbaa !16
  %56 = icmp eq i8 %37, 32
  br i1 %56, label %.preheader.5, label %.thread, !llvm.loop !17

.preheader.5:                                     ; preds = %.preheader.4
  store i8 0, ptr %38, align 1, !tbaa !16
  %57 = icmp eq i8 %34, 32
  br i1 %57, label %.preheader.6, label %.thread, !llvm.loop !17

.preheader.6:                                     ; preds = %.preheader.5
  store i8 0, ptr %35, align 1, !tbaa !16
  %58 = icmp eq i8 %31, 32
  br i1 %58, label %.preheader.7, label %.thread, !llvm.loop !17

.preheader.7:                                     ; preds = %.preheader.6
  store i8 0, ptr %32, align 1, !tbaa !16
  %59 = icmp eq i8 %28, 32
  br i1 %59, label %.preheader.8, label %.thread, !llvm.loop !17

.preheader.8:                                     ; preds = %.preheader.7
  store i8 0, ptr %29, align 1, !tbaa !16
  %60 = icmp eq i8 %25, 32
  br i1 %60, label %.preheader.9, label %.thread, !llvm.loop !17

.preheader.9:                                     ; preds = %.preheader.8
  store i8 0, ptr %26, align 1, !tbaa !16
  %61 = icmp eq i8 %22, 32
  br i1 %61, label %.preheader.10, label %.thread, !llvm.loop !17

.preheader.10:                                    ; preds = %.preheader.9
  store i8 0, ptr %23, align 1, !tbaa !16
  %62 = icmp eq i8 %20, 32
  br i1 %62, label %.thread.sink.split, label %.thread, !llvm.loop !17

63:                                               ; preds = %15, %10
  %.0 = phi i32 [ %16, %15 ], [ %13, %10 ]
  %64 = icmp eq i32 %.0, 4
  br i1 %64, label %.thread.sink.split, label %.thread38

.thread.sink.split:                               ; preds = %63, %.preheader.10
  store i8 0, ptr %1, align 1, !tbaa !16
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %.preheader41, %.preheader.1, %.preheader.2, %.preheader.3, %.preheader.4, %.preheader.5, %.preheader.6, %.preheader.7, %.preheader.8, %.preheader.9, %.preheader.10, %3
  %65 = icmp eq i32 %7, 0
  %66 = icmp ne ptr %2, null
  %or.cond3 = and i1 %66, %65
  br i1 %or.cond3, label %67, label %.thread38

67:                                               ; preds = %.thread
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 28
  %70 = load i32, ptr %69, align 4, !tbaa !19
  %71 = call i32 @move_window(ptr noundef %68, i32 noundef %70)
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %.thread38

73:                                               ; preds = %67
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load i8, ptr %74, align 4, !tbaa !21
  %switch.selectcmp = icmp eq i8 %75, 3
  %switch.select = select i1 %switch.selectcmp, i64 67, i64 39
  %switch.selectcmp35 = icmp eq i8 %75, 4
  %switch.select36 = select i1 %switch.selectcmp35, i64 100, i64 %switch.select
  %76 = getelementptr inbounds i8, ptr %74, i64 48
  %77 = getelementptr inbounds i8, ptr %76, i64 %switch.select36
  %78 = call i32 @ld_dword(ptr noundef nonnull %77)
  store i32 %78, ptr %2, align 4, !tbaa !22
  br label %.thread38

.thread38:                                        ; preds = %63, %67, %73, %.thread
  %.2 = phi i32 [ 0, %73 ], [ %71, %67 ], [ %7, %.thread ], [ %.0, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #2
  ret i32 %.2
}

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, !13, i64 12}
!15 = !{!10, !6, i64 40}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !13, i64 28}
!20 = !{!"", !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}
!21 = !{!20, !7, i64 0}
!22 = !{!13, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass