; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (1240)

; 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.Square = type { i32, i32, i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@ans = external dso_local global i64, align 8
@a = external dso_local global [100010 x %struct.Square], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 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 noundef i64 @_Z5solvev() #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 %struct.Square, align 4
  %4 = alloca i32, align 4
  %5 = alloca %struct.Square, align 4
  store i32 0, ptr %1, align 4
  br label %6

6:                                                ; preds = %110, %0
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @p, ptr noundef @t)
  %8 = icmp eq i32 %7, 4
  br i1 %8, label %9, label %113

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

10:                                               ; preds = %41, %9
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = load i32, ptr @p, align 4, !tbaa !5
  %13 = icmp slt i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %44

15:                                               ; preds = %10
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.Square, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %21
  %23 = getelementptr inbounds %struct.Square, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %25
  %27 = getelementptr inbounds %struct.Square, ptr %26, i32 0, i32 2
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %29
  %31 = getelementptr inbounds %struct.Square, ptr %30, i32 0, i32 3
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %19, ptr noundef %23, ptr noundef %27, ptr noundef %31)
  %33 = load i32, ptr @t, align 4, !tbaa !5
  %34 = sub nsw i32 %33, 1
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %36
  %38 = getelementptr inbounds %struct.Square, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !9
  %40 = add nsw i32 %39, %34
  store i32 %40, ptr %38, align 8, !tbaa !9
  br label %41

41:                                               ; preds = %15
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !5
  br label %10, !llvm.loop !11

44:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  %45 = getelementptr inbounds %struct.Square, ptr %3, i32 0, i32 0
  store i32 0, ptr %45, align 4, !tbaa !13
  %46 = getelementptr inbounds %struct.Square, ptr %3, i32 0, i32 1
  store i32 1, ptr %46, align 4, !tbaa !14
  %47 = getelementptr inbounds %struct.Square, ptr %3, i32 0, i32 2
  %48 = load i32, ptr @t, align 4, !tbaa !5
  %49 = sub nsw i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !9
  %50 = getelementptr inbounds %struct.Square, ptr %3, i32 0, i32 3
  %51 = load i32, ptr @m, align 4, !tbaa !5
  store i32 %51, ptr %50, align 4, !tbaa !15
  %52 = load i32, ptr @p, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %53
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 4 %3, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  %55 = load i32, ptr @n, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = load i32, ptr @m, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = mul nsw i64 %56, %58
  %60 = call noundef i64 @_Z5solvev()
  %61 = sub nsw i64 %59, %60
  store i64 %61, ptr @ans, align 8, !tbaa !17
  %62 = load i32, ptr @t, align 4, !tbaa !5
  %63 = icmp sgt i32 %62, 1
  br i1 %63, label %64, label %110

64:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %87, %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load i32, ptr @p, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %90

70:                                               ; preds = %65
  %71 = load i32, ptr @t, align 4, !tbaa !5
  %72 = sub nsw i32 %71, 1
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.Square, ptr %75, i32 0, i32 2
  %77 = load i32, ptr %76, align 8, !tbaa !9
  %78 = sub nsw i32 %77, %72
  store i32 %78, ptr %76, align 8, !tbaa !9
  %79 = load i32, ptr @t, align 4, !tbaa !5
  %80 = sub nsw i32 %79, 1
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %82
  %84 = getelementptr inbounds %struct.Square, ptr %83, i32 0, i32 3
  %85 = load i32, ptr %84, align 4, !tbaa !15
  %86 = add nsw i32 %85, %80
  store i32 %86, ptr %84, align 4, !tbaa !15
  br label %87

87:                                               ; preds = %70
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %4, align 4, !tbaa !5
  br label %65, !llvm.loop !19

90:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %91 = getelementptr inbounds %struct.Square, ptr %5, i32 0, i32 0
  store i32 1, ptr %91, align 4, !tbaa !13
  %92 = getelementptr inbounds %struct.Square, ptr %5, i32 0, i32 1
  store i32 0, ptr %92, align 4, !tbaa !14
  %93 = getelementptr inbounds %struct.Square, ptr %5, i32 0, i32 2
  %94 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %94, ptr %93, align 4, !tbaa !9
  %95 = getelementptr inbounds %struct.Square, ptr %5, i32 0, i32 3
  %96 = load i32, ptr @t, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  store i32 %97, ptr %95, align 4, !tbaa !15
  %98 = load i32, ptr @p, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %100, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  %101 = load i32, ptr @n, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = load i32, ptr @m, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = mul nsw i64 %102, %104
  %106 = call noundef i64 @_Z5solvev()
  %107 = sub nsw i64 %105, %106
  %108 = load i64, ptr @ans, align 8, !tbaa !17
  %109 = add nsw i64 %108, %107
  store i64 %109, ptr @ans, align 8, !tbaa !17
  br label %110

110:                                              ; preds = %90, %44
  %111 = load i64, ptr @ans, align 8, !tbaa !17
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %111)
  br label %6, !llvm.loop !20

113:                                              ; preds = %6
  ret i32 0
}

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

declare i32 @printf(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!10, !6, i64 8}
!10 = !{!"_ZTS6Square", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!10, !6, i64 0}
!14 = !{!10, !6, i64 4}
!15 = !{!10, !6, i64 12}
!16 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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"

%struct.Square = type { i32, i32, i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@ans = external dso_local local_unnamed_addr global i64, align 8
@a = external dso_local global [100010 x %struct.Square], align 16
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5solvev() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @p, ptr noundef nonnull @t)
  %2 = icmp eq i32 %1, 4
  br i1 %2, label %.preheader18, label %._crit_edge25

.preheader18:                                     ; preds = %0, %64
  %3 = load i32, ptr @p, align 4, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %.preheader18.._crit_edge_crit_edge

.preheader18.._crit_edge_crit_edge:               ; preds = %.preheader18
  %.pre = load i32, ptr @t, align 4, !tbaa !5
  %.pre31 = add nsw i32 %.pre, -1
  %.pre32 = sext i32 %3 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader18.._crit_edge_crit_edge
  %.pre-phi33 = phi i64 [ %.pre32, %.preheader18.._crit_edge_crit_edge ], [ %29, %.lr.ph ]
  %.pre-phi = phi i32 [ %.pre31, %.preheader18.._crit_edge_crit_edge ], [ %25, %.lr.ph ]
  %5 = load i32, ptr @m, align 4, !tbaa !5
  %6 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %.pre-phi33
  store i32 0, ptr %6, align 16, !tbaa !5
  %.sroa.45.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 4
  store i32 1, ptr %.sroa.45.0..sroa_idx, align 4, !tbaa !5
  %.sroa.56.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.pre-phi, ptr %.sroa.56.0..sroa_idx, align 8, !tbaa !5
  %.sroa.67.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 12
  store i32 %5, ptr %.sroa.67.0..sroa_idx, align 4, !tbaa !5
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = sext i32 %5 to i64
  %10 = mul nsw i64 %8, %9
  %11 = tail call noundef i64 @_Z5solvev()
  %12 = sub nsw i64 %10, %11
  store i64 %12, ptr @ans, align 8, !tbaa !9
  %13 = load i32, ptr @t, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %.preheader, label %64

.preheader:                                       ; preds = %._crit_edge
  %15 = load i32, ptr @p, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  %17 = add nsw i32 %13, -1
  br i1 %16, label %.lr.ph22, label %._crit_edge23

.lr.ph22:                                         ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %15 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %18 = icmp eq i32 %15, 1
  br i1 %18, label %._crit_edge23.loopexit.unr-lcssa, label %.lr.ph22.new

.lr.ph22.new:                                     ; preds = %.lr.ph22
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %49

.lr.ph:                                           ; preds = %.preheader18, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader18 ]
  %19 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %indvars.iv
  %20 = getelementptr inbounds i8, ptr %19, i64 4
  %21 = getelementptr inbounds i8, ptr %19, i64 8
  %22 = getelementptr inbounds i8, ptr %19, i64 12
  %23 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %24 = load i32, ptr @t, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  %26 = load i32, ptr %21, align 8, !tbaa !11
  %27 = add nsw i32 %25, %26
  store i32 %27, ptr %21, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr @p, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge23.loopexit.unr-lcssa:                 ; preds = %49, %.lr.ph22
  %indvars.iv28.unr = phi i64 [ 0, %.lr.ph22 ], [ %indvars.iv.next29.1, %49 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge23, label %._crit_edge23.loopexit.epilog-lcssa

._crit_edge23.loopexit.epilog-lcssa:              ; preds = %._crit_edge23.loopexit.unr-lcssa
  %31 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %indvars.iv28.unr
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = sub nsw i32 %33, %17
  store i32 %34, ptr %32, align 8, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %31, i64 12
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = add nsw i32 %36, %17
  store i32 %37, ptr %35, align 4, !tbaa !15
  br label %._crit_edge23

._crit_edge23:                                    ; preds = %._crit_edge23.loopexit.epilog-lcssa, %._crit_edge23.loopexit.unr-lcssa, %.preheader
  %38 = load i32, ptr @n, align 4, !tbaa !5
  %39 = sext i32 %15 to i64
  %40 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %39
  store i32 1, ptr %40, align 16, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %40, i64 4
  store i32 0, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %40, i64 8
  store i32 %38, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %40, i64 12
  store i32 %17, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !5
  %41 = sext i32 %38 to i64
  %42 = load i32, ptr @m, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = mul nsw i64 %43, %41
  %45 = tail call noundef i64 @_Z5solvev()
  %46 = sub i64 %44, %45
  %47 = load i64, ptr @ans, align 8, !tbaa !9
  %48 = add nsw i64 %46, %47
  store i64 %48, ptr @ans, align 8, !tbaa !9
  br label %64

49:                                               ; preds = %49, %.lr.ph22.new
  %indvars.iv28 = phi i64 [ 0, %.lr.ph22.new ], [ %indvars.iv.next29.1, %49 ]
  %niter = phi i64 [ 0, %.lr.ph22.new ], [ %niter.next.1, %49 ]
  %50 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %indvars.iv28
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !11
  %53 = sub nsw i32 %52, %17
  store i32 %53, ptr %51, align 8, !tbaa !11
  %54 = getelementptr inbounds i8, ptr %50, i64 12
  %55 = load i32, ptr %54, align 4, !tbaa !15
  %56 = add nsw i32 %55, %17
  store i32 %56, ptr %54, align 4, !tbaa !15
  %indvars.iv.next29 = or disjoint i64 %indvars.iv28, 1
  %57 = getelementptr inbounds [100010 x %struct.Square], ptr @a, i64 0, i64 %indvars.iv.next29
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = sub nsw i32 %59, %17
  store i32 %60, ptr %58, align 8, !tbaa !11
  %61 = getelementptr inbounds i8, ptr %57, i64 12
  %62 = load i32, ptr %61, align 4, !tbaa !15
  %63 = add nsw i32 %62, %17
  store i32 %63, ptr %61, align 4, !tbaa !15
  %indvars.iv.next29.1 = add nuw nsw i64 %indvars.iv28, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge23.loopexit.unr-lcssa, label %49, !llvm.loop !16

64:                                               ; preds = %._crit_edge23, %._crit_edge
  %65 = phi i64 [ %48, %._crit_edge23 ], [ %12, %._crit_edge ]
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %65)
  %67 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @p, ptr noundef nonnull @t)
  %68 = icmp eq i32 %67, 4
  br i1 %68, label %.preheader18, label %._crit_edge25, !llvm.loop !17

._crit_edge25:                                    ; preds = %64, %0
  ret i32 0
}

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

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

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 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 #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" }

!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 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS6Square", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !6, i64 12}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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