; LLVM IR from jspd-group/pegit :: src (stage)

; 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.stage_stats = type { i64, i64, i64, i64, i64 }
%struct.stage_options = type { i32, i32, i32, i32, i64, i8, i8, i32, ptr, ptr, ptr, %struct.pack_file_cache }
%struct.pack_file_cache = type { ptr, %struct.strbuf }
%struct.strbuf = type { i64, i64, ptr }
%struct.cache_object = type { %struct.cache, %struct.cache_index }
%struct.cache = type { i32, %struct.strbuf, ptr, i8 }
%struct.cache_index = type { i64, %struct.author, ptr, i8, ptr, ptr }
%struct.author = type { %struct.strbuf, %struct.strbuf }
%struct.file_list = type { %struct.strbuf, %struct.strbuf, [20 x i16], i8, i32, %struct.stat, ptr }
%struct.stat = type { i64, i64, i64, i32, i32, i32, i32, i64, i64, i64, i64, %struct.timespec, %struct.timespec, %struct.timespec, [3 x i64] }
%struct.timespec = type { i64, i64 }

@stats = external dso_local global %struct.stage_stats, align 8
@opts = external dso_local global %struct.stage_options, align 8
@head = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [30 x i8], align 1
@count = external global i64, align 8
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @file_list_clear(ptr noundef) #0

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

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

declare i32 @printf(ptr noundef, ...) #2

declare void @cache_object_init(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @process_node(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @cache_files() #0 {
  %1 = alloca %struct.cache_object, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 136, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %5 = load ptr, ptr @head, align 8, !tbaa !5
  store ptr %5, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #4
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  store i64 0, ptr %4, align 8, !tbaa !11
  %6 = call i32 @set_timer(i32 noundef 200)
  call void @cache_object_init(ptr noundef %1)
  br label %7

7:                                                ; preds = %60, %0
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %64

10:                                               ; preds = %7
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.file_list, ptr %11, i32 0, i32 0
  %13 = getelementptr inbounds %struct.strbuf, ptr %12, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = call zeroext i1 @find_file_from_cache(ptr noundef %14, ptr noundef %1)
  br i1 %15, label %23, label %16

16:                                               ; preds = %10
  %17 = load i32, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 3), align 4, !tbaa !19
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  call void @print_file_list_node(ptr noundef %20)
  br label %21

21:                                               ; preds = %19, %16
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  call void @process_node(ptr noundef %1, ptr noundef %22)
  br label %37

23:                                               ; preds = %10
  %24 = load i32, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 3), align 4, !tbaa !19
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %34

26:                                               ; preds = %23
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.file_list, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %struct.strbuf, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %31)
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  br label %34

34:                                               ; preds = %26, %23
  %35 = load i64, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 3), align 8, !tbaa !22
  %36 = add i64 %35, 1
  store i64 %36, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 3), align 8, !tbaa !22
  br label %37

37:                                               ; preds = %34, %21
  %38 = load i64, ptr %4, align 8, !tbaa !11
  %39 = add i64 %38, 1
  store i64 %39, ptr %4, align 8, !tbaa !11
  %40 = load i8, ptr %3, align 1, !tbaa !9, !range !24, !noundef !25
  %41 = trunc i8 %40 to i1
  br i1 %41, label %46, label %42

42:                                               ; preds = %37
  %43 = call i32 (...) @got_signal()
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store i8 1, ptr %3, align 1, !tbaa !9
  br label %46

46:                                               ; preds = %45, %42, %37
  %47 = call i32 (...) @got_signal()
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %60

49:                                               ; preds = %46
  %50 = load i8, ptr %3, align 1, !tbaa !9, !range !24, !noundef !25
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %60

52:                                               ; preds = %49
  %53 = load i64, ptr %4, align 8, !tbaa !11
  %54 = mul i64 %53, 100
  %55 = load i64, ptr @count, align 8, !tbaa !11
  %56 = udiv i64 %54, %55
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i64 noundef %56)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = call i32 @fflush(ptr noundef %58)
  call void (...) @reset_signal()
  br label %60

60:                                               ; preds = %52, %49, %46
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.file_list, ptr %61, i32 0, i32 6
  %63 = load ptr, ptr %62, align 8, !tbaa !26
  store ptr %63, ptr %2, align 8, !tbaa !5
  br label %7, !llvm.loop !27

64:                                               ; preds = %7
  %65 = load i64, ptr getelementptr inbounds (%struct.stage_stats, ptr @stats, i32 0, i32 4), align 8, !tbaa !29
  %66 = icmp ne i64 %65, 0
  br i1 %66, label %67, label %72

67:                                               ; preds = %64
  %68 = load i32, ptr getelementptr inbounds (%struct.stage_options, ptr @opts, i32 0, i32 3), align 4, !tbaa !19
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  br label %72

