; LLVM IR from tenok-rtos/tenok :: user/shell (xxd)

; 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.stat = type { i8, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @xxd(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [128 x i8], align 16
  %7 = alloca [128 x i8], align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.stat, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [100 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp ne i32 %17, 2
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  call void @shell_puts(ptr noundef @.str)
  store i32 1, ptr %3, align 4
  br label %113

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 128, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 128, i1 false)
  %21 = load ptr, ptr %5, align 8, !tbaa !9
  %22 = getelementptr inbounds ptr, ptr %21, i64 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 0
  %25 = load i8, ptr %24, align 1, !tbaa !11
  %26 = sext i8 %25 to i32
  %27 = icmp ne i32 %26, 47
  br i1 %27, label %28, label %37

28:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
  %29 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %30 = call ptr @getcwd(ptr noundef %29, i64 noundef 128)
  %31 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %32 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %33 = load ptr, ptr %5, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %31, i64 noundef 128, ptr noundef @.str.1, ptr noundef %32, ptr noundef %35) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #5
  br label %44

37:                                               ; preds = %20
  %38 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %39, i64 1
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = call ptr @strncpy(ptr noundef %38, ptr noundef %41, i64 noundef 127) #5
  %43 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 127
  store i8 0, ptr %43, align 1, !tbaa !11
  br label %44

44:                                               ; preds = %37, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %45 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %46 = call ptr @_fopen(ptr noundef %45, ptr noundef @.str.2)
  store ptr %46, ptr %8, align 8, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  call void @shell_puts(ptr noundef @.str.3)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %112

50:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 20, ptr %10) #5
  %51 = load ptr, ptr %8, align 8, !tbaa !9
  %52 = call i32 @_fileno(ptr noundef %51)
  %53 = call i32 @fstat(i32 noundef %52, ptr noundef %10)
  %54 = load ptr, ptr %8, align 8, !tbaa !9
  %55 = call i32 @_fseek(ptr noundef %54, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %56 = getelementptr inbounds %struct.stat, ptr %10, i32 0, i32 3
  %57 = load i32, ptr %56, align 4, !tbaa !12
  store i32 %57, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 100, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %107, %50
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %61, label %108

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %62 = load i32, ptr %11, align 4, !tbaa !5
  %63 = icmp sge i32 %62, 16
  br i1 %63, label %64, label %67

64:                                               ; preds = %61
  store i32 16, ptr %15, align 4, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !5
  %66 = sub nsw i32 %65, 16
  store i32 %66, ptr %11, align 4, !tbaa !5
  br label %69

67:                                               ; preds = %61
  %68 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %68, ptr %15, align 4, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %67, %64
  %70 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %71 = load i32, ptr %15, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  %74 = call i64 @_fread(ptr noundef %70, i64 noundef %72, i64 noundef 1, ptr noundef %73)
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = getelementptr inbounds [100 x i8], ptr %13, i64 0, i64 0
  %77 = load i32, ptr %15, align 4, !tbaa !5
  call void @xxd_print_line(i32 noundef %75, ptr noundef %76, i32 noundef %77)
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = add i32 %78, 16
  store i32 %79, ptr %12, align 4, !tbaa !5
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %69
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %105

83:                                               ; preds = %69
  %84 = load i32, ptr %14, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %14, align 4, !tbaa !5
  %86 = load i32, ptr %14, align 4, !tbaa !5
  %87 = icmp eq i32 %86, 10
  br i1 %87, label %88, label %104

88:                                               ; preds = %83
  call void @shell_puts(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %89 = call signext i8 @xxd_wait_key()
  store i8 %89, ptr %16, align 1, !tbaa !11
  %90 = load i8, ptr %16, align 1, !tbaa !11
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 13
  br i1 %92, label %93, label %94

93:                                               ; preds = %88
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %100

94:                                               ; preds = %88
  %95 = load i8, ptr %16, align 1, !tbaa !11
  %96 = sext i8 %95 to i32
  %97 = icmp eq i32 %96, 113
  br i1 %97, label %98, label %99

98:                                               ; preds = %94
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %101

99:                                               ; preds = %94
  br label %100

100:                                              ; preds = %99, %93
  store i32 0, ptr %9, align 4
  br label %101

101:                                              ; preds = %100, %98
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  %102 = load i32, ptr %9, align 4
  switch i32 %102, label %105 [
    i32 0, label %103
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %83
  store i32 0, ptr %9, align 4
  br label %105

105:                                              ; preds = %104, %101, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %106 = load i32, ptr %9, align 4
  switch i32 %106, label %111 [
    i32 0, label %107
  ]

107:                                              ; preds = %105
  br label %58, !llvm.loop !14

108:                                              ; preds = %58
  %109 = load ptr, ptr %8, align 8, !tbaa !9
  %110 = call i32 @_fclose(ptr noundef %109)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %111

111:                                              ; preds = %108, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 100, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr %10) #5
  br label %112

112:                                              ; preds = %111, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #5
  br label %113

113:                                              ; preds = %112, %19
  %114 = load i32, ptr %3, align 4
  ret i32 %114
}

declare void @shell_puts(ptr noundef) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare ptr @getcwd(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #4

declare ptr @_fopen(ptr noundef, ptr noundef) #1

declare i32 @fstat(i32 noundef, ptr noundef) #1

declare i32 @_fileno(ptr noundef) #1

declare i32 @_fseek(ptr noundef, i64 noundef, i32 noundef) #1

declare i64 @_fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @xxd_print_line(i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden signext i8 @xxd_wait_key() #0

declare i32 @_fclose(ptr noundef) #1

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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 12}
!13 = !{!"stat", !7, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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.stat = type { i8, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @xxd(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [128 x i8], align 16
  %4 = alloca [128 x i8], align 16
  %5 = alloca %struct.stat, align 4
  %6 = alloca [100 x i8], align 16
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %8, label %7

7:                                                ; preds = %2
  tail call void @shell_puts(ptr noundef nonnull @.str) #7
  br label %42

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %3, i8 0, i64 128, i1 false)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = load i8, ptr %10, align 1, !tbaa !9
  %.not40 = icmp eq i8 %11, 47
  br i1 %.not40, label %16, label %12

12:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %4, i8 0, i64 128, i1 false)
  %13 = call ptr @getcwd(ptr noundef nonnull %4, i64 noundef 128) #7
  %14 = load ptr, ptr %9, align 8, !tbaa !5
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 128, ptr noundef nonnull @.str.1, ptr noundef nonnull %4, ptr noundef %14) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #7
  br label %18

16:                                               ; preds = %8
  %17 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %10, i64 noundef 127) #7
  br label %18

18:                                               ; preds = %16, %12
  %19 = call ptr @_fopen(ptr noundef nonnull %3, ptr noundef nonnull @.str.2) #7
  %.not41 = icmp eq ptr %19, null
  br i1 %.not41, label %20, label %21

20:                                               ; preds = %18
  call void @shell_puts(ptr noundef nonnull @.str.3) #7
  br label %41

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #7
  %22 = call i32 @_fileno(ptr noundef nonnull %19) #7
  %23 = call i32 @fstat(i32 noundef %22, ptr noundef nonnull %5)
  %24 = call i32 @_fseek(ptr noundef nonnull %19, i64 noundef 0, i32 noundef 0) #7
  %25 = getelementptr inbounds i8, ptr %5, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %6) #7
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21, %.fold.split
  %.02646 = phi i32 [ %.430, %.fold.split ], [ 0, %21 ]
  %.03145 = phi i32 [ %31, %.fold.split ], [ 0, %21 ]
  %.03244 = phi i32 [ %28, %.fold.split ], [ %26, %21 ]
  %28 = add nsw i32 %.03244, -16
  %.025 = call i32 @llvm.umin.i32(i32 %.03244, i32 16)
  %29 = zext nneg i32 %.025 to i64
  %30 = call i64 @_fread(ptr noundef nonnull %6, i64 noundef %29, i64 noundef 1, ptr noundef nonnull %19) #7
  call void @xxd_print_line(i32 noundef %.03145, ptr noundef nonnull %6, i32 noundef %.025)
  %31 = add i32 %.03145, 16
  %32 = icmp ult i32 %.03244, 17
  br i1 %32, label %.thread, label %33

33:                                               ; preds = %.lr.ph
  %34 = add nsw i32 %.02646, 1
  %35 = icmp eq i32 %34, 10
  br i1 %35, label %36, label %.fold.split

36:                                               ; preds = %33
  call void @shell_puts(ptr noundef nonnull @.str.4) #7
  %37 = call signext i8 @xxd_wait_key()
  switch i8 %37, label %.fold.split [
    i8 13, label %38
    i8 113, label %.thread
  ]

38:                                               ; preds = %36
  br label %.fold.split

.fold.split:                                      ; preds = %36, %38, %33
  %.430 = phi i32 [ %34, %33 ], [ 0, %38 ], [ 10, %36 ]
  %39 = icmp sgt i32 %.03244, 16
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.fold.split, %21
  %40 = call i32 @_fclose(ptr noundef nonnull %19) #7
  br label %.thread

.thread:                                          ; preds = %36, %.lr.ph, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #7
  br label %41

41:                                               ; preds = %.thread, %20
  %.5 = phi i32 [ 0, %.thread ], [ 1, %20 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #7
  br label %42

42:                                               ; preds = %41, %7
  %.6 = phi i32 [ 1, %7 ], [ %.5, %41 ]
  ret i32 %.6
}

declare void @shell_puts(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare ptr @getcwd(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #5

declare ptr @_fopen(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fstat(i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

declare i32 @_fileno(ptr noundef) local_unnamed_addr #1

declare i32 @_fseek(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

declare i64 @_fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @xxd_print_line(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden signext i8 @xxd_wait_key() local_unnamed_addr #0

declare i32 @_fclose(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #6

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 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 12}
!11 = !{!"stat", !7, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass