; LLVM IR from tangjz/acm-icpc :: hdu (5644)

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

@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@S = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@lnk = external dso_local global [403 x i32], align 16
@sum = external dso_local global i32, align 4
@flow = external dso_local global i32, align 4
@cost = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z7addEdgeiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14MinCostMaxFlowi(i32 noundef) #3

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

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

15:                                               ; preds = %11
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %5)
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = add nsw i32 %17, %18
  %20 = add nsw i32 %19, 2
  store i32 %20, ptr @N, align 4, !tbaa !5
  %21 = load i32, ptr @N, align 4, !tbaa !5
  %22 = sub nsw i32 %21, 2
  store i32 %22, ptr @S, align 4, !tbaa !5
  %23 = load i32, ptr @N, align 4, !tbaa !5
  %24 = sub nsw i32 %23, 1
  store i32 %24, ptr @T, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr @cost, align 4, !tbaa !5
  store i32 0, ptr @flow, align 4, !tbaa !5
  store i32 0, ptr @sum, align 4, !tbaa !5
  store i32 0, ptr @M, align 4, !tbaa !5
  %25 = load i32, ptr @N, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = mul i64 %26, 4
  call void @llvm.memset.p0.i64(ptr align 16 @lnk, i8 -1, i64 %27, i1 false)
  %28 = load i32, ptr @S, align 4, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %28, i32 noundef 0, i32 noundef %29, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %55, %15
  %31 = load i32, ptr %8, align 4, !tbaa !5
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %58

35:                                               ; preds = %30
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %5)
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = add nsw i32 %38, %37
  store i32 %39, ptr %7, align 4, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %46

42:                                               ; preds = %35
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = sub nsw i32 %43, 1
  %45 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %44, i32 noundef %45, i32 noundef 1061109567, i32 noundef 0)
  br label %46

46:                                               ; preds = %42, %35
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = load i32, ptr @T, align 4, !tbaa !5
  %49 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef 0)
  %50 = load i32, ptr @S, align 4, !tbaa !5
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %50, i32 noundef %53, i32 noundef %54, i32 noundef 0)
  br label %55

55:                                               ; preds = %46
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !5
  br label %30, !llvm.loop !9

58:                                               ; preds = %34
  %59 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  %60 = load i32, ptr @S, align 4, !tbaa !5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = sub nsw i32 %61, 1
  %63 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %60, i32 noundef %62, i32 noundef 1061109567, i32 noundef %63)
  br label %64

64:                                               ; preds = %87, %58
  %65 = load i32, ptr %4, align 4, !tbaa !5
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %4, align 4, !tbaa !5
  %67 = icmp ne i32 %65, 0
  br i1 %67, label %68, label %88

68:                                               ; preds = %64
  %69 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %70 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %70, ptr %9, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %84, %68
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %87

76:                                               ; preds = %71
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = add nsw i32 %77, %78
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = sub nsw i32 %79, %80
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %81, i32 noundef %82, i32 noundef 1061109567, i32 noundef %83)
  br label %84

84:                                               ; preds = %76
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !5
  br label %71, !llvm.loop !11

87:                                               ; preds = %75
  br label %64, !llvm.loop !12

88:                                               ; preds = %64
  %89 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z14MinCostMaxFlowi(i32 noundef %89)
  %90 = load i32, ptr @flow, align 4, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %88
  %94 = call i32 @puts(ptr noundef @.str.3)
  br label %98

95:                                               ; preds = %88
  %96 = load i32, ptr @cost, align 4, !tbaa !5
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %96)
  br label %98

98:                                               ; preds = %95, %93
  br label %11, !llvm.loop !13

99:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

declare i32 @puts(ptr noundef) #5

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

attributes #0 = { mustprogress 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 = { mustprogress 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 #4 = { 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 #5 = { "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 }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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

@N = external dso_local local_unnamed_addr global i32, align 4
@M = external dso_local local_unnamed_addr global i32, align 4
@S = external dso_local local_unnamed_addr global i32, align 4
@T = external dso_local local_unnamed_addr global i32, align 4
@lnk = external dso_local local_unnamed_addr global [403 x i32], align 16
@sum = external dso_local local_unnamed_addr global i32, align 4
@flow = external dso_local local_unnamed_addr global i32, align 4
@cost = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z7addEdgeiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14MinCostMaxFlowi(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = add nsw i32 %7, -1
  store i32 %8, ptr %1, align 4, !tbaa !5
  %.not28 = icmp eq i32 %7, 0
  br i1 %.not28, label %._crit_edge31, label %.lr.ph30

.lr.ph30:                                         ; preds = %0, %67
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %4)
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = shl nsw i32 %10, 1
  %12 = add nsw i32 %11, 2
  store i32 %12, ptr @N, align 4, !tbaa !5
  store i32 %11, ptr @S, align 4, !tbaa !5
  %13 = or disjoint i32 %11, 1
  store i32 %13, ptr @T, align 4, !tbaa !5
  store i32 0, ptr @cost, align 4, !tbaa !5
  store i32 0, ptr @flow, align 4, !tbaa !5
  store i32 0, ptr @sum, align 4, !tbaa !5
  store i32 0, ptr @M, align 4, !tbaa !5
  %14 = sext i32 %12 to i64
  %15 = shl nsw i64 %14, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @lnk, i8 -1, i64 %15, i1 false)
  %16 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %11, i32 noundef 0, i32 noundef %16, i32 noundef 0)
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %19, label %._crit_edge

19:                                               ; preds = %.lr.ph30
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %.pre = load i32, ptr @T, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef 0, i32 noundef %.pre, i32 noundef %21, i32 noundef 0)
  %22 = load i32, ptr @S, align 4, !tbaa !5
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %22, i32 noundef %23, i32 noundef %24, i32 noundef 0)
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 1
  br i1 %26, label %.lr.ph.peel.next, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.peel.next, %19, %.lr.ph30
  %.015.lcssa = phi i32 [ 0, %.lr.ph30 ], [ %21, %19 ], [ %36, %.lr.ph.peel.next ]
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %28 = load i32, ptr @S, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = add nsw i32 %29, -1
  %31 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %28, i32 noundef %30, i32 noundef 1061109567, i32 noundef %31)
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %3, align 4, !tbaa !5
  %.not1724 = icmp eq i32 %32, 0
  br i1 %.not1724, label %._crit_edge27, label %.lr.ph26

.lr.ph.peel.next:                                 ; preds = %19, %.lr.ph.peel.next
  %.01420 = phi i32 [ %43, %.lr.ph.peel.next ], [ 1, %19 ]
  %.01519 = phi i32 [ %36, %.lr.ph.peel.next ], [ %21, %19 ]
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = add nsw i32 %35, %.01519
  %37 = add nsw i32 %.01420, -1
  call void @_Z7addEdgeiiii(i32 noundef %37, i32 noundef %.01420, i32 noundef 1061109567, i32 noundef 0)
  %.pre33 = load i32, ptr %4, align 4, !tbaa !5
  %38 = load i32, ptr @T, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %.01420, i32 noundef %38, i32 noundef %.pre33, i32 noundef 0)
  %39 = load i32, ptr @S, align 4, !tbaa !5
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = add nsw i32 %40, %.01420
  %42 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %39, i32 noundef %41, i32 noundef %42, i32 noundef 0)
  %43 = add nuw nsw i32 %.01420, 1
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %.lr.ph.peel.next, label %._crit_edge, !llvm.loop !9

.loopexit:                                        ; preds = %.lr.ph23, %.lr.ph26
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %3, align 4, !tbaa !5
  %.not17 = icmp eq i32 %46, 0
  br i1 %.not17, label %._crit_edge27, label %.lr.ph26, !llvm.loop !12

.lr.ph26:                                         ; preds = %._crit_edge, %.loopexit
  %48 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %49 = load i32, ptr %5, align 4, !tbaa !5
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %.lr.ph23, label %.loopexit

.lr.ph23:                                         ; preds = %.lr.ph26, %.lr.ph23
  %52 = phi i32 [ %58, %.lr.ph23 ], [ %50, %.lr.ph26 ]
  %.021 = phi i32 [ %57, %.lr.ph23 ], [ %49, %.lr.ph26 ]
  %53 = add nsw i32 %52, %.021
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sub i32 %53, %54
  %56 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z7addEdgeiiii(i32 noundef %55, i32 noundef %.021, i32 noundef 1061109567, i32 noundef %56)
  %57 = add nsw i32 %.021, 1
  %58 = load i32, ptr %2, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %.lr.ph23, label %.loopexit, !llvm.loop !13

._crit_edge27:                                    ; preds = %.loopexit, %._crit_edge
  call void @_Z14MinCostMaxFlowi(i32 noundef %.015.lcssa)
  %60 = load i32, ptr @flow, align 4, !tbaa !5
  %61 = icmp slt i32 %60, %.015.lcssa
  br i1 %61, label %62, label %64

62:                                               ; preds = %._crit_edge27
  %63 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %67

64:                                               ; preds = %._crit_edge27
  %65 = load i32, ptr @cost, align 4, !tbaa !5
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %65)
  br label %67

67:                                               ; preds = %64, %62
  %68 = load i32, ptr %1, align 4, !tbaa !5
  %69 = add nsw i32 %68, -1
  store i32 %69, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %68, 0
  br i1 %.not, label %._crit_edge31, label %.lr.ph30, !llvm.loop !14

._crit_edge31:                                    ; preds = %67, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

attributes #0 = { mustprogress 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 = { mustprogress 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 #4 = { 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 #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 = { 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++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass