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

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

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @file(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca [100 x i8], align 16
  %7 = alloca [128 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.dirstream, align 8
  %12 = alloca %struct.stat, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 100, ptr %6) #6
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #6
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
  %13 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %14 = call ptr @getcwd(ptr noundef %13, i64 noundef 128)
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %18

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

18:                                               ; preds = %2
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 2
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  call void @shell_puts(ptr noundef @.str.1)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %101

22:                                               ; preds = %18
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  %25 = getelementptr inbounds ptr, ptr %24, i64 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %26, i64 0
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = icmp ne i32 %29, 47
  br i1 %30, label %31, label %42

31:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %32 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %33 = call i64 @strlen(ptr noundef %32) #7
  %34 = trunc i64 %33 to i32
  store i32 %34, ptr %9, align 4, !tbaa !5
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %36
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 1
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %37, i64 noundef 100, ptr noundef @.str.2, ptr noundef %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %49

42:                                               ; preds = %23
  %43 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call ptr @strncpy(ptr noundef %43, ptr noundef %46, i64 noundef 127) #6
  %48 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 127
  store i8 0, ptr %48, align 1, !tbaa !11
  br label %49

49:                                               ; preds = %42, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %50 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %51 = call i32 @open(ptr noundef %50, i32 noundef 0)
  store i32 %51, ptr %10, align 4, !tbaa !5
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 0
  br i1 %53, label %54, label %70

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %55 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %56 = call i32 @opendir(ptr noundef %55, ptr noundef %11)
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %63

58:                                               ; preds = %54
  %59 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %60 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %61 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %59, i64 noundef 100, ptr noundef @.str.3, ptr noundef %60) #6
  %62 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  call void @shell_puts(ptr noundef %62)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %69

63:                                               ; preds = %54
  %64 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %65 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %66 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %67 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %64, i64 noundef 100, ptr noundef @.str.4, ptr noundef %65, ptr noundef %66) #6
  %68 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  call void @shell_puts(ptr noundef %68)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %69

69:                                               ; preds = %63, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %100

70:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 20, ptr %12) #6
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = call i32 @fstat(i32 noundef %71, ptr noundef %12)
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = call i32 @close(i32 noundef %73)
  %75 = getelementptr inbounds %struct.stat, ptr %12, i32 0, i32 0
  %76 = load i8, ptr %75, align 4, !tbaa !12
  %77 = zext i8 %76 to i32
  switch i32 %77, label %94 [
    i32 0, label %78
    i32 1, label %82
    i32 2, label %86
    i32 3, label %90
  ]

78:                                               ; preds = %70
  %79 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %80 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %81 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %79, i64 noundef 100, ptr noundef @.str.5, ptr noundef %80) #6
  br label %98

82:                                               ; preds = %70
  %83 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %84 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %85 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %83, i64 noundef 100, ptr noundef @.str.6, ptr noundef %84) #6
  br label %98

86:                                               ; preds = %70
  %87 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %88 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %89 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %87, i64 noundef 100, ptr noundef @.str.7, ptr noundef %88) #6
  br label %98

90:                                               ; preds = %70
  %91 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %92 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %93 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %91, i64 noundef 100, ptr noundef @.str.8, ptr noundef %92) #6
  br label %98

94:                                               ; preds = %70
  %95 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %96 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %97 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %95, i64 noundef 100, ptr noundef @.str.9, ptr noundef %96) #6
  br label %98

98:                                               ; preds = %94, %90, %86, %82, %78
  %99 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  call void @shell_puts(ptr noundef %99)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %12) #6
  br label %100

100:                                              ; preds = %98, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %101

101:                                              ; preds = %100, %21, %17
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %6) #6
  %102 = load i32, ptr %3, align 4
  ret i32 %102
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare void @shell_puts(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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

declare i32 @open(ptr noundef, i32 noundef) #3

declare i32 @opendir(ptr noundef, ptr noundef) #3

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

declare i32 @close(i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nounwind willreturn memory(read) "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 "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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !7, i64 0}
!13 = !{!"stat", !7, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}


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

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@switch.table.file = private unnamed_addr constant [4 x ptr] [ptr @.str.5, ptr @.str.6, ptr @.str.7, ptr @.str.8], align 8

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @file(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [100 x i8], align 16
  %4 = alloca [128 x i8], align 16
  %5 = alloca %struct.dirstream, align 8
  %6 = alloca %struct.stat, align 4
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %3, i8 0, i64 100, i1 false)
  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)
  %7 = call ptr @getcwd(ptr noundef nonnull %4, i64 noundef 128) #7
  %8 = icmp eq i32 %0, 1
  br i1 %8, label %9, label %10

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

10:                                               ; preds = %2
  %11 = icmp sgt i32 %0, 2
  br i1 %11, label %12, label %13

12:                                               ; preds = %10
  call void @shell_puts(ptr noundef nonnull @.str.1) #7
  br label %44

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = load i8, ptr %15, align 1, !tbaa !9
  %.not = icmp eq i8 %16, 47
  br i1 %.not, label %22, label %17

17:                                               ; preds = %13
  %18 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %4) #8
  %sext = shl i64 %18, 32
  %19 = ashr exact i64 %sext, 32
  %20 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 %19
  %21 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %20, i64 noundef 100, ptr noundef nonnull @.str.2, ptr noundef nonnull %15) #7
  br label %25

22:                                               ; preds = %13
  %23 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %15, i64 noundef 127) #7
  %24 = getelementptr inbounds i8, ptr %4, i64 127
  store i8 0, ptr %24, align 1, !tbaa !9
  br label %25

25:                                               ; preds = %22, %17
  %26 = call i32 @open(ptr noundef nonnull %4, i32 noundef 0) #7
  %27 = icmp slt i32 %26, 0
  br i1 %27, label %28, label %36

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %29 = call i32 @opendir(ptr noundef nonnull %4, ptr noundef nonnull %5) #7
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %28
  %32 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 100, ptr noundef nonnull @.str.3, ptr noundef nonnull %4) #7
  br label %35

33:                                               ; preds = %28
  %34 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 100, ptr noundef nonnull @.str.4, ptr noundef nonnull %4, ptr noundef nonnull %4) #7
  br label %35

35:                                               ; preds = %33, %31
  %.0 = phi i32 [ 0, %31 ], [ 1, %33 ]
  call void @shell_puts(ptr noundef nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %44

36:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #7
  %37 = call i32 @fstat(i32 noundef %26, ptr noundef nonnull %6)
  %38 = call i32 @close(i32 noundef %26) #7
  %39 = load i8, ptr %6, align 4, !tbaa !10
  %40 = icmp ult i8 %39, 4
  br i1 %40, label %switch.lookup, label %42

switch.lookup:                                    ; preds = %36
  %41 = zext nneg i8 %39 to i64
  %switch.gep = getelementptr inbounds [4 x ptr], ptr @switch.table.file, i64 0, i64 %41
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %42

42:                                               ; preds = %36, %switch.lookup
  %.str.9.sink = phi ptr [ %switch.load, %switch.lookup ], [ @.str.9, %36 ]
  %43 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %3, i64 noundef 100, ptr noundef nonnull %.str.9.sink, ptr noundef nonnull %4) #7
  call void @shell_puts(ptr noundef nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #7
  br label %44

44:                                               ; preds = %35, %42, %12, %9
  %.2 = phi i32 [ 1, %9 ], [ 1, %12 ], [ %.0, %35 ], [ 0, %42 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #7
  ret i32 %.2
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare void @shell_puts(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

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

; 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 #6

declare i32 @open(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @opendir(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @close(i32 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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, !7, i64 0}
!11 = !{!"stat", !7, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"int", !7, i64 0}


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