; LLVM IR from microsoft/ntttcp-for-linux :: src (oscounter)

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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [75 x i8], align 1

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

; 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
define dso_local void @get_cpu_usage_from_proc_stat(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca [256 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !9
  store i64 0, ptr %9, align 8, !tbaa !9
  store i64 0, ptr %8, align 8, !tbaa !9
  store i64 0, ptr %7, align 8, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !9
  store i64 0, ptr %5, align 8, !tbaa !9
  store i64 0, ptr %4, align 8, !tbaa !9
  store i64 0, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %21 = call noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %21, ptr %13, align 8, !tbaa !5
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %1
  call void @PRINT_ERR(ptr noundef @.str.2)
  store i32 1, ptr %14, align 4
  br label %114

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 -1, ptr %16, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %62, %25
  %27 = load i32, ptr %16, align 4, !tbaa !11
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %29 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = call ptr @fgets(ptr noundef %29, i32 noundef 255, ptr noundef %30)
  store ptr %31, ptr %17, align 8, !tbaa !5
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %26
  call void @PRINT_ERR(ptr noundef @.str.3)
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = call i32 @fclose(ptr noundef %35)
  store i32 1, ptr %14, align 4
  br label %44

37:                                               ; preds = %26
  %38 = load i32, ptr %16, align 4, !tbaa !11
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %43

40:                                               ; preds = %37
  %41 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
  %42 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %41, ptr noundef @.str.4, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12) #4
  br label %43

43:                                               ; preds = %40, %37
  store i32 0, ptr %14, align 4
  br label %44

44:                                               ; preds = %43, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %45 = load i32, ptr %14, align 4
  switch i32 %45, label %113 [
    i32 0, label %46
  ]

46:                                               ; preds = %44
  br label %47

47:                                               ; preds = %46
  %48 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 0
  %49 = load i8, ptr %48, align 16, !tbaa !13
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 99
  br i1 %51, label %52, label %62

52:                                               ; preds = %47
  %53 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 1
  %54 = load i8, ptr %53, align 1, !tbaa !13
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 112
  br i1 %56, label %57, label %62

57:                                               ; preds = %52
  %58 = getelementptr inbounds [256 x i8], ptr %15, i64 0, i64 2
  %59 = load i8, ptr %58, align 2, !tbaa !13
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 117
  br label %62

62:                                               ; preds = %57, %52, %47
  %63 = phi i1 [ false, %52 ], [ false, %47 ], [ %61, %57 ]
  br i1 %63, label %26, label %64, !llvm.loop !14

64:                                               ; preds = %62
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = call i32 @fclose(ptr noundef %65)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %67 = load i32, ptr %16, align 4, !tbaa !11
  %68 = sub nsw i32 %67, 1
  store i32 %68, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 1, ptr %19, align 4, !tbaa !11
  %69 = load i32, ptr %18, align 4, !tbaa !11
  %70 = load i32, ptr %19, align 4, !tbaa !11
  %71 = icmp sgt i32 %69, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %64
  %73 = load i32, ptr %18, align 4, !tbaa !11
  br label %76

74:                                               ; preds = %64
  %75 = load i32, ptr %19, align 4, !tbaa !11
  br label %76

76:                                               ; preds = %74, %72
  %77 = phi i32 [ %73, %72 ], [ %75, %74 ]
  store i32 %77, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %78 = load i32, ptr %20, align 4, !tbaa !11
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %79, i32 0, i32 0
  store i32 %78, ptr %80, align 8, !tbaa !16
  %81 = load i64, ptr %3, align 8, !tbaa !9
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %82, i32 0, i32 2
  store i64 %81, ptr %83, align 8, !tbaa !18
  %84 = load i64, ptr %5, align 8, !tbaa !9
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %85, i32 0, i32 3
  store i64 %84, ptr %86, align 8, !tbaa !19
  %87 = load i64, ptr %6, align 8, !tbaa !9
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %88, i32 0, i32 4
  store i64 %87, ptr %89, align 8, !tbaa !20
  %90 = load i64, ptr %7, align 8, !tbaa !9
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %91, i32 0, i32 5
  store i64 %90, ptr %92, align 8, !tbaa !21
  %93 = load i64, ptr %9, align 8, !tbaa !9
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %94, i32 0, i32 6
  store i64 %93, ptr %95, align 8, !tbaa !22
  %96 = load i64, ptr %3, align 8, !tbaa !9
  %97 = load i64, ptr %4, align 8, !tbaa !9
  %98 = add i64 %96, %97
  %99 = load i64, ptr %5, align 8, !tbaa !9
  %100 = add i64 %98, %99
  %101 = load i64, ptr %6, align 8, !tbaa !9
  %102 = add i64 %100, %101
  %103 = load i64, ptr %7, align 8, !tbaa !9
  %104 = add i64 %102, %103
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = add i64 %104, %105
  %107 = load i64, ptr %9, align 8, !tbaa !9
  %108 = add i64 %106, %107
  %109 = load i64, ptr %10, align 8, !tbaa !9
  %110 = add i64 %108, %109
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %111, i32 0, i32 1
  store i64 %110, ptr %112, align 8, !tbaa !23
  store i32 0, ptr %14, align 4
  br label %113

113:                                              ; preds = %76, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #4
  br label %114

114:                                              ; preds = %113, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  %115 = load i32, ptr %14, align 4
  switch i32 %115, label %117 [
    i32 0, label %116
    i32 1, label %116
  ]

116:                                              ; preds = %114, %114
  ret void

117:                                              ; preds = %114
  unreachable
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare void @PRINT_ERR(ptr noundef) #2

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #3

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 "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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !12, i64 0}
!17 = !{!"cpu_usage_from_proc_stat", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!18 = !{!17, !10, i64 16}
!19 = !{!17, !10, i64 24}
!20 = !{!17, !10, i64 32}
!21 = !{!17, !10, i64 40}
!22 = !{!17, !10, i64 48}
!23 = !{!17, !10, i64 8}


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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [75 x i8], align 1

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

; 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
define dso_local void @get_cpu_usage_from_proc_stat(ptr nocapture noundef writeonly %0) local_unnamed_addr #1 {
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  store i64 0, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %7, align 8, !tbaa !5
  store i64 0, ptr %6, align 8, !tbaa !5
  store i64 0, ptr %5, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !5
  store i64 0, ptr %3, align 8, !tbaa !5
  store i64 0, ptr %2, align 8, !tbaa !5
  %13 = tail call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %.peel.begin

15:                                               ; preds = %1
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.2) #5
  br label %57

.peel.begin:                                      ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %12) #5
  %16 = getelementptr inbounds i8, ptr %12, i64 1
  %17 = getelementptr inbounds i8, ptr %12, i64 2
  %18 = call ptr @fgets(ptr noundef nonnull %12, i32 noundef 255, ptr noundef nonnull %13)
  %.not.peel = icmp eq ptr %18, null
  br i1 %.not.peel, label %.loopexit, label %19

19:                                               ; preds = %.peel.begin
  %20 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %12, ptr noundef nonnull @.str.4, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #5
  %21 = load i8, ptr %12, align 16, !tbaa !9
  %22 = icmp eq i8 %21, 99
  %23 = load i8, ptr %16, align 1
  %24 = icmp eq i8 %23, 112
  %or.cond.peel = select i1 %22, i1 %24, i1 false
  %25 = load i8, ptr %17, align 2
  %26 = icmp eq i8 %25, 117
  %or.cond7.peel = select i1 %or.cond.peel, i1 %26, i1 false
  br i1 %or.cond7.peel, label %.peel.next, label %.critedge

.peel.next:                                       ; preds = %19, %._crit_edge32
  %.027 = phi i32 [ %29, %._crit_edge32 ], [ 0, %19 ]
  %27 = call ptr @fgets(ptr noundef nonnull %12, i32 noundef 255, ptr noundef nonnull %13)
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %.loopexit, label %._crit_edge32

.loopexit:                                        ; preds = %.peel.next, %.peel.begin
  call void @PRINT_ERR(ptr noundef nonnull @.str.3) #5
  %28 = call i32 @fclose(ptr noundef nonnull %13)
  br label %56

._crit_edge32:                                    ; preds = %.peel.next
  %29 = add nuw nsw i32 %.027, 1
  %.pre34 = load i8, ptr %17, align 2
  %.pre33 = load i8, ptr %16, align 1
  %.pre = load i8, ptr %12, align 16, !tbaa !9
  %30 = icmp eq i8 %.pre, 99
  %31 = icmp eq i8 %.pre33, 112
  %or.cond = select i1 %30, i1 %31, i1 false
  %32 = icmp eq i8 %.pre34, 117
  %or.cond7 = select i1 %or.cond, i1 %32, i1 false
  br i1 %or.cond7, label %.peel.next, label %.critedge, !llvm.loop !10

.critedge:                                        ; preds = %._crit_edge32, %19
  %.027.lcssa30 = phi i32 [ -1, %19 ], [ %.027, %._crit_edge32 ]
  %33 = call i32 @fclose(ptr noundef nonnull %13)
  %34 = call i32 @llvm.smax.i32(i32 %.027.lcssa30, i32 1)
  store i32 %34, ptr %0, align 8, !tbaa !13
  %35 = load i64, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %35, ptr %36, align 8, !tbaa !16
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %37, ptr %38, align 8, !tbaa !17
  %39 = load i64, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %39, ptr %40, align 8, !tbaa !18
  %41 = load i64, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 %41, ptr %42, align 8, !tbaa !19
  %43 = load i64, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %43, ptr %44, align 8, !tbaa !20
  %45 = load i64, ptr %3, align 8, !tbaa !5
  %46 = load i64, ptr %7, align 8, !tbaa !5
  %47 = load i64, ptr %9, align 8, !tbaa !5
  %48 = add i64 %37, %35
  %49 = add i64 %48, %39
  %50 = add i64 %49, %41
  %51 = add i64 %50, %43
  %52 = add i64 %51, %45
  %53 = add i64 %52, %46
  %54 = add i64 %53, %47
  %55 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %54, ptr %55, align 8, !tbaa !21
  br label %56

56:                                               ; preds = %.loopexit, %.critedge
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #5
  br label %57

57:                                               ; preds = %56, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret void
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

declare void @PRINT_ERR(ptr noundef) local_unnamed_addr #3

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

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

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

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

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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11, !12}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = !{!14, !15, i64 0}
!14 = !{!"cpu_usage_from_proc_stat", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !6, i64 16}
!17 = !{!14, !6, i64 24}
!18 = !{!14, !6, i64 32}
!19 = !{!14, !6, i64 40}
!20 = !{!14, !6, i64 48}
!21 = !{!14, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass