; LLVM IR from tangjz/acm-icpc :: uvalive (7337)

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

@mon = external dso_local global [12 x ptr], align 16
@week = external dso_local global [7 x ptr], align 16
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL3day = external hidden constant [12 x i32], align 16
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [32 x i8], align 16
  %4 = alloca [32 x i8], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.19, ptr noundef %2)
  br label %10

10:                                               ; preds = %81, %0
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr %2, align 4, !tbaa !5
  %13 = icmp ne i32 %11, 0
  br i1 %13, label %14, label %84

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  %15 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %16 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.20, ptr noundef %15, ptr noundef %16)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %31, %14
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 12
  br i1 %20, label %21, label %34

21:                                               ; preds = %18
  %22 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [12 x ptr], ptr @mon, i64 0, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = call i32 @strcmp(ptr noundef %22, ptr noundef %26) #5
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %30, label %29

29:                                               ; preds = %21
  br label %34

30:                                               ; preds = %21
  br label %31

31:                                               ; preds = %30
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %5, align 4, !tbaa !5
  br label %18, !llvm.loop !11

34:                                               ; preds = %29, %18
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %48, %34
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = icmp slt i32 %36, 7
  br i1 %37, label %38, label %51

38:                                               ; preds = %35
  %39 = getelementptr inbounds [32 x i8], ptr %4, i64 0, i64 0
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [7 x ptr], ptr @week, i64 0, i64 %41
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call i32 @strcmp(ptr noundef %39, ptr noundef %43) #5
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %47, label %46

46:                                               ; preds = %38
  br label %51

47:                                               ; preds = %38
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %7, align 4, !tbaa !5
  br label %35, !llvm.loop !13

51:                                               ; preds = %46, %35
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %79, %51
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [12 x i32], ptr @_ZL3day, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = icmp sle i32 %53, %57
  br i1 %58, label %59, label %81

59:                                               ; preds = %52
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 5
  br i1 %61, label %65, label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %7, align 4, !tbaa !5
  %64 = icmp eq i32 %63, 6
  br i1 %64, label %65, label %68

65:                                               ; preds = %62, %59
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %8, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %65, %62
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %6, align 4, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  %74 = icmp slt i32 %73, 7
  br i1 %74, label %75, label %78

75:                                               ; preds = %69
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  br label %79

78:                                               ; preds = %69
  br label %79

79:                                               ; preds = %78, %75
  %80 = phi i32 [ %77, %75 ], [ 0, %78 ]
  store i32 %80, ptr %7, align 4, !tbaa !5
  br label %52, !llvm.loop !14

81:                                               ; preds = %52
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %82)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %10, !llvm.loop !15

84:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  ret i32 0
}

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

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

attributes #0 = { mustprogress norecurse 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 = { 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 #4 = { nounwind }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@mon = external dso_local local_unnamed_addr global [12 x ptr], align 16
@week = external dso_local local_unnamed_addr global [7 x ptr], align 16
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZL3day = external hidden local_unnamed_addr constant [12 x i32], align 16
@.str.21 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [32 x i8], align 16
  %3 = alloca [32 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.19, ptr noundef nonnull %1)
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr %1, align 4, !tbaa !5
  %.not29 = icmp eq i32 %5, 0
  br i1 %.not29, label %._crit_edge32, label %.lr.ph31

.lr.ph31:                                         ; preds = %0, %._crit_edge
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.20, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %8 = load ptr, ptr @mon, align 16, !tbaa !9
  %9 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %8) #5
  %.not20 = icmp eq i32 %9, 0
  br i1 %.not20, label %43, label %10

10:                                               ; preds = %.lr.ph31
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 8), align 8, !tbaa !9
  %12 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %11) #5
  %.not20.1 = icmp eq i32 %12, 0
  br i1 %.not20.1, label %43, label %13

13:                                               ; preds = %10
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 16), align 16, !tbaa !9
  %15 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %14) #5
  %.not20.2 = icmp eq i32 %15, 0
  br i1 %.not20.2, label %43, label %16

16:                                               ; preds = %13
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 24), align 8, !tbaa !9
  %18 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %17) #5
  %.not20.3 = icmp eq i32 %18, 0
  br i1 %.not20.3, label %43, label %19

19:                                               ; preds = %16
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 32), align 16, !tbaa !9
  %21 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %20) #5
  %.not20.4 = icmp eq i32 %21, 0
  br i1 %.not20.4, label %43, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 40), align 8, !tbaa !9
  %24 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %23) #5
  %.not20.5 = icmp eq i32 %24, 0
  br i1 %.not20.5, label %43, label %25

25:                                               ; preds = %22
  %26 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 48), align 16, !tbaa !9
  %27 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %26) #5
  %.not20.6 = icmp eq i32 %27, 0
  br i1 %.not20.6, label %43, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 56), align 8, !tbaa !9
  %30 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %29) #5
  %.not20.7 = icmp eq i32 %30, 0
  br i1 %.not20.7, label %43, label %31

31:                                               ; preds = %28
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 64), align 16, !tbaa !9
  %33 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %32) #5
  %.not20.8 = icmp eq i32 %33, 0
  br i1 %.not20.8, label %43, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 72), align 8, !tbaa !9
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %35) #5
  %.not20.9 = icmp eq i32 %36, 0
  br i1 %.not20.9, label %43, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 80), align 16, !tbaa !9
  %39 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %38) #5
  %.not20.10 = icmp eq i32 %39, 0
  br i1 %.not20.10, label %43, label %40

40:                                               ; preds = %37
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @mon, i64 88), align 8, !tbaa !9
  %42 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %41) #5
  %.not20.11 = icmp eq i32 %42, 0
  %spec.select35 = select i1 %.not20.11, i64 11, i64 12
  br label %43

43:                                               ; preds = %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %.lr.ph31
  %.019.lcssa = phi i64 [ 0, %.lr.ph31 ], [ 1, %10 ], [ 2, %13 ], [ 3, %16 ], [ 4, %19 ], [ 5, %22 ], [ 6, %25 ], [ 7, %28 ], [ 8, %31 ], [ 9, %34 ], [ 10, %37 ], [ %spec.select35, %40 ]
  %44 = load ptr, ptr @week, align 16, !tbaa !9
  %45 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %44) #5
  %.not21 = icmp eq i32 %45, 0
  br i1 %.not21, label %64, label %46

46:                                               ; preds = %43
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @week, i64 8), align 8, !tbaa !9
  %48 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %47) #5
  %.not21.1 = icmp eq i32 %48, 0
  br i1 %.not21.1, label %64, label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @week, i64 16), align 16, !tbaa !9
  %51 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %50) #5
  %.not21.2 = icmp eq i32 %51, 0
  br i1 %.not21.2, label %64, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @week, i64 24), align 8, !tbaa !9
  %54 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %53) #5
  %.not21.3 = icmp eq i32 %54, 0
  br i1 %.not21.3, label %64, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @week, i64 32), align 16, !tbaa !9
  %57 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %56) #5
  %.not21.4 = icmp eq i32 %57, 0
  br i1 %.not21.4, label %64, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr getelementptr inbounds (i8, ptr @week, i64 40), align 8, !tbaa !9
  %60 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %59) #5
  %.not21.5 = icmp eq i32 %60, 0
  br i1 %.not21.5, label %64, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @week, i64 48), align 16, !tbaa !9
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %62) #5
  %.not21.6 = icmp eq i32 %63, 0
  %spec.select36 = select i1 %.not21.6, i32 6, i32 7
  br label %64

64:                                               ; preds = %61, %58, %55, %52, %49, %46, %43
  %.016.lcssa = phi i32 [ 0, %43 ], [ 1, %46 ], [ 2, %49 ], [ 3, %52 ], [ 4, %55 ], [ 5, %58 ], [ %spec.select36, %61 ]
  %65 = getelementptr inbounds [12 x i32], ptr @_ZL3day, i64 0, i64 %.019.lcssa
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %.not2225 = icmp slt i32 %66, 1
  br i1 %.not2225, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %64
  %xtraiter = and i32 %66, 1
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i32 %66, 2147483646
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.028 = phi i32 [ 0, %.lr.ph.preheader.new ], [ %spec.select.1, %.lr.ph ]
  %.11727 = phi i32 [ %.016.lcssa, %.lr.ph.preheader.new ], [ %77, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %68 = add i32 %.11727, -5
  %or.cond = icmp ult i32 %68, 2
  %69 = zext i1 %or.cond to i32
  %spec.select = add nuw nsw i32 %.028, %69
  %70 = add nsw i32 %.11727, 1
  %71 = icmp slt i32 %.11727, 6
  %72 = select i1 %71, i32 %70, i32 0
  %73 = add i32 %72, -5
  %or.cond.1 = icmp ult i32 %73, 2
  %74 = zext i1 %or.cond.1 to i32
  %spec.select.1 = add nuw nsw i32 %spec.select, %74
  %75 = add nsw i32 %72, 1
  %76 = icmp slt i32 %72, 6
  %77 = select i1 %76, i32 %75, i32 0
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %spec.select.1, %.lr.ph ]
  %.028.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %spec.select.1, %.lr.ph ]
  %.11727.unr = phi i32 [ %.016.lcssa, %.lr.ph.preheader ], [ %77, %.lr.ph ]
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  %78 = add i32 %.11727.unr, -5
  %or.cond.epil = icmp ult i32 %78, 2
  %79 = zext i1 %or.cond.epil to i32
  %spec.select.epil = add nuw nsw i32 %.028.unr, %79
  %spec.select.lcssa = select i1 %lcmp.mod.not, i32 %spec.select.lcssa.ph, i32 %spec.select.epil
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %64
  %.0.lcssa = phi i32 [ 0, %64 ], [ %spec.select.lcssa, %._crit_edge.loopexit.unr-lcssa ]
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef %.0.lcssa)
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %81, 0
  br i1 %.not, label %._crit_edge32, label %.lr.ph31, !llvm.loop !13

._crit_edge32:                                    ; preds = %._crit_edge, %0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret i32 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nofree norecurse 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 = { 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 #4 = { nounwind }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass