; LLVM IR from tangjz/acm-icpc :: lydsy/4801.ll (Z5solvev)

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

@_ZZ5solvevE1a = external hidden global [5 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %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
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %17, %0
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 4
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %20

12:                                               ; preds = %8
  %13 = call noundef i32 @_Z7getCardv()
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %15
  store i32 %13, ptr %16, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %12
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %1, align 4, !tbaa !5
  br label %8, !llvm.loop !9

20:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 -100, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %79, %20
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 2
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %82

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 100, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %73, %25
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 4
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %76

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = call noundef i32 @_Z4calcii(i32 noundef %34, i32 noundef %38)
  store i32 %39, ptr %7, align 4, !tbaa !5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %56

42:                                               ; preds = %30
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = xor i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = xor i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = call noundef i32 @_Z4calcii(i32 noundef %47, i32 noundef %52)
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = add nsw i32 %54, %53
  store i32 %55, ptr %7, align 4, !tbaa !5
  br label %70

56:                                               ; preds = %30
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = xor i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = xor i32 %62, 1
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [5 x i32], ptr @_ZZ5solvevE1a, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = call noundef i32 @_Z4calcii(i32 noundef %61, i32 noundef %66)
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sub nsw i32 %68, %67
  store i32 %69, ptr %7, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %56, %42
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %73

73:                                               ; preds = %70
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %6, align 4, !tbaa !5
  br label %26, !llvm.loop !11

76:                                               ; preds = %29
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %78 = load i32, ptr %77, align 4, !tbaa !5
  store i32 %78, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %79

79:                                               ; preds = %76
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %3, align 4, !tbaa !5
  br label %21, !llvm.loop !12

82:                                               ; preds = %24
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %83)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7getCardv() #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4calcii(i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

@_ZZ5solvevE1a = external hidden local_unnamed_addr global [5 x i32], align 16
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call noundef i32 @_Z7getCardv()
  store i32 %4, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %5 = tail call noundef i32 @_Z7getCardv()
  store i32 %5, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %6 = tail call noundef i32 @_Z7getCardv()
  store i32 %6, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %7 = tail call noundef i32 @_Z7getCardv()
  store i32 %7, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 -100, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 100, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %8 = load i32, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %10 = tail call noundef i32 @_Z4calcii(i32 noundef %8, i32 noundef %9)
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %12, label %17

12:                                               ; preds = %0
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  %15 = tail call noundef i32 @_Z4calcii(i32 noundef %13, i32 noundef %14)
  %16 = add nsw i32 %10, %15
  br label %22

17:                                               ; preds = %0
  %18 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %20 = tail call noundef i32 @_Z4calcii(i32 noundef %18, i32 noundef %19)
  %21 = sub nsw i32 %10, %20
  br label %22

22:                                               ; preds = %17, %12
  %storemerge = phi i32 [ %21, %17 ], [ %16, %12 ]
  store i32 %storemerge, ptr %3, align 4, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %24 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %24, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %25 = load i32, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  %27 = call noundef i32 @_Z4calcii(i32 noundef %25, i32 noundef %26)
  store i32 %27, ptr %3, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %35, label %29

29:                                               ; preds = %22
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %32 = call noundef i32 @_Z4calcii(i32 noundef %30, i32 noundef %31)
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = sub nsw i32 %33, %32
  br label %41

35:                                               ; preds = %22
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %38 = call noundef i32 @_Z4calcii(i32 noundef %36, i32 noundef %37)
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = add nsw i32 %39, %38
  br label %41

41:                                               ; preds = %35, %29
  %storemerge.1 = phi i32 [ %34, %29 ], [ %40, %35 ]
  store i32 %storemerge.1, ptr %3, align 4, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %43 = load i32, ptr %42, align 4, !tbaa !5
  store i32 %43, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %45 = load i32, ptr %44, align 4, !tbaa !5
  store i32 %45, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 100, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %48 = call noundef i32 @_Z4calcii(i32 noundef %46, i32 noundef %47)
  store i32 %48, ptr %3, align 4, !tbaa !5
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %56, label %50

50:                                               ; preds = %41
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  %52 = load i32, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %53 = call noundef i32 @_Z4calcii(i32 noundef %51, i32 noundef %52)
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sub nsw i32 %54, %53
  br label %62

56:                                               ; preds = %41
  %57 = load i32, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  %59 = call noundef i32 @_Z4calcii(i32 noundef %57, i32 noundef %58)
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = add nsw i32 %60, %59
  br label %62

62:                                               ; preds = %56, %50
  %storemerge.121 = phi i32 [ %55, %50 ], [ %61, %56 ]
  store i32 %storemerge.121, ptr %3, align 4, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %64 = load i32, ptr %63, align 4, !tbaa !5
  store i32 %64, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 4), align 4, !tbaa !5
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 12), align 4, !tbaa !5
  %67 = call noundef i32 @_Z4calcii(i32 noundef %65, i32 noundef %66)
  store i32 %67, ptr %3, align 4, !tbaa !5
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %75, label %69

69:                                               ; preds = %62
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %71 = load i32, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %72 = call noundef i32 @_Z4calcii(i32 noundef %70, i32 noundef %71)
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sub nsw i32 %73, %72
  br label %81

75:                                               ; preds = %62
  %76 = load i32, ptr @_ZZ5solvevE1a, align 16, !tbaa !5
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solvevE1a, i64 8), align 8, !tbaa !5
  %78 = call noundef i32 @_Z4calcii(i32 noundef %76, i32 noundef %77)
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = add nsw i32 %79, %78
  br label %81

81:                                               ; preds = %75, %69
  %storemerge.1.1 = phi i32 [ %74, %69 ], [ %80, %75 ]
  store i32 %storemerge.1.1, ptr %3, align 4, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %85 = load i32, ptr %84, align 4, !tbaa !5
  store i32 %85, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %85)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7getCardv() 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4calcii(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

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


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