; LLVM IR from sgtlaugh/algovault :: code_library/misc (15_puzzle_solver)

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

@ar = external dso_local global [4 x [4 x i32]], align 16
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 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: mustprogress uwtable
declare dso_local void @_Z5solveii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11is_solvableii(i32 noundef, i32 noundef) #2

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

8:                                                ; preds = %62, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = add nsw i32 %9, -1
  store i32 %10, ptr %2, align 4, !tbaa !5
  %11 = icmp ne i32 %9, 0
  br i1 %11, label %12, label %63

12:                                               ; preds = %8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %50, %12
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = icmp slt i32 %14, 4
  br i1 %15, label %16, label %53

16:                                               ; preds = %13
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %46, %16
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 4
  br i1 %19, label %20, label %49

20:                                               ; preds = %17
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [4 x [4 x i32]], ptr @ar, i64 0, i64 %22
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [4 x i32], ptr %23, i64 0, i64 %25
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %26)
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [4 x [4 x i32]], ptr @ar, i64 0, i64 %29
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [4 x i32], ptr %30, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %45, label %36

36:                                               ; preds = %20
  %37 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %37, ptr %5, align 4, !tbaa !5
  %38 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %38, ptr %6, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [4 x [4 x i32]], ptr @ar, i64 0, i64 %40
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [4 x i32], ptr %41, i64 0, i64 %43
  store i32 16, ptr %44, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %36, %20
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %4, align 4, !tbaa !5
  br label %17, !llvm.loop !9

49:                                               ; preds = %17
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !5
  br label %13, !llvm.loop !11

53:                                               ; preds = %13
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = call noundef zeroext i1 @_Z11is_solvableii(i32 noundef %54, i32 noundef %55)
  br i1 %56, label %59, label %57

57:                                               ; preds = %53
  %58 = call i32 @puts(ptr noundef @.str.3)
  br label %62

59:                                               ; preds = %53
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z5solveii(i32 noundef %60, i32 noundef %61)
  br label %62

62:                                               ; preds = %59, %57
  br label %8, !llvm.loop !12

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

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

declare i32 @puts(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { "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 }

!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}


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

@ar = external dso_local global [4 x [4 x i32]], align 16
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 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: mustprogress uwtable
declare dso_local void @_Z5solveii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11is_solvableii(i32 noundef, i32 noundef) local_unnamed_addr #2

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

.preheader23:                                     ; preds = %0, %70
  %.032 = phi i32 [ %.3.3.3, %70 ], [ undef, %0 ]
  %.01631 = phi i32 [ %.319.3.3, %70 ], [ undef, %0 ]
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @ar)
  %6 = load i32, ptr @ar, align 16, !tbaa !5
  %.not22 = icmp eq i32 %6, 0
  br i1 %.not22, label %7, label %8

7:                                                ; preds = %.preheader23
  store i32 16, ptr @ar, align 16, !tbaa !5
  br label %8

8:                                                ; preds = %.preheader23, %7
  %.319 = phi i32 [ %.01631, %.preheader23 ], [ 0, %7 ]
  %.3 = phi i32 [ %.032, %.preheader23 ], [ 0, %7 ]
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 4))
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 4), align 4, !tbaa !5
  %.not22.1 = icmp eq i32 %10, 0
  br i1 %.not22.1, label %11, label %12

11:                                               ; preds = %8
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 4), align 4, !tbaa !5
  br label %12

12:                                               ; preds = %11, %8
  %.319.1 = phi i32 [ %.319, %8 ], [ 0, %11 ]
  %.3.1 = phi i32 [ %.3, %8 ], [ 1, %11 ]
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 8))
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 8), align 8, !tbaa !5
  %.not22.2 = icmp eq i32 %14, 0
  br i1 %.not22.2, label %15, label %16

15:                                               ; preds = %12
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 8), align 8, !tbaa !5
  br label %16

16:                                               ; preds = %15, %12
  %.319.2 = phi i32 [ %.319.1, %12 ], [ 0, %15 ]
  %.3.2 = phi i32 [ %.3.1, %12 ], [ 2, %15 ]
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 12))
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 12), align 4, !tbaa !5
  %.not22.3 = icmp eq i32 %18, 0
  br i1 %.not22.3, label %19, label %.preheader.1

19:                                               ; preds = %16
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 12), align 4, !tbaa !5
  br label %.preheader.1

.preheader.1:                                     ; preds = %19, %16
  %.319.3 = phi i32 [ %.319.2, %16 ], [ 0, %19 ]
  %.3.3 = phi i32 [ %.3.2, %16 ], [ 3, %19 ]
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 16))
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 16), align 16, !tbaa !5
  %.not22.135 = icmp eq i32 %21, 0
  br i1 %.not22.135, label %22, label %23

22:                                               ; preds = %.preheader.1
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 16), align 16, !tbaa !5
  br label %23

23:                                               ; preds = %22, %.preheader.1
  %.319.136 = phi i32 [ %.319.3, %.preheader.1 ], [ 1, %22 ]
  %.3.137 = phi i32 [ %.3.3, %.preheader.1 ], [ 0, %22 ]
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 20))
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 20), align 4, !tbaa !5
  %.not22.1.1 = icmp eq i32 %25, 0
  br i1 %.not22.1.1, label %26, label %27

26:                                               ; preds = %23
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 20), align 4, !tbaa !5
  br label %27

27:                                               ; preds = %26, %23
  %.319.1.1 = phi i32 [ %.319.136, %23 ], [ 1, %26 ]
  %.3.1.1 = phi i32 [ %.3.137, %23 ], [ 1, %26 ]
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 24))
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 24), align 8, !tbaa !5
  %.not22.2.1 = icmp eq i32 %29, 0
  br i1 %.not22.2.1, label %30, label %31

30:                                               ; preds = %27
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 24), align 8, !tbaa !5
  br label %31

31:                                               ; preds = %30, %27
  %.319.2.1 = phi i32 [ %.319.1.1, %27 ], [ 1, %30 ]
  %.3.2.1 = phi i32 [ %.3.1.1, %27 ], [ 2, %30 ]
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 28))
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 28), align 4, !tbaa !5
  %.not22.3.1 = icmp eq i32 %33, 0
  br i1 %.not22.3.1, label %34, label %.preheader.2

34:                                               ; preds = %31
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 28), align 4, !tbaa !5
  br label %.preheader.2

.preheader.2:                                     ; preds = %34, %31
  %.319.3.1 = phi i32 [ %.319.2.1, %31 ], [ 1, %34 ]
  %.3.3.1 = phi i32 [ %.3.2.1, %31 ], [ 3, %34 ]
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 32))
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 32), align 16, !tbaa !5
  %.not22.238 = icmp eq i32 %36, 0
  br i1 %.not22.238, label %37, label %38

37:                                               ; preds = %.preheader.2
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 32), align 16, !tbaa !5
  br label %38

38:                                               ; preds = %37, %.preheader.2
  %.319.239 = phi i32 [ %.319.3.1, %.preheader.2 ], [ 2, %37 ]
  %.3.240 = phi i32 [ %.3.3.1, %.preheader.2 ], [ 0, %37 ]
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 36))
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 36), align 4, !tbaa !5
  %.not22.1.2 = icmp eq i32 %40, 0
  br i1 %.not22.1.2, label %41, label %42

41:                                               ; preds = %38
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 36), align 4, !tbaa !5
  br label %42

42:                                               ; preds = %41, %38
  %.319.1.2 = phi i32 [ %.319.239, %38 ], [ 2, %41 ]
  %.3.1.2 = phi i32 [ %.3.240, %38 ], [ 1, %41 ]
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 40))
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 40), align 8, !tbaa !5
  %.not22.2.2 = icmp eq i32 %44, 0
  br i1 %.not22.2.2, label %45, label %46

45:                                               ; preds = %42
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 40), align 8, !tbaa !5
  br label %46

46:                                               ; preds = %45, %42
  %.319.2.2 = phi i32 [ %.319.1.2, %42 ], [ 2, %45 ]
  %.3.2.2 = phi i32 [ %.3.1.2, %42 ], [ 2, %45 ]
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 44))
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 44), align 4, !tbaa !5
  %.not22.3.2 = icmp eq i32 %48, 0
  br i1 %.not22.3.2, label %49, label %.preheader.3

49:                                               ; preds = %46
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 44), align 4, !tbaa !5
  br label %.preheader.3

.preheader.3:                                     ; preds = %49, %46
  %.319.3.2 = phi i32 [ %.319.2.2, %46 ], [ 2, %49 ]
  %.3.3.2 = phi i32 [ %.3.2.2, %46 ], [ 3, %49 ]
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 48))
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 48), align 16, !tbaa !5
  %.not22.341 = icmp eq i32 %51, 0
  br i1 %.not22.341, label %52, label %53

52:                                               ; preds = %.preheader.3
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 48), align 16, !tbaa !5
  br label %53

53:                                               ; preds = %52, %.preheader.3
  %.319.342 = phi i32 [ %.319.3.2, %.preheader.3 ], [ 3, %52 ]
  %.3.343 = phi i32 [ %.3.3.2, %.preheader.3 ], [ 0, %52 ]
  %54 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 52))
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 52), align 4, !tbaa !5
  %.not22.1.3 = icmp eq i32 %55, 0
  br i1 %.not22.1.3, label %56, label %57

56:                                               ; preds = %53
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 52), align 4, !tbaa !5
  br label %57

57:                                               ; preds = %56, %53
  %.319.1.3 = phi i32 [ %.319.342, %53 ], [ 3, %56 ]
  %.3.1.3 = phi i32 [ %.3.343, %53 ], [ 1, %56 ]
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 56))
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 56), align 8, !tbaa !5
  %.not22.2.3 = icmp eq i32 %59, 0
  br i1 %.not22.2.3, label %60, label %61

60:                                               ; preds = %57
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 56), align 8, !tbaa !5
  br label %61

61:                                               ; preds = %60, %57
  %.319.2.3 = phi i32 [ %.319.1.3, %57 ], [ 3, %60 ]
  %.3.2.3 = phi i32 [ %.3.1.3, %57 ], [ 2, %60 ]
  %62 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull getelementptr inbounds (i8, ptr @ar, i64 60))
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @ar, i64 60), align 4, !tbaa !5
  %.not22.3.3 = icmp eq i32 %63, 0
  br i1 %.not22.3.3, label %64, label %65

64:                                               ; preds = %61
  store i32 16, ptr getelementptr inbounds (i8, ptr @ar, i64 60), align 4, !tbaa !5
  br label %65

65:                                               ; preds = %64, %61
  %.319.3.3 = phi i32 [ %.319.2.3, %61 ], [ 3, %64 ]
  %.3.3.3 = phi i32 [ %.3.2.3, %61 ], [ 3, %64 ]
  %66 = call noundef zeroext i1 @_Z11is_solvableii(i32 noundef %.319.3.3, i32 noundef %.3.3.3)
  br i1 %66, label %69, label %67

67:                                               ; preds = %65
  %68 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %70

69:                                               ; preds = %65
  call void @_Z5solveii(i32 noundef %.319.3.3, i32 noundef %.3.3.3)
  br label %70

70:                                               ; preds = %69, %67
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %72 = add nsw i32 %71, -1
  store i32 %72, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %71, 0
  br i1 %.not, label %._crit_edge, label %.preheader23, !llvm.loop !9

._crit_edge:                                      ; preds = %70, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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