72:                                               ; preds = %70, %67, %64
  %73 = call i32 (...) @got_signal()
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %86

75:                                               ; preds = %72
  %76 = load i8, ptr %3, align 1, !tbaa !9, !range !24, !noundef !25
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %86

78:                                               ; preds = %75
  %79 = load i64, ptr %4, align 8, !tbaa !11
  %80 = mul i64 %79, 100
  %81 = load i64, ptr @count, align 8, !tbaa !11
  %82 = udiv i64 %80, %81
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i64 noundef %82)
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 @fflush(ptr noundef %84)
  call void (...) @reset_signal()
  br label %86

86:                                               ; preds = %78, %75, %72
  call void (...) @stop_timer()
  %87 = load ptr, ptr @head, align 8, !tbaa !5
  call void @file_list_clear(ptr noundef %87)
  call void @cache_object_write(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 136, ptr %1) #4
  ret void
}

declare i32 @set_timer(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @find_file_from_cache(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @print_file_list_node(ptr noundef) #3

declare i32 @got_signal(...) #2

declare i32 @fflush(ptr noundef) #2

declare void @reset_signal(...) #2

declare void @stop_timer(...) #2

declare void @cache_object_write(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #4 = { 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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"file_list", !15, i64 0, !15, i64 24, !7, i64 48, !10, i64 88, !16, i64 92, !17, i64 96, !6, i64 240}
!15 = !{!"strbuf", !12, i64 0, !12, i64 8, !6, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!"stat", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !18, i64 72, !18, i64 88, !18, i64 104, !7, i64 120}
!18 = !{!"timespec", !12, i64 0, !12, i64 8}
!19 = !{!20, !16, i64 12}
!20 = !{!"stage_options", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !12, i64 16, !10, i64 24, !10, i64 25, !16, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !21, i64 56}
!21 = !{!"pack_file_cache", !6, i64 0, !15, i64 8}
!22 = !{!23, !12, i64 24}
!23 = !{!"stage_stats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!14, !6, i64 240}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!23, !12, i64 32}


; 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.stage_stats = type { i64, i64, i64, i64, i64 }
%struct.stage_options = type { i32, i32, i32, i32, i64, i8, i8, i32, ptr, ptr, ptr, %struct.pack_file_cache }
%struct.pack_file_cache = type { ptr, %struct.strbuf }
%struct.strbuf = type { i64, i64, ptr }
%struct.cache_object = type { %struct.cache, %struct.cache_index }
%struct.cache = type { i32, %struct.strbuf, ptr, i8 }
%struct.cache_index = type { i64, %struct.author, ptr, i8, ptr, ptr }
%struct.author = type { %struct.strbuf, %struct.strbuf }

@stats = external dso_local local_unnamed_addr global %struct.stage_stats, align 8
@opts = external dso_local local_unnamed_addr global %struct.stage_options, align 8
@head = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [30 x i8], align 1
@count = external local_unnamed_addr global i64, align 8
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @file_list_clear(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare void @cache_object_init(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @process_node(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @cache_files() local_unnamed_addr #0 {
  %1 = alloca %struct.cache_object, align 8
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %1) #5
  %2 = load ptr, ptr @head, align 8, !tbaa !5
  %3 = tail call i32 @set_timer(i32 noundef 200) #5
  call void @cache_object_init(ptr noundef nonnull %1) #5
  %.not19 = icmp eq ptr %2, null
  br i1 %.not19, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %36
  %.022 = phi i64 [ %21, %36 ], [ 0, %0 ]
  %.01221 = phi i8 [ %.1, %36 ], [ 0, %0 ]
  %.01320 = phi ptr [ %38, %36 ], [ %2, %0 ]
  %4 = getelementptr inbounds i8, ptr %.01320, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  %6 = call zeroext i1 @find_file_from_cache(ptr noundef %5, ptr noundef nonnull %1)
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @opts, i64 12), align 4, !tbaa !17
  %.not16 = icmp eq i32 %7, 0
  br i1 %6, label %11, label %8

8:                                                ; preds = %.lr.ph
  br i1 %.not16, label %10, label %9

9:                                                ; preds = %8
  call void @print_file_list_node(ptr noundef nonnull %.01320)
  br label %10

10:                                               ; preds = %9, %8
  call void @process_node(ptr noundef nonnull %1, ptr noundef nonnull %.01320)
  br label %20

11:                                               ; preds = %.lr.ph
  br i1 %.not16, label %17, label %12

12:                                               ; preds = %11
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  %14 = load ptr, ptr %4, align 8, !tbaa !9
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, ptr noundef %14)
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22)
  br label %17

17:                                               ; preds = %12, %11
  %18 = load i64, ptr getelementptr inbounds (i8, ptr @stats, i64 24), align 8, !tbaa !20
  %19 = add i64 %18, 1
  store i64 %19, ptr getelementptr inbounds (i8, ptr @stats, i64 24), align 8, !tbaa !20
  br label %20

20:                                               ; preds = %17, %10
  %21 = add i64 %.022, 1
  %22 = trunc nuw i8 %.01221 to i1
  br i1 %22, label %25, label %23

23:                                               ; preds = %20
  %24 = call i32 (...) @got_signal() #5
  %.not17 = icmp eq i32 %24, 0
  %spec.select = select i1 %.not17, i8 %.01221, i8 1
  br label %25

25:                                               ; preds = %23, %20
  %.1 = phi i8 [ %.01221, %20 ], [ %spec.select, %23 ]
  %26 = call i32 (...) @got_signal() #5
  %.not18 = icmp eq i32 %26, 0
  br i1 %.not18, label %36, label %27

27:                                               ; preds = %25
  %28 = trunc nuw i8 %.1 to i1
  br i1 %28, label %29, label %36

29:                                               ; preds = %27
  %30 = mul i64 %21, 100
  %31 = load i64, ptr @count, align 8, !tbaa !22
  %32 = udiv i64 %30, %31
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i64 noundef %32)
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = call i32 @fflush(ptr noundef %34)
  call void (...) @reset_signal() #5
  br label %36

36:                                               ; preds = %29, %27, %25
  %37 = getelementptr inbounds i8, ptr %.01320, i64 240
  %38 = load ptr, ptr %37, align 8, !tbaa !23
  %.not = icmp eq ptr %38, null
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !24

._crit_edge.loopexit:                             ; preds = %36
  %39 = trunc nuw i8 %.1 to i1
  %40 = mul i64 %21, 100
  %41 = xor i1 %39, true
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %0
  %.012.lcssa = phi i1 [ true, %0 ], [ %41, %._crit_edge.loopexit ]
  %.0.lcssa = phi i64 [ 0, %0 ], [ %40, %._crit_edge.loopexit ]
  %42 = load i64, ptr getelementptr inbounds (i8, ptr @stats, i64 32), align 8, !tbaa !26
  %43 = icmp ne i64 %42, 0
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @opts, i64 12), align 4
  %45 = icmp ne i32 %44, 0
  %or.cond = select i1 %43, i1 %45, i1 false
  br i1 %or.cond, label %46, label %48

46:                                               ; preds = %._crit_edge
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  br label %48

48:                                               ; preds = %46, %._crit_edge
  %49 = call i32 (...) @got_signal() #5
  %.not14 = icmp eq i32 %49, 0
  %brmerge = select i1 %.not14, i1 true, i1 %.012.lcssa
  br i1 %brmerge, label %56, label %50

50:                                               ; preds = %48
  %51 = load i64, ptr @count, align 8, !tbaa !22
  %52 = udiv i64 %.0.lcssa, %51
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i64 noundef %52)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = call i32 @fflush(ptr noundef %54)
  call void (...) @reset_signal() #5
  br label %56

56:                                               ; preds = %48, %50
  call void (...) @stop_timer() #5
  %57 = load ptr, ptr @head, align 8, !tbaa !5
  call void @file_list_clear(ptr noundef %57)
  call void @cache_object_write(ptr noundef nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %1) #5
  ret void
}

declare i32 @set_timer(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @find_file_from_cache(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @print_file_list_node(ptr noundef) local_unnamed_addr #4

declare i32 @got_signal(...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

declare void @reset_signal(...) local_unnamed_addr #3

declare void @stop_timer(...) local_unnamed_addr #3

declare void @cache_object_write(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "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 = { "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 #4 = { inlinehint 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 #5 = { 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 16}
!10 = !{!"file_list", !11, i64 0, !11, i64 24, !7, i64 48, !13, i64 88, !14, i64 92, !15, i64 96, !6, i64 240}
!11 = !{!"strbuf", !12, i64 0, !12, i64 8, !6, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"stat", !12, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !16, i64 72, !16, i64 88, !16, i64 104, !7, i64 120}
!16 = !{!"timespec", !12, i64 0, !12, i64 8}
!17 = !{!18, !14, i64 12}
!18 = !{!"stage_options", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !12, i64 16, !13, i64 24, !13, i64 25, !14, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !19, i64 56}
!19 = !{!"pack_file_cache", !6, i64 0, !11, i64 8}
!20 = !{!21, !12, i64 24}
!21 = !{!"stage_stats", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!22 = !{!12, !12, i64 0}
!23 = !{!10, !6, i64 240}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!21, !12, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass