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

; 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.commit = type { i16, [20 x i8], [50 x i8], [41 x i8], ptr, %struct.strbuf, %struct.strbuf, %struct.timestamp, i64, i64 }
%struct.strbuf = type { i64, i64, ptr }
%struct.timestamp = type { i64, ptr }

@stderr = external global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 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 i32 @read_commit_object(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.commit, ptr %7, i32 0, i32 0
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = call i64 @fread(ptr noundef %8, i64 noundef 2, i64 noundef 1, ptr noundef %9)
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.commit, ptr %11, i32 0, i32 1
  %13 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = call i64 @fread(ptr noundef %13, i64 noundef 1, i64 noundef 20, ptr noundef %14)
  %16 = icmp ult i64 %15, 20
  br i1 %16, label %17, label %31

17:                                               ; preds = %2
  br label %18

18:                                               ; preds = %17
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.18) #7
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.19) #7
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.20) #7
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.21) #7
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.22) #7
  call void @exit(i32 noundef 1) #8
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30, %2
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.commit, ptr %32, i32 0, i32 0
  %34 = load i16, ptr %33, align 8, !tbaa !9
  %35 = sext i16 %34 to i32
  %36 = and i32 %35, 1
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %44

38:                                               ; preds = %31
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.commit, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds [50 x i8], ptr %40, i64 0, i64 0
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call i64 @fread(ptr noundef %41, i64 noundef 1, i64 noundef 50, ptr noundef %42)
  br label %44

44:                                               ; preds = %38, %31
  %45 = call noalias ptr @malloc(i64 noundef 48) #9
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.commit, ptr %46, i32 0, i32 4
  store ptr %45, ptr %47, align 8, !tbaa !15
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.commit, ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  call void @author_init(ptr noundef %50)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.commit, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  call void @author_read(ptr noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call i64 @fread(ptr noundef %5, i64 noundef 8, i64 noundef 1, ptr noundef %55)
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.commit, ptr %57, i32 0, i32 5
  %59 = load i64, ptr %5, align 8, !tbaa !16
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call i64 @strbuf_fread(ptr noundef %58, i64 noundef %59, ptr noundef %60)
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call i64 @fread(ptr noundef %5, i64 noundef 8, i64 noundef 1, ptr noundef %62)
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.commit, ptr %64, i32 0, i32 6
  %66 = load i64, ptr %5, align 8, !tbaa !16
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call i64 @strbuf_fread(ptr noundef %65, i64 noundef %66, ptr noundef %67)
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.commit, ptr %69, i32 0, i32 7
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  call void @time_stamp_read(ptr noundef %70, ptr noundef %71)
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.commit, ptr %72, i32 0, i32 8
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call i64 @fread(ptr noundef %73, i64 noundef 8, i64 noundef 1, ptr noundef %74)
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.commit, ptr %76, i32 0, i32 9
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call i64 @fread(ptr noundef %77, i64 noundef 8, i64 noundef 1, ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !17
  br label %80

80:                                               ; preds = %100, %44
  %81 = load i32, ptr %6, align 4, !tbaa !17
  %82 = icmp slt i32 %81, 20
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %103

84:                                               ; preds = %80
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.commit, ptr %85, i32 0, i32 3
  %87 = getelementptr inbounds [41 x i8], ptr %86, i64 0, i64 0
  %88 = load i32, ptr %6, align 4, !tbaa !17
  %89 = mul nsw i32 2, %88
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %87, i64 %90
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.commit, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %6, align 4, !tbaa !17
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [20 x i8], ptr %93, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !19
  %98 = zext i8 %97 to i32
  %99 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %91, ptr noundef @.str.23, i32 noundef %98) #7
  br label %100

100:                                              ; preds = %84
  %101 = load i32, ptr %6, align 4, !tbaa !17
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %6, align 4, !tbaa !17
  br label %80, !llvm.loop !20

103:                                              ; preds = %83
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.commit, ptr %104, i32 0, i32 3
  %106 = getelementptr inbounds [41 x i8], ptr %105, i64 0, i64 40
  store i8 0, ptr %106, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret i32 0
}

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @author_read(ptr noundef, ptr noundef) #6

declare i64 @strbuf_fread(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @time_stamp_read(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind
declare i32 @sprintf(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 = { noreturn 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 allocsize(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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0) }

!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, !11, i64 0}
!10 = !{!"commit", !11, i64 0, !7, i64 2, !7, i64 22, !7, i64 72, !6, i64 120, !12, i64 128, !12, i64 152, !14, i64 176, !13, i64 192, !13, i64 200}
!11 = !{!"short", !7, i64 0}
!12 = !{!"strbuf", !13, i64 0, !13, i64 8, !6, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!"timestamp", !13, i64 0, !6, i64 8}
!15 = !{!10, !6, i64 120}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 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 noundef i32 @read_commit_object(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %4 = tail call i64 @fread(ptr noundef %0, i64 noundef 2, i64 noundef 1, ptr noundef %1)
  %5 = getelementptr inbounds i8, ptr %0, i64 2
  %6 = tail call i64 @fread(ptr noundef nonnull %5, i64 noundef 1, i64 noundef 20, ptr noundef %1)
  %7 = icmp ult i64 %6, 20
  br i1 %7, label %8, label %19

8:                                                ; preds = %2
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.18) #8
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.19) #8
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.20) #8
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.21) #8
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.22) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

19:                                               ; preds = %2
  %20 = load i16, ptr %0, align 8, !tbaa !9
  %21 = and i16 %20, 1
  %.not = icmp eq i16 %21, 0
  br i1 %.not, label %25, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 22
  %24 = tail call i64 @fread(ptr noundef nonnull %23, i64 noundef 1, i64 noundef 50, ptr noundef %1)
  br label %25

25:                                               ; preds = %22, %19
  %26 = tail call noalias dereferenceable_or_null(48) ptr @malloc(i64 noundef 48) #10
  %27 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %26, ptr %27, align 8, !tbaa !15
  tail call void @author_init(ptr noundef %26)
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  tail call void @author_read(ptr noundef %28, ptr noundef %1)
  %29 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 8, i64 noundef 1, ptr noundef %1)
  %30 = getelementptr inbounds i8, ptr %0, i64 128
  %31 = load i64, ptr %3, align 8, !tbaa !16
  %32 = tail call i64 @strbuf_fread(ptr noundef nonnull %30, i64 noundef %31, ptr noundef %1) #7
  %33 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 8, i64 noundef 1, ptr noundef %1)
  %34 = getelementptr inbounds i8, ptr %0, i64 152
  %35 = load i64, ptr %3, align 8, !tbaa !16
  %36 = tail call i64 @strbuf_fread(ptr noundef nonnull %34, i64 noundef %35, ptr noundef %1) #7
  %37 = getelementptr inbounds i8, ptr %0, i64 176
  tail call void @time_stamp_read(ptr noundef nonnull %37, ptr noundef %1)
  %38 = getelementptr inbounds i8, ptr %0, i64 192
  %39 = tail call i64 @fread(ptr noundef nonnull %38, i64 noundef 8, i64 noundef 1, ptr noundef %1)
  %40 = getelementptr inbounds i8, ptr %0, i64 200
  %41 = tail call i64 @fread(ptr noundef nonnull %40, i64 noundef 8, i64 noundef 1, ptr noundef %1)
  %42 = getelementptr inbounds i8, ptr %0, i64 72
  %43 = load i8, ptr %5, align 1, !tbaa !17
  %44 = zext i8 %43 to i32
  %45 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %42, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %44) #7
  %46 = getelementptr inbounds i8, ptr %0, i64 74
  %47 = getelementptr inbounds i8, ptr %0, i64 3
  %48 = load i8, ptr %47, align 1, !tbaa !17
  %49 = zext i8 %48 to i32
  %50 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %46, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %49) #7
  %51 = getelementptr inbounds i8, ptr %0, i64 76
  %52 = getelementptr inbounds i8, ptr %0, i64 4
  %53 = load i8, ptr %52, align 1, !tbaa !17
  %54 = zext i8 %53 to i32
  %55 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %54) #7
  %56 = getelementptr inbounds i8, ptr %0, i64 78
  %57 = getelementptr inbounds i8, ptr %0, i64 5
  %58 = load i8, ptr %57, align 1, !tbaa !17
  %59 = zext i8 %58 to i32
  %60 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %56, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %59) #7
  %61 = getelementptr inbounds i8, ptr %0, i64 80
  %62 = getelementptr inbounds i8, ptr %0, i64 6
  %63 = load i8, ptr %62, align 1, !tbaa !17
  %64 = zext i8 %63 to i32
  %65 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %61, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %64) #7
  %66 = getelementptr inbounds i8, ptr %0, i64 82
  %67 = getelementptr inbounds i8, ptr %0, i64 7
  %68 = load i8, ptr %67, align 1, !tbaa !17
  %69 = zext i8 %68 to i32
  %70 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %66, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %69) #7
  %71 = getelementptr inbounds i8, ptr %0, i64 84
  %72 = getelementptr inbounds i8, ptr %0, i64 8
  %73 = load i8, ptr %72, align 1, !tbaa !17
  %74 = zext i8 %73 to i32
  %75 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %71, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %74) #7
  %76 = getelementptr inbounds i8, ptr %0, i64 86
  %77 = getelementptr inbounds i8, ptr %0, i64 9
  %78 = load i8, ptr %77, align 1, !tbaa !17
  %79 = zext i8 %78 to i32
  %80 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %76, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %79) #7
  %81 = getelementptr inbounds i8, ptr %0, i64 88
  %82 = getelementptr inbounds i8, ptr %0, i64 10
  %83 = load i8, ptr %82, align 1, !tbaa !17
  %84 = zext i8 %83 to i32
  %85 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %81, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %84) #7
  %86 = getelementptr inbounds i8, ptr %0, i64 90
  %87 = getelementptr inbounds i8, ptr %0, i64 11
  %88 = load i8, ptr %87, align 1, !tbaa !17
  %89 = zext i8 %88 to i32
  %90 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %86, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %89) #7
  %91 = getelementptr inbounds i8, ptr %0, i64 92
  %92 = getelementptr inbounds i8, ptr %0, i64 12
  %93 = load i8, ptr %92, align 1, !tbaa !17
  %94 = zext i8 %93 to i32
  %95 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %91, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %94) #7
  %96 = getelementptr inbounds i8, ptr %0, i64 94
  %97 = getelementptr inbounds i8, ptr %0, i64 13
  %98 = load i8, ptr %97, align 1, !tbaa !17
  %99 = zext i8 %98 to i32
  %100 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %96, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %99) #7
  %101 = getelementptr inbounds i8, ptr %0, i64 96
  %102 = getelementptr inbounds i8, ptr %0, i64 14
  %103 = load i8, ptr %102, align 1, !tbaa !17
  %104 = zext i8 %103 to i32
  %105 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %101, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %104) #7
  %106 = getelementptr inbounds i8, ptr %0, i64 98
  %107 = getelementptr inbounds i8, ptr %0, i64 15
  %108 = load i8, ptr %107, align 1, !tbaa !17
  %109 = zext i8 %108 to i32
  %110 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %106, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %109) #7
  %111 = getelementptr inbounds i8, ptr %0, i64 100
  %112 = getelementptr inbounds i8, ptr %0, i64 16
  %113 = load i8, ptr %112, align 1, !tbaa !17
  %114 = zext i8 %113 to i32
  %115 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %111, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %114) #7
  %116 = getelementptr inbounds i8, ptr %0, i64 102
  %117 = getelementptr inbounds i8, ptr %0, i64 17
  %118 = load i8, ptr %117, align 1, !tbaa !17
  %119 = zext i8 %118 to i32
  %120 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %116, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %119) #7
  %121 = getelementptr inbounds i8, ptr %0, i64 104
  %122 = getelementptr inbounds i8, ptr %0, i64 18
  %123 = load i8, ptr %122, align 1, !tbaa !17
  %124 = zext i8 %123 to i32
  %125 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %121, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %124) #7
  %126 = getelementptr inbounds i8, ptr %0, i64 106
  %127 = getelementptr inbounds i8, ptr %0, i64 19
  %128 = load i8, ptr %127, align 1, !tbaa !17
  %129 = zext i8 %128 to i32
  %130 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %126, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %129) #7
  %131 = getelementptr inbounds i8, ptr %0, i64 108
  %132 = getelementptr inbounds i8, ptr %0, i64 20
  %133 = load i8, ptr %132, align 1, !tbaa !17
  %134 = zext i8 %133 to i32
  %135 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %131, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %134) #7
  %136 = getelementptr inbounds i8, ptr %0, i64 110
  %137 = getelementptr inbounds i8, ptr %0, i64 21
  %138 = load i8, ptr %137, align 1, !tbaa !17
  %139 = zext i8 %138 to i32
  %140 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %136, ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef %139) #7
  %141 = getelementptr inbounds i8, ptr %0, i64 112
  store i8 0, ptr %141, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i32 0
}

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @author_read(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i64 @strbuf_fread(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @time_stamp_read(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 = { noreturn 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #6 = { "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 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0) }

!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, !11, i64 0}
!10 = !{!"commit", !11, i64 0, !7, i64 2, !7, i64 22, !7, i64 72, !6, i64 120, !12, i64 128, !12, i64 152, !14, i64 176, !13, i64 192, !13, i64 200}
!11 = !{!"short", !7, i64 0}
!12 = !{!"strbuf", !13, i64 0, !13, i64 8, !6, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!"timestamp", !13, i64 0, !6, i64 8}
!15 = !{!10, !6, i64 120}
!16 = !{!13, !13, i64 0}
!17 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass